function houseKeeping(a){window.addEvent("domready",function(){$$('a[href^="http://"]','a[href^="https://"]').each(function(f){var g=f.get("href");if(!g.contains(window.location.host)){f.setProperties({target:"_blank"})}});$$("a[href$='.pdf']").each(function(f){var g=f.get("href");f.setProperties({target:"_blank"});f.addClass("pdf")});$$('a[href$=".doc"]','a[href$=".docx"]').each(function(f){var g=f.get("href");f.setProperties({target:"_blank"});f.addClass("doc")});$$('a[href$=".txt"]').each(function(f){var g=f.get("href");f.setProperties({target:"_blank"});f.addClass("txt")});$$('a[href$=".rtf"]').each(function(f){var g=f.get("href");f.setProperties({target:"_blank"});f.addClass("rtf")});$$("a[href$='.zip']","a[href$='.rar']").each(function(f){var g=f.get("href");f.setProperties({target:"_blank"});f.addClass("zip")});$$("div.block:last-child").each(function(f){f.addClass("lastChild")});if(a){$$("a").each(function(g){var h=g.get("href");var f=g.get("rel");var i=g.get("title");if(f=="Text_Window"||f=="Image_Window"){g.addEvent("click",function(k){k.preventDefault();var j=$(top.document.body).getElements("div.highslide-heading");j[0].innerHTML=i;window.location.href=h})}else{if(h.contains(window.location.host)||h.substring(0,1)=="/"){g.addEvent("click",function(j){j.preventDefault();parent.window.location.href=h;return parent.window.hs.close(this)})}}})}else{var b=$$("a").filter(function(f){return f.rel&&f.rel.test(/^Image_Window/i)});$$(b).each(function(f){f.addEvent("click",function(){return hs.expand(this,{captionEval:"this.a.title"})})});var b=$$("a").filter(function(f){return f.rel&&f.rel.test(/^Text_Window/i)});$$(b).each(function(f){f.addEvent("click",function(){return hs.htmlExpand(this,{objectType:"iframe",width:600,headingEval:"this.a.title",wrapperClassName:"titlebar"})})})}hs.showCredits=false;hs.graphicsDir="/images/imagesHighslide/";hs.align="center";hs.transitions=["expand","crossfade"];hs.outlineType="rounded-white";hs.fadeInOut=true;hs.allowMultipleInstances=false;hs.dimmingOpacity=0.75;hs.registerOverlay({html:'<div class="closebutton" onclick="return hs.close(this)"></div>',position:"top right",relativeTo:"expander",useOnHtml:false,fade:2});hs.captionOverlay.useOnHtml=false;if(Browser.Engine.gecko){var d=$(document.body).getElements("audio");d.each(function(g,f){g.destroy()});var c=$$("div.audio_wrap");c.each(function(f){thisDiv=f.getElement("div");thisDiv.setStyle("display","block")})}else{var c=$$("div.audio_wrap");c.each(function(f){thisDiv=f.getElement("div");thisDiv.destroy()})}var e=new Fx.Accordion($("CMScontent"),"span.slideLink","div.slideContent",{opacity:false,display:99,alwaysHide:true,onActive:function(g,f){g.removeClass("back");g.addClass("selected")},onBackground:function(g,f){g.removeClass("selected");g.addClass("back")}});sfHover=function(){var g=document.getElementById("nav").getElementsByTagName("li");for(var f=0;f<g.length;f++){g[f].onmouseover=function(){this.className+=" sfhover"};g[f].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover\\b"),"")}}};if(window.attachEvent){window.attachEvent("onload",sfHover)}})}function createAccordion(a){window.addEvent("domready",function(){var b=new Fx.Accordion($("accordion"),"h3.toggler","div.element",{opacity:false,display:a,alwaysHide:true,onActive:function(d,c){d.removeClass("back");d.addClass("selected")},onBackground:function(d,c){d.removeClass("selected");d.addClass("back")}})})}function slideshow(){if($("slideshow-container")){window.addEvent("domready",function(){var e=3000;var d=$("slideshow-container");var a=d.getElements("img");var f=d.getElements("div");var c=0;a.each(function(j,k){if(k>0){j.set("opacity",0)}});document.addEvent("keydown",function(i){if(i.key=="right"){b()}if(i.key=="left"){b(c!=0?c-1:a.length-1)}});var b=function(j){a[c].fade("out");f[c].fade("out");var i=c;a[c=($defined(j)?j:(c<a.length-1?c+1:0))].fade("in");f[i=($defined(j)?j:(i<f.length-1?i+1:0))].fade("in")};f.each(function(j,k){if(k>0){j.set("opacity",0)}});var g=$("next");g.addEvent("click",function(i){i.preventDefault();b()});var h=$("prev");h.addEvent("click",function(i){i.preventDefault();b(c!=0?c-1:a.length-1)})})}}function mobileSlideshow(){if($("slideshow-container")){window.addEvent("domready",function(){var d=$("slideshow-container");var a=d.getElements("img");var c=0;var b=function(i){a[c].removeClass("show");a[c].addClass("none");var h=c;c=($defined(i)?i:(c<a.length-1?c+1:0));a[c].addClass("show");a[c].removeClass("none")};var f=$("next");f.addEvent("click",function(h){h.preventDefault();b()});var g=$("prev");g.addEvent("click",function(h){h.preventDefault();b(c!=0?c-1:a.length-1)});var e=new MooSwipe(d);e.addEvent("swipeleft",function(){b()});e.addEvent("swiperight",function(){b(c!=0?c-1:a.length-1)})})}}function addHSslideshow(){hs.addSlideshow({slideshowGroup:"group1",interval:5000,repeat:false,useControls:true,fixedControls:"fit",overlayOptions:{className:"controls-in-heading",opacity:"0.75",position:"above",offsetX:"0",offsetY:"-10",hideOnMouseOut:false}});var a={slideshowGroup:"group1",transitions:["expand","crossfade"]};return a}function selectPage(a){var b=a.options[a.selectedIndex].value;window.location.href=b}function setError(a,b){errorMsg=true;$(a).removeClass("inpOK");$(a).addClass("inpErr");$(b).removeClass("none");$(b).addClass("show");$(a).focus()}function validateForm(){errorMsg=false;var g=$("divNoError");if(g){$("divNoError").removeClass("show");$("divNoError").addClass("none")}$("divMustEnter").removeClass("show");$("divMustEnter").addClass("none");$("divEmailInv").removeClass("show");$("divEmailInv").addClass("none");var c,d,f;var b=validateForm.arguments;for(c=0;c<(b.length-1);c+=2){d=b[c+1];f=b[c];if(f){$(f).removeClass("inpErr");$(f).addClass("inpOK");if(($(f).value=="")||($(f).value==null)){if(d=="R"){setError(f,"divMustEnter")}}else{if($(f).name=="email"){var a=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(!a.test($(f).value)){setError(f,"divEmailInv")}}}}}if(errorMsg==false){return true}else{return false}}function targetBlank(a){blankWin=window.open(a,"_blank","menubar=yes,toolbar=yes,location=yes,directories=yes,fullscreen=no,titlebar=yes,hotkeys=yes,status=yes,scrollbars=yes,resizable=yes")};
