// Google Map JS - Sets content for the information window
var WINDOW_HTML = '<div id="gMap_style"><h1>APAC Shared Services Week 2010</h1><hr /><p><strong>Star City</strong><br />80 Pyrmont St<br />Pyrmont NSW 2009, Australia</p></div>';

// Check to see if browser is compatible and then run map script
function loadgMap() {
	if (GBrowserIsCompatible()) {	
	var map = new GMap2(document.getElementById("gMap"));
	
	// Add zoom controls for map
	map.addControl(new GSmallMapControl());
	
	// Add type controls for map
	map.addControl(new GMapTypeControl());
	
	// Set position for map
	map.setCenter(new GLatLng(-33.8689, 151.1952), 13);
	
	// Define custom icon, size and position
	var icon = new GIcon(); icon.image = "images/GMap/gmap_icon.png";
	icon.iconSize = new GSize(68, 73);
	icon.iconAnchor = new GPoint(0, 0);
	icon.infoWindowAnchor = new GPoint(30,38);
	
	// Add custom icon / marker with position pn map
	var marker = new GMarker(new GLatLng(-33.8689, 151.1952), icon);
	map.addOverlay(marker);
	
	// Add information window to map
	GEvent.addListener(marker, "click", function() {
	marker.openInfoWindowHtml(WINDOW_HTML);
	});
	marker.openInfoWindowHtml(WINDOW_HTML);			
	}
}
