var curMarkerURLNAME;var curMarkerURL;var curMarkerType="locations";var curInfoDiv;var Marker_callback;var minInfoDiv=document.createElement("div");minInfoDiv.style.display="none";minInfoDiv.style.position="absolute";minInfoDiv.style.background="#fff";minInfoDiv.style.padding="5px";minInfoDiv.style.margin="5px";minInfoDiv.style.zIndex=50000;minInfoDiv.style.border="1px solid #ccc";minInfoDiv.style.textAlign="left";minInfoDiv.style.fontWeight="bold";var extInfoDiv=document.createElement("div");extInfoDiv.style.display="none";extInfoDiv.style.position="absolute";extInfoDiv.style.background="#fff";extInfoDiv.style.padding="5px";extInfoDiv.style.margin="5px";extInfoDiv.style.zIndex=50000;extInfoDiv.style.border="1px solid #ccc";extInfoDiv.style.textAlign="left";var MarkerAjaxObject={handleSuccess:function(a){if(a.responseText!==undefined){curInfoDiv.innerHTML=a.responseText}},handleFailure:function(a){},startRequest:function(){YAHOO.util.Connect.asyncRequest("POST",curMarkerURL+"/marker_info.html",Marker_callback,"")}};Marker_callback={success:MarkerAjaxObject.handleSuccess,failure:MarkerAjaxObject.handleFailure,scope:MarkerAjaxObject};function getAbsLeft(b){var a=b.offsetLeft;while(b.offsetParent!==null){a+=b.offsetParent.offsetLeft;b=b.offsetParent}return a}function getAbsTop(b){var a=b.offsetTop;while(b.offsetParent!==null){a+=b.offsetParent.offsetTop;b=b.offsetParent}return a}function getMPos(g,h){var a,e,c,f,d,b;a=overlay.getProjection().fromContainerPixelToLatLng(new google.maps.Point(0,0));e=overlay.getProjection().fromLatLngToDivPixel(a);c=overlay.getProjection().fromLatLngToDivPixel(h);b=document.getElementById("googlemap");if(b===null){b=document.getElementById("googlesearchmap")}f=getAbsTop(b)-e.y+c.y;d=getAbsLeft(b)-e.x+c.x-5;return{top:f,left:d}}function showClickInfo(a,c){var b;c.innerHTML="";MarkerAjaxObject.startRequest();curInfoDiv=c;document.body.appendChild(c);b=getMPos(map,a.getPosition());c.style.top=b.top-50+"px";c.style.left=b.left+15+"px";c.style.display="block"}function showHoverInfo(a,d,c){var b;d.style.width="auto";d.innerHTML=c;document.body.appendChild(d);b=getMPos(map,a.getPoint());d.style.top=b.top-(a.getIcon().iconAnchor.y+0)+"px";d.style.left=b.left+(a.getIcon().iconSize.width-a.getIcon().iconAnchor.x-2)+"px";d.style.display="block"}function hideHoverInfo(a){a.style.display="none"};
