/***********************************************
* 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=1000 //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)?

var delayb4scroll_1=0;
var marqueespeed_1=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit_1=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 copyspeed_1=marqueespeed_1
var pausespeed_1=(pauseit_1==0)? copyspeed_1: 0
var actualheight_1=''

function scrollmarquee(){
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"
}

function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqueecontainer").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("scrollmarquee()",60)', delayb4scroll)
}

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


function scrollmarquee_1(){
	if (parseInt(cross_marquee_1.style.top)>(actualheight_1*(-1)+8)+80)
	{
	cross_marquee_1.style.top=parseInt(cross_marquee_1.style.top)-copyspeed_1+"px"
	}
	else
	{ 
	clearInterval(Timer);
	//cross_marquee_1.style.top=parseInt(marqueeheight_1)+8+"px"
	}
}

function initializemarquee_1(){
cross_marquee_1=document.getElementById("centerPage")
if (cross_marquee_1.style.top == "")
{
cross_marquee_1.style.top=0
}
else
{
	//alert(cross_marquee_1.style.top);
}

marqueeheight_1=document.getElementById("Hidden_Div").offsetHeight;
actualheight_1=cross_marquee_1.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee_1.style.height=marqueeheight_1+"px"
cross_marquee_1.style.overflow="scroll"
return
}
//Timer = setTimeout('lefttime_=setInterval("scrollmarquee_1()",30)', delayb4scroll_1)
Timer = setInterval("scrollmarquee_1()",10);

}





function scrollmarquee_1_(){
	if (parseInt(cross_marquee_1.style.top)>(actualheight_1*(-1)+8)+80)
	{
	cross_marquee_1.style.top=parseInt(cross_marquee_1.style.top)-copyspeed_1+"px"
	}
	else
	{ 
	clearInterval(Timer);
	//cross_marquee_1.style.top=parseInt(marqueeheight_1)+8+"px"
	}
}

function initializemarquee_1_(){
cross_marquee_1=document.getElementById("centerPage")
if (cross_marquee_1.style.top == "")
{
cross_marquee_1.style.top=0
}
else
{
	//alert(cross_marquee_1.style.top);
}

marqueeheight_1=document.getElementById("Hidden_Div").offsetHeight;
actualheight_1=cross_marquee_1.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee_1.style.height=marqueeheight_1+"px"
cross_marquee_1.style.overflow="scroll"
return
}
//Timer = setTimeout('lefttime_=setInterval("scrollmarquee_1()",30)', delayb4scroll_1)
Timer = setInterval("scrollmarquee_1_()",10);

}

function Timeout()
{
	clearInterval(Timer);
}

function scrollmarquee_2(){
	if (parseInt(cross_marquee_1.style.top)<(0))
	{
	cross_marquee_1.style.top=parseInt(cross_marquee_1.style.top)+copyspeed_1+"px"
	}
	else
	{ 
	clearInterval(Timer_2);
	//cross_marquee_1.style.top=parseInt(marqueeheight_1)+8+"px"
	}
}

function initializemarquee_2(){
cross_marquee_1=document.getElementById("centerPage")
if (cross_marquee_1.style.top == "")
{
cross_marquee_1.style.top=0
}
else
{
	//alert(cross_marquee_1.style.top);
}

marqueeheight_1=document.getElementById("Hidden_Div").offsetHeight;
actualheight_1=cross_marquee_1.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee_1.style.height=marqueeheight_1+"px"
cross_marquee_1.style.overflow="scroll"
return
}
//Timer = setTimeout('lefttime_=setInterval("scrollmarquee_1()",30)', delayb4scroll_1)
Timer_2 = setInterval("scrollmarquee_2()",10);

}
function Timeout_2()
{
	clearInterval(Timer_2);
}