// JavaScript Document
	var mapDefinitionURL = 'undefined';

	function loadGMapXML(fileLocation)
	{
		if (GBrowserIsCompatible()) {
		  // A function to create the marker and set up the event window
		  function createMarker(point,html) {
			var marker = new GMarker(point);
			GEvent.addListener(marker, "click", function() {
			  marker.openInfoWindowHtml(html);
			});
			return marker;
		  }


		  // create the map
		  var mapDiv = document.getElementById("map");
		  // Resize the div
		  mapDiv.style.height="300px";
		  mapDiv.style.width="500px";
		  var map = new GMap2(mapDiv);
		  map.addControl(new GLargeMapControl());
		  map.addControl(new GMapTypeControl());
		  // Read the data from example.xml
		  var request = GXmlHttp.create();
		  request.open("GET", fileLocation, true);
		  request.onreadystatechange = function() {
			if (request.readyState == 4) {
			  var xmlDoc = request.responseXML;

			  // Get the mapinfo from the xml document
			  var mapInfo = xmlDoc.documentElement.getElementsByTagName("mapinfo")[0];
			  var mapCenter = new GLatLng( parseFloat(mapInfo.getAttribute("lat")), parseFloat(mapInfo.getAttribute("lng")));
			  var zoom = parseInt(mapInfo.getAttribute("zoom"));
			  // Center and zoom the map
			  map.setCenter( mapCenter, zoom);
			  
			  // Set the map type
			  var mapType = mapInfo.getAttribute("mapType");
			  if (mapType == 'SATELLITE') {
			      map.setMapType(G_SATELLITE_MAP);
				  }
			  else if (mapType == 'HYBRID') {
			  	   map.setMapType(G_HYBRID_MAP);
				  }
			  else {
			  	  map.setMapType(G_NORMAL_MAP); 
				  }

			  // obtain the array of locations and loop through it
			  var locations = xmlDoc.documentElement.getElementsByTagName("location");

			  for (var i = 0; i < locations.length; i++) {
				// obtain the points lng and lat for each location
				var pointElem = locations[i].getElementsByTagName("point")[0];
				
				var lat = parseFloat(pointElem.getAttribute("lat"));
				var lng = parseFloat(pointElem.getAttribute("lng"));
				var point = new GLatLng(lat,lng);
				// Get the Html and Label attributes
				var html = GXml.value(pointElem.getElementsByTagName("infowindow")[0]);
				// create the marker
				var marker = createMarker(point,html);
				map.addOverlay(marker);
			  }
			}
		  }
		  request.send(null);
		}

		else {
		  alert("Sorry, the Google Maps API is not compatible with this browser");
		}
	}
	
	<!-- Macromedia stuff -->
	function MM_findObj(n, d) { //v4.01
	  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
		d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
	  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
	  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
	  if(!x && d.getElementById) x=d.getElementById(n); return x;
	}
	function MM_swapImage() { //v3.0
	  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
	   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
	}
	function MM_swapImgRestore() { //v3.0
	  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
	}
	
	function MM_preloadImages() { //v3.0
	 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
	   var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
	   if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
	}
	
	function right(e) {
	var msg = 'This image is the exclusive property of Gary & Sarah Frost and is protected under the United States and International Copyright laws.\n'+
	  'Please see the copyright page for full details.\n\n' +
	  'Please use the \'buy print\' to buy a print copy of the image\n' +
	  'If you would like to use this image in your website, magazine or any publication please contact us through the license enquiry page\n\n' +
	  'Thank you, Darshama.net';
	
	if (navigator.appName == 'Netscape' && e.which == 3) {
	alert(msg);
	return false;
	}
	if (navigator.appName == 'Microsoft Internet Explorer' && event.button==2) {
	alert(msg);
	return false;
	}
	else return true;
	}
	
	function trapImageClicks() 
	  {
	  if(document.images)
		{
		for(i=0;i<document.images.length;i++)
		  {
		  document.images[i].onmousedown = right;
		  document.images[i].onmouseup = right;
		  }
		}
	  }
	  
	  function trapSelect()
	  {
		 document.onselectstart=new Function ("return false");
		 document.ondragstart=new Function ("return false");
			  
	  }
	  
	  function doStartup()
	  {
		  trapImageClicks();
		  trapSelect();
		  MM_preloadImages('/img/buttons/firstButton_f2.gif','/img/buttons/prevButton_f2.gif','/img/buttons/licenseButton_f2.gif','/img/buttons/buyButton_f2.gif','/img/buttons/nextButton_f2.gif','/img/buttons/lastButton_f2.gif');
		  if (mapDefinitionURL != 'undefined') {
			loadGMapXML(mapDefinitionURL);
			}
	  }
