function setWidth()
	{
		switch(screen.width)
			{
			case 800:
				document.body.style.width="790px";
				break;    
			case 1024:
				document.body.style.width="900px";
				break;    
			case 1280:
				document.body.style.width="1100px";
				break;
			default:
				document.body.style.width="1100px";
				break;
			}
	}
	
var delayus=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqspeed=2 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?


var duplspeed=marqspeed
var pausespeed=(pauseit==0)? duplspeed: 0
var actualheight=''

function scrollmarq(){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
cross_marquee.style.top=parseInt(cross_marquee.style.top)-duplspeed+"px"
else
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}

function initializemarq(){
cross_marquee=document.getElementById("inner_marq")
if (cross_marquee){
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqcontainer").offsetHeight
actualheight=cross_marquee.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarq()",30)', delayus)
}
}

if (window.addEventListener)
window.addEventListener("load", initializemarq, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarq)
else if (document.getElementById)
window.onload=initializemarq

function closeit(elementas) {
			document.getElementById(elementas).style.display="none";
			document.getElementById(elementas).style.visibility="hidden";
		}

