var sspeed=4;
var restart=sspeed;
var rspeed=sspeed;
var spause=2000;
var singletext=new Array();
var swidth  = 300;
var sheight = 100;
var textcounter=0;

function createTicker(id, width, height){
	swidth 	= width;
	sheight = height;
if(document.getElementById(id)) {

	//read text elements
	for (i=0; i<document.getElementById(id).childNodes.length; i++) {
		if (document.getElementById(id).childNodes[i].nodeName=="DIV") {
			singletext[textcounter] = document.getElementById(id).childNodes[i].innerHTML;
			textcounter++;
		}
	}
	textcounter = 0;
	// setup element
	document.getElementById(id).innerHTML = ('<div style="position:relative;overflow:hidden;width:'+swidth+'px;height:'+sheight+'px;clip:rect(0 '+swidth+'px '+sheight+'px 0);" onmouseover="sspeed=0" onmouseout="sspeed=rspeed"><div id="iens6div" style="position:relative;width:'+swidth+'px;"></div></div>');

	//start scrolling
	if(document.getElementById){ns6div=document.getElementById('iens6div');ns6div.style.top=sheight+"px";ns6div.innerHTML=singletext[0];sizeup=ns6div.offsetHeight;ns6scroll();}
	else
	if(document.layers){ns4layer=document.ns4div.document.ns4div1;ns4layer.top=sheight;ns4layer.document.write(singletext[0]);ns4layer.document.close();sizeup=ns4layer.document.height;ns4scroll();}
	else
	if(document.all){iediv=iens6div;iediv.style.pixelTop=sheight+"px";iediv.innerHTML=singletext[0];sizeup=iediv.offsetHeight;iescroll();}}
}
function iescroll(){if(iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){iediv.style.pixelTop=0;setTimeout("iescroll()",spause);}else
if(iediv.style.pixelTop>=sizeup*-1){iediv.style.pixelTop-=sspeed+"px";setTimeout("iescroll()",100);}else{if(textcounter==singletext.length-1)textcounter=0;else textcounter++;iediv.style.pixelTop=sheight+"px";iediv.innerHTML=singletext[textcounter];sizeup=iediv.offsetHeight;iescroll();}}
function ns4scroll(){if(ns4layer.top>0&&ns4layer.top<=sspeed){ns4layer.top=0;setTimeout("ns4scroll()",spause);}else
if(ns4layer.top>=sizeup*-1){ns4layer.top-=sspeed;setTimeout("ns4scroll()",100);}else{if(textcounter==singletext.length-1)textcounter=0;else textcounter++;ns4layer.top=sheight;ns4layer.document.write(singletext[textcounter]);ns4layer.document.close();sizeup=ns4layer.document.height;ns4scroll();}}
function ns6scroll(){if(parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){ns6div.style.top=0;setTimeout("ns6scroll()",spause);}else
if(parseInt(ns6div.style.top)>=sizeup*-1){ns6div.style.top=parseInt(ns6div.style.top)-sspeed+"px";setTimeout("ns6scroll()",100);}
else{if(textcounter==singletext.length-1)textcounter=0;else textcounter++;
ns6div.style.top=sheight+"px";ns6div.innerHTML=singletext[textcounter];sizeup=ns6div.offsetHeight;ns6scroll();}}
