
<!--
var tableWidth = 770;
moz = false;
ie5 = false;
var blah;
var blah2;
var tempObj = document.getElementById('at');
var frameVisible = false;

if (navigator.appName=="Netscape"&&parseFloat(navigator.appVersion)>=4.7)
	moz = true;
if (navigator.appVersion.indexOf("MSIE")!=-1)
	ie5 = true;

function showPopup (pObj) {
	p = document.getElementById(pObj);
	xTop = findPosY(p)+p.offsetHeight-1;
	x = document.getElementById(pObj+'_popup');
	x.style.top = xTop+"px";
	if (ie5) {
		x.style.left = document.body.clientWidth/2 - tableWidth/2 +p.offsetLeft + "px";
	} else if (moz) {
		x.style.left = (window.innerWidth/2 - tableWidth/2 +p.offsetLeft) + "px";
	}
	x.style.visibility = 'visible';
	x.style.display = 'block';
	x.style.zIndex = 1000;		
	if(document.getElementById('pIframe') != null ){
		y = document.getElementById('pIframe');
		ys = y.style;
		ys.width = x.offsetWidth;
		ys.height = x.offsetHeight;
		ys.top = x.style.top;
		ys.left = x.style.left;
		ys.zIndex = x.style.zIndex-1;
		ys.display = 'block';
		ys.visibility = 'visible';
		frameVisible = true;
	}
}
function findPosX(obj) {
	var curleft = 0;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			curleft += obj.offsetLeft
			obj = obj.offsetParent;
		}
	}
	else if (obj.x) {
		curleft += obj.x;
	}
	return curleft;
}

function findPosY(obj) {
	var curtop = 0;
	if (obj.offsetParent) {
		while (obj.offsetParent) {
			curtop += obj.offsetTop
			obj = obj.offsetParent;
		}
	}
	else if (obj.y) {
		curtop += obj.y;
	}
	return curtop;
}

function killPopup(objID) {
	document.getElementById(objID).style.display =  'none';
	if(frameVisible) {
		document.getElementById('pIframe').style.display = 'none';
		document.getElementById('pIframe').style.visibility = 'hidden';
		frameVisible = false;
	}
}

function getToday(){
	Stamp = new Date();
	document.write(" " + (Stamp.getMonth()+1) +"/"+Stamp.getDate()+ "/"+Stamp.getFullYear());
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function fixPNG(myImage) // correctly handle PNG transparency in Win IE 5.5 or higher.
{
	if (window.ie55up) {
		var imgID = (myImage.id) ? "id='" + myImage.id + "' " : ""
		var imgClass = (myImage.className) ? "class='" + myImage.className + "' " : ""
		var imgTitle = (myImage.title) ? "title='" + myImage.title + "' " : "title='" + myImage.alt + "' "
		var imgStyle = "display:inline-block;" + myImage.style.cssText 
		var strNewHTML = "<span " + imgID + imgClass + imgTitle
		strNewHTML += " style=\"" + "width:" + myImage.width + "px; height:" + myImage.height + "px;" + imgStyle + ";"
		strNewHTML += "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
		strNewHTML += "(src=\'" + myImage.src + "\', sizingMethod='scale');\"></span>" 
		myImage.outerHTML = strNewHTML
	}
}

function showMap() {
	x = document.getElementById('map_popup').style;
	x.top = "307px";
	x.visibility = 'visible';
	x.display = 'block';
	if (ie5) {
		x.left = document.body.clientWidth/2 + 161 + "px";
	} else if (moz) {
		x.left = (window.innerWidth/2 + 161) + "px";
	}
}

function changeP(a,x){
	if (tempObj != null) {
		tempObj.className='p-off';
		//document.getElementById('test').innerHTML = tempObj.className;
	}
	x = document.getElementById(x);
	y = document.getElementById('p-list');
	tempObj = a;
	y.innerHTML = x.innerHTML;
}

function weatherTester(){
	var here = window.location.href;
	var p = document.getElementById('weatherLink').href;
	if(here.indexOf('arnett')>0){
		p="http://www.weather.com/weather/local/73832";
	} else if(here.indexOf('enid')>0){
		p="http://www.weather.com/weather/local/73703";
	} else if(here.indexOf('kiowa')>0){
		p="http://www.weather.com/weather/local/67070";
	}

}
function output(str){document.getElementById('test').innerHTML=str;}
//-->