jquery(function() { if (gbrowseriscompatible()) { var map = new gmap2(document.getelementbyid('map')); var marker = new gmarker(new glatlng(mylatitude, mylongitude)); var html = "
"+temphtml+"
"; map.setcenter(new glatlng(mylatitude, mylongitude), 15); map.addcontrol(new glargemapcontrol()); map.addcontrol(new gscalecontrol()); map.addcontrol(new goverviewmapcontrol()); map.addoverlay(marker); marker.openinfowindowhtml(html); gevent.addlistener(marker, 'click', function() { var div=document.createelement("div"); div.innerhtml=html; marker.openinfowindow(div); } ); } });