// 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=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=2 //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 NextPosition_INN(){
	if (parseInt(cross_marquee_1.style.left)>(actualheight_1*(-1)+8)+582)
	{
		cross_marquee_1.style.left = parseInt(cross_marquee_1.style.left)-copyspeed_1+"px"
	}
	else
	{ 
	clearInterval(Timer);
	}
}

function NextPosition(){
	cross_marquee_1=document.getElementById("centerPage")
	if (cross_marquee_1.style.left == "")
	{
	cross_marquee_1.style.left=0
	}
	else
	{
		
	}
	
	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 = setInterval("NextPosition_INN()",10);
}


function PriviewsPosition_INN(){
	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);
	}
}

function PriviewsPosition(){
	cross_marquee_1=document.getElementById("centerPage")
	if (cross_marquee_1.style.left == "")
	{
		cross_marquee_1.style.left=0
	}
	else
	{
	}
	
	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_2 = setInterval("PriviewsPosition_INN()",10);
	
}
function Timeout_2()
{
	clearInterval(Timer_2);
}

function Timeout()
{
	clearInterval(Timer);
}

