var SITE={start:function(){SITE.appendMenu();SITE.appendQuickstart();SITE.appendTooltips();SITE.appendHighslide();SITE.setSomeElements()},appendMenu:function(){var B=$$("#menu>li");var A=-1;B.each(function(D,C){if(D.hasClass("menu_selected")){A=C}else{D.addEvents({"mouseover":function(E){this.addClass("menu_hover")},"mouseout":function(E){this.removeClass("menu_hover")},"focus":function(E){this.fireEvent("mouseover")},"blur":function(E){this.fireEvent("mouseout")}})}});if(A>0){B.each(function(D,C){if(C<A){D.addClass("menu_marked")}})}},appendQuickstart:function(){if($("sel_quicklink")){$$("#sel_quicklink option").each(function(A){var B=null;if(A.hasClass("ql_external")){B=function(){SITE.openWindow(A.value,"","toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,top=50,left=150",(screen.width-300),(screen.height-300),true)}}else{B=function(){document.location.href=A.value}}A.store("ql_cmd",B)});$("sel_quicklink").addEvent("change",function(){var A=this.options[this.selectedIndex];if(["-1","0"].contains(A.value)){this.selectedIndex=0}else{A.retrieve("ql_cmd").run()}})}},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)}})},appendArticleList:function(B,A){if(B&&$$(B)){$$(B).each(function(D){D.addEvents({"mouseenter":function(E){this.addClass("alist-item_hovered")},"mouseleave":function(E){this.removeClass("alist-item_hovered")}});if(A){var C=$(D).getElement("a").get("href");if(C){D.setStyle("cursor","pointer").addEvent("click",function(){document.location.href=C})}}})}},appendImageBlocks:function(){$splat($$("span.iBlock")).each(function(A){if(!A.hasClass("iBlock-clean")){A.addEvents({"mouseenter":function(B){if(!this.hasClass("iBlock-hovered")){this.addClass("iBlock-hovered")}},"mouseleave":function(B){this.removeClass("iBlock-hovered")}})}})},appendReferences:function(){},appendFormElements:function(){$$("button, input, textarea, select").each(function(B){var F,C,A=B.get("tag"),E=B.get("type");var D=false;if(["textarea","select"].contains(A)){if(A=="select"){F="frm_hovered"}else{F="input_textarea_over"}}else{if(["text","password"].contains(E)){D=true;F="frm_hovered";C="frm_focused"}else{if(["button","submit","reset"].contains(E)){D=true;F="frm_hovered";C="frm_focused"}}}B.addEvents({"mouseenter":function(G){if(!this.focused){this.addClass(F)}},"mouseleave":function(G){this.focused=false;this.removeClass(F)}});if(D){B.addEvents({"focus":function(G){if(!this.hasClass(F)){this.addClass(C);this.focused=true}},"blur":function(G){this.removeClass(C);this.focused=false}})}})},appendHighslide:function(){hs.graphicsDir=CFG.path_hs;hs.outlineType=null;hs.loadingOpacity=0.85;if($$(".highslide").length>0){$extend(hs.lang,{focusTitle:"in den Vordergrund",fullExpandText:"Originalgr&ouml;&szlig;e",fullExpandTitle:"Originalgröße",closeText:"Schlie&szlig;en",closeTitle:"ESC-Taste (Schließen)",creditsText:"",creditsTitle:"",loadingText:"Lade ...",loadingTitle:"Mausklick - Abbruch",moveText:"Verschieben",moveTitle:"Verschieben",nextText:"Vor",nextTitle:"Pfeiltaste rechts (Vor)",pauseText:"Pause",pauseTitle:"Leertaste (Pause)",playText:"Abspielen",playTitle:"Leertaste (Abspielen)",previousText:"Zur&uuml;ck",previousTitle:"Pfeiltaste links (Zurück)",resizeTitle:"Größe anpassen",restoreTitle:"Mausklick - Schließen, Drag & Drop - Verschieben, Pfeiltasten - Blättern"})}},setSomeElements:function(){$$(".acc_toggler").addEvents({"mouseenter":function(B){if(!this.hasClass("acc_toggler_on")){this.addClass("acc_toggler_hovered")}},"mouseleave":function(B){this.removeClass("acc_toggler_hovered")}});var A=$$("table[class$=zebra]").filter(function(B){return(["td","th"].contains(B.getParent().get("tag")))?false:true}).each(function(B){B.getElements("tbody tr:nth-child(2n+1)").each(function(C){C.addClass("row_highlight")})})},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);var STARTSITE={start:function(){STARTSITE.first=true;STARTSITE.elCurrent=null;STARTSITE.elContainer=$("iN_content").getElement("div.iN_content_inner");STARTSITE.elOverlay=$("iN_content");STARTSITE.indicator=new Waiter(STARTSITE.elOverlay,{"baseHref":"","waiterContainercontainerProps":{"class":"indicator_container"},"img":{"src":"resources/themes/"+CFG["theme"]+"/icons/indicator/indicator-big.gif","styles":{"width":32,"height":32},"class":"indicator_image"},"layer":{"styles":{"opacity":0.9},"class":"indicator_big"},"fxOptions":{"duration":0}});if(!STARTSITE.elContainer||!STARTSITE.elOverlay){return }$$("#iN_list dl").each(function(D){var A=true;var B=D.getElement("dt a");if(B){var C=B.get("href");if(C){B.set("href","javascript:void(0);");D.addEvents({"mouseenter":function(E){if(!this.hasClass("iN_list-selected")){this.addClass("iN_list-hovered")}},"mouseleave":function(E){this.removeClass("iN_list-hovered")},"click":function(E){STARTSITE.load(D,C)}});D.store("tip:title","Details");D.store("tip:text","");SITE.tooltipsEnabled.attach(D);A=false;if(STARTSITE.first){D.fireEvent("click");STARTSITE.first=false}}}if(A){D.setStyle("display","none")}})},load:function(D,A){var C=D.get("id").split("_")[0];STARTSITE.toggleCurrent(D);STARTSITE.indicator.start();STARTSITE.elContainer.setStyle("visibility","hidden");var B=new Request({method:"get",url:A,"onFailure":function(){STARTSITE.update("","left")},"onComplete":function(F,G){var E=(C=="R")?"center":"left";STARTSITE.update(F,E)}}).send()},toggleCurrent:function(A){if($(STARTSITE.elCurrent)){$(STARTSITE.elCurrent).removeClass("iN_list-selected")}A.addClass("iN_list-selected");STARTSITE.elCurrent=A},clearCurrent:function(){if($(STARTSITE.elCurrent)){$(STARTSITE.elCurrent).removeClass("iN_list-selected")}},update:function(B,A){if(!B){B="<br /><br /><br />";STARTSITE.clearCurrent()}STARTSITE.indicator.stop();STARTSITE.elContainer.set({"styles":{"text-align":A,"visibility":"visible"},"html":B})}}