function initialize()
	{
	if (GBrowserIsCompatible())
		{
		var map = new GMap2(document.getElementById("map_canvas"));
		var geocoder = new GClientGeocoder();
		
		map.removeMapType(G_HYBRID_MAP); // Larry added 21-01-2010
		map.addMapType(G_PHYSICAL_MAP); // Larry added 21-01-2010
		
		map.addControl(new GMapTypeControl());
		//map.addControl(new GLargeMapControl3D()); // Larry removed 21-01-2010
		map.addControl(new GSmallZoomControl3D()); // Larry added 21-01-2010
		
		
		/*
		var blueIcon = new GIcon();
		blueIcon.image = "http://bloo.com.au/img/icons/blue2.png";
		blueIcon.iconSize = new GSize(20, 34);
		*/
	  	var blueIcon = new GIcon(G_DEFAULT_ICON);
	  	blueIcon.image = '/img/map_search/_default/image.png';
	  	blueIcon.shadow = '/img/map_search/_default/shadow.png';
	  	blueIcon.iconSize = new GSize(45,45);
	  	blueIcon.shadowSize = new GSize(68,45);
	    blueIcon.iconAnchor = new GPoint(23,45);
	  	blueIcon.infoWindowAnchor = new GPoint(23,0);
	  	blueIcon.printImage = '/img/map_search/_default/printImage.gif';
	  	blueIcon.mozPrintImage = '/img/map_search/_default/mozPrintImage.gif';
	  	blueIcon.printShadow = '/img/map_search/_default/printShadow.gif';
	  	blueIcon.transparent = '/img/map_search/_default/transparent.png';
	  	blueIcon.imageMap = [30,1,33,2,34,3,35,4,36,5,37,6,37,7,38,8,38,9,38,10,38,11,38,12,38,13,38,14,38,15,38,16,38,17,38,18,38,19,37,20,37,21,37,22,36,23,36,24,35,25,35,26,34,27,33,28,33,29,32,30,31,31,30,32,29,33,27,34,26,35,25,36,25,37,24,38,24,39,24,40,23,41,23,42,22,42,21,41,21,40,20,39,20,38,19,37,19,36,18,35,17,34,15,33,14,32,13,31,12,30,12,29,11,28,10,27,10,26,9,25,9,24,8,23,8,22,7,21,7,20,6,19,6,18,6,17,6,16,6,15,6,14,6,13,6,12,6,11,6,10,6,9,6,8,6,7,7,6,8,5,8,4,9,3,11,2,14,1];
		
		
		if(gLat && gLng)
			{
			var point = new GLatLng(gLat, gLng);
			map.setCenter(point, 14);
			
			/*
			blueIcon.iconAnchor = point;
			//blueIcon.iconAnchor = new GPoint(10,34);
		  	blueIcon.iconAnchor = new GPoint(23,45);
		  	*/
										
			markerOptions = { icon:blueIcon };
			var marker = new GMarker(point,markerOptions);
			map.addOverlay(marker);
			}
		else
			{
			geocoder.getLatLng(address,function(point)
				{
				if (!point)
					{
					$('.panel-btn-map').attr("class","panel-btn-map-disabled");
					alert(address + " not found");
					}
				else
					{
					map.setCenter(point, 14);
					/*
					blueIcon.iconAnchor = point;
					//blueIcon.iconAnchor = new GPoint(10,34);
				  	blueIcon.iconAnchor = new GPoint(23,45);
				  	*/
					
					markerOptions = { icon:blueIcon };
					var marker = new GMarker(point,markerOptions);
					map.addOverlay(marker);
					}
				});
			}
		}
	
	
	if ($('#gallery').attr("rev")=="no_slide")
		$('.panel-btn-map').addClass('active');
	else if (mapHide)
		$('#map_canvas').css("display","none");
	}
