// JavaScript Document

function load() {
	if (GBrowserIsCompatible()) {
		if(document.getElementById("google_map")){
			var map = new GMap2(document.getElementById("google_map"));
			map.addControl(new GLargeMapControl());

            center = new GLatLng( 55.665193, 15.007324 );
            point = new GLatLng( 53.414136, 14.540577 );
            auto = new GLatLng( 53.5, 14.45 );

			map.addControl(new GOverviewMapControl());
    	    map.setCenter( center, 6 );

            map.openInfoWindowHtml( point, "<b>PolCars</b><br/>ul.Gen. Dabrowskiego 11<br />70-100 Szczecin<br />");

            // Create our "tiny" marker icon
            var autoIcon = new GIcon(G_DEFAULT_ICON);
            autoIcon.image = "http://polcars.dk/images/iconAuto.jpg";
            autoIcon.iconSize = new GSize(25, 25);
		
            // Set up our GMarkerOptions object
            markerOptions = { icon:autoIcon };
            map.addOverlay(new GMarker( auto, markerOptions));
		}
	}
}
