var prevMenu;function getURLQueryParameters(){try{var a=window.location.search;var c=a.substr(1);var g=c.split("&");var e={};var f;for(f=0,j=g.length;f<j;f++){var d=g[f].split("=");if(d.length==2){e[d[0]]=d[1]}}return e}catch(b){return{}}}function getURLQueryParameter(a){if(!getURLQueryParameters()[a]){return""}return getURLQueryParameters()[a]}function initZebra(){$(".stripeMe tr").mouseover(function(){$(this).addClass("over")}).mouseout(function(){$(this).removeClass("over")});$(".stripeMe tr:even").addClass("alt")}function initZebraLi(){$(".stripeMe li").mouseover(function(){$(this).addClass("over")}).mouseout(function(){$(this).removeClass("over")});$(".stripeMe li:even").addClass("alt")}function initForms(){$(".textInput").each(function(){var a=this.value;$(this).focus(function(){if(this.value==a){this.value=""}});$(this).blur(function(){if(this.value==""){this.value=a}})})}function initBookmarks(){$(".bookmarks").hide().removeClass("simpleBookmarks");$(".articleSave > a").removeClass("invisible").addClass("clickable").click(function(){$(this).toggleClass("clickable");$(this).next(".bookmarks").toggle();if(!$(this).is(".clickable")){$(this).attr("original",$(this).text());$(this).append(" (hide)")}else{$(this).text($(this).attr("original"))}return false})}SWFFormFixAuto=function(){if(navigator.appName.toLowerCase()!="microsoft internet explorer"){return true}var a=document.getElementsByTagName("object");if(a.length==0){return true}for(i=0;i<a.length;i++){if(a[i].classid=="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"){if(typeof a[i].id!="undefined"&&a[i].id!=""){window[a[i].id]=a[i]}}}var b="";return true};SWFFormFix=function(b){if(navigator.appName.toLowerCase()!="microsoft internet explorer"){return false}var a="SWFFormFixTESTER";document.write('<div id="'+a+'" onclick="SWFFormFixCallback(this,\''+b+'\');return false;" style="display:none">&nbsp;</div>');document.getElementById(a).onclick()};SWFFormFixCallback=function(d,e){var b=document;var a=false;var c=d;while(d=d.parentNode){if(d.nodeName.toLowerCase()=="form"){if(d.name!=undefined&&d.name!=null&&d.name.length>0){b=b.forms[d.name]}else{alert("Error: one of your forms does not have a name!");a=true}}}c.parentNode.removeChild(c);if(a){return false}window[e]=b[e];return true};function post2Url(g,c,b){var f=g.href;var a="UNKNOWN";var e=document.getElementById("dfpzone");var h=document.getElementById("adarea");var d=document.getElementById("permalinkForm");if(c.length>0){a=c}h.value=c;if(!b){b="general"}if(e!=null){e.value=b}d.action=f;d.submit()}function postMSA2Url(h,f,d,e){var b=h.href;var a="UNKNOWN";var g="UNKNOWN";var c="UNKNOWN";if(d.length>0){a=d}if(f.length>0){g=f}if(e.length>0){c=e}msaStateField=document.getElementById("msastate");msaStateField.value=d;msaDivisionField=document.getElementById("msadivision");msaDivisionField.value=f;msaNameField=document.getElementById("msaname");msaNameField.value=e;msalinkform=document.getElementById("msalinkForm");msalinkform.action=b;msalinkform.submit()}function CloseLHDNavigationMenu(){var a=jQuery($("li.LHDNavigationMenu")[0]);if(a!=null){a.removeAttr("on");a.attr("disabled","true");a.children("div.submenu").each(function(){$(this).removeAttr("on");$(this).hide(0,function(){a.removeAttr("disabled")})})}}function ShowProcessingStatus(a){if(a){$("li.LHDmenu2").hide();$("li.LHDzip_processing").show()}else{$("li.LHDmenu2").show();$("li.LHDzip_processing").hide()}}function isLHDNavMenuOpen(a){if(a.hasClass("LHDNavigationMenu")){if(a.children(".submenu").length==1){if(jQuery(a.children(".submenu")[0]).attr("on")=="true"){return true}}}return false}function initMenu(c,d,a,b){switch(c){default:case"fade":c=function(g,f){$(g).fadeIn("fast",function(){f.attr("on","true")});return false};d=function(g,f){$(g).fadeOut("fast",function(){f.removeAttr("disabled")})};break;case"slide":c=function(g,f){$(g).slideDown("fast",function(){f.attr("on","true")});return false};d=function(g,f){$(g).slideUp("fast",function(){f.removeAttr("disabled")})};break;case"size":c=function(g,f){$(g).show("fast",function(){f.attr("on","true")});return false};d=function(g,f){$(g).hide("fast",function(){f.removeAttr("disabled")})};break}$(a+" > ul > li:has("+b+")").hover(function(){if(typeof timer!="undefined"){clearTimeout(timer)}var f=$(this);f.siblings().children(b).each(function(){if($(this).parents("li.LHDNavigationMenu").length==1){if(!isLHDNavMenuOpen(jQuery($(this).parents("li.LHDNavigationMenu")[0]))){$(this).hide()}}else{$(this).hide()}});if(!f.attr("on")){f.children(b).hide()}if(f.attr("disabled")){return}f.children(b).each(function(){if(!isLHDNavMenuOpen(f)){return c(this,f)}else{return false}})},function(){var f=$(this);if(!isLHDNavMenuOpen(f)){if(f.attr("on")){timer=setTimeout(function(){e(f)},20)}else{return true}}else{return true}});function e(f){if(f.attr("on")){f.removeAttr("on").attr("disabled","true").children(b).each(function(){d(this,f)})}return false}$(a+" > ul > li.LHDNavigationMenu #zipLocator").focus(function(){if(jQuery(this).length==1){if(jQuery(jQuery(this)[0]).parents("div.submenu").length==1){jQuery(jQuery(jQuery(this)[0]).parents("div.submenu")[0]).attr("on","true")}}})}function getDate(){var e=new Date();var f=e.getYear();if(f<1000){f+=1900}var g=e.getDay();var d=e.getMonth();var a=e.getDate();if(a<10){a="0"+a}var c=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");var b=new Array("January","February","March","April","May","June","July","August","September","October","November","December");document.write(c[g]+", "+b[d]+" "+a+", "+f)}(function(a){a.fn.hoverIntent=function(e,h){var o={sensitivity:7,interval:1000,timeout:1000};o=a.extend(o,h?{over:e,out:h}:e);var l,b,k,c;var m=function(f){l=f.pageX;b=f.pageY};var d=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(k-l)+Math.abs(c-b))<o.sensitivity){a(f).unbind("mousemove",m);f.hoverIntent_s=1;return o.over.apply(f,[g])}else{k=l;c=b;f.hoverIntent_t=setTimeout(function(){d(g,f)},o.interval)}};var p=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return o.out.apply(f,[g])};var n=function(f){var g=(f.type=="mouseover"?f.fromElement:f.toElement)||f.relatedTarget;while(g&&g!=this){try{g=g.parentNode}catch(f){g=this}}if(g==this){return false}var q=jQuery.extend({},f);var r=this;if(r.hoverIntent_t){r.hoverIntent_t=clearTimeout(r.hoverIntent_t)}if(f.type=="mouseover"){k=q.pageX;c=q.pageY;a(r).bind("mousemove",m);if(r.hoverIntent_s!=1){r.hoverIntent_t=setTimeout(function(){d(q,r)},o.interval)}}else{a(r).unbind("mousemove",m);if(r.hoverIntent_s==1){r.hoverIntent_t=setTimeout(function(){p(q,r)},o.timeout)}}};return this.mouseover(n).mouseout(n)}})(jQuery);function initIndustryCenter(g,d,c,f){var b=c.substr(1,c.length);$(c).each(function(h){$(this).attr("id",b+(h+1));$("#"+b+(h+1)).hoverIntent({sensitivity:2,interval:500,over:e,timeout:350,out:a})});function e(){var h=$(this).attr("id");$("#"+h+" > div").show()}function a(){var h=$(this).attr("id");$("#"+h+" > div").hide()}}function leftNavControls(){var b=window.location;var a=b.protocol+"//"+b.hostname+b.pathname}function insertWebMetrics(a){if(jQuery.trim(a).length>0){var c="/Development/ReedWebMetrics.svc/InsertWebMetricsData?webMetricsData="+a+"&rnd=00000"+Math.round(Math.random()*10000000000);try{$.ajax({url:c,dataType:"json",type:"GET",data:"{}",contentType:"application/json; charset=utf-8",success:function(d,e){return true},error:function(f,e,d){}})}catch(b){return true}return true}}$(document).ready(function(){$("#headeradWrapper").enableTimer()});$.fn.enableTimer=function(){return this.each(function(){var b=$(this);if(typeof timer!="undefined"){clearTimeout(timer)}timer=setTimeout(function(){a(b)},200)});function a(b){var c=$(b).find(".adWrapper.ad_leaderboard").width();if(c!=null){if(c>0){if(c<650||c>=850){clearTimeout(timer)}else{$("#headerEditorial").show(2000);clearTimeout(timer)}}}clearTimeout(timer)}};
