var map;var x,y;var startzoom=10;var tinyIcon=new GIcon();var myajax=null;var actMarker;document.onmousemove=setCoords;var mapID="map";try{myajax=new ActiveXObject("Microsoft.XMLHTTP")}catch(Error){try{myajax=new ActiveXObject("MSXML2.XMLHTTP")}catch(Error){try{myajax=new XMLHttpRequest()}catch(Error){alert("Fehler beim Erzeugen des Request-Objekts")}}}tinyIcon.image="http://www.mydays.de/img/icon_googlemaps.png";tinyIcon.shadow="http://www.mydays.de/img/icon_googlemaps_shadow.png";tinyIcon.iconSize=new GSize(46,37);tinyIcon.iconAnchor=new GPoint(8,32);tinyIcon.infoWindowAnchor=new GPoint(46,0);var markerOptions={icon:tinyIcon};function load(){if(typeof(pageLoad)=="function"){pageLoad()}if(typeof(alternativeMap)=="function"){alternativeMap()}}function setCoords(a){if(a){x=a.pageX;y=a.pageY}else{if(window.event){x=window.event.clientX;y=window.event.clientY}}}function startGoogleMaps(d,b,c,a){if(GBrowserIsCompatible()){map=new GMap2(document.getElementById(mapID));map.setCenter(new GLatLng(d,b),c);if(a=="true"){map.addControl(new GLargeMapControl());map.addControl(new GMapTypeControl())}else{map.addControl(new GSmallMapControl())}}}function insertMarkerMouseOver(d,b,c){var e=new GLatLng(d,b);var a=new GMarker(e,markerOptions);GEvent.addListener(a,"mouseover",function(){tooltip("over",c,300)});GEvent.addListener(a,"mouseout",function(){tooltip("out","","")});map.addOverlay(a)}function tooltip(c,a,b){var d=document.getElementById("tooltip");if(c=="out"){d.style.display="none"}else{d.style.width=b+"px";d.innerHTML=a;d.style.display="block";d.style.top=(y-50)+"px";if(x>document.body.clientWidth-b-16){d.style.left=(x-b)+"px"}else{d.style.left=(x+0)+"px"}}}function insertMarker(c,b){var d=new GLatLng(c,b);var a=new GMarker(d,markerOptions);map.addOverlay(a)}function updateSmartboxCities(b,d,c){var a="/requests/getSmartboxCities.php?smartbox="+b;if(d!=""){a=a+"&subcategoryid="+d}else{for(i=1;i<=c;i++){if(document.getElementById("sidebarEntry_"+i).className.substr(document.getElementById("sidebarEntry_"+i).className.length-4,4)=="Grey"){document.getElementById("sidebarEntry_"+i).className="entryNormalGrey"}else{document.getElementById("sidebarEntry_"+i).className="entryNormal"}}}myajax.open("get",a,true);myajax.onreadystatechange=handleUpdateSmartboxCities;myajax.send(null)}function handleUpdateSmartboxCities(){if(myajax.readyState==4){map.clearOverlays();result=myajax.responseText;markers=result.split(";;;--;;;");for(i=0;i<markers.length;i++){temp=markers[i].split(";;-;;");createMarkerMouseOverAndClick(temp[0],temp[1],'<div style="float:left; height: 32px;">'+temp[2]+'</div><div style="float: left; padding: 2px; height: 32px; vertical-align: top; font-weight: bold;">'+temp[3]+"</div>",temp[4])}}}function hoverActualEntry(b,a){for(i=1;i<=a;i++){if(document.getElementById("sidebarEntry_"+i).className.substr(document.getElementById("sidebarEntry_"+i).className.length-4,4)=="Grey"){document.getElementById("sidebarEntry_"+i).className="entryNormalGrey"}else{document.getElementById("sidebarEntry_"+i).className="entryNormal"}}if(document.getElementById("sidebarEntry_"+b).className.substr(document.getElementById("sidebarEntry_"+b).className.length-4,4)=="Grey"){document.getElementById("sidebarEntry_"+b).className="entryHoverGrey"}else{document.getElementById("sidebarEntry_"+b).className="entryHover"}}function createClickBox(d,c,a){var e=new GLatLng(d,c);var b=new GMarker(e,markerOptions);GEvent.addListener(b,"click",function(){map.openInfoWindowHtml(e,a)});map.addOverlay(b)}function createMarkerMouseOverAndClick(e,b,c,d){var f=new GLatLng(e,b);var a=new GMarker(f,markerOptions);GEvent.addListener(a,"click",function(){map.openInfoWindowHtml(f,d)});GEvent.addListener(a,"mouseover",function(){tooltip("over",c,300)});GEvent.addListener(a,"mouseout",function(){tooltip("out","","")});map.addOverlay(a)};
