// Browser Detection
isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
NS4 = (document.layers) ? true : false;
IEmac = ((document.all)&&(isMac)) ? true : false;
IE4plus = (document.all) ? true : false;
IE4 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 4.")!=-1)) ? true : false;
IE5 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 5.")!=-1)) ? true : false;
ver4 = (NS4 || IE4plus) ? true : false;
NS6 = (!document.layers) && (navigator.userAgent.indexOf('Netscape')!=-1)?true:false;

// Body onload utility (supports multiple onload functions)
var gSafeOnload = new Array();
function SafeAddOnload(f)
{
	if (IEmac && IE4) // IE 4.5 blows out on testing window.onload
	{
		window.onload = SafeOnload;
		gSafeOnload[gSafeOnload.length] = f;
	}
	else if (window.onload)
	{
		if (window.onload != SafeOnload)
		{
			gSafeOnload[0] = window.onload;
			window.onload = SafeOnload;
		}
		gSafeOnload[gSafeOnload.length] = f;
	}
	else
		window.onload = f;
}
function SafeOnload()
{
	for (var i=0;i<gSafeOnload.length;i++)
	gSafeOnload[i]();
}



/***********************************************
* 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=500 //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 delayb4scroll2=500 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed2=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit2=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 actualwidth=''

var copyspeed2=marqueespeed2
var pausespeed2=(pauseit2==0)? copyspeed2: 0
var actualheight2=''
var actualwidth2=''

function scrollmarquee(){
	if (parseInt(cross_marquee.style.left)>(actualwidth*(-1)+8)) //if scroller hasn't reached the end of its width
	cross_marquee.style.left=parseInt(cross_marquee.style.left)-copyspeed+"px" //move scroller upwards
	else //else, reset to original position
	cross_marquee.style.left=parseInt(marqueewidth)+8+"px"
}

function initializemarquee(){
	cross_marquee=document.getElementById("vmarquee")
	cross_marquee.style.left=0
	marqueewidth=document.getElementById("marqueecontainer").offsetWidth

	actualwidth=cross_marquee.offsetWidth //height of marquee content (much of which is hidden from view)
	if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
		cross_marquee.style.width=marqueewidth+"px"
		cross_marquee.style.overflow="scroll"
		return
	}
	setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
}

function scrollmarquee2(){
	if (parseInt(cross_marquee2.style.left)>(actualwidth2*(-1)+8)) //if scroller hasn't reached the end of its height
	cross_marquee2.style.left=parseInt(cross_marquee2.style.left)-copyspeed2+"px" //move scroller upwards
	else //else, reset to original position
	cross_marquee2.style.left=parseInt(marqueewidth2)+8+"px"
}

function initializemarquee2(){
	cross_marquee2=document.getElementById("vmarquee2")
	cross_marquee2.style.left=0
	marqueewidth2=document.getElementById("marqueecontainer2").offsetWidth
	
	actualwidth2=cross_marquee2.offsetWidth //height of marquee content (much of which is hidden from view)
	if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
		cross_marquee2.style.height=marqueewidth2+"px"
		cross_marquee2.style.overflow="scroll"
		return
	}
	setTimeout('lefttime=setInterval("scrollmarquee2()",30)', delayb4scroll2)
}


SafeAddOnload(initializemarquee);
SafeAddOnload(initializemarquee2);
