    
    var map = null;
    var geocoder = null;
    var address = null;
    var infoWindowText = null;
	
     function addLoadEvent(func) {   
       var oldonload = window.onload;   
       if (typeof window.onload != 'function') {   
         window.onload = func;   
       }else {   
           window.onload = function() {   
             oldonload();   
             func();   
          }   
        }  
     } 
    
   
     function initLoader() 
     {  
        	//var script = document.createElement("script");          
	//script.src = "http://www.google.com/jsapi?key=ABQIAAAAAeXmqxh0OjrmWu5KTdsTsRR-ab4ovFFjXaQP1x3TLeiJXRcclBRHgkx1gvBDcfPCgbItTTtsQhNhZw";
        	//script.type = "text/javascript";  
        	//document.getElementsByTagName("head")[0].appendChild(script);
     }

    function MapsOnLoad()
    {
	google.load("maps", "2.x", {"callback" : initializeMaps});
    }


    function initializeMaps() {
     if (GBrowserIsCompatible()) {
        map = new GMap2(document.getElementById("map_canvas"));
        map.addControl(new GSmallMapControl());
        map.addControl(new GMapTypeControl());
	map.removeMapType(G_SATELLITE_MAP);
	map.removeMapType(G_HYBRID_MAP);
	map.removeMapType(G_NORMAL_MAP);
        geocoder = new GClientGeocoder();
        showAddress();
      }
    }
    
function showAddress()
{
   if(address)
   {
    if (geocoder) {
     geocoder.getLatLng(
       address,
       function(point) {
         if (!point) {
           alert(address + " not found");
         } else {
           map.setCenter(point, 15);
           var marker = new GMarker(point);
           map.addOverlay(marker);
	   map.getContainer().style.overflow="hidden"; 	   /*Stops the copyright overflow*/
           marker.openInfoWindowHtml(infoWindowText);
         }
       }
     );
    }
  }
}



     

