//<![CDATA[	
		
	
	function load() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map"));
		map.addControl(new GLargeMapControl());  //Enable if you want the large Zoom features
		//map.addControl(new GMapTypeControl());	//Enable if you want the buttons saying MAP | SATTELITE | HYBRID
		//map.addControl(new GSmallMapControl()); //Enable for small zoom feature
		//map.addControl(new GScaleControl());	//Enable for Scale ruler
		map.setCenter(new GLatLng(54.954544, -4.199587), 5);
		
		var icon = new GIcon();
		/* Large Icon*/
		
		icon.image = "/img/reskin/pointer.png";
		icon.iconSize = new GSize(24, 33);
		icon.shadowSize = new GSize(22, 20);
		icon.iconAnchor = new GPoint(12, 33);
		icon.infoWindowAnchor = new GPoint(12, 12);
		/*SMALL ICON */
		/*
		icon.image = "/img/reskin/pointer3.png";
		//icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
		icon.iconSize = new GSize(11, 15);
		icon.shadowSize = new GSize(11, 15);
		icon.iconAnchor = new GPoint(5, 15);
		*/
		
		//icon.infoWindowAnchor = new GPoint(5, 1);
		GDownloadUrl("../xml/data.xml", function(data, responseCode) {  
		var xml = GXml.parse(data);  
		//alert(data)
		var markers = xml.documentElement.getElementsByTagName("marker");  
		for (var j = 0; j < markers.length; j++) {
			var point = new GLatLng(parseFloat(markers[j].getAttribute("lat")), parseFloat(markers[j].getAttribute("lng")));
			var officeContent = markers[j].getAttribute("officeContent");
			
				map.addOverlay(createMarker(point,j,officeContent,icon));
			}
			}
		);	

        map.setZoom(zoomLevel);
      }
    }
	
	// Creates a marker at the given point with the given number label
	function createMarker(point, number, officeContent, icon) { 
	

	
	
	var marker = new GMarker(point,icon);  
	GEvent.addListener(marker, "click", function() {
		 marker.openInfoWindowHtml("" + officeContent +"");  });  
	return marker;
	}
	
//]]>	