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 z(){f=window.jQuery.noConflict(!0);G()}function G(){K();f(document).ready(function(c){if(-1!=document.domain.indexOf("accuweather")||c(".aw-widget-legal").length){c.each(e.css,function(a,b){var t="aw-widget-css-"+a;c("#"+t).length||c("",{id:t,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);x(f,a)})}else alert("It seems the widget code is incomplete. Please visit http://www.accuweather.com/en/free-weather-widgets to set up your free weather widget.")})} function y(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);x(f,c)});a&&(b=a.data(),b.widget=null,f.getJSON(e[a.awType].url+"?callback=?",b,function(c){a.html(c.html);x(f,a)}))}function K(){(function(c,b){var a;c.throttle=a=function(a,e,m,k){function g(){function c(){t=+new Date;m.apply(F,u)}function g(){v=b}var F=this,f=+new Date-t,u=arguments;k&&!v&&c();v&&clearTimeout(v);k===b&&f>a?c():!0!==e&&(v=setTimeout(k?g:c,k===b?a-f:a))}var v,t=0;"boolean"!==typeof e&&(k=m,m=e,e=b);c.guid&&(g.guid=m.guid=m.guid||c.guid++); return g};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 t(){q={data:{},length:0}}function f(){var a=document.getElementById(r.attr("id")).value;d(a,"search")}function m(a){var h=c("li",n);h&&(p+=a,0>p?p=0:p>=h.size()&&(p=h.size()-1),h.removeClass("aw-ac-hover"),c(h[p]).addClass("aw-ac-hover"),h[p]&&h[p].scrollIntoView&&h[p].scrollIntoView(!1))}function k(){w&&clearTimeout(w);n.hide()}function g(h,b,d){if(b){r.removeClass(a.loadingClass); n.html("");if("search"==d){if(!b.length){n.html('
No Matching Results Found
');n.show();return}if(1==b.length){h=n.closest(e.threeday.selector);h.data("locationkey",b[0][1]);h.data("useip","false");y(h);return}}else if(!x||0==b.length)return k();n.html(F(b));n.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");y(a)})});n.show()}else k()}function v(a){if(!a)return null; for(var c=[],h=0;h'+c[d][0]+"");return h?"":""}function d(b,d){a.matchCase||(b=b.toLowerCase());a.cacheLength&&H(b);"string"==typeof a.url&&0a.cacheLength?(t(), q.length++):q[c]||q.length++,q.data[c]=b)}var r=b.attr("autocomplete","off");a.inputClass&&r.addClass(a.inputClass);var n=c(".aw-autocomplete"),L=c(".aw-submit-button");b.autocompleter=this;var w=null,l="",p=-1,q={},x=!1,C=null;t();if(null!=a.data){var D="",A={},E=[];"string"!=typeof a.url&&(a.cacheLength=1);for(var B=0;BC)n.hide();else{var b=document.getElementById(r.attr("id")).value; b!=l&&(l=b,b.length>=a.minChars?(r.addClass(a.loadingClass),d(b,"autocomplete")):(r.removeClass(a.loadingClass),n.hide()))}},a.delay)}}).bind("focus",function(){x=!0}).bind("blur",function(){x=!1;w&&clearTimeout(w);w=setTimeout(k,200)});k();this.flushCache=function(){t()};this.setExtraParams=function(b){a.extraParams=b};this.findValue=function(){var b=document.getElementById(r.attr("id")).value;a.matchCase||(b=b.toLowerCase());var d=a.cacheLength?H(b):null;d?J(b,d):"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 g(a){return awxWidgetInfo[d].wxInfo.ut?"1"==awxWidgetInfo[d].wxInfo.ut?9*a/5+32:a:a}function e(a,b){for(var c in b)switch(c){case "hi":case "lo":awxWidgetInfo[d].keyValuePairs[a+c]=5*Math.round(g(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(){y(a)};this.moveTimeBubble=function(){setTimeout(function(){var a=c(".aw-widget-36hour").find(".aw-time-bubble"),b=a.find("span"),d=a.find("i"),g=a.find("b"),a=a.attr("data-minutes")/60,e=c(".aw-six-hours-inner ul li:first").width(),g=g.width(),a=Math.max(5,e*a),a=Math.min(g-7,a),g=a+6;b.css("left",a+"px");d.css("left",g+"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"),y(b))})});var f=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);f.css({width:c(this).width(),top:a,left:c(this).position().left})},blur:function(){c(this).closest(".aw-search").removeClass("aw-focus")}}).autocomplete("https://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 k in awxWidgetInfo[d].wxInfo)if("ix"!=k)if("cu"==k)for(var m in awxWidgetInfo[d].wxInfo[k])awxWidgetInfo[d].wxInfo[k][m]&&e("cu",awxWidgetInfo[d].wxInfo[k]);else if("fc"==k)for(var l=0;la&&(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 l="current"==b.get(0).awType?new window.accuweather.widgets.Current(b):new window.accuweather.widgets.ThirtySixHour(b);c(window).resize(c.throttle(200,function(){l.resize()}));"current"==b.get(0).awType?window.accuweatherWidgetCurrentReady&& window.accuweatherWidgetCurrentReady(b.get(0),l):window.accuweatherWidgetThirtySixHourReady&&window.accuweatherWidgetThirtySixHourReady(b.get(0),l);var m=b.data("uid")?b.data("uid"):"aw"+(new Date).getTime(),a=b.data("lifestyle")?"/"+b.data("lifestyle"):"",f=b.get(0).awType+a;""!=a&&b.data("lifestyle");try{(function(a,b,c,e,d,f,l){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);l=b.getElementsByTagName(c)[0];f.async=1;f.src= e;l.parentNode.insertBefore(f,l)})(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/"+f),ga_awxoap("awxoapTracker.send","pageview",{dimension1:"OAP_Weather_Widgets",dimension2:document.domain?document.domain.split(".").join("-"):"OAP_NoDomain",dimension3:awxWidgetInfo[m].userInfo.partner,dimension4:"OAP_Widget_"+f,dimension5:awxWidgetInfo[m].wxInfo.mcpct})}catch(k){}c("#"+ m).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[m].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 l=document.createElement("script");l.setAttribute("type","text/javascript");l.setAttribute("src","https://vortex.accuweather.com/adc2010/oap/javascript/jquery-1.9.1.min.js");l.readyState?l.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||z()}:l.onload=z;(document.getElementsByTagName("head")[0]||document.documentElement).appendChild(l)}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=["https://vortex.accuweather.com/adc2010/oap/stylesheets/widgets-20170109.css"],e.threeday.selector=".aw-widget-36hour", e.threeday.baseClass="aw-widget-36hour",e.threeday.url=window.location.protocol+"//www.accuweather.com/ajax-service/oap/3day",e.current.selector=".aw-widget-current",e.current.baseClass="aw-widget-current",e.current.url=window.location.protocol+"//www.accuweather.com/ajax-service/oap/current")})();