var oapBootstrapVer="2013-06-24-11-28",_gaq=_gaq||[];function pgfxLoadBlankBroadcasterImage(){return!1} var lifestyleIndexToDFP={golf:69749050,driving:69749170,"air-travel":69749290,"sun-sand":69749410,fishing:69749530,sailing:69749650,ski:69749770,"school-day":69749890,allergies:69750010,running:69750130,astronomy:69750250,hunting:69750610,"lawn-garden":69750730,biking:69750850,hiking:69750970,diy:69751090,"outdoor-entertaining":69751210,"snow-day":69751330,"cold-flu":69751570,"home-energy":69751690,events:69751810,"hair-day":69751930,asthma:69752050,migraine:69752170,arthritis:69752410,sinus:69752650}; (function(){function x(){f=window.jQuery.noConflict(!0);G()}function G(){J();f(document).ready(function(c){if(-1!=document.domain.indexOf("accuweather")||c(".aw-widget-legal").length){c.each(e.css,function(a,b){var e="aw-widget-css-"+a;c("#"+e).length||c("",{id:e,rel:"stylesheet",type:"text/css",href:b}).appendTo("head")});var b=f(e.current.selector).add(e.threeday.selector),a=c();b.each(function(){this.awInit||a.length||(a=c(this),this.awType=-1!=a.data("uid").indexOf("awcc")?"current":"threeday", this.awInit=!0)});a.html('Loading Widget\u2026');b=a.data();b.css&&!c("#aw-widget-client-css").length&&c("",{id:"aw-widget-client-css",rel:"stylesheet",type:"text/css",href:b.css}).appendTo("head");b.css=null;f.getJSON(e[a.get(0).awType].url+"?callback=?",b,function(b){b.style&&c('").appendTo("head");a.html(b.html);v(f,a)})}else alert("It seems the widget code is incomplete. Please visit //www.accuweather.com/en/free-weather-widgets to set up your free weather widget.")})} function u(c){c.html('Loading Widget\u2026');c.get(0).awInit=!1;var b=c.data();b.widget=null;var a;f(e.current.selector).add(e.threeday.selector).each(function(){this.awInit&&f(this).data("uid").substr(4)==c.data("uid").substr(4)&&(a=f(this),a.data("locationkey",c.data("locationkey")),a.data("unit",c.data("unit")),-1!=a.data("uid").indexOf("awcc")?(this.awType="current",a.awType="current"):(this.awType="threeday",a.awType="threeday"))});c.get(0).awInit=!0;f.getJSON(e[c.get(0).awType].url+ "?callback=?",b,function(a){c.html(a.html);v(f,c)});a&&(b=a.data(),b.widget=null,f.getJSON(e[a.awType].url+"?callback=?",b,function(c){a.html(c.html);v(f,a)}))}function J(){(function(c,b){var a;c.throttle=a=function(a,e,k,f){function u(){function c(){r=+new Date;k.apply(d,n)}function B(){g=b}var d=this,h=+new Date-r,n=arguments;f&&!g&&c();g&&clearTimeout(g);f===b&&h>a?c():!0!==e&&(g=setTimeout(f?B:c,f===b?a-h:a))}var g,r=0;"boolean"!==typeof e&&(f=k,k=e,e=b);c.guid&&(u.guid=k.guid=k.guid||c.guid++); return u};c.debounce=function(c,e,f){return f===b?a(c,e,!1):a(c,f,!1!==e)}})(f);(function(c){c.autocomplete=function(b,a){function f(){t={data:{},length:0}}function p(){var a=document.getElementById(l.attr("id")).value;H(a,"search")}function k(a){var b=c("li",m);b&&(q+=a,0>q?q=0:q>=b.size()&&(q=b.size()-1),b.removeClass("aw-ac-hover"),c(b[q]).addClass("aw-ac-hover"),b[q]&&b[q].scrollIntoView&&b[q].scrollIntoView(!1))}function A(){w&&clearTimeout(w);m.hide()}function v(b,d,g){if(d){l.removeClass(a.loadingClass); m.html("");if("search"==g){if(!d.length){m.html('
No Matching Results Found
');m.show();return}if(1==d.length){b=m.closest(e.threeday.selector);b.data("locationkey",d[0][1]);b.data("useip","false");u(b);return}}else if(!F||0==d.length)return A();m.html(r(d));m.find("a").each(function(a){c(this).click(function(){var a=c(this).closest(e.threeday.selector);a.data("locationkey",c(this).data("key"));a.data("useip","false");u(a)})});m.show()}else A()}function g(a){if(!a)return null; for(var c=[],b=0;b'+c[g][0]+"");return b?"":""}function H(b,e){a.matchCase||(b=b.toLowerCase());a.cacheLength&&d(b);"string"==typeof a.url&&0a.cacheLength?(f(),t.length++):t[c]||t.length++,t.data[c]=b)}var l=b.attr("autocomplete","off");a.inputClass&&l.addClass(a.inputClass);var m=c(".aw-autocomplete"),K=c(".aw-submit-button");b.autocompleter=this;var w=null,I="",q=-1,t={},F=!1,C=null;f();if(null!=a.data){var D="",y={},E=[];"string"!=typeof a.url&&(a.cacheLength=1);for(var z=0;zC)m.hide();else{var b=document.getElementById(l.attr("id")).value;b!=I&&(I=b,b.length>=a.minChars?(l.addClass(a.loadingClass),H(b,"autocomplete")):(l.removeClass(a.loadingClass),m.hide()))}},a.delay)}}).bind("focus",function(){F=!0}).bind("blur",function(){F=!1;w&&clearTimeout(w);w=setTimeout(A,200)});A();this.flushCache=function(){f()};this.setExtraParams=function(b){a.extraParams=b};this.findValue=function(){var b=document.getElementById(l.attr("id")).value;a.matchCase||(b=b.toLowerCase()); var e=a.cacheLength?d(b):null;e?h(b,e):"string"==typeof a.url&&0a&&(f="m");115>a&&(f="t");this.inow.attr("class","aw-icon aw-icon-"+ c+"-"+f);this.el.find(".debug .width").html(a);this.el.find(".debug .bpclasses").html(b.join(" "));this.el.hide();this.el.show()};window.accuweather.widgets.ThirtySixHour=function(a){function e(a){return awxWidgetInfo[d].wxInfo.ut?"1"==awxWidgetInfo[d].wxInfo.ut?9*a/5+32:a:a}function f(a,b){for(var c in b)switch(c){case "hi":case "lo":awxWidgetInfo[d].keyValuePairs[a+c]=5*Math.round(e(parseInt(b[c]))/5);break;case "wx":awxWidgetInfo[d].keyValuePairs[a+c]=parseInt(b[c]);break;default:awxWidgetInfo[d].keyValuePairs[a+ c]=b[c]}}this.el=c(a);this.breakpoints=[320,480,540,624,632,780,860,950];this.i36=this.el.find(".aw-36-hours .aw-icon");this.inow=this.el.find(".aw-current-weather .aw-icon");this.search=this.el.find(".aw-search");this.reload=function(){u(a)};this.moveTimeBubble=function(){setTimeout(function(){var a=c(".aw-widget-36hour").find(".aw-time-bubble"),b=a.find("span"),d=a.find("i"),e=a.find("b"),a=a.attr("data-minutes")/60,g=c(".aw-six-hours-inner ul li:first").width(),e=e.width(),a=Math.max(5,g*a),a= Math.min(e-7,a),e=a+6;b.css("left",a+"px");d.css("left",e+"px")},100)};b.find(".aw-temp-unit").find("li a").each(function(a){c(this).click(function(){c(this).closest("li").hasClass("current")||(c(this).hasClass("aw-unit-f")?b.data("unit","f"):b.data("unit","c"),b.data("useip","false"),u(b))})});var k=this.el.find(".aw-autocomplete");this.el.find(".aw-search input").bind({focus:function(){c(this).closest(".aw-search").addClass("aw-focus");c(this).val("");var a=c(this).position().top+c(this).height()+ 16;c(".aw-emergency-header").length&&(a+=c(".aw-emergency-header").height()+10);k.css({width:c(this).width(),top:a,left:c(this).position().left})},blur:function(){c(this).closest(".aw-search").removeClass("aw-focus")}}).autocomplete("//api.accuweather.com/locations/v1/cities/",{el:this.el.get(0),api_key:"651aa630aeac48e8b15f9072cfa524bc",autoFill:1,inputClass:"aw-input",resultsClass:"aw-autocomplete",minChars:1,cacheLength:0,matchSubset:1,matchCase:0,matchContains:1,maxItemsToShow:8,mustMatch:0}); var d=this.el.data("uid");awxWidgetInfo[d].keyValuePairs={zip:awxWidgetInfo[d].userInfo.zip,city:awxWidgetInfo[d].userInfo.city,state:awxWidgetInfo[d].userInfo.state,country:awxWidgetInfo[d].userInfo.country,partner:awxWidgetInfo[d].userInfo.sessionPartner,metro:awxWidgetInfo[d].userInfo.metro,dma:awxWidgetInfo[d].userInfo.dma,lang:awxWidgetInfo[d].userInfo.lang};if(awxWidgetInfo[d].wxInfo)for(var h in awxWidgetInfo[d].wxInfo)if("ix"!=h)if("cu"==h)for(var n in awxWidgetInfo[d].wxInfo[h])awxWidgetInfo[d].wxInfo[h][n]&& f("cu",awxWidgetInfo[d].wxInfo[h]);else if("fc"==h)for(var l=0;l');c("#aw-ad-container").html(h.join(""));this.resize();window.accuweather.widgets.register(this.el.get(0),this)};window.accuweather.widgets.ThirtySixHour.prototype.resize= function(){for(var a=this.el.outerWidth(),b=[],f=!1,k=0;ka&&(e="s");b.attr("class","aw-icon aw-icon-"+d+"-"+e)});b=this.inow.data("icon");this.inow.attr("class","aw-icon aw-icon-"+b+"-"+(480>a?"m":"xl"));this.moveTimeBubble(); $table=c(".vid-headline-box");$table.find("td.logo").css("width",$table.outerHeight(!0)+"px")};var p="current"==b.get(0).awType?new window.accuweather.widgets.Current(b):new window.accuweather.widgets.ThirtySixHour(b);c(window).resize(c.throttle(200,function(){p.resize()}));"current"==b.get(0).awType?window.accuweatherWidgetCurrentReady&&window.accuweatherWidgetCurrentReady(b.get(0),p):window.accuweatherWidgetThirtySixHourReady&&window.accuweatherWidgetThirtySixHourReady(b.get(0),p);var k=b.data("uid")? b.data("uid"):"aw"+(new Date).getTime(),f=b.data("lifestyle")?"/"+b.data("lifestyle"):"",a=b.get(0).awType+f;if(""!=f){var f=lifestyleIndexToDFP[b.data("lifestyle")],v=1E13*(Math.random()+"");b.append('')}try{(function(a,b,c,e,d,f,k){a.GoogleAnalyticsObject=d;a[d]=a[d]||function(){(a[d].q=a[d].q||[]).push(arguments)};a[d].l=1*new Date;f=b.createElement(c);k=b.getElementsByTagName(c)[0]; f.async=1;f.src=e;k.parentNode.insertBefore(f,k)})(window,document,"script","//www.google-analytics.com/analytics.js","ga_awxoap"),ga_awxoap("create","UA-31945348-1","auto",{name:"awxoapTracker"}),ga_awxoap("awxoapTracker.set","page","/oap-weather-widgets/"+a),ga_awxoap("awxoapTracker.send","pageview",{dimension1:"OAP_Weather_Widgets",dimension2:document.domain?document.domain.split(".").join("-"):"OAP_NoDomain",dimension3:awxWidgetInfo[k].userInfo.partner,dimension4:"OAP_Widget_"+a,dimension5:awxWidgetInfo[k].wxInfo.mcpct})}catch(x){}c("#"+ k).find("a").each(function(){if(c(this).attr("id")&&"#"!=c(this).attr("href")){var a=c(this).attr("href");c(this).attr("id");var e=[];e.push("utm_source="+(document.domain?document.domain.split(".").join("-"):"OAP_NoDomain"));e.push("utm_medium=oap_weather_widget");e.push("utm_term="+c(this).attr("id"));e.push("utm_content="+awxWidgetInfo[k].userInfo.partner);e.push("utm_campaign="+b.get(0).awType);-1!=a.indexOf("?")?c(this).attr("href",a+"&"+e.join("&")):c(this).attr("href",a+"?"+e.join("&"))}})} document&&document.URL&&document.URL.indexOf("/adc/");var f;if(void 0!==window.jQuery&&window.jQuery.fn.jquery.match(/^1\.9/))f=window.jQuery,G();else{var p=document.createElement("script");p.setAttribute("type","text/javascript");p.setAttribute("src","//vortex.accuweather.com/adc2010/oap/javascript/jquery-1.9.1.min.js");p.readyState?p.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||x()}:p.onload=x;(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(p)}var e= {current:{},threeday:{}};"undefined"!=typeof oap3dayConfigDev?(e.css=oap3dayConfigDev.css,e.threeday.selector=oap3dayConfigDev.threedaySelector,e.threeday.baseClass=oap3dayConfigDev.threedayBaseClass,e.threeday.url=oap3dayConfigDev.threedayUrl,e.current.selector=oap3dayConfigDev.currentSelector,e.current.baseClass=oap3dayConfigDev.currentBaseClass,e.current.url=oap3dayConfigDev.currentUrl):(e.css=["//vortex.accuweather.com/adc2010/oap/stylesheets/widgets-20150116.css"],e.threeday.selector=".aw-widget-36hour", e.threeday.baseClass="aw-widget-36hour",e.threeday.url="//www.accuweather.com/ajax-service/oap/3day",e.current.selector=".aw-widget-current",e.current.baseClass="aw-widget-current",e.current.url="//www.accuweather.com/ajax-service/oap/current")})();