/*
 function initialize() 
{
	if (GBrowserIsCompatible()) 
	{
	
		var map = new GMap2( document.getElementById("map"));
		map.setCenter(new GLatLng( 28.00926790449378, -96.36039733886719 ), 9);
		map.addControl( new GSmallMapControl() );
		map.setMapType( G_SKY_VISIBLE_MAP );
	}
}

google.setOnLoadCallback(initialize);

google.load("maps", "2");
*/


/**
 * Creates the Google Map for the Area Map section of the site.
 **/

$( document ).ready(				  
    function()
    {
        // -- Image Icon
        var address     = "50 Bridge Street, Brooklyn, NY 11201";
        var geocoder    = new google.maps.Geocoder();
        
        // -- Options
        var myOptions   = {
            zoom                : 15,
            mapTypeId           : google.maps.MapTypeId.TERRAIN,
            navigationControl   : false,
            mapTypeControl      : false,
            scaleControl        : false,
            scrollwheel         : false
        }

        // -- Instatiate Map
        var map = new google.maps.Map( document.getElementById( "map" ), myOptions );

        geocoder.geocode( { 'address': address }, function( results, status )
        {
            if( status == google.maps.GeocoderStatus.OK )
            {
                map.setCenter( results[0].geometry.location );
                /*var marker = new google.maps.Marker(
                    {
                        map         : map, 
                        position    : results[0].geometry.location
                    }
                );*/
            }
            else
            {
                alert( "Geocode was not successful for the following reason: " + status );
            }
        });
    }
);
