/*(c) s.oehrl@esz-ag.de 2009*/(function($j){$j.fn.newsTicker=$j.fn.newsticker=function(_2){_2=_2||4000;initTicker=function(el){stopTicker(el);el.items=$j("li",el);el.items.not(":eq(0)").hide().end();el.currentitem=0;startTicker(el);};startTicker=function(el){el.tickfn=setInterval(function(){doTick(el);},_2);};stopTicker=function(el){clearInterval(el.tickfn);};pauseTicker=function(el){el.pause=true;};resumeTicker=function(el){el.pause=false;};doTick=function(el){if(el.pause){return;}el.pause=true;$j(el.items[el.currentitem]).fadeOut("slow",function(){$j(this).hide();el.currentitem=++el.currentitem%(el.items.size());$j(el.items[el.currentitem]).fadeIn("slow",function(){el.pause=false;});});};this.each(function(){if(this.nodeName.toLowerCase()!="ul"){return;}initTicker(this);}).addClass("newsticker").hover(function(){pauseTicker(this);},function(){resumeTicker(this);});return this;};})(jQuery);var $j={};$j = jQuery.noConflict();var $ = {};function loadl(seite,target){$j("#loader_img").show();dynload(seite,target);};function dynload(seite,target){/*.html abschneiden*/seite = seite.substring(0,seite.length-5);$j.ajax({url: "loader.php",type: "POST",data: {seite:seite},cache: false,dataType:"html",success: function(html){var output=html.split('[break]');$j("#col1_content").fadeIn("slow");$j("#loader_img").hide();$j("#col1_content").html(output[0]);$j("a").unbind('click');if(output[1]!='none'){$j.getScript("http://static1.esz-ag.de/inc/"+output[1]+".js");}pageTracker._trackPageview(seite+".html"); if(target!=null && seite=="news"){try{var divOffset = $j('#col1_content').offset().top; var pOffset = $j('#col1_content a[name='+target+']').offset().top;var pScroll = pOffset - divOffset;$j('#col1_content').animate({scrollTop: '+=' + pScroll + 'px'});}catch(e){}}else{$j('#col1_content').animate({scrollTop: '-=10000px'});}} });};$j(function(){/*Ajax-Loader gif setzen*/$j("#loader_img").css({left:Math.round($j(document).width()/2)+"px"});$j("#bildscroller").append("<li><img src='http://images.esz-ag.de/scroll_img_1.png' alt=''/></li>");$j("#bildscroller").append("<li><img src='http://images.esz-ag.de/scroll_img_2.png' alt=''/></li>");$j("#bildscroller").append("<li><img src='http://images.esz-ag.de/scroll_img_3.png' alt=''/></li>");$j("#bildscroller").append("<li><img src='http://images.esz-ag.de/scroll_img_4.png' alt=''/></li>");$j("#bildscroller").append("<li><img src='http://images.esz-ag.de/scroll_img_5.png' alt=''/></li>");$j("#bildscroller").append("<li><img src='http://images.esz-ag.de/scroll_img_6.png' alt=''/></li>");$j("#bildscroller").append("<li><img src='http://images.esz-ag.de/scroll_img_7.png' alt=''/></li>");$j("#bildscroller").newsTicker(4000);$j("#cse-search-box-top input[type=text]").focus(function(){$j(this).val("")});});$j(function(){$j("#trackingform").submit(function(e){e.preventDefault();$j("#loader_img").show();$j.ajax({type: "POST",url: "loader.php",data: {auftragsnr:$j("#trackingform input[name=auftragsnr]").val(), passwort:$j("#trackingform input[name=passwort]").val(), checkid:$j("#trackingform input[name=checkid]").val(), seite:'auftragstracking'},success: function(result) {$j("#trackingform input[name=passwort]").val("");$j("#trackingout").html(result);$j("#loader_img").hide();} });});});