function domticker(content, divId, divClass, delay)
{
	this.content=content;
	this.tickerid=divId; //ID of master ticker div. Message is contained inside first child of ticker div
	this.delay=delay; //Delay between msg change, in miliseconds.
	this.mouseoverBol=0; //Boolean to indicate whether mouse is currently over ticker (and pause it if it is)
	this.pointer=1;
	
	document.write('<div id="'+divId+'" class="'+divClass+'">'+content[0]+'</div>');
	var instanceOfTicker=this;
	setTimeout(function(){instanceOfTicker.initialize()}, delay);
}

domticker.prototype.initialize=function()
{
	var instanceOfTicker=this;
	document.getElementById('domticker2').onmouseover=function(){instanceOfTicker.mouseoverBol=1};
	document.getElementById('domticker2').onmouseout=function(){instanceOfTicker.mouseoverBol=0};
	this.rotatemsg();
}

domticker.prototype.rotatemsg=function()
{
	var instanceOfTicker=this;

	if (this.mouseoverBol==1) //if mouse is currently over ticker, do nothing 
		setTimeout(function(){instanceOfTicker.rotatemsg()}, 100);
	else
	{
		document.getElementById('domticker2').innerHTML = this.content[this.pointer];
		this.pointer = (this.pointer < this.content.length-1) ? (this.pointer+1) : 0;
		setTimeout(function(){ instanceOfTicker.rotatemsg() }, this.delay);
	}
}