var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=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 copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''
var actualheight_1=''
var actualheight_2=''
var findclick = 0
var findclick_1 = 0
var findclick_2 = 0

function scrollmarquee(){
if(document.getElementById("tab_01").style.display == 'block'){
	if (findclick == 0){
	findclick = 1	
	findclick_1 = 0
	findclick_2 = 0
	cross_marquee.style.top=0
	}
	marqueeheight=document.getElementById("marqueecontainer").offsetHeight
	actualheight=cross_marquee.offsetHeight
	if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
	cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
	else
	cross_marquee.style.top=parseInt(marqueeheight)+8+"px";
}
if(document.getElementById("tab_02").style.display == 'block'){
	if (findclick_1 == 0){
	findclick = 0	
	findclick_1 = 1
	findclick_2 = 0
	cross_marquee_1.style.top=0
	}
	marqueeheight_1=document.getElementById("marqueecontainer_1").offsetHeight
	actualheight_1=cross_marquee_1.offsetHeight
if (parseInt(cross_marquee_1.style.top)>(actualheight_1*(-1)+8))
	cross_marquee_1.style.top=parseInt(cross_marquee_1.style.top)-copyspeed+"px"
	else
	cross_marquee_1.style.top=parseInt(marqueeheight_1)+8+"px";
}
if(document.getElementById("tab_03").style.display == 'block'){
	if (findclick_2 == 0){
	findclick = 0	
	findclick_1 = 0
	findclick_2 = 1
	cross_marquee_2.style.top=0
	}
	marqueeheight_2=document.getElementById("marqueecontainer_2").offsetHeight
	actualheight_2=cross_marquee_2.offsetHeight
	if (parseInt(cross_marquee_2.style.top)>(actualheight_2*(-1)+8))
	cross_marquee_2.style.top=parseInt(cross_marquee_2.style.top)-copyspeed+"px"
	else
	cross_marquee_2.style.top=parseInt(marqueeheight_2)+8+"px"
	}
}
function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
cross_marquee_1=document.getElementById("vmarquee_1")
cross_marquee_2=document.getElementById("vmarquee_2")

cross_marquee.style.top=0
cross_marquee_1.style.top=0
cross_marquee_2.style.top=0

marqueeheight=document.getElementById("marqueecontainer").offsetHeight
marqueeheight_1=document.getElementById("marqueecontainer_1").offsetHeight
marqueeheight_2=document.getElementById("marqueecontainer_2").offsetHeight

actualheight=cross_marquee.offsetHeight
actualheight_1=cross_marquee_1.offsetHeight
actualheight_2=cross_marquee_2.offsetHeight
//actualheight_1='80'
//actualheight_2='600'

//alert(actualheight + ' .. ' + actualheight_1 + ' .. ' + actualheight_2)

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_1.style.height=marqueeheight_1+"px"
cross_marquee_2.style.height=marqueeheight_2+"px"

cross_marquee.style.overflow="scroll"
cross_marquee_1.style.overflow="scroll"
cross_marquee_2.style.overflow="scroll"

return
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
}


if (window.addEventListener){
window.addEventListener("load", initializemarquee, false)
}
else if (window.attachEvent){
window.attachEvent("onload", initializemarquee)
}
else if (document.getElementById);
onload=function() {
initializemarquee;
//initializemarquee_1;
//initializemarquee_2;
}

