/* 
  ------------------------------------
  Drop-Down Menu
  ------------------------------------
*/
function DropDownMenu(){ 
 if(navigator.appVersion.indexOf("MSIE")==-1){return;}
 var i,k,g,lg,r=/\s*hvr/,nn='',c,cs='hvr',bv='menubar';
 for(i=0;i<10;i++){g=document.getElementById(bv+nn);if(g){
 lg=g.getElementsByTagName("LI");if(lg){for(k=0;k<lg.length;k++){
 lg[k].onmouseover=function(){c=this.className;cl=(c)?c+' '+cs:cs;
 this.className=cl;};lg[k].onmouseout=function(){c=this.className;
 this.className=(c)?c.replace(r,''):'';};}}}nn=i+1;}
}

/* 
  ------------------------------------
  Google Map
  ------------------------------------
*/

/* Initialise and load fiunction for DropDown Menu. */
function init(){
	load();
	DropDownMenu();
    }

function load() {
	//check the browser for compatability
	if (GBrowserIsCompatible()) {
		//makes a new map and places it in div map also uses div map size for map
		var map = new GMap2(document.getElementById("map"));
		//this gives you the pan and zoom in and out controls
		map.addControl(new GSmallMapControl());
		//this gives you hybrid satellite and standard choices
		map.addControl(new GMapTypeControl());
		//the maps centre using lattitude and longitude also 16 is zoom facter
		map.setCenter(new GLatLng(-32.195490, 115.788790), 14);
		// Creates a marker at the given point with the given number label
		var point = new GLatLng(-32.195490, 115.788790);
		var marker = new GMarker(point);
		
		 function createMarker(point, marker) {
			GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml("Australis Pavestone <br />49 Lionel St<br />Naval Base WA 6165");
				});
				return marker;
            }
            map.addOverlay(createMarker(point, marker));
            marker.openInfoWindowHtml("Australis Pavestone <br />49 Lionel St<br />Naval Base WA 6165");
		
	}
}