﻿

/***********************************************
* 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=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var vmarqueespeed=2 //Specify marquee scroll speed (larger is faster 1-10)
var vpauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var vcopyspeed=vmarqueespeed
var vpausespeed=(vpauseit==0)? vcopyspeed: 0
var actualheight=''

function scrollvmarquee(){
if (parseInt(vcross_marquee.style.top)>(actualheight*(-1)+8))
vcross_marquee.style.top=parseInt(vcross_marquee.style.top)-vcopyspeed+"px"
else
vcross_marquee.style.top=parseInt(vmarqueeheight)+8+"px"
}

function initializemarquee(){
    vcross_marquee = document.getElementById("vmarquee")
    if (vcross_marquee == null) return;
vcross_marquee.style.top=0
vmarqueeheight=document.getElementById("marqueecontainer").offsetHeight
actualheight=vcross_marquee.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
vcross_marquee.style.height=vmarqueeheight+"px"
vcross_marquee.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollvmarquee()",30)', delayb4scroll)
}

if (window.addEventListener)
window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
window.onload=initializemarquee


