if(!Array.prototype.indexOf){Array.prototype.indexOf=function(b){var a=this.length,c=Number(arguments[1])||0;c=(c<0)?Math.ceil(c):Math.floor(c);if(c<0){c+=a;
}for(;c<a;c++){if(c in this&&this[c]===b){return c;}}return -1;};}if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(b){var a=this.length,c=Number(arguments[1]);
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(c in this&&this[c]===b){return c;}}return -1;};
}if(!Array.prototype.some){Array.prototype.some=function(b){var a=this.length,d=arguments[1],c;if(typeof b!=="function"){throw new TypeError();}for(c=0;c<a;c++){if(c in this&&b.call(d,this[c],c,this)){return true;
}}return false;};}if(!Array.prototype.every){Array.prototype.every=function(b){var a=this.length,d=arguments[1],c;if(typeof b!=="function"){throw new TypeError();
}for(c=0;c<a;c++){if(c in this&&!b.call(d,this[c],c,this)){return false;}}return true;};}if(!Array.prototype.forEach){Array.prototype.forEach=function(b){var a=this.length,d=arguments[1],c;
if(typeof b!=="function"){throw new TypeError();}for(c=0;c<a;c++){if(c in this){b.call(d,this[c],c,this);}}};}if(!Array.prototype.filter){Array.prototype.filter=function(b){var a=this.length,e=[],d=arguments[1],c,f;
if(typeof b!=="function"){throw new TypeError();}for(c=0;c<a;c++){if(c in this){f=this[c];if(b.call(d,f,c,this)){e.push(f);}}}return e;};}if(!Array.prototype.map){Array.prototype.map=function(b){var a=this.length,e=[],d=arguments[1],c;
if(typeof b!=="function"){throw new TypeError();}for(c=0;c<a;c++){if(c in this){e[c]=b.call(d,this[c],c,this);}}return e;};}if(!Array.prototype.reduce){Array.prototype.reduce=function(b){var a=this.length,d,c=0;
if(typeof b!=="function"){throw new TypeError();}if(a===0&&arguments.length===1){throw new TypeError();}if(arguments.length>=2){d=arguments[1];}else{do{if(c in this){d=this[c++];
break;}if(++c>=a){throw new TypeError();}}while(true);}for(;c<a;c++){if(c in this){d=b.call(null,d,this[c],c,this);}}return d;};}if(!Array.prototype.reduceRight){Array.prototype.reduceRight=function(b){var a=this.length,d,c=a-1;
if(typeof b!=="function"){throw new TypeError();}if(a===0&&arguments.length===1){throw new TypeError();}if(arguments.length>=2){d=arguments[1];}else{do{if(c in this){d=this[c--];
break;}if(--c<0){throw new TypeError();}}while(true);}for(;c>=0;c--){if(c in this){d=b.call(null,d,this[c],c,this);}}return d;};}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 b=this.elements,a,d,c;this.waiting=false;for(a=0;a<b.length;
a++){if(b[a].applied===true){continue;}c=Dom.get(b[a].el);if(c===null||c.nodeName.toLowerCase()!=="img"){continue;}d=b.length;while(d--){if(b[d].el===c&&b[d].applied===true){b[a].applied=true;
continue;}}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;
Event.addListener(c,"mouseover",this.doHover,b[a]);Event.addListener(c,"mouseout",this.doHover,b[a]);b[a].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){for(var c in d){if(Lang.hasOwnProperty(d,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"){continue;}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 c=Event.getTarget(d),a,b=null;for(a in this.data.sizes){if(Lang.hasOwnProperty(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 d=Dom.get("layout_TopMenu"),b,a,c,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");}}}};Event.onDOMReady(PB.dropMenus.init,PB.dropMenus,true);
