//Functions for generating the google map.  Please don't mess with this file.  If you need help
//for modifications, please email Balazs via balazsbagi@gmail.com

function startMap() {
//<![CDATA[
if (GBrowserIsCompatible()) {
      
      	

    
    function createMarker(point,icon,html) {
        var marker = new GMarker(point, {icon:icon,draggable: false});
        GEvent.addListener(marker, "click", function() {
          //marker.openInfoWindowHtml(html);
        });
        return marker;
      }



    
      // Display the map, with some controls and set the initial location 
      var map = new GMap2(document.getElementById("map"));
      map.addControl(new GLargeMapControl3D());
      map.setCenter(new GLatLng( 48.923909,-123.716096), 8);
      map.enableContinuousZoom();
      map.enableScrollWheelZoom();
      map.setMapType(G_PHYSICAL_MAP);
    
      //Create our pushpin icon for the restaurant  
		var iconRed = new GIcon(); 
		    iconRed.image = 'images/pushpin-red.png';
		    iconRed.shadow = 'images/pushpin_shadow.png';
		    iconRed.iconSize = new GSize(32, 32);
		    iconRed.shadowSize = new GSize(64, 33);
		    iconRed.iconAnchor = new GPoint(16, 16);
		    iconRed.infoWindowAnchor = new GPoint(22, 2);
		    
		    
	  //Create the P icon for the car parks	    
		var iconPark = new GIcon(); 
		iconPark.image = 'images/parking_32.gif';
		iconPark.iconSize = new GSize(32, 32);
		iconPark.shadowSize = new GSize(64, 33);
		iconPark.iconAnchor = new GPoint(9, 31);
		iconPark.infoWindowAnchor = new GPoint(22, 2);
    
    
		
		
	
		
	//Add the second Car Park	
	  var point = new GLatLng(48.9276767,-123.7168892);
	  var html = "";
         
      var carpark = createMarker(point,iconPark,html);
		map.addOverlay(carpark);	
		
		
	


    // display a warning if the browser was not compatible
} else {
      alert("Sorry, the Google Maps API is not compatible with this browser");
    }
    

  //]]>
  

}
//END LOAD	