/*(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(){var infos = new Array(new Array("img","beschreibung","alt","posx","posy"),new Array("HF-Aufbau","Kalibrierlabor<br/>Hochspannung, Impuls, HF-Hochleistung","Kalibrierlabor - Hochspannung, Impuls, HF-Hochleistung",200,500),new Array("Optoelektronik","Kalibrierlabor<br/>LWL, Fieber, Optoelektronik","Kalibrierlabor - LWL, Fieber, Optoelektronik",200,530),new Array("HF-Labor","HF-Kalibrierlabor","HF-Kalibrierlabor",200,530),new Array("Elektriklabor","Kalibrierlabor Elektrik<br/>NF, LCR, Gleich-, Wechselleistung<br/>Telekommunikation, Video / TV","Kalibrierlabor Elektrik - NF, LCR, Gleich-, Wechselleistung, Telekommunikation, Video / TV",200,530),new Array("Temperaturlabor","Kalibrierlabor<br/>Temperatur, Feuchte, Durchfluss","Kalibrierlabor - Temperatur, Feuchte, Durchfluss",200,500),new Array("Mechanik_Laenge","Kalibrierlabor Mechanik<br/>L&auml;nge, Kraft, Drehmoment","Kalibrierlabor Mechanik - L&auml;nge, Kraft, Drehmoment",200,500),new Array("Mechaniklabor","Kalibrierlabor Mechanik<br/>L&auml;nge, Winkel","Kalibrierlabor Mechanik - L&auml;nge, Winkel",200,500),new Array("Instandsetzung","Servicelabor<br/>Instandsetzung, Reparatur, Wartung","Servicelabor - Instandsetzung, Reparatur, Wartung",200,500),new Array("Leistungsanalyse","EMV-Labor<br/>St&ouml;rstrahlung, St&ouml;rbeeinflussung<br/>Burst, Surge","EMV-Labor - St&ouml;rstrahlung, St&ouml;rbeeinflussung, Burst, Surge",200,450),new Array("esz-Gebaeude","Kalibrieren von A bis esZ","Kalibrieren von A bis esZ",200,450),new Array("Doku","Dokumentationsarchiv","Dokumentationsarchiv",150,500),new Array("Drucklabor","Druckmesslabor","Druckmesslabor",100,500),new Array("Serverraum","Serverraum","Serverraum",100,450),new Array("klo","Chefb&uuml;ro","Chefb&uuml;ro",200,500));$j("#laborimg").mouseover(function(){$j("#laborimg").hide();});$j(".labordetail").click(function(e){var wahl = $j(this).attr("id").substring(2);$j("#laborimg").css({"top":infos[wahl][4]+"px","left":infos[wahl][3]+"px","position":"absolute"});$j("#laborimg img").attr({src:"http://images.esz-ag.de/laborplan/"+infos[wahl][0]+".jpg", alt:infos[wahl][2]});$j("#labortxt").html(infos[wahl][1]);$j("#laborimg").show();$j(this).mouseout(function(){$j("#laborimg").hide();});});setInterval(function(){$j("#laborlive").attr("src","./upload/lablive.png?v="+new Date().getTime());},900000);});