google.load("maps", "2",{"other_params":"sensor=true"});
function initialize() {
    var geoXml;
    if (GBrowserIsCompatible()) {
      
        // Create and Center a Map
        var opts = {
            googleBarOptions : {
                style : 'new'
            }
        }
        
        map = new GMap2(document.getElementById("map"), opts);
        map.setCenter(new GLatLng(7.082773333333333,  125.61083333333333), 13);
        map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());
        map.enableGoogleBar();
        
        //        var latlng = new google.maps.LatLng(-34.397, 150.644);
        //        var myOptions = {
        //            zoom: 8,
        //            center: latlng,
        //            mapTypeId: google.maps.MapTypeId.ROADMAP
        //        };
        //        map = new google.maps.Map(document.getElementById("map_canvas"), myOptions, opts);
        //        map.enableGoogleBar();
        // Create a base icon for all of our markers that specifies the
                    
        var center = new GLatLng(7.0579581260681, 125.5675582885742);
        map.setCenter(center, 5);
        
        var baseIcon = new GIcon(G_DEFAULT_ICON);
        var marker = new GMarker(center, {draggable: false});

        GEvent.addListener(marker, "click", function() {
            marker.openInfoWindowHtml("<img src=\"http://www.greppoo.com/greppoomidtm.png\" width=\"314\" height=\"72\"  alt=\"Greppoo Inc\">\n\
                                      </br>Offers \"Online GPS Tracking Service\" for Tourist and Travelers\n\
                                      </br>\n\
                                      </br>Further inquiries please contact:\n\
                                      </br>Business Tel#: (+63 082) 3034115\n\
                                      </br>Globle Lines#: (+63 082) 3210320\n\
                                      </br>\n\
                                      </br>Email: info@greppoo.com\n\
                                      </br>Website: <a href=\"http://www.greppoo.com\"> www.greppoo.com</a>"
                                  );
        });

        map.addOverlay(marker);            
        // bind a search control to the map, suppress result list
        map.addControl(new google.maps.LocalSearch(), new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(10,20)));
    }
}
GSearch.setOnLoadCallback(initialize);

