if(!Array.prototype.indexOf){Array.prototype.indexOf=function(b,c){var a=this.length;c=Number(c)||0;c=(c<0)?Math.ceil(c):Math.floor(c);if(c<0){c+=a}for(;c<a;c++){if(this.hasOwnProperty(c)&&this[c]===b){return c}}return -1}}if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(b,c){var a=this.length;c=Number(c);if(isNaN(c)){c=a-1}else{c=(c<0)?Math.ceil(c):Math.floor(c);if(c<0){c+=a}else{if(c>=a){c=a-1}}}for(;c>-1;c--){if(this.hasOwnProperty(c)&&this[c]===b){return c}}return -1}}if(!Array.prototype.some){Array.prototype.some=function(b,d){var c,a=this.length;if(typeof b!=="function"){throw new TypeError()}for(c=0;c<a;c++){if(this.hasOwnProperty(c)&&b.call(d,this[c],c,this)){return true}}return false}}if(!Array.prototype.every){Array.prototype.every=function(b,d){var c,a=this.length;if(typeof b!=="function"){throw new TypeError()}for(c=0;c<a;c++){if(this.hasOwnProperty(c)&&!b.call(d,this[c],c,this)){return false}}return true}}if(!Array.prototype.forEach){Array.prototype.forEach=function(b,d){var c,a=this.length;if(typeof b!=="function"){throw new TypeError()}for(c=0;c<a;c++){if(this.hasOwnProperty(c)){b.call(d,this[c],c,this)}}}}if(!Array.prototype.filter){Array.prototype.filter=function(b,e){var d,f,a=this.length,c=[];if(typeof b!=="function"){throw new TypeError()}for(d=0;d<a;d++){if(this.hasOwnProperty(d)){f=this[d];if(b.call(e,f,d,this)){c.push(f)}}}return c}}if(!Array.prototype.map){Array.prototype.map=function(b,e){var d,a=this.length,c=[];if(typeof b!=="function"){throw new TypeError()}for(d=0;d<a;d++){if(this.hasOwnProperty(d)){c[d]=b.call(e,this[d],d,this)}}return c}}if(!Array.prototype.reduce){Array.prototype.reduce=function(c,b){var e,a=this.length,d=0;if(typeof c!=="function"){throw new TypeError()}if(a===0&&arguments.length===1){throw new TypeError()}if(arguments.length>=2){e=b}else{for(;d<a;d+=1){if(this.hasOwnProperty(d)){e=this[d++];break}}if(d===a&&!this.hasOwnProperty(a-1)){throw new TypeError()}}for(;d<a;d++){if(this.hasOwnProperty(d)){e=c.call(null,e,this[d],d,this)}}return e}}if(!Array.prototype.reduceRight){Array.prototype.reduceRight=function(c,b){var e,a=this.length,d=a-1;if(typeof c!=="function"){throw new TypeError()}if(a===0&&arguments.length===1){throw new TypeError()}if(arguments.length>=2){e=b}else{for(d=a-1;d>=0;d-=1){if(this.hasOwnProperty(d)){e=this[d--];break}}if(d===-1&&!this.hasOwnProperty(0)){throw new TypeError()}}for(;d>=0;d--){if(this.hasOwnProperty(d)){e=c.call(null,e,this[d],d,this)}}return e}}var PB={JumpSelect:function(a){if(a.value&&a.value!==""){document.location.href=a.value}},CloseChild:function(a){a.close()},ContentClass:"layout_eWEP",FormFill:{fill:function(b){function e(f){return f.label}var d=b.fields.filter(function(f){return f.missing}).map(e),c=b.fields.filter(function(f){return(f.validate===false)}).map(e),a=[];if(d.length){a.push("The following fields are required:\n\t"+d.join("\n\t"))}if(c.length){a.push("The following fields were submitted with invalid data:\n\t"+c.join("\n\t"))}if(b.extra&&b.extra.length){a.push(b.extra)}if(a.length){window.alert(a.join("\n\n"))}b.fields.forEach(function(f){PB.FormFill.Load(b.formID,f.name,f.value)})},Load:function(f,g,d){var b,a,e,c;if(d===null){return}c=Dom.get("formID_"+f.toString());if(c){e=c[g]}if(e){switch(e.type){case"select-one":b=e.options.length;while(b--){if(e[b].value===d||e[b].text===d){e.selectedIndex=b}}break;case"select-multiple":b=e.options.length;while(b--){for(a=0;a<d.split(", ").length;a++){if(e[b].value===d.split(", ")[a]||e[b].text===d.split(", ")[a]){e.options[b].selected=true}}}break;case"radio":case"checkbox":if(e.value===d){e.checked=true}break;case"file":break;case undefined:if(e.length&&e.length>0){switch(e[0].type){case"radio":b=e.length;while(b--){if(e[b].value===d){e[b].checked=true}}break;case"checkbox":b=e.length;d=d.split(", ");while(b--){a=d.length;while(a--){if(e[b].value===d[a]){e[b].checked=true}}}break}}break;default:e.value=d;break}}}},MouseOvers:{elements:[],waiting:false,add:function(b,a){this.elements.push({el:b,src:null,hoverEl:null,hoverSrc:a,applied:false})},apply:function(){if(this.waiting===true){return}this.waiting=true;Event.onDOMReady(function(){var a,d,c,b=this.elements;this.waiting=false;for(a=0;a<b.length;a++){if(b[a].applied!==true){c=Dom.get(b[a].el);if(c!==null&&c.nodeName.toLowerCase()==="img"){b[a].el=c;b[a].src=c.src;b[a].hoverEl=new Image(c.width,c.height);b[a].hoverEl.alt=c.alt;b[a].hoverEl.src=b[a].hoverSrc;b[a].hoverSrc=b[a].hoverEl.src;b[a].applied=true;Event.addListener(c,"mouseover",this.doHover,b[a]);Event.addListener(c,"mouseout",this.doHover,b[a]);d=b.length;while(d--){if(b[d].el===c){b[d].applied=true}}}}}},this,true)},doHover:function(b,c){var a=Event.getTarget(b);a.src=(b.type==="mouseover")?c.hoverSrc:c.src}},FontResizer:{data:{content:"layout_Content",sizes:{size1:"text_size_1",size2:"text_size_2",size3:"text_size_3",size4:"text_size_4"},cssSizes:{size1:"10px",size2:"13px",size3:"16px",size4:"19px"}},init:function(){var a;function b(d){var c;for(c in d){if(d.hasOwnProperty(c)){d[c]=Dom.get(d[c])}}}b(this.data);b(this.data.sizes);if(!this.data.sizes.size1){return}for(a in this.data.sizes){if(this.data.sizes.hasOwnProperty(a)){Event.addListener(this.data.sizes[a],"click",this.doClick,this,true)}}this.findActiveState();if(this.currentState!=="size2"){this.setState(this.currentState)}},findActiveState:function(){var b,c,a,d=document.cookie.split("; "),e=null;for(a=0;a<d.length;a++){b=d[a].indexOf("=");c=d[a].substr(0,b);if(c==="FontSize"){e=d[a].substring(b+1);break}}if(e===null){e="size2"}if(Lang.hasOwnProperty(this.data.sizes,e)===false){e="size2"}this.currentState=e;document.cookie="FontSize="+e},doClick:function(d){var a,c=Event.getTarget(d),b=null;for(a in this.data.sizes){if(Object.prototype.hasOwnProperty.call(this.data.sizes,a)&&this.data.sizes[a]===c){b=a}}if(b===this.currentState||b===null){return}this.setState(b)},setState:function(b){var a=this.data.cssSizes[b];if(!a){return}Dom.setStyle(this.data.content,"fontSize",a);this.currentState=b;document.cookie="FontSize="+b}},dropMenus:{selects:null,init:function(){var b,a,c,d=Dom.get("layout_TopMenu"),e=YAHOO.env.ua.ie;if(e>6||e===0||!d){return}d=Dom.getElementsByClassName("Root","UL",d)[0];if(!d){return}a=[];b=d.childNodes.length;while(b--){if(d.childNodes[b].nodeName==="LI"){a.push(d.childNodes[b])}}Event.addListener(a,"mouseover",this.onMouseOver);Event.addListener(a,"mouseout",this.onMouseOut);c=Dom.get("bd");if(!c){return}c=c.getElementsByTagName("SELECT");if(c.length){this.selects=c}},onMouseOver:function(){Dom.addClass(this,"hover");if(PB.dropMenus.selects){Dom.addClass(PB.dropMenus.selects,"hover")}},onMouseOut:function(){Dom.removeClass(this,"hover");if(PB.dropMenus.selects){Dom.removeClass(PB.dropMenus.selects,"hover")}}},Email:(function(){var b={},c=null,a="/Content/MailPage/";b.emailPage=function(f){var d=a+"Window-MailPage.asp?URL="+encodeURIComponent(window.location.href)+"&Title="+encodeURIComponent(document.title);Event.stopEvent(f);c=window.open(d,"EmailPage","height=550,width=500,toolbar=no,scrollbars=yes,resizable=yes");if(c!==null){c.Scope=b}else{window.alert("Your popup blocker has prevented us from opening a new window.\nPlease disable your popup blocker and try again.")}};b.closeEmail=function(){if(c!==null){c.close()}};return b}()),siteInit:function(){PB.dropMenus.init();var a=Dom.get("layout_SearchField");if(a){Event.addListener("layout_Search","submit",function(){if(a.value==="Search our site"){a.value=""}});Event.addListener(a,"focus",function(){if(a.value==="Search our site"){a.value=""}});Event.addListener(a,"blur",function(){if(a.value===""){a.value="Search our site"}})}Event.addListener("layout_ShareThisLink","click",PB.Email.emailPage)}};Event.onDOMReady(PB.siteInit,PB,true);
