newsbox_actual = 0;
newsbox_html_flag = 0;

function newsbox_go()
 {
 if(document.getElementById)
	 {
	 newsbox_char = 1;
	 newsbox_affich(newsbox_actual)
	 newsbox_actual++;
	 if(newsbox_actual >= newsbox_msg.length)
		 newsbox_actual = 0;
	 }        
 }

function newsbox_affich(lactual)
 {
 var pix = newsbox_msg[lactual].charAt(newsbox_char);
 if(pix == "<")
	 newsbox_html_flag = 1;
 if(pix == ">")
	 newsbox_html_flag = 0;
 var texte = newsbox_msg[lactual].substring(0,newsbox_char);
 document.getElementById("bandeau_news").innerHTML = texte;
 if(newsbox_char < newsbox_msg[lactual].length)
	 {
	 newsbox_char++;
	 if(newsbox_html_flag == 1)    
		 newsbox_affich(lactual);
	 else
		 setTimeout("newsbox_affich("+lactual+")",60)
	 }
 else
	 setTimeout("newsbox_go()",3000)
 }
