function makeMap() {
	 if (GBrowserIsCompatible()) {	
        //Initialize map object
        var map = new GMap2(document.getElementById("mapContainer"));
        		
		//Set map co-ordinates to RDM location
		map.setCenter(new GLatLng(55.857900, -4.353600), 15);
		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl()); 
        		
		//Add "RDM" marker to map
		var marker = new GMarker(new GLatLng(55.856940, -4.353970));
		map.addOverlay(marker);
        
		//Add event listener to marker
		GEvent.addListener(marker, "click", function() {
            var html = "<p><img src='images/2010_logo.jpg'" +
            "width='173' height='58'/> <br/>" +
            "80 Johnstone Avenue <br/>" +
            "Hillington industrial estate <br/>" + 
		    "Glasgow G52 4NZ <br />" + 
		    "</p>";
		    //Open HTML info window with RDM location details
            marker.openInfoWindowHtml(html);            
        });
    }
    else{
	    //Display location info
//		document.getElementById('companyInfo').innerHTML = "<div stle='width: 100%;'>"+
//		    "<h3 style='width:60%;'>Registered information</h3>" +		    
//            "<p>" + "Resource Data Management Limited" +
//		        "<br />" +
//		        "80 Johnstone Avenue, Hillington" +
//		        "<br />" +
//		        "Glasgow G52 4NZ" +
//		        "<br />" +
//		        "Scotland, United Kingdom" +
//            "</p>" +
//		"</div>"; 
        					
        //Display static map image
		document.getElementById('mapContainer').innerHTML = "<img src='../images/Map2.jpg' alt='Map image'/>";		
	    }
}
window.onload = makeMap;
