<!--
	//BRANDING AREA ROTATOR
	// this array consists of the id attributes of the divs we wish to alternate between
		divs_to_fade = new Array('branding_0', 'branding_1', 'branding_2', 'branding_3', 'branding_4', 'branding_5');
		
	// the starting index in the above array.  It should be set to the value of the div which doesn't have the CSS Display property set to "none"
	x = 0;
	
	// the number of milliseconds between swaps.  Default is five seconds.
	wait = 6000;
		
	// 'back' and 'next' functions
	function getBackNext(moveID) {
		var cur = x;
		if (moveID == 1) {
			x++;
			if (x == 6) x = 0;
		} else if (moveID == 2) {
			x--;
			if (x < 0) x = 5;
		}
		Effect.Fade(divs_to_fade[cur], { duration:1, from:1.0, to:0.0 });
		Effect.Appear(divs_to_fade[x], { duration:1, from:0.0, to:1.0 });
		startPage();
}
	// the function that performs the fade
	function swapFade() {
		Effect.Fade(divs_to_fade[x], { duration:1, from:1.0, to:0.0 });
		x++;
		if (x == 6) {
			x = 0;
			clearInterval(timerID);
		}
		Effect.Appear(divs_to_fade[x], { duration:1, from:0.0, to:1.0 });
}
	// the onload event handler that starts the fading.
	function startPage() {
		timerID = setInterval('swapFade()',wait);
}
//-->
<!--
    //ROLL OVER FOR IE 6
    //startList = function() {
    function startList() {
    if (document.all&&document.getElementById) 
    {
    	navRoot = document.getElementById("nav");
    	for (i=0; i<navRoot.childNodes.length; i++) 
    	{
    		node = navRoot.childNodes[i];
    		if (node.nodeName=="LI") 
    		{
    			node.onmouseover=function() 
    			{
    				this.className+=" over";
    			}
				node.onmouseout=function() {
				this.className=this.className.replace(" over", "");
				}
			}
		}
		//2ND NAVIGATION BAR
		//navRoot2 = document.getElementById("nav2");
		//for (i=0; i<navRoot2.childNodes.length; i++)
    	//{
    		//node = navRoot2.childNodes[i];
    		//if (node.nodeName=="LI") 
    		//{
    			//node.onmouseover=function()
    			//{
    				//this.className+=" over";
    			//}
				//node.onmouseout=function() {
				//this.className=this.className.replace(" over", "");
				//}
			//}
		//}
	}
}
	//window.onload=startList;
//-->
<!--
	//TABBED BOXES
	function changeTabsOn(tab) {
	document.getElementById(tab).style.backgroundPosition = "0 0";
}
	function changeTabsOff(tab) {
	document.getElementById(tab).style.backgroundPosition = "0 -26px";
}
	function showTab(tab) {
	document.getElementById('centertab1').style.display = "none";
	document.getElementById('centertab2').style.display = "none";
	document.getElementById('centertab3').style.display = "none";
	document.getElementById('centertab4').style.display = "none";
	document.getElementById(tab).style.display = "block";
}
//-->
<!--
	//LOGIN - HANDLE CHECK BOX VALUE VALIDATION
	function RemPass() {
	var remember = document.Form3.Remember.value;
	var checkval = document.Form3.CheckVal.value;
	if ((remember == 1) && (checkval == 0))
		{
		document.Form3.CheckVal.value = 1;
		}
	else
		{
		document.Form3.CheckVal.value = 0;
	}
}
//-->
<!--
	//OPEN POP-UP W/URL
	function PopWin(NewLocation, LocationLink, WVal, HVal) {
	window.open(NewLocation + "?url=" + LocationLink, "NewWindow", "width=" + WVal 
	+ ",height=" + HVal + ",scrollbars=yes,status=no,toolbar=no");	
}
//-->
<!--
	//OPEN POP-UP
	function PopWinAlt(NewLocation, WVal, HVal) {
	window.open(NewLocation, "NewWindow", "width=" + WVal 
	+ ",height=" + HVal + ",scrollbars=yes,status=no,toolbar=no");	
}
//-->
<!--
	//GO TO NEW LOCATION IN PARENT WINDOW
	function GoTo(NewLocation) {
	self.opener.open(NewLocation);
	parent.close();	
	}
//-->
<!--
	//WEATHER BUG
	function loadXML() {
		
		xmlhttp = null;
		
		// code for Mozilla, etc.
		if (window.XMLHttpRequest) {
			xmlhttp = new XMLHttpRequest();
			if (xmlhttp.overrideMimeType) {
				xmlhttp.overrideMimeType("text/xml");
			}
		}
		// code for IE
		else if (window.ActiveXObject) {
			try {
                xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
        	} 
        		catch (e) {
            try {
                xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            } 
            	catch (e) {}
            }
        } 
		if (xmlhttp!=null) {
			xmlhttp.onreadystatechange = state_Change;
			xmlhttp.open("GET", "weatherbug/weatherbug.asp", true);
			xmlhttp.send(null);
		}
		else {
			alert("Your browser does not support XMLHTTP.");
		}
}
	function state_Change() {
		
	// if xmlhttp shows "loaded"
	if (xmlhttp.readyState == 4) {
		
  		// if "OK"
		if (xmlhttp.status == 200) {
			var xmlStr = xmlhttp.responseXML.documentElement;
			var icon = "url(weatherbug/images/" + 
				xmlStr.getElementsByTagName("icon_url_name")[0].firstChild.data + ")";	
			var desc = xmlStr.getElementsByTagName("weather")[0].firstChild.data;
			var temp = xmlStr.getElementsByTagName("temp_f")[0].firstChild.data + "&deg;";
			if (String(desc).length <= 26) {
				desc = desc;
			}
			else {
				desc = String(desc).substring(0, 23) + "...";
			}
			document.getElementById("iconpos").style.backgroundImage = icon;
		    document.getElementById("strdesc").innerHTML = "<a href=\"javascript:void(0);\" " +
		    	"onclick=\"PopWinAlt('pop_forecast.htm', 400, 600)\" class=\"desclink\">" + desc + "</a>";
		    document.getElementById("strtemp").innerHTML = temp;
		}
  		else
		{
			document.getElementById("strdesc").innerHTML = "No Weather Information Available";
		    document.getElementById("strtemp").innerHTML = "";
    	}
  	}
}
//-->
<!--
	//VALIDATE REQUIRED FORM FIELDS
	function CheckForm() {
	var firstname = document.frmContact.cFirstName.value;
	var lastname = document.frmContact.cLastName.value
	var email = document.frmContact.cEmail.value;
	var emailchar = document.frmContact.cEmail.value.indexOf("@");
	var phone = document.frmContact.cPhone.value;
	
	if (firstname == "")
	{
	alert ("Please provide a your First Name.");
	document.frmContact.cFirstName.focus();
	return (false);
	}
	if (lastname == "")
	{
	alert ("Please provide a your Last Name.");
	document.frmContact.cLastName.focus();
	return (false);
	}
	if (phone == "")
	{
	alert ("Please provide your Phone Number.");
	document.frmContact.cPhone.focus();
	return (false);
	}
	if ((email == "") || (emailchar == -1)) 
	{
	alert ("Please provide a valid Email Address.");
	document.frmContact.cEmail.focus();
	return (false);
	}
	return (true);
}
//-->
<!--
	//CHANGE LOCATION DETAIL IMAGE
	function changeImage(imgID) {
	var currentID = document.currentLocation.currentID.value;
	if (imgID != currentID) {
		// new image fades in	
		//Effect.Appear('locationdetail' + imgID, { duration:1, from:0.0, to:1.0 });
		document.getElementById('locationdetail' + imgID).style.display = "block";
		document.getElementById('loctxthoriz' + imgID).style.display = "block";	

		// current image fades out
		//Effect.Fade('locationdetail' + currentID, { duration:1, from:1.0, to:0.0 });
		document.getElementById('locationdetail' + currentID).style.display = "none";
		document.getElementById('loctxthoriz' + currentID).style.display = "none";
		
		document.currentLocation.currentID.value = imgID;
	}
}
	//RESET LOCATION DETAIL IMAGE
	function returnImage() {
	var currentID = document.currentLocation.currentID.value;
	document.getElementById('locationdetail' + currentID).style.visibility = "hidden";
	document.getElementById('locationdetail1').style.visibility = "visible";
	document.currentLocation.currentID.value = "1";
}
//-->