function pausescroller(content, divId, divClass, delay)
{
	this.content=content //message array content
	this.tickerid=divId //ID of ticker div to display information
	this.delay=delay //Delay between msg change, in miliseconds.
	this.speed=2
	this.i=0;
	this.mouseoverBol=0 //Boolean to indicate whether mouse is currently over scroller (and pause it if it is)
	this.hiddendivpointer=1 //index of message array for hidden div
	document.write('<div id="'+divId+'" class="'+divClass+'" style="position: relative; overflow: hidden; visibility: hidden"><div class="innerDiv" style="height:15px; position: absolute; text-align:left;" id="'+divId+'1">'+content[0]+'</div></div>')
	var scrollerinstance=this
	if (window.addEventListener) //run onload in DOM2 browsers
	window.addEventListener("load", function(){scrollerinstance.initialize()}, false)
	else if (window.attachEvent) //run onload in IE5.5+
	window.attachEvent("onload", function(){scrollerinstance.initialize()})
	else if (document.getElementById) //if legacy DOM browsers, just start scroller after 0.5 sec
	setTimeout(function(){scrollerinstance.initialize()}, 500)
}

pausescroller.prototype.initialize=function()
{
	var scrollerinstance=this
	this.tickerDiv=document.getElementById(this.tickerid)
	this.rotateDiv=document.getElementById(this.tickerid+"1")
	this.rotateDiv.style.left = this.tickerDiv.offsetWidth+"px";
	this.rotateDiv.style.visibility = "visible";
	scrollerinstance.rotate();
}


pausescroller.prototype.rotate=function()
{
	var scrollerinstance=this
	
	if(this.i<this.rotateDiv.offsetWidth+this.tickerDiv.offsetWidth)
	{
		this.i = this.i+this.speed;
		this.rotateDiv.style.left=this.rotateDiv.offsetLeft-this.speed+"px";
		setTimeout(function(){scrollerinstance.rotate()}, 50)
	}
	else
	{
		var scrollerinstance=this
		this.i=0;
		this.rotateDiv.style.left=this.tickerDiv.offsetWidth+"px";
		setTimeout(function(){scrollerinstance.rotate()}, 50)
	}
}