<!--
    //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", "");
				}
			}
		}
	}
}
	//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(staID, popID, popH1) {
	
		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_v2.asp?staID=" + staID +
				"&popID=" + popID + 
		    	"&popH1=" + popH1, 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 staID = xmlStr.getElementsByTagName("station_id")[0].firstChild.data;
			var popID = xmlStr.getElementsByTagName("display_header")[0].firstChild.data;
			var popH1 = xmlStr.getElementsByTagName("display_h1")[0].firstChild.data;
			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_v2.asp?staID=" + staID + 
		    	"&popID=" + popID + 
		    	"&popH1=" + popH1 + 
		    	"', 420, 615)\" class=\"desclink\">" + desc + "</a>";
		    document.getElementById("strtemp").innerHTML = temp;
		}
  		else
		{
			document.getElementById("strdesc").innerHTML = "No Weather Information Available";
		    document.getElementById("strtemp").innerHTML = "";
    	}
  	}
}
//-->
<!--
	//CURRENT CONDITIONS
	function loadXMLDetail(staID) {
		
		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_ChangeDetail;
			xmlhttp.open("GET", "/weatherbug/weatherbug_v2.asp?staID=" + staID, true);
			xmlhttp.send(null);
		}
		else {
			alert("Your browser does not support XMLHTTP.");
		}
}
	function state_ChangeDetail() {
		
	// if xmlhttp shows "loaded"
	if (xmlhttp.readyState == 4) {
		
  		// if "OK"
		if (xmlhttp.status == 200) {
			
			var xmlStr = xmlhttp.responseXML.documentElement;

			//DESCRIPTION
			try { document.getElementById("strdesc").innerHTML = xmlStr.getElementsByTagName("weather")[0].firstChild.data; } 
				catch(e) { document.getElementById("strdesc").innerHTML = "No Information Available"; }
			//LAST UPDATED	
			try { document.getElementById("strobtime").innerHTML = xmlStr.getElementsByTagName("observation_time")[0].firstChild.data; } 
				catch(e) { document.getElementById("strobtime").innerHTML = "No Information Available"; }
			//TEMPERATURE
			try { document.getElementById("strtempdetail").innerHTML = xmlStr.getElementsByTagName("temp_f")[0].firstChild.data + "&deg;"; } 
				catch(e) { document.getElementById("strtempdetail").innerHTML = "No Information Available"; }
			//TEMPERATURE (C)
			try { document.getElementById("strtempc").innerHTML = "(" + xmlStr.getElementsByTagName("temp_c")[0].firstChild.data + "&deg; c)"; } 
				catch(e) { document.getElementById("strtempc").innerHTML = "No Information Available"; }
			//RELATIVE HUMIDITY
			try { document.getElementById("strrelhum").innerHTML = xmlStr.getElementsByTagName("relative_humidity")[0].firstChild.data; } 
				catch(e) { document.getElementById("strrelhum").innerHTML ="na"; }
			//WIND
			try { document.getElementById("strwind").innerHTML = xmlStr.getElementsByTagName("wind_string")[0].firstChild.data; } 
				catch(e) { document.getElementById("strwind").innerHTML = "na"; }
			//WIND GUST
			try { document.getElementById("strwindgust").innerHTML = xmlStr.getElementsByTagName("wind_gust_mph")[0].firstChild.data; }
				catch(e) { document.getElementById("strwindgust").innerHTML = "na"; }
			//BAROMETRIC PRESSURE
			try { document.getElementById("strpressure").innerHTML = xmlStr.getElementsByTagName("pressure_string")[0].firstChild.data; } 
				catch(e) { document.getElementById("strpressure").innerHTML = "na"; }
			//DEW POINT
			try { document.getElementById("strdew").innerHTML = xmlStr.getElementsByTagName("dewpoint_string")[0].firstChild.data; } 
				catch(e) { document.getElementById("strdew").innerHTML = "na"; }
			//HEAT INDEX
			try { document.getElementById("strheat").innerHTML = xmlStr.getElementsByTagName("heat_index_string")[0].firstChild.data; } 
				catch(e) { document.getElementById("strheat").innerHTML = "na"; }
			//WIND CHILL
			try { document.getElementById("strchill").innerHTML = xmlStr.getElementsByTagName("windchill_string")[0].firstChild.data; } 
				catch(e) { document.getElementById("strchill").innerHTML = "na"; }
			//VISIBILITY
			try { document.getElementById("strvis").innerHTML = xmlStr.getElementsByTagName("visibility_mi")[0].firstChild.data; } 
				catch(e) { document.getElementById("strvis").innerHTML = "na"; }
			//IMAGE
			try {
				var urlbase = xmlStr.getElementsByTagName("icon_url_base")[0].firstChild.data;
				var iconname = xmlStr.getElementsByTagName("icon_url_name")[0].firstChild.data;
				document.getElementById("picimg").innerHTML = "<img src='" + urlbase + "/" + iconname +
					"' border='0' align='right' style='margin-right: 25px; border: 1px solid #999;' />"; } 
				catch(e) { document.getElementById("picimg").innerHTML = "No Image Available"; 
			}
		}
  		else
		{
			document.getElementById("strdesc").innerHTML = "No Weather Information Available";
		    document.getElementById("strtempdetail").innerHTML = "";
    	}
  	}
}
//-->