/*(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("")});});var gmarkers = [];var dirn;$j(function(){$j("span.maplink[id=eic]").click(function(){mapclick(0);});$j("span.maplink[id=nue]").click(function(){mapclick(1);});$j("span.maplink[id=kar]").click(function(){mapclick(2);});$j("span.maplink[id=ste]").click(function(){mapclick(3);});$j("span.maplink[id=wie]").click(function(){mapclick(4);});});function load_map(){if (GBrowserIsCompatible()) {var m = $j("#map")[0];/*/ Die Landkarte auf der Webseite darstellen*/if (m) {var map = new GMap2(m);dirn = new GDirections(m);var eic = new GLatLng(48.1582024, 11.3218074);var nue = new GLatLng(49.4855131, 11.1234601);var kar = new GLatLng(49.0076831, 8.3914538);var ste = new GLatLng(52.0921570, 7.4167799);var wie = new GLatLng(48.0637896, 16.328018);/* Vergrösserungsfaktor* 0: Welt* 1: Halbkugel* [...]* 16: Ein paar Straßenzüge* 20: Der Scheitel deines Nachbars im Detail*/var zoomLevel = 6; map.setCenter(new GLatLng(49.894218, 10.885527), zoomLevel);map.addControl(new GMapTypeControl());map.addControl(new GLargeMapControl());map.addOverlay(createMarker(eic,"<b>esz AG calibration &amp; metrology<br/>Zentrale in Eichenau</b><br/>DKD-K-18201"));map.addOverlay(createMarker(nue,"<b>esz AG calibration &amp; metrology<br/>St&uuml;tzpunkt Mitte</b><br/>in N&uuml;rnberg"));map.addOverlay(createMarker(kar,"<b>esz AG calibration &amp; metrology<br/>St&uuml;tzpunkt S&uuml;d-West</b><br/>in Karlsruhe"));map.addOverlay(createMarker(ste,"<b>esz AG calibration &amp; metrology<br/>St&uuml;tzpunkt Nord-West</b><br/>in Steinfurt"));map.addOverlay(createMarker(wie,"<b>esz AG calibration &amp; metrology<br/>St&uuml;tzpunkt Austria</b><br/>in Wiener Neudorf"));}}}function createMarker(point,html) {var baseIcon = new GIcon(G_DEFAULT_ICON);/*baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";*/baseIcon.iconSize = new GSize(40, 39);baseIcon.shadowSize = new GSize(0, 0);baseIcon.iconAnchor = new GPoint(9, 34);baseIcon.infoWindowAnchor = new GPoint(9, 2);baseIcon.image = "http://images.esz-ag.de/esz-logo-rund_maps.png";markerOptions = { icon:baseIcon };var marker = new GMarker(point,markerOptions);GEvent.addListener(marker, "click", function() {marker.openInfoWindowHtml(html);});gmarkers.push(marker);/*side_bar_html += '<a href="javascript:myclick(' + (gmarkers.length-1) + ')">' + name + '<\/a><br>';*/ return marker;} function mapclick(i) {GEvent.trigger(gmarkers[i], "click");} /** localhost key* $j.getScript("http://maps.google.com/maps?file=api&v=2.x&key=ABQIAAAAnfs7bKE82qgb3Zc2YyS-oBT2yXp_ZAY8_ufC3CFXhHIE1NvwkxSySz_REpPq-4WZA27OwgbtyR3VcA&c&async=2&callback=load_map");* esz-gmbh.de key* $j.getScript("http://maps.google.com/maps?file=api&v=2.x&key=ABQIAAAA7oU15o0wMpSU3sZB3-M5TRTNhp03fmeGhInE39HM5LASQaOu6hR-KVHU9ywFd3Pu7TLCB5LXjTn03w&async=2&callback=load_map");* esz-ag.de key */$j(function(){$j("#map").css({"width":"600px","height":"400px"});$j.getScript("http://maps.google.com/maps?file=api&v=2.x&key=ABQIAAAA7oU15o0wMpSU3sZB3-M5TRQZaEC_XRCBr4K-X06XCVOMuirU7RQQHErhJa17wNG1dz2ZWjY4zpZ1uA&async=2&callback=load_map");});