var LinkTracking={tracking:true,trackingObjects:{Link:[{selector:".ga-web",action:"Web",label:""},{selector:".ga-email",action:"Email",label:""},{selector:".ga-client",action:"Client",label:"href"}],Download:[{selector:".ga-dl",action:"",label:""}],"Index Skills":[{selector:".ga-idxservice",action:"Skills",label:""}],Newsletter:[{selector:".ga-newsletter",action:"View",label:"text"}]},start:function(b){if(!this._ga_check()){this.tracking=false;return}this.trackingObjects=$merge(this.trackingObjects,$splat(b)||{});var a=this;$each(this.trackingObjects,function(d,c){d=$splat(d);if(d.length>0){d.each(function(f){var e=$$(f.selector);if(e.length>0){e.each(function(g){var h=f.action;if(h==""){h=($chk(g.rel)&&g.rel!="")?g.rel:"unknown"}var i=(f.label!=""&&$chk(g.get(f.label)))?g.get(f.label):"unknown";if(i=="unknown"){["title","text","href"].each(function(j){if(i=="unknown"&&$chk(g.get(j))&&g.get(j)!=""){i=g.get(j)}})}g.addEvent("click",function(){a.add(c,h,i)})})}})}})},add:function(a,c,b){if(this.tracking==true){_gaq.push(["_trackEvent",""+a,""+c,""+b])}},_ga_check:function(){return(typeof(_gaq)!="undefined")?true:false}};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(f){var b=true;var c=f.getElement("dt a");if(c){var d=c.get("href");if(d){var e=(c.get("title")&&c.get("title")!="")?c.get("title"):d;c.set("href","javascript:void(0);");f.addEvents({mouseenter:function(a){if(!this.hasClass("iN_list-selected")){this.addClass("iN_list-hovered")}},mouseleave:function(a){this.removeClass("iN_list-hovered")},click:function(a){LinkTracking.add("Index News","Load - "+e,d);STARTSITE.load(f,d)}});f.store("tip:title","Details");f.store("tip:text","");SITE.tooltipsEnabled.attach(f);b=false;if(STARTSITE.first){STARTSITE.load(f,d);STARTSITE.first=false}}}if(b){f.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});STARTSITE.elContainer.getElements("a").each(function(c){c.addEvent("click",function(f){var d=this.get("href");var e=(this.get("title")&&this.get("title")!="")?this.get("title"):d;LinkTracking.add("Index News","Show - "+e,d)})})}};var FollowMe={options:{item:".follow-me_item",offsetClose:36},start:function(a,c){if($defined(a)){var b=FollowMe;b.options=$merge(b.options,c||{});b.container=$(a);b.fx_follow=new Fx.Morph(b.container,{duration:600,transition:new Fx.Transition(Fx.Transitions.Sine).easeOut});b.container.getElements(b.options.item).each(function(h,g){var e=($defined(h.getElement("a")))?h.getElement("a"):null;if(e){var f=e.getProperty("href");e.setProperty("href","javascript:void(0);");e.addEvents({go:function(){LinkTracking.add("Link","Web","Social Media Newsroom der i-fabrik");SITE.openWindow(f,"","toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,top=20",1100,650,true)},click:function(i){this.fireEvent("go");if(i){i.stop()}},keydown:function(i){this.fireEvent("go");if(i){i.stop()}}});h.addEvent("click",function(){SITE.openWindow(f,"","toolbar=1,location=1,directories=1,status=1,scrollbars=1,resizable=1,top=20",1100,650,true)});h.setStyle("cursor","pointer")}var d=new Fx.Morph(h,{duration:300,transition:new Fx.Transition(Fx.Transitions.Sine).easeOut});$(h).store("fx_toggle",d);$(h).store("width_open",h.getSize().x);$(h).store("width_close",b.options.offsetClose);$(h).addEvents({mouseenter:function(){var i=this.retrieve("width_open");var j=this.retrieve("fx_toggle");j.start({width:i})},mouseleave:function(){var i=this.retrieve("width_close");var j=this.retrieve("fx_toggle");j.start({width:i})}}).setStyle("width",b.options.offsetClose)});FollowMe.updatePosition()}},updatePosition:function(){if($defined(FollowMe.container)){var b=document.window.getScroll();var a=document.window.getCoordinates();FollowMe.fx_follow.start({top:(a.height/2)-(FollowMe.container.getSize().y/2)+b.y})}}};var SITE={start:function(){SITE.appendMenu();SITE.appendQuickstart();SITE.appendTooltips();SITE.appendHighslide();SITE.setSomeElements();LinkTracking.start()},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("resize",function(){FollowMe.updatePosition()});window.addEvent("scroll",function(){FollowMe.updatePosition.delay(300)});window.addEvent("domready",function(){SITE.start();FollowMe.start($("follow-me"))});
