// JavaScript Document for Main Page
<!-- HIDE CODE
var scrollspeed 	= 1		// SET SCROLLER SPEED 1 = SLOWEST
var startdelay 		= 2 		// START SCROLLING DELAY IN SECONDS
var nextdelay		= 0 		// SECOND SCROLL DELAY IN SECONDS 0 = QUICKEST
var topspace		= "2px"		// TOP SPACING FIRST TIME SCROLLING
var frameheight		= "134px"	// IF YOU RESIZE THE WINDOW EDIT THIS HEIGHT TO MATCH

current = (scrollspeed)
function NewsScrollStart(){
dataobj=document.getElementById("NewsWindow")
dataobj.style.top=topspace
AreaHeight=dataobj.offsetHeight
setTimeout("ScrollNewsDiv()",( startdelay * 1000 ))
}

function ScrollNewsDiv(){
dataobj.style.top=parseInt(dataobj.style.top)-(scrollspeed)
if (parseInt(dataobj.style.top)<AreaHeight*(-1)) {
dataobj.style.top=frameheight
setTimeout("ScrollNewsDiv()",( nextdelay * 1000 ))
}
else {
setTimeout("ScrollNewsDiv()",30)
}

}
window.onload=NewsScrollStart

document.onmouseover= function() {
divid=document.getElementById("NewsWindow")
divid.onmouseover= function() {
scrollspeed=0;
}
}
document.onmouseout = function() {
divid=document.getElementById("NewsWindow")
divid.onmouseout= function() {
scrollspeed=current
}
}

function goPage() {
	if(document.sitenav.sites.value!="") {
		var strurl=document.sitenav.sites.value;
		if(strurl.indexOf("http://")!= -1) {
			window.parent.location=strurl;
		}else {
			document.location=strurl;
		}
	}
}

function tabchange() {
	document.getElementById(arguments[0]).className="current";
	document.getElementById(arguments[1]).className="";
	document.getElementById(arguments[2]).className="";	
	document.getElementById(arguments[3]).style.display = "block";
	document.getElementById(arguments[4]).style.display = "none";
	document.getElementById(arguments[5]).style.display = "none";
}
// END HIDE CODE -->
