//PLF - http://www.jejavascript.net/


var txt_defil_width = 222; 		//largeur
var txt_defil_height = 80; 		//hauteur
var txt_defil_bgcolor = '#9966FF'; //couleur de fond
var txt_defil_background = ""; 		//image de fond
var txt_defil_info = new Array;

function writext(texdef)
	{
	document.write(texdef);
    }
	
writext('<DIV class="infoTraficBloc">');
writext('<DIV ID=txt_defil_relativ onMouseOver="txt_defil_stop()" onMouseOut="txt_defil_rstart()" class="defil_Relativ">');
writext('<DIV ID=txt_defil_cadre class="defil_Cadre">');
//writext('<div id=txt_defiler_1 style="position:absolute;width:'+(txt_defil_width -8)+'px;left:0;top:0;" CLASS=txt_defil >'+txt_defil_info[0]+'</DIV>');
//writext('<div id=txt_defiler_2 style="position:absolute;width:'+(txt_defil_width -8)+'px;left:0;top:'+txt_defil_height+'px;" CLASS=txt_defil >'+txt_defil_info[1]+'</DIV>');
writext('<div id=txt_defiler_1 style="position:absolute;width:' + (txt_defil_width - 8) + 'px;left:0;top:0;" CLASS=txt_defil ></DIV>');
writext('<div id=txt_defiler_2 style="position:absolute;width:' + (txt_defil_width - 8) + 'px;left:0;top:' + txt_defil_height + 'px;" CLASS=txt_defil >' + txt_defil_info[0] + '</DIV>');
writext('</DIV></DIV></div>');

txt_defil_1 =1;
txt_defil_2 = 0;
stop_mouss=0;

function txt_defil_f1() {
    txt_defil_nb_info = txt_defil_info.length - 1; 
    
	if(txt_defil_1 == 1) 
		{
		txt_defil_haut = "txt_defiler_1";
		txt_defil_bas = "txt_defiler_2";
		txt_defil_1 = 0;
		}
	else
		{
		txt_defil_bas = "txt_defiler_1";
		txt_defil_haut = "txt_defiler_2";
		txt_defil_1 = 1;
		}
	
	if(txt_defil_2 == txt_defil_nb_info)
		txt_defil_next = 0;
	else
		txt_defil_next = txt_defil_2+1;

    if (document.getElementById)
        //document.getElementById(txt_defil_haut).innerHTML = txt_defil_info[txt_defil_1];
        document.getElementById(txt_defil_bas).innerHTML = txt_defil_info[txt_defil_next];
        //alert(document.getElementById(txt_defil_haut).innerHTML);
        //alert(document.getElementById(txt_defil_bas).innerHTML);
	    txt_defil_top = 0;
    if(document.getElementById) txt_defil_f2 ()
}

function txt_defil_f2 () {
    if (stop_mouss == 0)
    {
        txt_defil_top -= 1;
        document.getElementById(txt_defil_haut).style.top = txt_defil_top + "px";
        document.getElementById(txt_defil_bas).style.top = txt_defil_top + txt_defil_height + "px";
        if((txt_defil_top+txt_defil_height) > 0)
            move2=setTimeout("txt_defil_f2 ()",40)
        else
	        txt_defil_f3()
	}
    //bloque le défilement en cas de survol
    else	move1=setTimeout("txt_defil_f2 ()",1000)	
}

function txt_defil_f3() {
	txt_defil_2 = txt_defil_next;
	txt_defil_f1()
	}
function txt_defil_stop()
	{
	stop_mouss=1;
	}
function txt_defil_rstart()
	{
	stop_mouss=0;
	}	



