//PLF - http://www.jejavascript.net/
function writext(texdef)
{
	document.write(texdef);
}

writext('<DIV ID="txt_defil_relativ" onMouseOver="txt_defil_stop();" onMouseOut="txt_defil_rstart();" STYLE="position:relative;width:'+txt_defil_width +'px;height:'+txt_defil_height+'px;background-color:'+txt_defil_bgcolor+';">');
writext('<DIV ID="txt_defil_cadre" STYLE="/*border:1px #000 solid;*/position:absolute;width:'+(txt_defil_width)+'px;height:'+(txt_defil_height)+'px;top:0;left:0;clip:rect(0 '+(txt_defil_width)+'px '+(txt_defil_height)+'px 0)">');
writext('<div id="txt_defiler_1" style="/*border:1px #f00 solid;*/position:absolute;/*width:'+(txt_defil_width)+'px;*/left:'+txt_defil_width+'px;top:0;" CLASS=txt_defil >'+txt_defil_info[0]+'</div>');
writext('<div id="txt_defiler_2" style="display:none;/*border:1px #0f0 solid;*/position:absolute;/*width:1px;*/left:'+txt_defil_width+'px;top:0;" CLASS=txt_defil >'+txt_defil_info[1]+'</div>');
writext('</DIV></DIV>');

txt_defil_1 =0;
txt_defil_2 = 0;
stop_mouss=0;

function txt_defil_f1()
{
// 	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;
// 	}
	txt_defil_nb_info = txt_defil_info.length;
	if(txt_defil_1 == txt_defil_nb_info || txt_defil_1 ==0)
		txt_defil_next = 0;
	else
		txt_defil_next = txt_defil_1;

	if(document.getElementById)
		document.getElementById(txt_defil_haut).innerHTML = txt_defil_info[txt_defil_next];
	txt_defil_left = 0;
   txt_width = txt_defil_width;
	if(document.getElementById)
	move1=setTimeout("txt_defil_f2 ()",txt_defil_pause)
}

function txt_defil_f2 ()
{
   if (stop_mouss == 0)
   {
	   txt_defil_left -= 2;
	   document.getElementById(txt_defil_haut).style.left = txt_defil_left+txt_defil_width+"px";
// 	   document.getElementById(txt_defil_bas).style.left = -1+txt_defil_width+"px";
      txt_width_last = txt_width;
      txt_width   = document.getElementById(txt_defil_haut).offsetWidth;
// if(txt_width_last==txt_width)
// {
//    document.getElementById(txt_defil_bas).style.left = txt_defil_left+txt_defil_width+"px";
//    document.getElementById(txt_defil_bas).style.width = -txt_defil_left+"px";
//    alert(document.getElementById(txt_defil_haut).offsetWidth);
// }
// 	if((txt_defil_left+txt_defil_width) > 0)
	   if((txt_defil_left+txt_width+txt_defil_width) > 0)
	   {
   	   move2=setTimeout("txt_defil_f2 ()",40)
	   }
	   else
	   {
      	txt_defil_1 = txt_defil_next+1;
		   txt_defil_f1()
	   }
   }
   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;
}
window.onload = txt_defil_f1;


