function homeLink (locid){ window.location = 'http://wowweb.weather.com/weather/local/'+locid; } var intImage = 2; var tabs = new Array();tabs[tabs.length] = 'tab1';tabs[tabs.length] = 'tab2'; function selectTab(tab) {for( index = 0; index < tabs.length; index++ ) { var img = document.getElementById(tabs[index]); if( (index + 1) == tab ) { img.src = img.src.replace('Off', 'On'); } else { img.src = img.src.replace('On', 'Off'); } if(tab==1) { document.getElementById('tab4').style.border="#333333 solid"; document.getElementById('tab4').style.borderWidth="0px 0px 1px 0px"; document.getElementById('tab3').style.border="#CCCCCC solid"; document.getElementById('tab3').style.borderWidth="0px 0px 1px 0px"; if (document.getElementById) document.getElementById('maptab1').style.display = "block"; if (document.getElementById) document.getElementById('maptab2').style.display = "none"; } else if(tab==2) { document.getElementById('tab4').style.border="#CCCCCC solid"; document.getElementById('tab4').style.borderWidth="0px 0px 1px 0px"; document.getElementById('tab3').style.border="#333333 solid"; document.getElementById('tab3').style.borderWidth="0px 0px 1px 0px"; if (document.getElementById) document.getElementById('maptab2').style.display = "block"; if (document.getElementById) document.getElementById('maptab1').style.display = "none"; }}} function doSearch(){ var wh = document.getElementById('zipcode').value; window.open("http://wowweb.weather.com/search/enhanced?what=Weather36HourBusinessTravelerCommand&config=SZ=180x150*WX=FHW*LNK=SSNL*UNT=F*BGI=clouds*MAP=CSC|null*DN=fbindependent.com*TIER=0*PID=1053297019*MD5=e2a2259d5b4cd96004cc54ff8bd53867&par=WOWs0_1053297019&site=180x150&cm_ven=WOWs0&cm_cat=180x150&code=link&promo=searchbox&cm_ite=link&cm_pla=searchbox&where="+wh, "wownewwin"); return false;} function hrefURL (url){ window.location = url; } if (document.getElementById && !document.getElementById('wx_wow_css') ) { var head = document.getElementsByTagName('head')[0]; var link = document.createElement('link'); link.id = 'wx_wow_css'; link.rel = 'stylesheet'; link.type = 'text/css'; link.title = 'wow'; // replace the next line with conditional code based on protocol link.href = 'http://imawow.weather.com/web/common/header/stylesheet/wow.css'; head.appendChild(link); } function addEvent(objObject, strEventName, fnHandler) { if (objObject.addEventListener) objObject.addEventListener(strEventName, fnHandler, false); else if (objObject.attachEvent) objObject.attachEvent("on" + strEventName, fnHandler); } var divId; var newDiv; var targetDiv; // Note - this function is ONLY run by IE browser. function initIE(mydivId, moduleHTML) { divId = mydivId; newDiv = document.createElement('div'); newDiv.innerHTML = moduleHTML; var loadingDiv = newDiv.firstChild.cloneNode(false); loadingDiv.innerHTML = '

Loading...

'; targetDiv = document.getElementById(divId); targetDiv.innerHTML = ''; targetDiv.appendChild(loadingDiv); // now start the time/out iterations wxDivLoadPulse(); } // timeout logic variables var wx_timeoutID = 0; var wx_currentTimeout = 10, wx_wait = 0; wx_maxWait = 6000; // this logic iteratively check's for the WOW div availability until timeout or cancelled // the goal here is to wach the page load, and render the WOWs module as soon as the // WOWs div appears on the page. The change is applied part of BZ 7171, replacing // the prior logic of waiting for entire page to be reloaded. And the users were // clearly seeing the "Loading..." message because of latency caused by either // WOWs users web site page, or because of of the end users low bandwidth. // // Note - this function is ONLY run by IE browser. function wxDivLoadPulse() { if(!updateWxWOWDIV() && (wx_wait < wx_maxWait)) { wx_wait += wx_currentTimeout; wx_timeoutID = setTimeout('wxDivLoadPulse()', wx_currentTimeout); wx_currentTimeout = wx_currentTimeout * 2; } else { wx_timeoutID = 0; } } // cancels the pulse (if it's still going) and triggers the final update // Note - this function is ONLY run by IE browser. function updateWxWOWDIV() { if (wx_timeoutID != 0) clearTimeout(wx_timeoutID); //alert("divID = " + divId + " newDiv innerhtml = " + newDiv.innerHTML); // if the wxWOW DIV ID loaded on the page assign the wow html to it if( document.getElementById(divId) ) { targetDiv.className = "wow_container"; targetDiv.innerHTML = newDiv.innerHTML; return true; } else return false; } // Note - this function is ONLY run by IE browser. function init(mydivId, moduleHTML) { // if IE browser start a loading time lapse presentation // until the WOW div is available on the page if (document.all) { initIE(mydivId, moduleHTML) } else { document.getElementById(mydivId).className = "wow_container"; document.getElementById(mydivId).innerHTML = moduleHTML; } } init('wx_module_9632','
'+ '
'+ '
'+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ '
'+ ' '+ ' '+ ' '+ ' '+ '
Sugar Land, TX
'+ '
'+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ '
'+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ '
'+ '
'+ ' '+ ' '+ ' '+ ' '+ '
76°F
Fair
'+ '
'+ ' '+ ' '+ ' '+ ' '+ '
Hour-by-hour | 10-day
'+ '
'+ '
 '+ ' '+ '
'+ '
'+ '
'+ '
');