var SITE={start:function(){SITE.appendMenu();SITE.appendHighslide();SITE.imageAutoMover($$("img.auto-mover"),"_on","_off");SITE.appendCalendar()},appendMenu:function(){var a=$splat($$("#MainMenu ul>li"));a.each(function(c,b){c.addEvents({mouseover:function(d){this.addClass("iehover")},mouseout:function(d){this.removeClass("iehover")},focus:function(d){this.fireEvent("mouseover")},blur:function(d){this.fireEvent("mouseout")}})})},appendQuickstart:function(){if($("sel_quicklink")){$("sel_quicklink").addEvent("change",function(){var a=this.options[this.selectedIndex].value;if(["-1","0"].contains(a)){this.selectedIndex=0}else{document.location.href=this.options[this.selectedIndex].value}})}},appendTooltips:function(){var a={offsets:{x:14,y:6},onShow:function(b){b.setStyle("opacity",0.9)},onHide:function(b){b.setStyle("opacity",0)}};SITE.tooltipsEnabled=new Tips([],$merge(a,{className:"tooltipsEnabled"}));SITE.tooltipsDisabled=new Tips([],$merge(a,{className:"tooltipsDisabled"}));$$(".tooltip").filter(function(b){return(b.get("title").clean()!="")}).each(function(e){var d="",b="",c=e.get("title").split("::").clean();if(c.count()>1){d=c[0].clean();b=c[1].clean()}else{b=c[0].clean()}e.store("tip:title",d);e.store("tip:text",b);if(e.getProperty("disabled")||e.hasClass("disabled")){SITE.tooltipsDisabled.attach(e)}else{SITE.tooltipsEnabled.attach(e)}})},appendCalendar:function(){if($("date_from")&&$("date_to")){var a=new Calendar({date_from:"d.m.Y",date_to:"d.m.Y"},{direction:0,blocked:[],days:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],offset:1,pad:1,tweak:{x:6,y:0}})}},appendHighslide:function(){if($$("span.iBlock").length>0){$$("span.iBlock").each(function(a){a.addEvents({mouseenter:function(b){if(!this.hasClass("iBlock_over")){this.addClass("iBlock_over")}},mouseleave:function(b){this.removeClass("iBlock_over")},focus:function(b){if(!this.hasClass("iBlock_over")){this.addClass("iBlock_over")}},blur:function(b){this.removeClass("iBlock_over")}})});hs.graphicsDir="resources/themes/standard/highslide/";hs.showCredits=false;hs.outlineType=null;hs.fullExpandTitle="Erweitern auf volle Größe";hs.restoreTitle="";hs.loadingText="Lade Bild ...";hs.loadingTitle="Laden abbrechen";hs.loadingOpacity=0.85;hs.focusTitle="In den Vordergrund per Klick"}},imageAutoMover:function(c,b,a){if(c.length>0){c.each(function(d){var d=$(d);if($chk(d.src)){if(d.src.indexOf(a)>0){d.addEvent("mouseenter",function(){d.src=d.src.replace(a,b)}).addEvent("mouseleave",function(){d.src=d.src.replace(b,a)})}}})}},openWindow:function(a,h,e,d,b,c){if(window.screen){if(c){var i=(screen.width-d)/2;var f=(screen.height-b)/2;e+=(e!="")?",":"";e+=",left="+i+",top="+f}}var g=window.open(a,h,e+((e!="")?",":"")+"width="+d+",height="+b);g.focus()}};window.addEvent("domready",SITE.start);