	// Speed of scroller higher number = slower scroller 
	var dn_speed=90;				
	// ID of the news box
	var dn_newsID='news';			
	// class to add when JS is available
	var dn_classAdd='hasJS';		
	// Message to stop scroller
	var dn_stopMessage='';	// 'Stop scroller';	
	// ID of the generated paragraph
	var dn_paraID='DOMnewsstopper';

	var p1=40;
	var p2=80;
	var p3=120;
	var p4=160;
	var p5=200;
	var p6=240;
	
				
	/* SI IL FAUT AJOUTER D'AUTRES LIGNES:
	var p7=360;
	var p8=400;
	var p9=440;
	var p10=480;	// AJOUTER 40 A CHAQUE FOIS ....
	*/
	
/* Initialise scroller when window loads */
	function initScroller()
	{
		// check for DOM
		if(!document.getElementById || !document.createTextNode){return;}
		initDOMnews();
		// add more functions as needed
	}
	/* stop scroller when window is closed */
	window.onunload=function()
	{
		clearInterval(dn_interval);
	}

/*
	This is the functional bit, do not press any buttons or flick any switches
	without knowing what you are doing!
*/

	/* Initialise scroller */
	function initDOMnews()
	{
		var n=document.getElementById(dn_newsID);
		if(!n){return;}
		dn_interval=setInterval('scrollDOMnews()',dn_speed);
		n.onmouseover=function()
		{		
			clearInterval(dn_interval);
		}
		n.onmouseout=function()
		{
			dn_interval=setInterval('scrollDOMnews()',dn_speed);
		}
	}
	function stopDOMnews()
	{
		clearInterval(dn_interval);
		var n=document.getElementById('news');
		n.className='';
		n.parentNode.removeChild(n.nextSibling);
		return false;
	}
	function scrollDOMnews()
	{
		var n1=document.getElementById('ligne1');
		var n2=document.getElementById('ligne2');
		var n3=document.getElementById('ligne3');
		var n4=document.getElementById('ligne4');
		var n5=document.getElementById('ligne5');
		var n6=document.getElementById('ligne6');
							
		
		/* SI D'AUTRES LIGNES A AJOUTER:
		var n7=document.getElementById('ligne7');
		var n8=document.getElementById('ligne8');
		var n9=document.getElementById('ligne9');
		var n10=document.getElementById('ligne10');
		*/

		n1.style.top=p1+'px';	
		n2.style.top=p2+'px';	
		n3.style.top=p3+'px';	
		n4.style.top=p4+'px';	
		n5.style.top=p5+'px';	
		n6.style.top=p6+'px';	
		
						
		/* SI D'AUTRES LIGNES A AJOUTER:
		n7.style.top=p7+'px';	
		n8.style.top=p8+'px';	
		n9.style.top=p9+'px';	
		n10.style.top=p10+'px';	
		*/
		
		p1--;
		if (p1<=-120) p1=210;
		p2--;
		if (p2<=-120) p2=210;
		p3--;
		if (p3<=-120) p3=210;
		p4--;
		if (p4<=-120) p4=210;
		p5--;
		if (p5<=-120) p5=210;
		p6--;
		if (p6<=-120) p6=210;
		
						
		/* SI D'AUTRES LIGNES A AJOUTER:
		p7--;
		if (p7==-120) p7=210;
		p8--;
		if (p8==-120) p8=210;
		p9--;
		if (p9==-120) p9=210;
		p6--;
		if (p10==-120) p10=210;
		*/
}


function addLoadEvent(func) {

  var oldonload = window.onload;

  if (typeof window.onload != 'function') {

    window.onload = func;

  } else {

    window.onload = function() {

      if (oldonload) {

        oldonload();

      }

      func();

    }

  }

}



addLoadEvent(function() {

  initScroller();

});
