function getMenu(flashMenuExists) {
	if (flashinstalled == 2) {
		if (flashversion>=8) {
			if(flashMenuExists=="true") {
				getFlashMenu();
			} else {
				showHtmlMenu();
			}
		} else {
			showHtmlMenu();			
		}
	} else {
		showHtmlMenu();			
	}
}

function getFlashMenu() {
	document.write('<object type="application/x-shockwave-flash" data="flash/menu.swf" width="150" height="225">\n');
  document.write('<param name="movie" value="flash/menu.swf" />');
  document.write('<param name="bgcolor" value="#000000"/>');
  document.write('</object>\n');
}

function getGallery() {
	document.write('<object type="application/x-shockwave-flash" data="flash/gallery.swf" width="750" height="525">\n');
  document.write('<param name="movie" value="flash/gallery.swf" />');
  document.write('<param name="bgcolor" value="#FFFFFF"/>');
  document.write('</object>\n');
}

function showHtmlMenu() {
	document.getElementById('htmlMenu').style.display = "block";
	document.getElementById('flashMenu').style.display = "none";
}

function loadMap() {
	var latitude = 33.148610;
	var longitude = -117.193919 ;
	if (GBrowserIsCompatible()) {
 		var map = new GMap2(document.getElementById("map"));
		map.addControl(new GSmallMapControl());
		map.addControl(new GMapTypeControl());
		map.setCenter(new GLatLng(latitude,longitude), 13);

		// Create marker icon
		var icon = new GIcon();
		icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
		icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
		icon.iconSize = new GSize(12, 20);
		icon.shadowSize = new GSize(22, 20);
		icon.iconAnchor = new GPoint(6, 20);
		icon.infoWindowAnchor = new GPoint(5, 1);

		var point = new GLatLng(latitude,longitude);
                       					
	  map.addOverlay(new GMarker(point, icon));
	}
}
