function initialize_google_map() {
  if(GBrowserIsCompatible()) {
    var google_map = new GMap2(document.getElementById('google_map'));
		google_map.setMapType(G_SATELLITE_MAP);
    google_map.addControl(new GSmallZoomControl());
    google_map.checkResize();
	  google_map.setCenter(new GLatLng(-28.588527, 133.505859), 4);

		var baseIcon = new GIcon();
		baseIcon.shadow = "/images/icons/shadow.png";
		baseIcon.iconSize = new GSize(32.0, 37.0);
		baseIcon.shadowSize = new GSize(51.0, 37.0);
		baseIcon.iconAnchor = new GPoint(16.0, 18.0);
		baseIcon.infoWindowAnchor = new GPoint(16, 18);
		
		function createMarker(point, name, info) {
			var icon = new GIcon(baseIcon);
			icon.image = "/images/icons/" + name + ".png";
			
			var marker = new GMarker(point, icon);
			GEvent.addListener(marker, "click", function() {
				marker.openInfoWindowHtml(info, {maxWidth:250});
			});
			return marker;
		}
		
		google_map.addOverlay(createMarker(new GLatLng(-26.059867, 128.933486), 'ni', "<h3><a href='/operations/wingellina-nickel/'>Wingellina Nickel</a></h3><p>The huge world class Wingellina Nickel project hosts a resource of over 180Mt at 1% Ni including 167Mt as measured and indicated. Feasibility studies have shown a project capable of producing 40,000tpa of nickel and 3,500tpa of cobalt with an initial mine life of 40 years.</p><p>More about: <a href='/operations/wingellina-nickel/'>Wingellina Nickel</a></p>"));
		
		google_map.addOverlay(createMarker(new GLatLng(-30.672495, 115.702932), 'p2', "<h3><a href='/operations/strategic-investments/'>Agaton Phosphate</a></h3><p>Agaton is a phosphate sands project located between the town of Moora and the Cooljaroo Mineral Sands areas approximately 120km north of Perth. Metals X holds 75% of the Agaton Phosphate Project.</p><p>More about our: <a href='/operations/strategic-investments/'>Strategic Investments</a></p>"));

		google_map.addOverlay(createMarker(new GLatLng(-21.7925, 135.403889), 'p2', "<h3><a href='/operations/strategic-investments/'>Territory Phosphate</a></h3><p>A significant portfolio of phosphate projects in the Georgina and Wiso Basins in the Northern Territory. These projects have  excellent potential for the discovery of an economic deposit. Metals X's interest in Territory Phosphate is through Aragon Resources</p><p>More about our: <a href='/operations/strategic-investments/'>Strategic Investments</a></p>"));
		
		google_map.addOverlay(createMarker(new GLatLng(-16.329722, 144.877778), 'w', "<h3>Vital Metals Tungsten</h3><p>Vital is an aspiring Tungsten Producer with a large high-grade tungsten resource (15.1Mt @ 0.46%WO3) at its Watershed Project located in the Mt Carbine region of Far North Queensland. Metals X has an interest in Vital Metals through Aragon Resources.</p><p>More about: <a href='/operations/strategic-investments/'>Strategic Investments</a></p>"));
		
		google_map.addOverlay(createMarker(new GLatLng(-15.740710, 145.232391), 'sn', "<h3>Collingwood Tin Project</h3><p>Located near Cooktown in Queensland the Collingwood Tin Project was placed on care and maintenance in 2008 by Metals X.</p>"));
		
		google_map.addOverlay(createMarker(new GLatLng(-31.198056, 121.795833), 'ni', "<h3><a href='/operations/strategic_investments'>Aragon Resources Nickel</a></h3><p>The Kambalda region is prospective for both orogenic gold and massive Ni sulphide mineralisation and has a history of extensive production from mines such as Long and Beta-Hunt. Metals X has an interest in the area through Aragon Resources</p><p>More about our: <a href='/operations/strategic_investments'>Strategic Investments</a></p>"));
		
		google_map.addOverlay(createMarker(new GLatLng(-27.806389, 121.2675), 'au', "<h3><a href='/operations/strategic_investments'>Aragon Resources Gold</a></h3><p>Located just 7km north of the Darlot Gold Mine in the gold rich Yandal Belt of Western Australia the Mission and Cables Prospects are in a zone of structural deformation extending north from the Darlot Gold Mine. Metals X has an interest in these projects through Aragon Resources</p><p>More about our: <a href='/operations/strategic_investments'>Strategic Investments</a></p>"));
		
		google_map.addOverlay(createMarker(new GLatLng(-19.694314, 134.187012), 'au', "<h3><a href='/operations/strategic_investments'>Westgold Resources</a></h3><p>Westgold is targeting high grade gold and copper deposits similar to the historical mines of the Tennant Creek Goldfield renowned for its exceptional high grade gold and copper mines.</p><p>More about our: <a href='/operations/strategic_investments'>Strategic Investments</a></p>"));
		
		google_map.addOverlay(createMarker(new GLatLng(-41.7968, 145.4309), 'sn', "<h3><a href='/operations/tasmanian-tin/'>Renison &amp; Mt Bischoff Mines</a></h3><p>Located on the West Coast of Tasmanian, Metals X's Tasmanian Tin assets represent the cornerstone of Australia's hard rock tin industry. Metals X produces approximately 2.5% of the global supply of tin from its Tasmanian tin operations.</p><p>Find out more about: <a href='/operations/tasmanian-tin/'>Tasmanian Tin</a></p>"));

  } 
}

if (typeof window.onload != 'function') {
  window.onload = initialize_google_map;
} else {
  old_before_google_map = window.onload;
  window.onload = function() {
    old_before_google_map();
    initialize_google_map();
  }
}
if (typeof window.onunload != 'function') {
  window.onunload = GUnload;
} else {
  old_before_onunload = window.onload;
  window.onunload = function() {
    old_before_onunload();
    GUnload();
  }
}