triggerArray=[],rollovers=[];$(document).ready(function(){initTriggers();readyRollovers();initRequiredFields();});function initTriggers(){for(var i=0;i<triggerArray.length;i++){eval(triggerArray[i]);}}function initRequiredFields(){$("input, select, textarea").each(function(){if(this.name.match("req_")){updateFieldStatus(this);this.onchange=function(){updateFieldStatus(this);};}});}function updateFieldStatus(_2){if(_2.value.length==0||_2.value=="{txt_ausfuellen}"){$("label[@for="+_2.name+"]").addClass("required");$(_2).addClass("required");}else{$("label[@for="+_2.name+"]").removeClass("required");$(_2).removeClass("required");}}initRollovers=function(_3){debugalert("initRollovers: "+_3);$(".navigation").find("> li").each(function(){if(this.id==""){this.id=$(this).find("> a").text().toLowerCase();}debugalert("ID zugewiesen:"+this.id);});for(var i=0;i<_3.length;i++){if(_3[i]!=""){element=$("#"+_3[i].toLowerCase());$(element).addClass("active").find("> a").addClass("active").find("> img").addClass("active").end().parents("li").each(function(){$(this).addClass("open").find("> a").addClass("open");});}}};readyRollovers=function(){imagesExp=/((\.jpg)|(\.png)|(\.gif))/;try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}$("img.active").each(function(){this.src=this.src.replace(imagesExp,"_f2$1");});$("img.rollover:not(.active)").each(function(){$.preloadImages(this.src.replace(imagesExp,"_f2$1"));}).hover(function(){this.src=this.src.replace(imagesExp,"_f2$1");},function(){this.src=this.src.replace(/_f2/,"");});};resetRollovers=function(){$(".active").each(function(){$(this).removeClass("active");});$(".open").each(function(){$(this).removeClass("open");});};jQuery.preloadImages=function(){for(var i=0;i<arguments.length;i++){jQuery("<img>").attr("src",arguments[i]);}};collectTriggers=function(_6){triggerArray.push(_6);};function debugalert(_7){if(!window.console||!console.firebug){var _8=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"];window.console={};for(var i=0;i<_8.length;++i){window.console[_8[i]]=function(){};}}else{window.console.log(_7);}}

