/* Variables, go nuts changing those! */
	// initial position
	var dn_startpos=120;
	// end position
	var dn_endpos=-200;
	// Speed of scroller higher number = slower scroller
	var dn_speed=30;
	// ID of the news box
	var dn_newsID='news_scroller_div';
	// class to add when JS is available
	var dn_classAdd='hasJS';

	/* Initialise scroller when window loads */
	window.onload=function()
	{
		// caricamento del webeditor
		if (document.getElementById("modulo_editor_completo")) load_WebEditor('Cut') ;
		// check for DOM
		if(!document.getElementById || !document.createTextNode){return;}
		initDOMnews();
		// add more functions as needed
	}
	/* stop scroller when window is closed */
	window.onunload=function()
	{
		if ( typeof(dn_interval) == "undefined" ) return;
		clearInterval(dn_interval);
	}

/*
	This is the functional bit, do not press any buttons or flick any switches
	without knowing what you are doing!
*/

	var dn_scrollpos=dn_startpos;
	/* Initialise scroller */
	function initDOMnews()
	{
		if ( document.getElementById(dn_newsID) == null ) return;
		var n=document.getElementById(dn_newsID);
		if(!n){return;}
		n.className=dn_classAdd;
		dn_interval=setInterval('scrollDOMnews()',dn_speed);
		n.onmouseover=function()
		{
			clearInterval(dn_interval);
		}
		n.onmouseout=function()
		{
			dn_interval=setInterval('scrollDOMnews()',dn_speed);
		}
	}

	function scrollDOMnews()
	{
		var n=document.getElementById(dn_newsID).getElementsByTagName('ul')[0];
		n.style.top=dn_scrollpos+'px';
		if(dn_scrollpos==dn_endpos){dn_scrollpos=dn_startpos;}
		dn_scrollpos--;
	}

