function MiniMap(g,h,b,e,c,a,f,j){this.mapId=g;this.map=null;this.sw=new GLatLng(h[0],h[1]);this.ne=new GLatLng(b[0],b[1]);this.minZoom=isNaN(new Number(a))||!a||a<0?0:(a>19?19:a);this.maxZoom=isNaN(new Number(f))||!f||f>19?19:(f<0?0:f);this.linkTarget=j?new Template(j):null;this.home=null;if(e){this.home=this.createMarkerObj_(e)}this.markers=[];for(var d=0;d<c.length;d++){this.markers.push(this.createMarkerObj_(c[d]))}}MiniMap.prototype.init=function(){this.map=new GMap2(document.getElementById(this.mapId));this.map.disableDragging();this.map.disableDoubleClickZoom();this.map.disableScrollWheelZoom();var d=new GLatLngBounds(this.sw,this.ne);var c=this.map.getBoundsZoomLevel(d);if(c<this.minZoom){c=this.minZoom}else{if(c>this.maxZoom){c=this.maxZoom}}var a=d.getCenter();this.map.setCenter(a,c);if(this.linkTarget){GEvent.addListener(this.map,"click",(function(){location.href=this.linkTarget.evaluate({zoom:this.map.getZoom()})}).bindAsEventListener(this))}if(this.home){this.addMarker_(this.home,"Dein Standort")}for(var b=0;b<this.markers.length;b++){this.addMarker_(this.markers[b])}};MiniMap.prototype.addMarker_=function(b,d){var c={icon:b.icon};if(d){c.title=d}var a=new GMarker(b.latlng,c);if(b.linkTarget){GEvent.addListener(a,"click",(function(e){GEvent.clearListeners(this.map,"click");location.href=e.linkTarget.evaluate({zoom:this.map.getZoom()})}).bind(this,b))}this.map.addOverlay(a)};MiniMap.prototype.addMarkerIcon_=function(a){var c=new GIcon(G_DEFAULT_ICON);var b=a.iconData;if(b){if(b.image){c.image=b.image}if(b.iconSize){c.iconSize=new GSize(b.iconSize.width,b.iconSize.height)}if(b.iconAnchor){c.iconAnchor=new GPoint(b.iconAnchor.x,b.iconAnchor.y)}if(b.shadow){c.shadow=b.shadow}if(b.shadowSize){c.shadowSize=new GSize(b.shadowSize.width,b.shadowSize.height)}if(b.imageMap){c.imageMap=b.imageMap}}a.icon=c};MiniMap.prototype.createMarkerObj_=function(b){var a={latlng:new GLatLng(b[0],b[1]),iconData:b[2],linkTarget:b[3]?new Template(b[3]):null};this.addMarkerIcon_(a);return a};