// JavaScript Document


/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var delayb4scroll=0 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marquee1speed=1 //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 copyspeed1=marquee1speed;
var pause1speed=(pauseit==0)? copyspeed1: 0

var actualheight='';

function scrollmarquee1(){
//alert(actualheight*(-1)+8);
//alert(cross_marquee1.style.top);
if (parseInt(cross_marquee1.style.top)>(actualheight*(-1)+8))
cross_marquee1.style.top=parseInt(cross_marquee1.style.top)-copyspeed1+"px"
if(parseInt(cross_marquee1.style.top)==-754){
	cross_marquee1.style.top=parseInt(marquee1height)-148+"px"

}
//else
//alert(cross_marquee1.style.top);
}



function initializemarquee1(){
//alert(copyspeed1);
cross_marquee1=document.getElementById("vmarquee1")
cross_marquee1.style.top=0
marquee1height=document.getElementById("marqueecontainer1").offsetHeight
//alert(marquee1height);
actualheight=cross_marquee1.offsetHeight
//alert(actualheight);
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee1.style.height=marquee1height+"px"
cross_marquee1.style.overflow="scroll"

return
}
setTimeout('lefttime=setInterval("scrollmarquee1()",30)', delayb4scroll)
}

if (window.addEventListener)
window.addEventListener("load", initializemarquee1, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee1)
else if (document.getElementById)
window.onload=initializemarquee1


