function setOpacity( id_bloc, valeur )
{
var bloc = document.getElementById( id_bloc );
bloc.style['filter'] = 'alpha(opacity=' + valeur+')';
bloc.style['-moz-opacity'] = valeur/100;
bloc.style['-khtml-opacity'] = valeur/100;
bloc.style['opacity'] = valeur/100;
bloc.style['-ms-filter'] = '"progid:DXImageTransform.Microsoft.Alpha(Opacity=' + valeur+')"';
}
function change_opacite_bloc( id_bloc, courant, cible )
{
setOpacity( id_bloc, courant );
if( courant != cible )
{
prochain = courant + 10 * Math.abs( cible - courant ) / ( cible - courant );
window.setTimeout( 'change_opacite_bloc( "' + id_bloc + '", ' + prochain + ', ' + cible + ' )', 100);
}
else
{
// if( document.getElementById( 'debug_doing' ) )
// document.getElementById( 'debug_doing' ).innerHTML = document.getElementById( 'debug_doing' ).innerHTML + '
bloc ' + id_bloc + ' => ' + cible;
}
if( ( courant == 0 ) && ( cible == 0 ) )
document.getElementById( id_bloc ).style.display = 'none';
}
function masque_bloc( id_zone, id_bloc )
{
var bloc = document.getElementById( id_bloc );
change_opacite_bloc( id_bloc, 100, 0 );
}
function debug_doing( chaine )
{
if( document.getElementById( 'debug_doing' ) )
document.getElementById( 'debug_doing' ).innerHTML = document.getElementById( 'debug_doing' ).innerHTML + '
' + chaine;
}
function montre_bloc( id_zone, id_bloc )
{
eval( 'var nb_blocs_affiches = nb_actus_deroulantes_' + id_zone + ';' );
var blocs_affiches = new Array( nb_blocs_affiches );
id_bloc_suivant = parseInt( id_bloc );
for( var i=0; i