function customBodyLoad(a){}function customBodyResize(a,b){}function customBodyScroll(a){}function openFlipbook(a){a=(new Url("misc/Flipbook.aspx")).add("itmID",a);(a=window.open(a,"frmFlipbook","menubar=0,location=0,toolbar=0,scrollbars=0,resizable=0,status=0,width=940,height=650"))&&a.focus()}
function toggleLocation(a){var b=document.getElementById("main_"+a);a=document.getElementById("sub_"+a);if(location&&a)if(a.style.display=="none"){b.className="open";a.style.display="block"}else{b.className="";a.style.display="none"}}var map,baseIcon,directionsPanel,directions,toAddress,baseUrl;
function initializeMap(){if(GBrowserIsCompatible()){map=new GMap2(document.getElementById("map_canvas"));map.addControl(new GLargeMapControl3D);map.addControl(new GMapTypeControl);map.setCenter(new GLatLng(51.6892222,5.3042103),9);GEvent.addListener(map,"zoomend",function(){reposition()})}}
function addToMap(a,b,c,g,e,h,i,j){var d=new GLatLng(a,b);d=new GIcon;d.image=e==2?baseUrl+"/img/icon_maps_licht.png":baseUrl+"/img/icon_maps_donker.png";d.shadow=baseUrl+"/img/icon_maps_shadow.png";d.iconSize=new GSize(30,40);d.shadowSize=new GSize(34,44);d.iconAnchor=new GPoint(15,40);d.infoWindowAnchor=new GPoint(0,0);e=i.replace("asp","aspx");e=e.replace("&amp;ID","&amp;catID");e=e.replace("item","itmID");marker=new PdMarker(new GLatLng(a,b),d);marker.setLink(e.replace("&ID","&catID").replace("&item",
"&itmID"));marker.setTooltip(c);marker.setTitle(c);marker.setAddress(g);marker.setDetailImage(h);marker.setId(j);GEvent.addListener(marker,"click",function(){closeAllInfoWindows();var f=this.getPoint().lat();f=this.getPoint().lng();map.savePosition();f=map.fromLatLngToDivPixel(map.getCenter());var k=map.fromLatLngToDivPixel(this.getPoint());f=subGPoints(k,f);map.panBy(new GSize(-f.x+100,-f.y+120))});map.addOverlay(marker)}function subGPoints(a,b){return new GPoint(a.x-b.x,a.y-b.y)}
function openInfoWindow(a){closeAllInfoWindows();a=map.getMarkerById(a);var b=a.getPoint().lat();b=a.getPoint().lng();b=map.getZoom();map.savePosition();b=map.fromLatLngToDivPixel(map.getCenter());var c=map.fromLatLngToDivPixel(a.getPoint());b=subGPoints(c,b);map.panTo(a.getPoint());a.showDetailWin()}
function reposition(){for(var a,b=map.getFirstMarker();b!=null;){if(b.detailOpen)a=b;b=map.getNextMarker()}if(a!=null){a.closeDetailWin();b=a.getPoint().lat();b=a.getPoint().lng();map.savePosition();b=map.fromLatLngToDivPixel(map.getCenter());var c=map.fromLatLngToDivPixel(a.getPoint());b=subGPoints(c,b);map.panBy(new GSize(-b.x,-b.y));a.showDetailWin()}}function deleteAllMarkers(){for(var a=map.getFirstMarker();a!=null;){a.remove();a=map.getFirstMarker()}}
function closeAllInfoWindows(){for(var a=map.getFirstMarker();a!=null;){a.closeDetailWin();a=map.getNextMarker()}}var headerTimer,headerID=2;function switchHeader(a,b,c){c&&clearTimeout(headerTimer);for(c=1;c<=b+1;c++){var g=document.getElementById("headerImage_"+c);if(g)g.style.display="none"}JQ.query("#headerImage_"+a).fadeIn(1E3)}function startHeader(a){if(a>1)headerTimer=setTimeout("animateHeader( "+headerID+", "+a+" );",6500)}
function animateHeader(a,b){switchHeader(a,b,false);headerID+=1;if(headerID>b)headerID=1;startHeader(b)};
