// ext.js
// (c) August 20, 2007 wbf
// Updated by dcw (8-11-08)
// Added SWFobject v2.0 scs (12/2/08)
// Modified getFlashVarTag to use SWFobject v2.0 scs (12/2/08)
// Modified getFlashVarTag added params attribute scs (12/19/08)

isMinNS4=(document.layers)?1:0;isMinIE4=(document.all)?1:0;isMinIE5=( _proxy_jslib_handle(document, 'getElementById', '', 0, 0)&&document.all)?1:0;isNS6=( _proxy_jslib_handle(document, 'getElementById', '', 0, 0)&&!document.all)?1:0;var thisX=0;var thisY=0;var thistdX=0;var thistdY=0;var thisElement;var thistdElement;var newwindow='';var OAS_MJX_on;var isLocal=( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'hostname', '', 0, 0).indexOf("weather.com")>=0)?1:0;

/*	SWFObject v2.0 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function() {var Z="undefined",P="object",B="Shockwave Flash",h="ShockwaveFlash.ShockwaveFlash",W="application/x-shockwave-flash",K="SWFObjectExprInst",G=window,g=document,N=navigator,f=[],H=[],Q=null,L=null,T=null,S=false,C=false;var a=function() {var l=typeof  _proxy_jslib_handle(g, 'getElementById', '', 0, 0)!=Z&&typeof  _proxy_jslib_handle(g, 'getElementsByTagName', '', 0, 0)!=Z&&typeof g.createElement!=Z&&typeof g.appendChild!=Z&&typeof g.replaceChild!=Z&&typeof g.removeChild!=Z&&typeof g.cloneNode!=Z,t=[0,0,0],n=null;if(typeof N.plugins!=Z&&typeof  _proxy_jslib_handle(N.plugins, (B), 0, 0)==P){n= _proxy_jslib_handle(N.plugins, (B), 0, 0).description;if(n){n= _proxy_jslib_handle(n, 'replace', '', 1, 0)(/^.*\s+(\S+\s+\S+$)/,"$1");t[0]=parseInt( _proxy_jslib_handle(n, 'replace', '', 1, 0)(/^(.*)\..*$/,"$1"),10);t[1]=parseInt( _proxy_jslib_handle(n, 'replace', '', 1, 0)(/^.*\.(.*)\s.*$/,"$1"),10);t[2]=/r/.test(n)?parseInt( _proxy_jslib_handle(n, 'replace', '', 1, 0)(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof G.ActiveXObject!=Z){var o=null,s=false;try{o=new (ActiveXObject)(h+".7")}catch(k){try{o=new (ActiveXObject)(h+".6");t=[6,0,21];o.AllowScriptAccess="always"}catch(k){if(t[0]==6){s=true}}if(!s){try{o=new (ActiveXObject)(h)}catch(k){}}}if(!s&&o){try{n=o.GetVariable("$version");if(n){n=n.split(" ")[1].split(",");t=[parseInt(n[0],10),parseInt(n[1],10),parseInt(n[2],10)]}}catch(k){}}}}var v=N.userAgent.toLowerCase(),j=N.platform.toLowerCase(),r=/webkit/.test(v)?parseFloat( _proxy_jslib_handle(v, 'replace', '', 1, 0)(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,i=false,q=j?/win/.test(j):/win/.test(v),m=j?/mac/.test(j):/mac/.test(v);/*@cc_on i=true;@if(@_win32)q=true;@elif(@_mac)m=true;@end@*/return{w3cdom:l,pv:t,webkit:r,ie:i,win:q,mac:m}}();var e=function() {if(!a.w3cdom){return }J(I);if(a.ie&&a.win){try{ _proxy_jslib_handle(g, 'write', '', 1, 0)("<script id=__ie_ondomload defer=true src=//:><\/script>");var i=c("__ie_ondomload");if(i){i.onreadystatechange=function() {if(this.readyState=="complete"){this.parentNode.removeChild(this);V()}}}}catch(j){}}if(a.webkit&&typeof g.readyState!=Z){Q= _proxy_jslib_handle(null, 'setInterval', setInterval, 1, 0)(function() {if(/loaded|complete/.test(g.readyState)){V()}},10)}if(typeof g.addEventListener!=Z){g.addEventListener("DOMContentLoaded",V,null)}M(V)}();function V() {if(S){return }if(a.ie&&a.win){var m=Y("span");try{var l= _proxy_jslib_handle(g, 'getElementsByTagName', '', 1, 0)("body")[0].appendChild(m);l.parentNode.removeChild(l)}catch(n){return }}S=true;if(Q){clearInterval(Q);Q=null}var j=f.length;for(var k=0;k<j;k++){ _proxy_jslib_handle(f, (k), 1, 0)()}}function J(i) {if(S){i()}else{ _proxy_jslib_assign('', f, (f.length), '=', (i))}}function M(j) {if(typeof G.addEventListener!=Z){G.addEventListener("load",j,false)}else{if(typeof g.addEventListener!=Z){g.addEventListener("load",j,false)}else{if(typeof G.attachEvent!=Z){G.attachEvent("onload",j)}else{if(typeof G.onload=="function"){var i=G.onload;G.onload=function() {i();j()}}else{G.onload=j}}}}}function I() {var l=H.length;for(var j=0;j<l;j++){var m= _proxy_jslib_handle(H, (j), 0, 0).id;if(a.pv[0]>0){var k=c(m);if(k){ _proxy_jslib_handle(H, (j), 0, 0).width=k.getAttribute("width")?k.getAttribute("width"):"0"; _proxy_jslib_handle(H, (j), 0, 0).height=k.getAttribute("height")?k.getAttribute("height"):"0";if(O( _proxy_jslib_handle(H, (j), 0, 0).swfVersion)){if(a.webkit&&a.webkit<312){U(k)}X(m,true)}else{if( _proxy_jslib_handle(H, (j), 0, 0).expressInstall&&!C&&O("6.0.65")&&(a.win||a.mac)){D( _proxy_jslib_handle(H, (j), 0, 0))}else{d(k)}}}}else{X(m,true)}}}function U(m) {var k= _proxy_jslib_handle(m, 'getElementsByTagName', '', 1, 0)(P)[0];if(k){var p=Y("embed"),r=k.attributes;if(r){var o=r.length;for(var n=0;n<o;n++){if( _proxy_jslib_handle(r, (n), 0, 0).nodeName.toLowerCase()=="data"){ _proxy_jslib_handle(p, 'setAttribute', '', 1, 0)("src", _proxy_jslib_handle( _proxy_jslib_handle(r, (n), 0, 0), 'nodeValue', '', 0, 0))}else{ _proxy_jslib_handle(p, 'setAttribute', '', 1, 0)( _proxy_jslib_handle(r, (n), 0, 0).nodeName, _proxy_jslib_handle( _proxy_jslib_handle(r, (n), 0, 0), 'nodeValue', '', 0, 0))}}}var q=k.childNodes;if(q){var s=q.length;for(var l=0;l<s;l++){if( _proxy_jslib_handle(q, (l), 0, 0).nodeType==1&& _proxy_jslib_handle(q, (l), 0, 0).nodeName.toLowerCase()=="param"){ _proxy_jslib_handle(p, 'setAttribute', '', 1, 0)( _proxy_jslib_handle(q, (l), 0, 0).getAttribute("name"), _proxy_jslib_handle(q, (l), 0, 0).getAttribute("value"))}}}m.parentNode.replaceChild(p,m)}}function F(i) {if(a.ie&&a.win&&O("8.0.0")){G.attachEvent("onunload",function() {var k=c(i);if(k){for(var j in k){if(typeof  _proxy_jslib_handle(k, (j), 0, 0)=="function"){ _proxy_jslib_assign('', k, (j), '=', (function() {}))}}k.parentNode.removeChild(k)}})}}function D(j) {C=true;var o=c(j.id);if(o){if(j.altContentId){var l=c(j.altContentId);if(l){L=l;T=j.altContentId}}else{L=b(o)}if(!(/%$/.test(j.width))&&parseInt(j.width,10)<310){j.width="310"}if(!(/%$/.test(j.height))&&parseInt(j.height,10)<137){j.height="137"}g.title=g.title.slice(0,47)+" - Flash Player Installation";var n=a.ie&&a.win?"ActiveX":"PlugIn",k=g.title,m="MMredirectURL="+ _proxy_jslib_handle(G, 'location', '', 0, 0)+"&MMplayerType="+n+"&MMdoctitle="+k,p=j.id;if(a.ie&&a.win&&o.readyState!=4){var i=Y("div");p+="SWFObjectNew"; _proxy_jslib_handle(i, 'setAttribute', '', 1, 0)("id",p);o.parentNode.insertBefore(i,o);o.style.display="none";G.attachEvent("onload",function() {o.parentNode.removeChild(o)})}R({data:j.expressInstall,id:K,width:j.width,height:j.height},{flashvars:m},p)}}function d(j) {if(a.ie&&a.win&&j.readyState!=4){var i=Y("div");j.parentNode.insertBefore(i,j);i.parentNode.replaceChild(b(j),i);j.style.display="none";G.attachEvent("onload",function() {j.parentNode.removeChild(j)})}else{j.parentNode.replaceChild(b(j),j)}}function b(n) {var m=Y("div");if(a.win&&a.ie){ _proxy_jslib_assign('', m, 'innerHTML', '=', ( _proxy_jslib_handle(n, 'innerHTML', '', 0, 0)))}else{var k= _proxy_jslib_handle(n, 'getElementsByTagName', '', 1, 0)(P)[0];if(k){var o=k.childNodes;if(o){var j=o.length;for(var l=0;l<j;l++){if(!( _proxy_jslib_handle(o, (l), 0, 0).nodeType==1&& _proxy_jslib_handle(o, (l), 0, 0).nodeName.toLowerCase()=="param")&&!( _proxy_jslib_handle(o, (l), 0, 0).nodeType==8)){m.appendChild( _proxy_jslib_handle(o, (l), 0, 0).cloneNode(true))}}}}}return m}function R(AE,AC,q) {var p,t=c(q);if(typeof AE.id==Z){AE.id=q}if(a.ie&&a.win){var AD="";for(var z in AE){if( _proxy_jslib_handle(AE, (z), 0, 0)!= _proxy_jslib_handle(Object.prototype, (z), 0, 0)){if(z=="data"){AC.movie= _proxy_jslib_handle(AE, (z), 0, 0)}else{if(z.toLowerCase()=="styleclass"){AD+=' class="'+ _proxy_jslib_handle(AE, (z), 0, 0)+'"'}else{if(z!="classid"){AD+=" "+z+'="'+ _proxy_jslib_handle(AE, (z), 0, 0)+'"'}}}}}var AB="";for(var y in AC){if( _proxy_jslib_handle(AC, (y), 0, 0)!= _proxy_jslib_handle(Object.prototype, (y), 0, 0)){AB+='<param name="'+y+'" value="'+ _proxy_jslib_handle(AC, (y), 0, 0)+'" />'}} _proxy_jslib_assign('', t, 'outerHTML', '=', ('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AD+">"+AB+"</object>"));F(AE.id);p=c(AE.id)}else{if(a.webkit&&a.webkit<312){var AA=Y("embed"); _proxy_jslib_handle(AA, 'setAttribute', '', 1, 0)("type",W);for(var x in AE){if( _proxy_jslib_handle(AE, (x), 0, 0)!= _proxy_jslib_handle(Object.prototype, (x), 0, 0)){if(x=="data"){ _proxy_jslib_handle(AA, 'setAttribute', '', 1, 0)("src", _proxy_jslib_handle(AE, (x), 0, 0))}else{if(x.toLowerCase()=="styleclass"){ _proxy_jslib_handle(AA, 'setAttribute', '', 1, 0)("class", _proxy_jslib_handle(AE, (x), 0, 0))}else{if(x!="classid"){ _proxy_jslib_handle(AA, 'setAttribute', '', 1, 0)(x, _proxy_jslib_handle(AE, (x), 0, 0))}}}}}for(var w in AC){if( _proxy_jslib_handle(AC, (w), 0, 0)!= _proxy_jslib_handle(Object.prototype, (w), 0, 0)){if(w!="movie"){ _proxy_jslib_handle(AA, 'setAttribute', '', 1, 0)(w, _proxy_jslib_handle(AC, (w), 0, 0))}}}t.parentNode.replaceChild(AA,t);p=AA}else{var s=Y(P); _proxy_jslib_handle(s, 'setAttribute', '', 1, 0)("type",W);for(var v in AE){if( _proxy_jslib_handle(AE, (v), 0, 0)!= _proxy_jslib_handle(Object.prototype, (v), 0, 0)){if(v.toLowerCase()=="styleclass"){ _proxy_jslib_handle(s, 'setAttribute', '', 1, 0)("class", _proxy_jslib_handle(AE, (v), 0, 0))}else{if(v!="classid"){ _proxy_jslib_handle(s, 'setAttribute', '', 1, 0)(v, _proxy_jslib_handle(AE, (v), 0, 0))}}}}for(var u in AC){if( _proxy_jslib_handle(AC, (u), 0, 0)!= _proxy_jslib_handle(Object.prototype, (u), 0, 0)&&u!="movie"){E(s,u, _proxy_jslib_handle(AC, (u), 0, 0))}}t.parentNode.replaceChild(s,t);p=s}}return p}function E(k,i,j) {var l=Y("param"); _proxy_jslib_handle(l, 'setAttribute', '', 1, 0)("name",i); _proxy_jslib_handle(l, 'setAttribute', '', 1, 0)("value",j);k.appendChild(l)}function c(i) {return  _proxy_jslib_handle(g, 'getElementById', '', 1, 0)(i)}function Y(i) {return g.createElement(i)}function O(k) {var j=a.pv,i=k.split(".");i[0]=parseInt(i[0],10);i[1]=parseInt(i[1],10);i[2]=parseInt(i[2],10);return(j[0]>i[0]||(j[0]==i[0]&&j[1]>i[1])||(j[0]==i[0]&&j[1]==i[1]&&j[2]>=i[2]))?true:false}function A(m,j) {if(a.ie&&a.mac){return }var l= _proxy_jslib_handle(g, 'getElementsByTagName', '', 1, 0)("head")[0],k=Y("style"); _proxy_jslib_handle(k, 'setAttribute', '', 1, 0)("type","text/css"); _proxy_jslib_handle(k, 'setAttribute', '', 1, 0)("media","screen");if(!(a.ie&&a.win)&&typeof g.createTextNode!=Z){k.appendChild(g.createTextNode(m+" {"+j+"}"))}l.appendChild(k);if(a.ie&&a.win&&typeof g.styleSheets!=Z&&g.styleSheets.length>0){var i= _proxy_jslib_handle(g.styleSheets, (g.styleSheets.length-1), 0, 0);if(typeof i.addRule==P){i.addRule(m,j)}}}function X(k,i) {var j=i?"visible":"hidden";if(S){c(k).style.visibility=j}else{A("#"+k,"visibility:"+j)}}return{registerObject:function(l,i,k) {if(!a.w3cdom||!l||!i){return }var j={};j.id=l;j.swfVersion=i;j.expressInstall=k?k:false; _proxy_jslib_assign('', H, (H.length), '=', (j));X(l,false)},getObjectById:function(l) {var i=null;if(a.w3cdom&&S){var j=c(l);if(j){var k= _proxy_jslib_handle(j, 'getElementsByTagName', '', 1, 0)(P)[0];if(!k||(k&&typeof j.SetVariable!=Z)){i=j}else{if(typeof k.SetVariable!=Z){i=k}}}}return i},embedSWF:function(n,u,r,t,j,m,k,p,s) {if(!a.w3cdom||!n||!u||!r||!t||!j){return }r+="";t+="";if(O(j)){X(u,false);var q=(typeof s==P)?s:{};q.data=n;q.width=r;q.height=t;var o=(typeof p==P)?p:{};if(typeof k==P){for(var l in k){if( _proxy_jslib_handle(k, (l), 0, 0)!= _proxy_jslib_handle(Object.prototype, (l), 0, 0)){if(typeof o.flashvars!=Z){o.flashvars+="&"+l+"="+ _proxy_jslib_handle(k, (l), 0, 0)}else{o.flashvars=l+"="+ _proxy_jslib_handle(k, (l), 0, 0)}}}}J(function() {R(q,o,u);if(q.id==u){X(u,true)}})}else{if(m&&!C&&O("6.0.65")&&(a.win||a.mac)){X(u,false);J(function() {var i={};i.id=i.altContentId=u;i.width=r;i.height=t;i.expressInstall=m;D(i)})}}},getFlashPlayerVersion:function() {return{major:a.pv[0],minor:a.pv[1],release:a.pv[2]}},hasFlashPlayerVersion:O,createSWF:function(k,j,i) {if(a.w3cdom&&S){return R(k,j,i)}else{return undefined}},createCSS:function(j,i) {if(a.w3cdom){A(j,i)}},addDomLoadEvent:J,addLoadEvent:M,getQueryParamValue:function(m) {var l= _proxy_jslib_handle( _proxy_jslib_handle(g, 'location', '', 0, 0), 'search', '', 0, 0)|| _proxy_jslib_handle(g, 'location', '', 0, 0).hash;if(m==null){return l}if(l){var k=l.substring(1).split("&");for(var j=0;j<k.length;j++){if( _proxy_jslib_handle(k, (j), 0, 0).substring(0, _proxy_jslib_handle(k, (j), 0, 0).indexOf("="))==m){return  _proxy_jslib_handle(k, (j), 0, 0).substring(( _proxy_jslib_handle(k, (j), 0, 0).indexOf("=")+1))}}}return""},expressInstallCallback:function() {if(C&&L){var i=c(K);if(i){i.parentNode.replaceChild(L,i);if(T){X(T,true);if(a.ie&&a.win){L.style.display="block"}}L=null;T=null;C=false}}}}}();

function getCookieVal(offset) {if(!isLocal)return false;var endstr= _proxy_jslib_handle(document, 'cookie', '', 0, 0).indexOf(";",offset);if(endstr==-1)endstr= _proxy_jslib_handle(document, 'cookie', '', 0, 0).length;return unescape( _proxy_jslib_handle(document, 'cookie', '', 0, 0).substring(offset,endstr));}
function GetCookie(name) {if(!isLocal)return false;var arg=name+"=";var alen=arg.length;var clen= _proxy_jslib_handle(document, 'cookie', '', 0, 0).length;var i=0;while(i<clen){var j=i+alen;if( _proxy_jslib_handle(document, 'cookie', '', 0, 0).substring(i,j)==arg)return getCookieVal(j);i= _proxy_jslib_handle(document, 'cookie', '', 0, 0).indexOf(" ",i)+1;if(i==0)break;}
return"";}
function fixBadUP(instring) {instring= _proxy_jslib_handle(instring, 'replace', '', 1, 0)(/\\\"/g,"");instring= _proxy_jslib_handle(instring, 'replace', '', 1, 0)(/\"/g,"");instring=escape(instring);instring= _proxy_jslib_handle(instring, 'replace', '', 1, 0)(/\%5E/g,"|");return instring;}
function unEscJava(string) {var value=unescape(string);return  _proxy_jslib_handle( _proxy_jslib_handle(null, 'value', value, 0, 0), 'replace', '', 1, 0)(/\+/g," ");}
function getUserPreferences(itemno) {var getUP=GetCookie("UserPreferences");if(getUP.length>4){if(0<getUP.indexOf("\""))
{getUP=fixBadUP(getUP);SetCookie("UserPreferences",getUP);}
var splitUP=getUP.split("|");if( _proxy_jslib_handle(splitUP, (itemno), 0, 0)){var myVal=unEscJava( _proxy_jslib_handle(splitUP, (itemno), 0, 0));return myVal;}else{return"";}}else{return"";}}
function smartTrack(URL,TS) {var referPath=escape( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0));if(TS.length>=1){if( _proxy_jslib_handle(null, 'URL', URL, 0, 0).indexOf('?')>1) URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle(null, 'URL', URL, 0, 0)+'&from='+TS), URL);else  URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle(null, 'URL', URL, 0, 0)+'?from='+TS), URL);}
var thisUP=getUserPreferences(11);var thisLID=GetCookie('LocID');if(thisUP.length>=5) URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(null, 'URL', URL, 0, 0), 'replace', '', 1, 0)(/%uploc%/g,thisUP)), URL);else if(thisLID.length>=5) URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(null, 'URL', URL, 0, 0), 'replace', '', 1, 0)(/%uploc%/g,thisLID)), URL);else  URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(null, 'URL', URL, 0, 0), 'replace', '', 1, 0)(/%uploc%/g,'')), URL);if(thisLID.length>=5) URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(null, 'URL', URL, 0, 0), 'replace', '', 1, 0)(/%locid%/g,thisLID)), URL);else  URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(null, 'URL', URL, 0, 0), 'replace', '', 1, 0)(/%locid%/g,'')), URL);var finalURL= _proxy_jslib_handle(null, 'URL', URL, 0, 0);var paramList="";if(finalURL.indexOf('?')>1){var finalOffset=finalURL.indexOf('?');paramList=finalURL.substring(finalOffset);finalURL=finalURL.substring(0,finalOffset);}
var parms=paramList.split('&');for(var i=0;i<parms.length;i++){var pos= _proxy_jslib_handle(parms, (i), 0, 0).indexOf('#');if(pos>0){var key= _proxy_jslib_handle(parms, (i), 0, 0).substring(pos);finalURL=finalURL+ _proxy_jslib_handle(parms, (i), 0, 0).substring(0,pos);}else{finalURL=finalURL+ _proxy_jslib_handle(parms, (i), 0, 0);}
if(i<parms.length-1){finalURL=finalURL+"&";}}
 URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle(finalURL, 'replace', '', 1, 0)(/%ref%/g,finalURL)), URL);if( _proxy_jslib_handle(null, 'URL', URL, 0, 0).indexOf('http')==-1){var HEADER_host= _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'hostname', '', 0, 0);if(HEADER_host!='delta.weather.com'&&HEADER_host!='beta.weather.com'&&HEADER_host!='w3.weather.com')HEADER_host='www.weather.com';HEADER_host='http://'+HEADER_host; URL= _proxy_jslib_assign_rval('', 'URL', '=', (HEADER_host+ _proxy_jslib_handle(null, 'URL', URL, 0, 0)), URL);}
if(key) URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle(null, 'URL', URL, 0, 0)+"&ref="+referPath+key), URL);else  URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle(null, 'URL', URL, 0, 0)+"&ref="+referPath), URL);if( _proxy_jslib_handle( _proxy_jslib_handle(self, 'parent', '', 0, 0), 'frames', '', 0, 0).length!=0) _proxy_jslib_assign('',  _proxy_jslib_handle(self, 'parent', '', 0, 0), 'location', '=', ( _proxy_jslib_handle(null, 'URL', URL, 0, 0)));else  _proxy_jslib_assign('', document, 'location', '=', ( _proxy_jslib_handle(null, 'URL', URL, 0, 0)));return false;}
function newTrack(HASH) {var URL='';var delim='?';if(typeof HASH=='undefined'){var HASH={};}
if( _proxy_jslib_handle(HASH, 'href', '', 0, 0)!='undefined'){ URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle(HASH, ("href"), 0, 0)), URL);}
for(var n in HASH){if(n!='href'){if( _proxy_jslib_handle(null, 'URL', URL, 0, 0).indexOf('?')>1){ URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle(null, 'URL', URL, 0, 0)+"&"+n+"="+ _proxy_jslib_handle(HASH, (n), 0, 0)), URL);}else{ URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle(null, 'URL', URL, 0, 0)+delim+n+"="+ _proxy_jslib_handle(HASH, (n), 0, 0)), URL);}
delim='&';}}
var thisUP=getUserPreferences(11);var thisLID=GetCookie('LocID');if(thisUP.length>=5) URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(null, 'URL', URL, 0, 0), 'replace', '', 1, 0)(/%uploc%/g,thisUP)), URL);else if(thisLID.length>=5) URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(null, 'URL', URL, 0, 0), 'replace', '', 1, 0)(/%uploc%/g,thisLID)), URL);else  URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(null, 'URL', URL, 0, 0), 'replace', '', 1, 0)(/%uploc%/g,'')), URL);if(thisLID.length>=5) URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(null, 'URL', URL, 0, 0), 'replace', '', 1, 0)(/%locid%/g,thisLID)), URL);else  URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(null, 'URL', URL, 0, 0), 'replace', '', 1, 0)(/%locid%/g,'')), URL);var finalURL= _proxy_jslib_handle(null, 'URL', URL, 0, 0);var paramList="";if(finalURL.indexOf('?')>1){var finalOffset=finalURL.indexOf('?');paramList=finalURL.substring(finalOffset);finalURL=finalURL.substring(0,finalOffset);}
var parms=paramList.split('&');for(var i=0;i<parms.length;i++){var pos= _proxy_jslib_handle(parms, (i), 0, 0).indexOf('#');if(pos>0){var key= _proxy_jslib_handle(parms, (i), 0, 0).substring(pos);finalURL=finalURL+ _proxy_jslib_handle(parms, (i), 0, 0).substring(0,pos);}else{finalURL=finalURL+ _proxy_jslib_handle(parms, (i), 0, 0);}
if(i<parms.length-1){finalURL=finalURL+"&";}}
 URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle(finalURL, 'replace', '', 1, 0)(/%ref%/g,finalURL)), URL);if( _proxy_jslib_handle(null, 'URL', URL, 0, 0).indexOf('http')==-1){var HEADER_host= _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'hostname', '', 0, 0);if(HEADER_host!='delta.weather.com'&&HEADER_host!='beta.weather.com'&&HEADER_host!='w3.weather.com')HEADER_host='www.weather.com';HEADER_host='http://'+HEADER_host; URL= _proxy_jslib_assign_rval('', 'URL', '=', (HEADER_host+ _proxy_jslib_handle(null, 'URL', URL, 0, 0)), URL);}
return  _proxy_jslib_handle(null, 'URL', URL, 0, 0);}
var isLinkClicked=false;function setClick() {isLinkClicked=true;}
function unsetClick() {isLinkClicked=false;}
function intelliTrak(HASH) {if(isLinkClicked){var URL='';var delim='?';if(typeof HASH=='undefined'){var HASH={};}
if( _proxy_jslib_handle(HASH, 'href', '', 0, 0)!='undefined'){ URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle(HASH, ("href"), 0, 0)), URL);}
for(var n in HASH){if( _proxy_jslib_handle(null, 'URL', URL, 0, 0).indexOf('?from=')==-1&& _proxy_jslib_handle(null, 'URL', URL, 0, 0).indexOf('&from=')==-1){if(n!='href'){if( _proxy_jslib_handle(null, 'URL', URL, 0, 0).indexOf('?')>1){ URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle(null, 'URL', URL, 0, 0)+"&"+n+"="+ _proxy_jslib_handle(HASH, (n), 0, 0)), URL);}else{ URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle(null, 'URL', URL, 0, 0)+delim+n+"="+ _proxy_jslib_handle(HASH, (n), 0, 0)), URL);}
delim='&';}}}
var thisUP=getUserPreferences(11);var thisLID=GetCookie('LocID');if(thisUP.length>=5) URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(null, 'URL', URL, 0, 0), 'replace', '', 1, 0)(/%uploc%/g,thisUP)), URL);else if(thisLID.length>=5) URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(null, 'URL', URL, 0, 0), 'replace', '', 1, 0)(/%uploc%/g,thisLID)), URL);else  URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(null, 'URL', URL, 0, 0), 'replace', '', 1, 0)(/%uploc%/g,'')), URL);if(thisLID.length>=5) URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(null, 'URL', URL, 0, 0), 'replace', '', 1, 0)(/%locid%/g,thisLID)), URL);else  URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle( _proxy_jslib_handle(null, 'URL', URL, 0, 0), 'replace', '', 1, 0)(/%locid%/g,'')), URL);var finalURL= _proxy_jslib_handle(null, 'URL', URL, 0, 0);var paramList="";if(finalURL.indexOf('?')>1){var finalOffset=finalURL.indexOf('?');paramList=finalURL.substring(finalOffset);finalURL=finalURL.substring(0,finalOffset);}
var parms=paramList.split('&');for(var i=0;i<parms.length;i++){var pos= _proxy_jslib_handle(parms, (i), 0, 0).indexOf('#');if(pos>0){var key= _proxy_jslib_handle(parms, (i), 0, 0).substring(pos);finalURL=finalURL+ _proxy_jslib_handle(parms, (i), 0, 0).substring(0,pos);}else{finalURL=finalURL+ _proxy_jslib_handle(parms, (i), 0, 0);}
if(i<parms.length-1){finalURL=finalURL+"&";}}
 URL= _proxy_jslib_assign_rval('', 'URL', '=', ( _proxy_jslib_handle(finalURL, 'replace', '', 1, 0)(/%ref%/g,finalURL)), URL);if( _proxy_jslib_handle(null, 'URL', URL, 0, 0).indexOf('http')==-1){var HEADER_host= _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'hostname', '', 0, 0);if(HEADER_host!='delta.weather.com'&&HEADER_host!='beta.weather.com'&&HEADER_host!='w3.weather.com')HEADER_host='www.weather.com';HEADER_host='http://'+HEADER_host; URL= _proxy_jslib_assign_rval('', 'URL', '=', (HEADER_host+ _proxy_jslib_handle(null, 'URL', URL, 0, 0)), URL);}
unsetClick();return  _proxy_jslib_handle(null, 'URL', URL, 0, 0);}else{return  _proxy_jslib_handle(HASH, 'href', '', 0, 0);}}
function splitLink(condition,trueLink,falseLink,TS) {if(condition)
{return smartTrack(trueLink,TS);}
else
{return smartTrack(falseLink,TS);}}
function hugMe(typeOfUser) {if(!isLocal)return;var WWW_host= _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'hostname', '', 0, 0);if(WWW_host!='delta.weather.com'&&WWW_host!='w3.weather.com'&&WWW_host!='beta.weather.com')WWW_host='www.weather.com';WWW_host='http://'+WWW_host;var getTwcLocId=getUserPreferences("11");var getHugmeLocationType=getUserPreferences("22");var isHugged=false;var hasData=false;var hasAlert=false;if(getTwcLocId&&getTwcLocId!=" "&&getHugmeLocationType&&getHugmeLocationType!=" "){hp_hugmeblock();if(hp_hugmedata&&hp_hugmedata[0]!='false'){isHugged=true;if(hp_hugmedata[1]!='false'){hasData=true;}
if(hp_hugmedata[2]!='false'){hasAlert=true;}}}
if(isHugged){var locType='';if(hp_hugmedata[9]){locType=':'+hp_hugmedata[9];}
var locationURL=WWW_host+"/weather/local/"+hp_hugmedata[8]+locType+"?from=hugme&refer=hugme";var alertStr='<B>';var alertCloseStr='</B>';if(hp_hugmedata[2]!='false'){alertStr='<B STYLE="background-color:#9A0000;color:#FFFFFF;">';}
var fullLocationName=hp_hugmedata[7];var ind=fullLocationName.indexOf('(');if(ind>0){fullLocationName=fullLocationName.substring(0,ind-1);}
var locationName=fullLocationName;if(locationName.length>20){locationName=locationName.substring(0,17);locationName+="...";}
var hugltype=getUserPreferences("22");var hugVName=getUserPreferences("16");var myHugURL="";if(hugltype!="1"&&hugltype!="4"){myHugURL="http://www.weather.com/weather/hugme/"+getUserPreferences("23")+"?from=hat_hugchange&fromhsearch=true&selvid="+getUserPreferences("22")+"&hloc="+getUserPreferences("11")+"&hlocname="+getUserPreferences("10");}else{myHugURL="http://www.weather.com/weather/hugme/"+getUserPreferences("11")+"?from=hat_hugchange&fromhsearch=true&selname="+hugVName;}
if(typeOfUser=="notsignedin"){ _proxy_jslib_handle(document, 'write', '', 1, 0)('<DIV id="hbHTemp" class="hbText"><A HREF="'+locationURL+'" TITLE="'+fullLocationName+'">'+locationName+'</A> &nbsp;<A HREF="'+myHugURL+'">Edit</A>'); _proxy_jslib_handle(document, 'write', '', 1, 0)('&nbsp;<SPAN id="hbTempIDTwo" class="TempBackgroundNone">&nbsp;<A HREF="'+locationURL+'">'+alertStr+hp_hugmedata[3]+'&deg;'+alertCloseStr+hp_hugmedata[4]+'</A>&nbsp;</SPAN>'); _proxy_jslib_handle(document, 'write', '', 1, 0)('<div class="iconclass"><A HREF="'+locationURL+'"><IMG src="http://image.weather.com/web/common/wxicons/25/'+hp_hugmedata[6]+'.gif" width="20" height="20" border="0" align="middle"></A></div>'); _proxy_jslib_handle(document, 'write', '', 1, 0)('</DIV>');}else if(typeOfUser=="signedin"){ _proxy_jslib_handle(document, 'write', '', 1, 0)('<A HREF="'+locationURL+'" TITLE="'+fullLocationName+'">'+locationName+'</A> &nbsp;<A HREF="'+myHugURL+'">Edit</A>'); _proxy_jslib_handle(document, 'write', '', 1, 0)('&nbsp;<SPAN id="hbTempIDOne" class="TempBackgroundNone">&nbsp;<A HREF="'+locationURL+'">'+alertStr+hp_hugmedata[3]+'&deg;'+alertCloseStr+hp_hugmedata[4]+'</A>&nbsp;</SPAN>'); _proxy_jslib_handle(document, 'write', '', 1, 0)('<div class="icon32x32SignedIn"><A HREF="'+locationURL+'"><IMG src="http://image.weather.com/web/common/wxicons/25/'+hp_hugmedata[6]+'.gif" width="20" height="20" border="0" align="middle"></A></div>');}}else if(!isHugged&&typeOfUser!="signedin"){ _proxy_jslib_handle(document, 'write', '', 1, 0)('<div id=\"localOneClick\" class=\"hbText\"><A HREF=\"http://www.weather.com/weather/hugme?from=hugset&refer=hugset">Local weather in 1-click</a> | </div>');}}
function checkForm() {var WWW_host= _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'hostname', '', 0, 0);if(WWW_host!='delta.weather.com'&&WWW_host!='w3.weather.com'&&WWW_host!='beta.weather.com')WWW_host='www.weather.com';WWW_host='http://'+WWW_host; _proxy_jslib_assign('', document.whatwhere, 'action', '=', (WWW_host+"/search/enhanced"));if( _proxy_jslib_handle(document.whatwhere.where, 'value', '', 0, 0)=="Enter city or US zip"){return false;}else if(document.whatwhere.whatprefs.selectedIndex>0){var thisVal= _proxy_jslib_handle( _proxy_jslib_handle(document.whatwhere.whatprefs.options, (document.whatwhere.whatprefs.selectedIndex), 0, 0), 'value', '', 0, 0); _proxy_jslib_assign('', document.whatwhere.what, 'value', '=', (thisVal));var retVal=changeCommandToVal(thisVal);setUserPreferences('16',retVal); _proxy_jslib_assign('', document.whatwhere.from, 'value', '=', ("whatwhere_drop"));}else if(getUserPreferences('16')&&getUserPreferences('16').length>1){var thisVal=getUserPreferences('16');var retVal=changeValToCommand(thisVal); _proxy_jslib_assign('', document.whatwhere.what, 'value', '=', (retVal));}else{ _proxy_jslib_assign('', document.whatwhere.what, 'value', '=', ('WeatherLocalUndeclared'));}
whatWhereValue=stringFilterChecker( _proxy_jslib_handle(document.whatwhere.where, 'value', '', 0, 0));whatWhereValue=recognizeZipCode(whatWhereValue); _proxy_jslib_assign('', document.whatwhere.where, 'value', '=', (whatWhereValue)); _proxy_jslib_assign('', document.whatwhere.lswa, 'value', '=', ( _proxy_jslib_handle(document.whatwhere.what, 'value', '', 0, 0))); _proxy_jslib_assign('', document.whatwhere.lswe, 'value', '=', ( _proxy_jslib_handle(document.whatwhere.where, 'value', '', 0, 0)));if( _proxy_jslib_handle(document.whatwhere.where, 'value', '', 0, 0).length==5&& _proxy_jslib_handle(document.whatwhere.where, 'value', '', 0, 0)>0&& _proxy_jslib_handle(document.whatwhere.where, 'value', '', 0, 0)<100000){var lp="/weather/local/";var wh= _proxy_jslib_handle(document.whatwhere.what, 'value', '', 0, 0);if( _proxy_jslib_handle(document.whatwhere.from, 'value', '', 0, 0)=='whatwhere'|| _proxy_jslib_handle(document.whatwhere.from, 'value', '', 0, 0)=='whatwhere_drop'){updateRecentSearch( _proxy_jslib_handle(document.whatwhere.where, 'value', '', 0, 0));}
if(wh=='Weather36HourAchesAndPainsCommand')lp="/outlook/health/achesandpains/local/";else if(wh=='Weather36HourAllergiesCommand')lp="/outlook/health/allergies/local/";else if(wh=='Weather36HourAirQualityCommand')lp="/outlook/health/airquality/local/";else if(wh=='Weather36HourSunSafetyCommand')lp="/outlook/health/skin/local/";else if(wh=='Weather36HourColdAndFluCommand')lp="/outlook/health/coldandflu/local/";else if(wh=='Weather36HourHomeCommand')lp="/outlook/homeandgarden/home/local/";else if(wh=='Weather36HourGardenCommand')lp="/outlook/homeandgarden/garden/local/";else if(wh=='Weather36HourSchooldayCommand')lp="/outlook/homeandgarden/schoolday/local/";else if(wh=='Weather36HourSportsCommand')lp="/outlook/events/sports/local/";else if(wh=='Weather36HourWeddingCommand')lp="/outlook/events/weddings/local/";else if(wh=='Weather36HourInterstateCommand')lp="/outlook/driving/interstate/local/";else if(wh=='Weather36HourBoatAndBeachCommand')lp="/outlook/recreation/boatandbeach/local/";else if(wh=='Weather36HourGolfCommand')lp="/outlook/recreation/golf/local/";else if(wh=='Weather36HourSkiCommand')lp="/outlook/recreation/ski/local/";else if(wh=='Weather36HourBusinessTravelerCommand')lp="/outlook/travel/businesstraveler/local/";else if(wh=='Weather36HourVacationPlannerCommand')lp="/outlook/travel/vacationplanner/local/";else if(wh=='Weather36HourOutdoorsCommand')lp="/outlook/recreation/outdoors/local/";else if(wh=='Weather36HourFitnessCommand')lp="/outlook/health/fitness/local/";else if(wh=='Weather36HourHealthCommand')lp="/outlook/health/general/local/";else if(wh=='Weather36HourPetsCommand')lp="/outlook/homeandgarden/pets/local/"; _proxy_jslib_assign('', document, 'location', '=', (WWW_host+lp+ _proxy_jslib_handle(document.whatwhere.where, 'value', '', 0, 0)+"?lswe="+ _proxy_jslib_handle(document.whatwhere.lswe, 'value', '', 0, 0)+"&lwsa="+ _proxy_jslib_handle(document.whatwhere.lswa, 'value', '', 0, 0)+"&from="+ _proxy_jslib_handle(document.whatwhere.from, 'value', '', 0, 0)));return false;}else{return true;}}
function recognizeZipCode(search) {filteredNumbers="1234567890";var i;var returnString="";for(i=0;i< _proxy_jslib_handle(null, 'search', search, 0, 0).length;i++){var c= _proxy_jslib_handle(null, 'search', search, 0, 0).charAt(i);for(j=0;j<filteredNumbers.length;j++){if(c==filteredNumbers.charAt(j))returnString+=c;}}
if(returnString.length!=5){returnString= _proxy_jslib_handle(null, 'search', search, 0, 0);}
return returnString;}
function updateRecentSearch(where) {getRecentSearch=getUserPreferences('27');if(getRecentSearch==''){setUserPreferences('27',where+':*:*');}else{alreadyExist=false;var splitUpSearches=getRecentSearch.split("^");for(var i=0;i<splitUpSearches.length;i++){var splitEachSearch= _proxy_jslib_handle(splitUpSearches, (i), 0, 0).split(":");if(splitEachSearch[0]==where){alreadyExist=true;}}
if(!alreadyExist){if(splitUpSearches.length==6){tempRecentSearch=getRecentSearch.split("^").splice(0,5);var buff="";for(var j=0;j<tempRecentSearch.length;j++){if(j==0){buff+= _proxy_jslib_handle(tempRecentSearch, (j), 0, 0);}else{buff+="^"+ _proxy_jslib_handle(tempRecentSearch, (j), 0, 0);}}
setUserPreferences('27',where+':*:*^'+buff);}else{setUserPreferences('27',where+':*:*^'+getRecentSearch);}}}}
function buildLocator(URL,locator,preText,postText) {if(postText==null||postText==undefined)
{postText="";if(preText==null||preText==undefined)
{preText="for";if(locator==null)
{locator="locator";if( _proxy_jslib_handle(null, 'URL', URL, 0, 0)==null)
{return false;}}}}
if(getUserPreferences("11")&&getUserPreferences("11").length>1){thisUPLocID=getUserPreferences("11");thisUPPresName=thisUPLocID;thisUPLocType=getUserPreferences(22);if(thisUPLocType!="1"&&thisUPLocType!="4")
{thisUPLocID=getUserPreferences(23);thisUPPresName=getUserPreferences(24);}
else
{if(getUserPreferences("10")){thisUPPresName=getUserPreferences("10");}}
if(thisUPPresName&&thisUPPresName.length>1){ _proxy_jslib_handle(document, 'write', '', 1, 0)(preText+" <A HREF=\"#\" onClick=\"return smartTrack('"+ _proxy_jslib_handle(null, 'URL', URL, 0, 0)+thisUPLocID+"','"+locator+"')\" >"+thisUPPresName+"</a> "+postText+" <B>or</B><br><br>\n");}}}
function doIntercept(mapUrl,mapHandle,mapParams) {if(!getUserPreferences("3")||getUserPreferences("3")==" "||getUserPreferences("3")=="null"||!getUserPreferences("4")||getUserPreferences("4")==" "||getUserPreferences("4")=="null"){mapWindowOpen(mapUrl,mapHandle,mapParams);}else{var vertLocation=mapUrl.split("?");var newLocation=vertLocation[1].split("&");var newLoc=unEscJava(newLocation[0]);if(newLocation[1])smartTrack((newLoc+"?"+newLocation[1]),'%ref%');else smartTrack(newLoc,'%ref%');}
return false;}
function getChannelPrefs(itemno) {var getUP=GetCookie("ChannelPrefs");if(getUP.length>2){var splitUP=getUP.split("|");if( _proxy_jslib_handle(splitUP, (itemno), 0, 0)){var myVal=unEscJava( _proxy_jslib_handle(splitUP, (itemno), 0, 0));return myVal;}else{return"";}}else{return"";}}
function setUserPreferences(itemno,itemval) {if(!isLocal)return false;var expdate=new (Date)();FixCookieDate(expdate);expdate.setTime(expdate.getTime()+(24*60*60*1000*365));var getUP=GetCookie("UserPreferences");var splitUP=getUP.split("|");if(!splitUP[1]||(splitUP[1].length<1))splitUP[1]=" ";if(!splitUP[0]||splitUP[0]!=3)
{var defaultUP=new (Array)("3"," ","0","real","fast","-1","-1","-1","-1","-1"," "," "," "," "," ","-1","Undeclared"," "," "," "," "," "," "," "," "," ","");for(var i=0;i<defaultUP.length;i++)
{if(! _proxy_jslib_handle(splitUP, (i), 0, 0)||( _proxy_jslib_handle(splitUP, (i), 0, 0).length<1)) _proxy_jslib_assign('', splitUP, (i), '=', ( _proxy_jslib_handle(defaultUP, (i), 0, 0)));}
splitUP[0]=defaultUP[0];}
var myVal=escape(itemval); _proxy_jslib_assign('', splitUP, (itemno), '=', (myVal));var vertCookie=splitUP.join("|");SetCookie("UserPreferences",vertCookie,expdate,"/",".weather.com");return true;}
function fixUserPreferences() {if(!isLocal)return false;var expdate=new (Date)();FixCookieDate(expdate);expdate.setTime(expdate.getTime()+(24*60*60*1000*365));var getUP=GetCookie("UserPreferences");var splitUP=getUP.split("|");if(!splitUP[1])splitUP[1]=" ";else if(splitUP[1].length<1)splitUP[1]=" ";if(splitUP[16])splitUP.splice(16,1);var vertCookie=splitUP.join("|");SetCookie("UserPreferences",vertCookie,expdate,"/",".weather.com");return true;}
function setChannelPrefs(itemno,itemval,itempath) {if(!isLocal)return false;var expdate=new (Date)();FixCookieDate(expdate);expdate.setTime(expdate.getTime()+(24*60*60*1000*365));var getUP=GetCookie("ChannelPrefs");var splitUP=getUP.split("|");for(var i=0;i<=8;i++){if(! _proxy_jslib_handle(splitUP, (i), 0, 0)||( _proxy_jslib_handle(splitUP, (i), 0, 0).length<1)) _proxy_jslib_assign('', splitUP, (i), '=', (-1));}
 _proxy_jslib_assign('', splitUP, (itemno), '=', (itemval));var vertCookie=splitUP.join("|");SetCookie("ChannelPrefs",vertCookie,expdate,itempath,".weather.com");return true;}
function updateCookieExpDate(cookieName) {var expdate=new (Date)();FixCookieDate(expdate);expdate.setTime(expdate.getTime()+(24*60*60*1000*365));var tempCookie=GetCookie(cookieName);if(tempCookie.length>0){SetExpDate(cookieName,tempCookie,expdate,"/",".weather.com");}
return true;}
function updateCookieUnescape(cookieName) {var expdate=new (Date)();FixCookieDate(expdate);expdate.setTime(expdate.getTime()+(24*60*60*1000*365));var tempCookie=GetCookie(cookieName);if(tempCookie.length>0){SetCookieUnescapeValue(cookieName,tempCookie,expdate,"/",".weather.com");}
return true;}
function DeleteCookie(name,path,domain) {if(!isLocal)return false;if(GetCookie(name)) _proxy_jslib_assign('', document, 'cookie', '=', (name+"="+((path)?"; path="+path:"")+(( _proxy_jslib_handle(null, 'domain', domain, 0, 0))?"; domain="+ _proxy_jslib_handle(null, 'domain', domain, 0, 0):"")+"; expires=Thu, 01-Jan-1970 00:00:01 GMT"));}
function FixCookieDate(date) {var base=new (Date)(0);var skew=base.getTime();if(skew>0)date.setTime(date.getTime()-skew);}
function SetCookie(name,value,expires,path,domain,secure) {if(!isLocal)return false; _proxy_jslib_assign('', document, 'cookie', '=', (name+"="+escape( _proxy_jslib_handle(null, 'value', value, 0, 0))+((expires)?"; expires="+expires.toGMTString():"")+((path)?"; path="+path:"")+(( _proxy_jslib_handle(null, 'domain', domain, 0, 0))?"; domain="+ _proxy_jslib_handle(null, 'domain', domain, 0, 0):"")+((secure)?"; secure":"")));}
function SetCookieUnescapeValue(name,value,expires,path,domain,secure) {if(!isLocal)return false; _proxy_jslib_assign('', document, 'cookie', '=', (name+"="+unescape( _proxy_jslib_handle(null, 'value', value, 0, 0))+((expires)?"; expires="+expires.toGMTString():"")+((path)?"; path="+path:"")+(( _proxy_jslib_handle(null, 'domain', domain, 0, 0))?"; domain="+ _proxy_jslib_handle(null, 'domain', domain, 0, 0):"")+((secure)?"; secure":"")));}
function goWhatWhere(thisWhat) {if( _proxy_jslib_handle(document.whatwhere.where, 'value', '', 0, 0)==""){return true;}else{ _proxy_jslib_assign('', document.whatwhere.what, 'value', '=', (thisWhat));document.whatwhere.submit();return false;}}
function mapSwap(url) {if(url!=""){if(url=="special"){ _proxy_jslib_assign('',  _proxy_jslib_handle(null, 'location', location, 0, 0), 'href', '=', ("/maps/"));}else{if(isMinIE4) _proxy_jslib_assign('', document.all.mapI, 'src', '=', (url));if(isMinNS4) _proxy_jslib_assign('', thisElement, 'src', '=', (url));if(isNS6) _proxy_jslib_assign('',  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("mapI"), 'src', '=', (url));}}
return false;}
function tdSwap(url) {if(url!=""){if(isMinIE4) _proxy_jslib_assign('', document.all.tdI, 'src', '=', (url));if(isMinNS4) _proxy_jslib_assign('', thistdElement, 'src', '=', (url));if(isNS6) _proxy_jslib_assign('',  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)("tdI"), 'src', '=', (url));}
return false;}
function mapWindowOpen(mapUrl,mapHandle,mapParams) {var thisGuy= _proxy_jslib_handle(window, 'open', '', 1, 0)(mapUrl,mapHandle,mapParams);if(isMinIE5||isNS6)thisGuy.focus();return false;}
function imgReplace(imgName,newImgSrc) {if(document.images) _proxy_jslib_assign('', document.images[(imgName)], 'src', '=', (newImgSrc));}
function goLocation(loc,trgt) {if(loc!=null){if((loc.length>0)&&(loc.toLowerCase()!='default')) _proxy_jslib_handle(window, 'open', '', 1, 0)(loc,trgt);}}
function makeObjectNS4() {var ItemElement=new (Layer)(306);ItemElement.name="mapN"; _proxy_jslib_assign('', ItemElement, 'src', '=', (mapNURL));ItemElement.visibility="show";ItemElement.pageY=thisY;ItemElement.pageX=thisX;ItemElement.zIndex="300";return ItemElement;}
function maketdObjectNS4() {var ItemtdElement=new (Layer)(306);ItemtdElement.name="tdN"; _proxy_jslib_assign('', ItemtdElement, 'src', '=', (tdNURL));ItemtdElement.visibility="show";ItemtdElement.pageY=thistdY;ItemtdElement.pageX=thistdX;ItemtdElement.zIndex="300";return ItemtdElement;}
function loadTenday() {thistdX=document.tdholdspace.x;thistdY=document.tdholdspace.y;thistdElement=maketdObjectNS4();}
function changeCommandToVal(whatVal) {if(whatVal=='Weather36HourAchesAndPainsCommand')return'AchesAndPains';else if(whatVal=='Weather36HourAllergiesCommand')return'Allergies';else if(whatVal=='Weather36HourAirQualityCommand')return'AirQuality';else if(whatVal=='Weather36HourSunSafetyCommand')return'SunSafety';else if(whatVal=='Weather36HourColdAndFluCommand')return'ColdAndFlu';else if(whatVal=='Weather36HourHomeCommand')return'HomePlanner';else if(whatVal=='Weather36HourGardenCommand')return'Lawn';else if(whatVal=='Weather36HourSchooldayCommand')return'Schoolday';else if(whatVal=='Weather36HourSportsCommand')return'SportingEvents';else if(whatVal=='Weather36HourWeddingCommand')return'Weddings';else if(whatVal=='Weather36HourInterstateCommand')return'Interstate';else if(whatVal=='Weather36HourBoatAndBeachCommand')return'BoatAndBeach';else if(whatVal=='Weather36HourGolfCommand')return'Golf';else if(whatVal=='Weather36HourSkiCommand')return'Ski';else if(whatVal=='Weather36HourBusinessTravelerCommand')return'BusinessTravel';else if(whatVal=='Weather36HourVacationPlannerCommand')return'VacationPlanner';else if(whatVal=='Weather36HourOutdoorsCommand')return'Outdoors';else if(whatVal=='Weather36HourFitnessCommand')return'Fitness';else if(whatVal=='Weather36HourHealthCommand')return'Health';else if(whatVal=='Weather36HourPetsCommand')return'Pets';else if(whatVal=='WeatherLocalHealth')return'Health';else if(whatVal=='WeatherLocalTravel')return'BusinessTravel';else if(whatVal=='WeatherLocalRecreation')return'Golf';else if(whatVal=='WeatherLocalHomeAndGarden')return'Lawn';else if(whatVal=='WeatherLocalDriving')return'Interstate';else return' ';}
function changeValToCommand(whatVal) {if(whatVal=='AchesAndPains')return'Weather36HourAchesAndPainsCommand';else if(whatVal=='Allergies')return'Weather36HourAllergiesCommand';else if(whatVal=='AirQuality')return'Weather36HourAirQualityCommand';else if(whatVal=='SunSafety')return'Weather36HourSunSafetyCommand';else if(whatVal=='ColdAndFlu')return'Weather36HourColdAndFluCommand';else if(whatVal=='HomePlanner')return'Weather36HourHomeCommand';else if(whatVal=='Lawn')return'Weather36HourGardenCommand';else if(whatVal=='Schoolday')return'Weather36HourSchoolDayCommand';else if(whatVal=='SportingEvents')return'Weather36HourSportsCommand';else if(whatVal=='Weddings')return'Weather36HourWeddingCommand';else if(whatVal=='Interstate')return'Weather36HourInterstateCommand';else if(whatVal=='BoatAndBeach')return'Weather36HourBoatAndBeachCommand';else if(whatVal=='Golf')return'Weather36HourGolfCommand';else if(whatVal=='Ski')return'Weather36HourSkiCommand';else if(whatVal=='BusinessTravel')return'Weather36HourBusinessTravelerCommand';else if(whatVal=='VacationPlanner')return'Weather36HourVacationPlannerCommand';else if(whatVal=='Outdoors')return'Weather36HourOutdoorsCommand';else if(whatVal=='NationalParks')return'Weather36HourOutdoorsCommand';else if(whatVal=='Fitness')return'Weather36HourFitnessCommand';else if(whatVal=='Pets')return'Weather36HourPetsCommand';else if(whatVal=='Health')return'Weather36HourHealthCommand';else if(whatVal=='Travel')return'Weather36HourBusinessTravelerCommand';else if(whatVal=='Recreation')return'Weather36HourGolfCommand';else if(whatVal=='HomeAndGarden')return'Weather36HourGardenCommand';else if(whatVal=='Driving')return'Weather36HourInterstateCommand';else return'WeatherLocalUndeclared';}
function newWindowFocus(url,wid,hei) {mapWindowOpen(url,'nwin',"resizable=yes,toolbar=yes,status=yes,scrollbars=yes,location=yes,menubar=yes,directories=yes,width="+wid+",height="+hei);}
function addEvent(objObject,strEventName,fnHandler) {if(objObject.addEventListener)
objObject.addEventListener(strEventName,fnHandler,false);else if(objObject.attachEvent)
objObject.attachEvent("on"+strEventName,fnHandler);}
function customHugMe() {if(!isLocal)return;var WWW_host= _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'hostname', '', 0, 0);var gotMyPrefs=GetCookie("MyPrefs");if(WWW_host!='delta.weather.com'&&WWW_host!='w3.weather.com'&&WWW_host!='beta.weather.com')WWW_host='www.weather.com';WWW_host='http://'+WWW_host;var thisDay=new (Date)();if(getUserPreferences("11")&&getUserPreferences("11").length>1){thisUPLocID=getUserPreferences("11");if(getUserPreferences("10")&&getUserPreferences("10").length>1){thisUPPresName=getUserPreferences("10");}else{thisUPPresName=thisUPLocID;}
var thisUPURL="/weather/local/";var promoText="Local Forecast for ";if(getUserPreferences("16")&&getUserPreferences("16").length>1){var gup=getUserPreferences("16");if(gup=='Allergies'){thisUPURL="/outlook/health/allergies/local/";}else if(gup=='AchesAndPains'){thisUPURL="/outlook/health/achesandpains/local/";}else if(gup=='AirQuality'){thisUPURL="/outlook/health/airquality/local/";}else if(gup=='SunSafety'){thisUPURL="/outlook/health/skin/local/";}else if(gup=='ColdAndFlu'){thisUPURL="/outlook/health/coldandflu/local/";}else if(gup=='Golf'){thisUPURL="/outlook/recreation/golf/local/";}else if(gup=='Ski'){thisUPURL="/outlook/recreation/ski/local/";}else if(gup=='BoatAndBeach'){thisUPURL="/outlook/recreation/boatandbeach/local/";}else if(gup=='Outdoors'){thisUPURL="/outlook/recreation/outdoors/local/";}else if(gup=='NationalParks'){thisUPURL="/outlook/recreation/outdoors/local/";}else if(gup=='BusinessTravel'){thisUPURL="/outlook/travel/businesstraveler/local/";}else if(gup=='VacationPlanner'){thisUPURL="/outlook/travel/vacationplanner/local/";}else if(gup=='HomePlanner'){thisUPURL="/outlook/homeandgarden/home/local/";}else if(gup=='Lawn'){thisUPURL="/outlook/homeandgarden/garden/local/";}else if(gup=='Schoolday'){thisUPURL="/outlook/homeandgarden/schoolday/local/";}else if(gup=='SportingEvents'){thisUPURL="/outlook/events/sports/local/";}else if(gup=='Weddings'){thisUPURL="/outlook/events/weddings/local/";}else if(gup=='Interstate'){thisUPURL="/outlook/driving/interstate/local/";}else if(gup=='Fitness'){thisUPURL="/outlook/health/fitness/local/";}else if(gup=='Pets'){thisUPURL="/outlook/homeandgarden/pets/local/";}else if(gup=='Travel'){thisUPURL="/outlook/travel/businesstraveler/local/";setUserPreferences('16','BusinessTravel');}else if(gup=='Health'){thisUPURL="/outlook/health/general/local/";setUserPreferences('16','Health');}else if(gup=='Recreation'){thisUPURL="/outlook/recreation/golf/local/";setUserPreferences('16','Golf');}else if(gup=='HomeAndGarden'){thisUPURL="/outlook/homeandgarden/garden/local/";setUserPreferences('16','Lawn');}else if(gup=='Driving'){thisUPURL="/outlook/driving/interstate/local/";setUserPreferences('16','Interstate');}}
 _proxy_jslib_handle(document, 'write', '', 1, 0)("<FONT CLASS=\"captionText\"><A HREF=\""+WWW_host+thisUPURL+thisUPLocID+"?from=zipcode"+"\" CLASS=\"whiteVerdanaLink11\">"+promoText+"<BR>"+thisUPPresName+"</A></FONT>");}else if(gotMyPrefs.length>1){var myPageURL="/weather/my/";var promoText="View My Page"; _proxy_jslib_handle(document, 'write', '', 1, 0)("<A HREF=\""+WWW_host+myPageURL+"?from=zipcode"+"\" CLASS=\"whiteVerdanaLink11\">"+promoText+"</A></FONT>");}else{ _proxy_jslib_handle(document, 'write', '', 1, 0)("<A HREF=\""+WWW_host+"/weather/my/signup?from=zipcode\" CLASS=\"whiteVerdanaLink11\">Customize weather.com</A>");}}
function hatInfo() {if(!isLocal)return;var WWW_host= _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'hostname', '', 0, 0);var PROFILE_URL="https://registration.weather.com/registration/myprofile/step1?from=hat_name&refer=hat_name";var getTicketWeb=GetCookie("Ticket_web");var gotMyPrefs=GetCookie("MyPrefs");if(WWW_host!='delta.weather.com'&&WWW_host!='w3.weather.com'&&WWW_host!='beta.weather.com')WWW_host='www.weather.com';WWW_host='http://'+WWW_host;var thisDay=new (Date)();var greetString="";if(getUserPreferences("12")){thisUPName=getUserPreferences("12");if(thisUPName.indexOf("@")!=-1&&thisUPName.indexOf(".")!=-1){thisUPName="";}else{if(thisUPName.length>8){thisUPName=thisUPName.substr(0,5)+"...";}}}else{thisUPName="";}
greetString="Welcome";var isIE5Check=( _proxy_jslib_handle(document, 'getElementById', '', 0, 0)&&document.all)?1:0;if(isIE5Check){ _proxy_jslib_handle(document, 'write', '', 1, 0)("<div id=\"hatMakeHome\">"); _proxy_jslib_handle(document, 'write', '', 1, 0)("<style>#hbHWelcome{left:11px;width:200px;text-align:left;}</style>"); _proxy_jslib_handle(document, 'write', '', 1, 0)("<a href=\"http://download.weather.com/web/toolbar/ie7/install/twctool2.exe\" >Get free weather toolbar</a>"); _proxy_jslib_handle(document, 'write', '', 1, 0)("</div>");}else{if(thisUPName!=""&&gotUrs==1||thisUPName!=""&&gotTicketWeb.length>1){ _proxy_jslib_handle(document, 'write', '', 1, 0)(greetString+", <A HREF="+PROFILE_URL+">"+thisUPName+"</A>.");}else{ _proxy_jslib_handle(document, 'write', '', 1, 0)(greetString+".");}}}
function searchTermType() {var locIdCheck=/^[A-Z]{4}\d{4}$/g;var zipCodeCheck=/^\d+$/g;var searchTermObject= _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).split("/");var searchTermLocID= _proxy_jslib_handle(searchTermObject, (searchTermObject.length-1), 0, 0);if(searchTermLocID.indexOf(":")!=-1){var searchTermLocType=searchTermLocID.split(":");if( _proxy_jslib_handle(searchTermLocType, (searchTermLocType.length-1), 0, 0)=='5')return'golf';else if( _proxy_jslib_handle(searchTermLocType, (searchTermLocType.length-1), 0, 0)=='9')return'airport';else if( _proxy_jslib_handle(searchTermLocType, (searchTermLocType.length-1), 0, 0)=='11')return'ski';else if( _proxy_jslib_handle(searchTermLocType, (searchTermLocType.length-1), 0, 0)=='16')return'street';else if( _proxy_jslib_handle(searchTermLocType, (searchTermLocType.length-1), 0, 0)=='17')return'school';else if( _proxy_jslib_handle(searchTermLocType, (searchTermLocType.length-1), 0, 0)=='19')return'park';else if( _proxy_jslib_handle(searchTermLocType, (searchTermLocType.length-1), 0, 0)=='20')return'venue';}else if(searchTermLocID.match(locIdCheck)){return'city';}else if(searchTermLocID.match(zipCodeCheck)){return'zip';}else{return'';}}
function openvideoplayer(parms,player,dim,lid) {var thisGuy;var isPop_up=true;if(isPop_up){thisGuy= _proxy_jslib_handle(window, 'open', '', 1, 0)("/multimedia/videoplayer.html?"+parms,player,dim,lid);if(isMinIE5||isNS6)thisGuy.focus();}else{ _proxy_jslib_assign('',  _proxy_jslib_handle(window, 'location', '', 0, 0), 'href', '=', ("/multimedia/videoplayer.html?"+parms));}
return false;}
function openVideoPlayer(parms) {var thisGuy;var isPop_up=true;if(isPop_up){thisGuy= _proxy_jslib_handle(window, 'open', '', 1, 0)("/multimedia/videoplayer.html?"+parms,'player','width=1000,height=677,nostatus','lid2');if(isMinIE5||isNS6)thisGuy.focus();}else{if( _proxy_jslib_handle( _proxy_jslib_handle(self, 'parent', '', 0, 0), 'frames', '', 0, 0).length!=0) _proxy_jslib_assign('',  _proxy_jslib_handle(self, 'parent', '', 0, 0), 'location', '=', ("/multimedia/videoplayer.html?"+parms));else  _proxy_jslib_assign('', window, 'location', '=', ("/multimedia/videoplayer.html?"+parms));}
return false;}
setUserPreferences('0','3');var hmp=getUserPreferences('26');hmp= _proxy_jslib_handle(hmp, 'replace', '', 1, 0)(/\&quot\;/g,'');hmp= _proxy_jslib_handle(hmp, 'replace', '', 1, 0)(/\"/g,'');hmp= _proxy_jslib_handle(hmp, 'replace', '', 1, 0)(/\\/g,'');setUserPreferences('26',hmp);if(getUserPreferences("26").length<1){if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("health/achesandpains")!=-1){setUserPreferences("16","AchesAndPains");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("health/airquality")!=-1){setUserPreferences("16","AirQuality");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("health/allergies")!=-1){setUserPreferences("16","Allergies");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("recreation/boatandbeach")!=-1){setUserPreferences("16","BoatAndBeach");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("travel/businesstraveler")!=-1){setUserPreferences("16","BusinessTravel");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("health/coldandflu")!=-1){setUserPreferences("16","ColdAndFlu");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("driving/interstate")!=-1){setUserPreferences("16","Driving");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("health/fitness")!=-1){setUserPreferences("16","Fitness");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("recreation/golf")!=-1){setUserPreferences("16","Golf");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("health/general")!=-1){setUserPreferences("16","Health");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("homeandgarden/home")!=-1){setUserPreferences("16","HomePlanner");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("homeandgarden/garden")!=-1){setUserPreferences("16","Lawn");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("recreation/outdoors")!=-1){setUserPreferences("16","Outdoors");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("homeandgarden/pets")!=-1){setUserPreferences("16","Pets");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("homeandgarden/schoolday")!=-1){setUserPreferences("16","Schoolday");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("recreation/ski")!=-1){setUserPreferences("16","Ski");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("events/sports")!=-1){setUserPreferences("16","SportingEvents");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("health/skin")!=-1){setUserPreferences("16","SunSafety");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("travel/vacationplanner")!=-1){setUserPreferences("16","VacationPlanner");}
if( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'pathname', '', 0, 0).indexOf("events/weddings")!=-1){setUserPreferences("16","Weddings");}}
function stringFilterChecker(s) {filteredValues="*|/\":<>[]{}`\;()@&$#%";var i;var returnString="";for(i=0;i<s.length;i++){var c=s.charAt(i);if(filteredValues.indexOf(c)==-1)returnString+=c;}
while(returnString.substring(0,1)==' ')
returnString=returnString.substring(1,returnString.length);while(returnString.substring(returnString.length-1,returnString.length)==' ')
returnString=returnString.substring(0,returnString.length-1);return returnString;}
function analyticus(domainValue,productId) {var protocol="http://";var domain=(domainValue==null||domainValue=="")?"":domainValue;var productID=(productId==null||productId=="")?"":"/"+productId;var actionID="";var cacheBuster="?cb="+new (Date)().getTime();var baseURLQryString=( _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'search', '', 0, 0).length>0)?"&"+ _proxy_jslib_handle( _proxy_jslib_handle(window, 'location', '', 0, 0), 'search', '', 0, 0).substring(1):"";function writeToServer(argActionID) {if(productID==""|| _proxy_jslib_handle(null, 'domain', domain, 0, 0)=="")return;actionID=(argActionID==null||argActionID=="")?"":"/"+argActionID; _proxy_jslib_handle(document, 'write', '', 1, 0)('<img src="'+ _proxy_jslib_handle(null, 'protocol', protocol, 0, 0)+ _proxy_jslib_handle(null, 'domain', domain, 0, 0)+productID+actionID+cacheBuster+baseURLQryString+'" width="1" height="1" />');}
this.logAction=function(actionID) {writeToServer(actionID);};}
function getFlashVarTag(url,width,height,id,flashvars,bgcolor,params,flashversion) {var fv=(typeof flashversion!="undefined")?flashversion:"9.0.0";var newTarget=id+'_container'; _proxy_jslib_handle(document, 'write', '', 1, 0)('<div id="'+newTarget+'"></div>');var bgc=(bgcolor&&bgcolor!="")?bgcolor:'#FFFFFF';var _flashvars={};var flashvars=flashvars.split('&');for(var i=0;i<flashvars.length;i++){var test4XML= _proxy_jslib_handle(flashvars, (i), 0, 0).match(/=/g);if(test4XML!=null&&test4XML!=""&&test4XML.length>1){var paramname= _proxy_jslib_handle(flashvars, (i), 0, 0).substr(0, _proxy_jslib_handle(flashvars, (i), 0, 0).indexOf("="));var paramvalue= _proxy_jslib_handle(flashvars, (i), 0, 0).substr( _proxy_jslib_handle(flashvars, (i), 0, 0).indexOf("=")+1); _proxy_jslib_assign('', _flashvars, (paramname), '=', (paramvalue));}else{var pS= _proxy_jslib_handle(flashvars, (i), 0, 0).split('='); _proxy_jslib_assign('', _flashvars, (pS[0]), '=', (pS[1]));}}
var _params={"swliveconnect":"true","allowScriptAccess":"always","bgcolor":bgc};if(typeof params!="undefined"&&params!=null){var params=params.split('&');for(var i=0;i<params.length;i++){var pA= _proxy_jslib_handle(params, (i), 0, 0).split('='); _proxy_jslib_assign('', _params, (pA[0]), '=', (pA[1]));}}
swfobject.embedSWF(url,newTarget,width,height,fv,"http://f.imwx.com/global/web/expressInstall.swf",_flashvars,_params,{"id":id,"name":id});}
var timerRunning=false;function findPosX(obj) {var curleft=0;if(isNS6||isMinIE4){if(obj.offsetParent){while(obj.offsetParent){curleft+=obj.offsetLeft
obj=obj.offsetParent;}}}else if(isMinNS4)curleft+=obj.x;return curleft;}
function findPosY(obj) {var curtop=0;if(isNS6||isMinIE4){if(obj.offsetParent){while(obj.offsetParent){curtop+=obj.offsetTop
obj=obj.offsetParent;}}}else if(isMinNS4)curtop+=obj.y;return curtop;}
function showImgX(imgName) {if(isMinNS4){return document.images[(imgName)].x;}else if(isMinIE4){return findPosX( _proxy_jslib_handle(document.all, (imgName), 0, 0));}else if(isNS6){return findPosX( _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(imgName));}}
function showImgY(imgName) {if(isMinNS4){return document.images[(imgName)].y;}else if(isMinIE4){return findPosY( _proxy_jslib_handle(document.all, (imgName), 0, 0));}else if(isNS6){return findPosY( _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(imgName));}}
function showDivX(divName) {if(isMinNS4){return document.layers[(divName)].pageX;}else if(isMinIE4){return  _proxy_jslib_handle( _proxy_jslib_handle(document.all, (divName), 0, 0).style.left, 'replace', '', 1, 0)(/px/,'');}else if(isNS6){return parseInt( _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(divName).style.left);}}
function showDivY(divName) {if(isMinNS4){return document.layers[(divName)].clip.width;}else if(isMinIE4){return  _proxy_jslib_handle( _proxy_jslib_handle( _proxy_jslib_handle(document.all, (divName), 0, 0).style, 'top', '', 0, 0), 'replace', '', 1, 0)(/px/,'');}else if(isNS6){return parseInt( _proxy_jslib_handle( _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(divName).style, 'top', '', 0, 0));}}
function moveDiv(divName,anchorName,osX,osY) {if(isMinNS4){xposition=(anchorName!='null')?document.images[(anchorName)].x:0;yposition=(anchorName!='null')?document.images[(anchorName)].y:0;xPoint=(osX)?xposition+osX:xposition;yPoint=(osY)?yposition+osY:yposition;document.layers[(divName)].pageX=xPoint+'px';document.layers[(divName)].pageY=yPoint+'px';document.layers[(divName)].visibility="show";}else if(isMinIE4){var over= _proxy_jslib_handle(document.all, (divName), 0, 0);xposition=(anchorName!='null')?findPosX( _proxy_jslib_handle(document.all, (anchorName), 0, 0)):0;yposition=(anchorName!='null')?findPosY( _proxy_jslib_handle(document.all, (anchorName), 0, 0)):0;xPoint=(osX)?xposition+osX:xposition;yPoint=(osY)?yposition+osY:yposition;over.style.left=xPoint+'px'; _proxy_jslib_assign('', over.style, 'top', '=', (yPoint+'px'));over.style.visibility="visible";}else if(isNS6){var over= _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(divName);xposition=(anchorName!='null')?findPosX( _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(anchorName)):0;yposition=(anchorName!='null')?findPosY( _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(anchorName)):0;xPoint=(osX)?xposition+osX:xposition;yPoint=(osY)?yposition+osY:yposition;over.style.left=xPoint+'px'; _proxy_jslib_assign('', over.style, 'top', '=', (yPoint+'px'));over.style.visibility="visible";}}
function writeDiv(divName,divContent) {if(isMinNS4){ _proxy_jslib_handle(document.layers[(divName)].document, 'write', '', 1, 0)(divContent); _proxy_jslib_handle(document.layers[(divName)].document, 'close', '', 1, 0)();}else if(isMinIE4){ _proxy_jslib_assign('',  _proxy_jslib_handle(document.all, (divName), 0, 0), 'innerHTML', '=', (divContent));}else if(isNS6){ _proxy_jslib_assign('',  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(divName), 'innerHTML', '=', (divContent));}}
function clipDiv(divName,clipTop,clipRight,clipBottom,clipLeft) {if(isMinNS4){document.layers[(divName)].clip.left=clipLeft;document.layers[(divName)].clip.right=clipRight; _proxy_jslib_assign('', document.layers[(divName)].clip, 'top', '=', (clipTop));document.layers[(divName)].clip.bottom=clipBottom;}else if(isMinIE4){ _proxy_jslib_handle(document.all, (divName), 0, 0).style.clip="rect("+clipTop+"px "+clipRight+"px "+clipBottom+"px "+clipLeft+"px)";}else if(isNS6){ _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(divName).style.clip="rect("+clipTop+"px "+clipRight+"px "+clipBottom+"px "+clipLeft+"px)";}}
function hideDiv(divName) {if(isMinNS4){document.layers[(divName)].visibility="hide";}else if(isMinIE4){ _proxy_jslib_handle(document.all, (divName), 0, 0).style.visibility="hidden";}else if(isNS6){ _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(divName).style.visibility="hidden";}}
function showDiv(divName) {if(isMinNS4){document.layers[(divName)].visibility="show";}else if(isMinIE4){ _proxy_jslib_handle(document.all, (divName), 0, 0).style.visibility="visible";}else if(isNS6){ _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(divName).style.visibility="visible";}}
function stopSlide() {if(timerRunning)clearInterval(timerID);timerRunning=false;}
function startSlide(slideDiv,slideX,slideY,slideUnits,slideInt) {stopSlide();timerRunning=true;xDone=false;yDone=false;var thisX=(slideX=='null')?showDivX(slideDiv):slideX;var thisY=(slideY=='null')?showDivY(slideDiv):slideY;slideFunc="slideDiv('"+slideDiv+"',"+thisX+","+thisY+","+slideUnits+")";timerID= _proxy_jslib_handle(null, 'setInterval', setInterval, 1, 0)(slideFunc,slideInt);}
function readDiv(divName) {if(isMinIE4&& _proxy_jslib_handle(document.all, (divName), 0, 0))return  _proxy_jslib_handle( _proxy_jslib_handle(document.all, (divName), 0, 0), 'innerHTML', '', 0, 0);else if(isNS6&& _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(divName))return  _proxy_jslib_handle( _proxy_jslib_handle(document, 'getElementById', '', 1, 0)(divName), 'innerHTML', '', 0, 0);else return'';}
function slideDiv(slideDivName,destX,destY,moveUnits) {var yDone=false;var xDone=false;var divX=parseInt(showDivX(slideDivName));var divY=parseInt(showDivY(slideDivName));if(divX==destX||((divX<destX)&&(divX+moveUnits>=destX))||((divX>destX)&&(divX-moveUnits<=destX))){xDone=true;divX=parseInt(destX);}else if((divX+moveUnits)>destX){divX-=moveUnits;}else{divX+=moveUnits;}
if(divY==destY||((divY<destY)&&(divY+moveUnits>=destY))||((divY>destY)&&(divY-moveUnits<=destY))){yDone=true;divY=parseInt(destY);}else if((divY+moveUnits)>destY){divY-=moveUnits;}else{divY+=moveUnits;}
moveDiv(slideDivName,'null',divX,divY);if(xDone&&yDone){stopSlide();}}
function stringFilter(input) {s= _proxy_jslib_handle(input, 'value', '', 0, 0);filteredValues="*|/\":<>[]{}`\;()@&$#%";var i;var returnString="";for(i=0;i<s.length;i++){var c=s.charAt(i);if(filteredValues.indexOf(c)==-1)returnString+=c;}
 _proxy_jslib_assign('', input, 'value', '=', (returnString));}
var myHugRSSURL="http://rss.weather.com/weather/rss/local/";var titleVal="The Weather Channel: Local Weather Outlook [RSS] for ";var linkElement="<LINK REL=\"alternate\" TYPE=\"application/rss+xml\" TITLE=\"";var hugmeLocationType='22';var hugmeLocationZip='23';var hugmeLocationZipPresentationName='24'
var favLocID='11';var favLocPresName='10';var urlTrackingStr="?cm_ven=LWO&cm_cat=rss&par=LWO_rss";try{var hugmeLocationTypeVal=getUserPreferences(hugmeLocationType);if(hugmeLocationTypeVal!="1"&&hugmeLocationTypeVal!="4"){myHugRSSURL+=getUserPreferences(hugmeLocationZip)+urlTrackingStr;titleVal+=getUserPreferences(hugmeLocationZipPresentationName);}else{myHugRSSURL+=getUserPreferences(favLocID)+urlTrackingStr;titleVal+=getUserPreferences(favLocPresName);}
linkElement+=titleVal+'" HREF="'+myHugRSSURL+'">';if(getUserPreferences(hugmeLocationZip)!=" "){ _proxy_jslib_handle(document, 'write', '', 1, 0)(linkElement);}}catch(err){var errorVal= _proxy_jslib_handle(err, 'toString', '', 1, 0)();} ;
_proxy_jslib_flush_write_buffers() ;