/***********************************************
* 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.left)>(actualheight*(-1)+8))
cross_marquee.style.left= parseInt(cross_marquee.style.left)-copyspeed+"px"
else
cross_marquee.style.left=parseInt(marqueeheight)+8+"px"
}


function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
cross_marquee.style.left=0
marqueeheight=document.getElementById("marqueecontainer").offsetWidth
actualheight=cross_marquee.offsetWidth
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.width=marqueeheight+"px"
cross_marquee.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)
window.onload=initializemarquee
*/
function scrollmarquee_1(){
	if (parseInt(cross_marquee_1.style.top)>(actualheight_1*(-1)+8)+70)
	{
	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 scrollmarquee_1456(){
	if (parseInt(cross_marquee_1.style.top)>(actualheight_1*(-1)+8)+460)
	{
	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 initializemarquee_456(){
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_1456()",10);

}



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

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

function scrollmarquee_111111111(){
	//alert((parseInt(cross_marquee_1.style.left)-copyspeed_1));
	//alert(parseInt(actualheight_1*(-1)));
	//if (parseInt(cross_marquee_1.style.left) > (parseInt(cross_marquee_1.style.left)))
	//alert(parseInt(actualheight_1*(-1)+8+700));
	if (parseInt(cross_marquee_1.style.left) > (actualheight_1*(-1)+8+440))
	{
		cross_marquee_1.style.left = parseInt(cross_marquee_1.style.left)-copyspeed_1+"px"
		//cross_marquee_1.style.left = parseInt(cross_marquee_1.style.left)-copyspeed_1+"px"
	}
	else
	{ 
		clearInterval(Timer);
	}
}




function scrollmarquee_1_(){
	if (parseInt(cross_marquee_1.style.top)>(actualheight_1*(-1)+8)+200)
	{
	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 initializemarquee_2222222222(){
cross_marquee_1=document.getElementById("centerPage")
if (cross_marquee_1.style.left == "")
{
cross_marquee_1.style.left=0
}
else
{
	//alert(cross_marquee_1.style.top);
}

marqueeheight_1=document.getElementById("Hidden_Div").offsetWidth;
actualheight_1=cross_marquee_1.offsetWidth;
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_222222222()",10);

}

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



function Timeout_2()
{
	clearInterval(Timer_2);
}
