	var initialpos=45; 			// initial position 
	var endpos=-225; 			// end position
	var speed=40;				// Speed of scroller higher number = slower scroller 
	var scrollpos=initialpos;
	var x = 0;

	/* Initialise scroller when window loads */
	window.onload=function()
	{
		// check for DOM
		if(!document.getElementById || !document.createTextNode){return;}
		//document.getElementById("newslinks").innerHTML = document.getElementById("newstext").innerHTML
		document.getElementById("newslinks").style.display = "block"

		initnews();
		// add more functions as needed
	}

	/* stop scroller when window is closed */
	window.onunload=function()
	{
		clearInterval(doscroll);
	}

	/* Initialise scroller */
	function initnews()
	{
		var newsID='news';					// ID of the news box
		var classAdd='hasJS';				// class to add when JS is available

		var n=document.getElementById(newsID);
		if(!n){return;}
		n.className=classAdd;
		doscroll=setInterval(scrollem,speed);
	}
	function scrollem()
	{
		if (x <= 45) {
			//alert(m);
			//m.style.visibility="hidden";
			var n=document.getElementById('news').getElementsByTagName('p')[0];
			
			n.style.top=scrollpos+'px';	
			if(scrollpos==endpos){scrollpos=initialpos;}
			scrollpos--;
		}
		
		if (x>45) {
			//m.style.visibility="visible";
		}
		if (x==90) {
			x=0;
		}
		x++;
		
	}
