//defil_msg = new Array;
//defil_msg[0] = '1er texte';
//defil_msg[1] = '2e texte';
//defil_msg[2] = '3e texte';

 ejs_box2_actual = 0;
 ejs_box2_html_flag = 0;
 
 function ejs_box2_go()
 {
	 if(document.getElementById)
	 {
		 ejs_box2_char = 1;
		 ejs_box2_affich(ejs_box2_actual)
		 ejs_box2_actual++;
		 if(ejs_box2_actual >= defil_msg.length)
			 ejs_box2_actual = 0;
	 }        
 }
 
 function ejs_box2_affich(lactual)
 {
	 var pix = defil_msg[lactual].charAt(ejs_box2_char);
	 if(pix == "<")
		 ejs_box2_html_flag = 1;
	 if(pix == ">")
		 ejs_box2_html_flag = 0;
	 var texte = defil_msg[lactual].substring(0,ejs_box2_char);
	 document.getElementById("defilbox").innerHTML = texte;
 
	 if(ejs_box2_char < defil_msg[lactual].length)
	 {
		 ejs_box2_char++;
		 if(ejs_box2_html_flag == 1)    
			 ejs_box2_affich(lactual);
		 else
			 setTimeout("ejs_box2_affich("+lactual+")",52);
	 }
	 else
		 setTimeout("ejs_box2_go()",2600);
 }
 
 window.onload = ejs_box2_go;