function popUp(URL) {
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=1,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width=640,height=500,left = 145,top = 45');");
}

function resize_max() {
     if(window.innerWidth) {
           browser_width = window.innerWidth;
     }
     else if(document.clearPlaceholder.width) {
           browser_width = document.clearPlaceholder.width;
     }
     else {
           browser_width = screen.width;
     }

     if(browser_width>1200) {
           xresizeby = 1200 - browser_width;
           document.getElementById("maindiv").style.width = 1200;
     }
}

function calPopUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=yes,location=0,statusbar=0,menubar=0,resizable=1,width=445,height=430');");
}

var delayb0scroll=2200 //Specify initial delay before marquee starts to scroll on page (2200=2 seconds)
var marqueespeed=2 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''

function scrollmarquee(){
if (parseInt(cross_marquee.style.left)<(actualwidth*(-1)+0))
cross_marquee.style.left=(parseInt(cross_marquee2.style.left)+actualwidth)+"px"
if (parseInt(cross_marquee2.style.left)<(actualwidth*(-1)+0))
cross_marquee2.style.left=(parseInt(cross_marquee.style.left)+actualwidth)+"px"
cross_marquee2.style.left=parseInt(cross_marquee2.style.left)-copyspeed+"px"
cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px"
}

function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
cross_marquee2=document.getElementById("vmarquee2")
cross_marquee.style.left=0
marqueewidth=document.getElementById("marqueecontainer").offsetWidth
actualwidth=cross_marquee.firstChild.offsetWidth
cross_marquee2.style.left=actualwidth+10+'px'
cross_marquee2.innerHTML=cross_marquee.innerHTML
setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb0scroll)
}

if (window.addEventListener)
window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
window.onload=initializemarquee