if (messages.length>1)i=2;elsei=0;function move1(whichlayer){	//alert("move1");tlayer=eval(whichlayer);if (tlayer.top>0&&tlayer.top<=3){tlayer.top=0;setTimeout("move1(tlayer)",pause_for);setTimeout("move2(document.main.document.second)",pause_for);return;}if (tlayer.top>=tlayer.document.height*-1){tlayer.top-=3;setTimeout("move1(tlayer)",speed);}else{tlayer.top=scrollerheight;tlayer.document.write(messages[i]);tlayer.document.close();if (i==messages.length-1)i=0;elsei++;}}function move2(whichlayer){		//alert("move2");tlayer2=eval(whichlayer);if (tlayer2.top>0&&tlayer2.top<=3){tlayer2.top=0;setTimeout("move2(tlayer2)",pause_for);setTimeout("move1(document.main.document.first)",pause_for);return;}if (tlayer2.top>=tlayer2.document.height*-1){tlayer2.top-=3;setTimeout("move2(tlayer2)",speed);}else{tlayer2.top=scrollerheight;tlayer2.document.write(messages[i]);tlayer2.document.close();if (i==messages.length-1)i=0;elsei++;}}function move3(whichdiv){		//alert("move3");		tdiv=eval(whichdiv)	;	//alert(tdiv.style.pixelTop);if (tdiv.style.pixelTop >0 && tdiv.style.pixelTop <= 3){tdiv.style.pixelTop=0;//alert("pause_for" + pause_for);setTimeout("move3(tdiv)",pause_for);setTimeout("move4(second2)",pause_for);return;}if (tdiv.style.pixelTop>=tdiv.offsetHeight*-1){tdiv.style.pixelTop-=3;//alert("speed" + speed);setTimeout("move3(tdiv)",speed);	//alert("Move3 speed- " + speed );}else{		//alert("Move3 - Processes");tdiv.style.pixelTop=scrollerheight;tdiv.innerHTML=messages[i];if (i==messages.length-1)i=0;elsei++;}}// Netscape and Firfox purposefunction Netmove3(whichdiv){			if (whichdiv.offsetTop >0 && whichdiv.offsetTop <= 3){			whichdiv.style.top  = 0;		setTimeout("Netmove3(document.getElementById('first2'))",pause_for); //first2//alert("Fourexecuted");setTimeout("Netmove4( document.getElementById('second2'))",pause_for); // second2return;}if (whichdiv.offsetTop >= whichdiv.offsetHeight * -1){				//alert("Two entered");whichdiv.style.top = whichdiv.offsetTop - 3;setTimeout("Netmove3(document.getElementById('first2'))",speed); // first2	}else{		whichdiv.style.top = scrollerheight;whichdiv.innerHTML=messages[i];if (i==messages.length-1)i=0;elsei++;}	}// Netscape and Firfox purposefunction Netmove4(sec){if (sec.offsetTop > 0 && sec.offsetTop <= 3){sec.style.top  = 0;setTimeout("Netmove4(document.getElementById('second2'))",pause_for); // second2setTimeout("Netmove3(document.getElementById('first2'))",pause_for); // first2return;}if (sec.offsetTop >= sec.offsetHeight * -1){sec.style.top = sec.offsetTop-3;setTimeout("Netmove4(document.getElementById('second2'))",speed); // second2}else{sec.style.top =scrollerheight;sec.innerHTML=messages[i];if (i==messages.length-1)i=0;elsei++;}}function move4(whichdiv){		//alert("move4");tdiv2=eval(whichdiv);if (tdiv2.style.pixelTop>0&&tdiv2.style.pixelTop<=3){tdiv2.style.pixelTop=0;setTimeout("move4(tdiv2)",pause_for);setTimeout("move3(first2)",pause_for);return;}if (tdiv2.style.pixelTop>=tdiv2.offsetHeight*-1){tdiv2.style.pixelTop-=3;setTimeout("move4(second2)",speed);}else{tdiv2.style.pixelTop=scrollerheight;tdiv2.innerHTML=messages[i];if (i==messages.length-1)i=0;elsei++;}}function popUp (URL, height, width) {		alert("PopUp");     var string="width="+width+" height="+height+" locationbar=no menubar=no status=no directories=no toolbar=no scrollbars=yes resizable=yes left=10 top=10";     window.open(URL,"PopUp",string);}function startscroll(){		if (document.all){	// IE purpose		move3(first2);	second2.style.top=scrollerheight;	second2.style.visibility='visible';}else {	if(document.getElementById)	{		// netscape purpose				Netmove3( document.getElementById("first2"));			document.getElementById("second2").style.top=scrollerheight;				document.getElementById("second2").style.visibility='visible';	}	else	if (document.layers)	{		//alert("Layers");		document.main.visibility='show';		move1(document.main.document.first);		document.main.document.second.top=scrollerheight+5;		document.main.document.second.visibility='show';	}		}}var scrollerbgcolor='#FFFFFF';window.onload=startscroll;if (document.all){	// IE purposedocument.writeln('<span id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">');document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0;top:0">');document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0;top:1;">');document.write(messages[0]);document.writeln('</div>');document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';left:0;top:0;visibility:hidden">');document.write(messages[1]);document.writeln('</div>');document.writeln('</div>');document.writeln('</span>');}else// netscape and firefox purposeif (document.getElementById){document.writeln('<div id="main2" style="position:relative;width:'+scrollerwidth+';height:'+scrollerheight+';overflow:hidden;background-color:'+scrollerbgcolor+' ;background-image:url('+scrollerbackground+')">');document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+scrollerheight+';clip:rect(0 '+scrollerwidth+' '+scrollerheight+' 0);left:0;top:0">');//document.writeln('<div style="position:absolute;width:'+scrollerwidth+';height:'+(scrollerheight/2)+';clip:rect(0 310 207 0);left:0;top:0">');document.writeln('<div id="first2" style="position:absolute;width:'+scrollerwidth+';left:0;top:1;">');document.write(messages[0]);document.writeln('</div>');document.writeln('<div id="second2" style="position:absolute;width:'+scrollerwidth+';height:0;left:0;top:0;visibility:hidden">');document.write(messages[1]);document.writeln('</div>');document.writeln('</div>');document.writeln('</div>');}