var myVariable;
function delay() {
	myVariable = window.setTimeout('showdefault()',1500);
}

function stopdelay() {
	window.clearTimeout(myVariable);
}

function multimouseover() {
	stopdelay();
	hideActiveMenus();
	MM_clearTimeout();
}

function actionSubmit(){
	var val=document.form1.txtKeyWord.value;
	if(val.length<3 || val=="Type Keyword Here"){
		alert("Please enter at least 3 characters to search.");
		return false;
	}
}

function quicklink() {
	var url;
	url = document.form1.quicklinks.value;
	if (url != "") {
		//location.replace(url);
		if (url == "http://www.sentosacove.com.sg/")
			window.open(url);
		else
			window.location=url;

	}
}
function quicklink2() {
	var url;
	url = document.form2.quicklinks.value;
	if (url != "") {
		//location.replace(url);
		if (url == "http://www.sentosacove.com.sg/")
			window.open(url);
		else
			window.location=url;

	}
}

function openpopup(popurl){
	var winpops=window.open(popurl,"","width=800,height=600,scrollbars")
}

function openpopup_parking(popurl){
	var winpops=window.open(popurl,"","width=565,height=511,parking")
}

function openpopup_map(popurl){
	var winpops=window.open(popurl,"","width=733,height=482,map")
}

function openpopup_ferryschedule(popurl){
	var winpops=window.open(popurl,"","width=520,height=420,schedule")
}

function openpopup_imbiahwinners(popurl){
	var winpops=window.open(popurl,"","width=648,height=635,winner")
}

function validate_contactus() {
	
	// salutation
	if (trimString(document.form1.salutation.value) == ""){
		alert("Please check that you have select salutation.");
		document.form1.salutation.focus();
		return false;	
	}
	
	// firstname
	if (trimString(document.form1.name.value) == ""){
		alert("Please check that you have entered a proper first name.");
		document.form1.name.focus();
		return false;		
	}
	
	// lastname
	if (trimString(document.form1.name2.value) == ""){
		alert("Please check that you have entered a proper last name.");
		document.form1.name2.focus();
		return false;		
	}

	// contact no
	if (trimString(document.form1.contactno.value) == "" || !isValidNumber(document.form1.contactno.value)){
		alert("Please check that you have entered a valid contact number.");
		document.form1.contactno.focus();
		return false;
	}
	
	// email address
	if (trimString(document.form1.email.value) == "" || !isValidEmail(document.form1.email.value)){
		alert("Please check that you have entered a valid email.");
		document.form1.email.focus();
		return false;
	}
	
	// country
	if (trimString(document.form1.country.value) == "Please Select One"){
		alert("Please check that you have select country of residence.");
		document.form1.country.focus();
		return false;	
	}
	
	// feedback
	if (trimString(document.form1.feedback.value) == ""){
		alert("Please check that you have type in your feedback.");
		document.form1.feedback.focus();
		return false;
	}
	
	document.form1.action="/about_us/contactus/contactus.php";
	//document.form1.submit();
	return true;
}

function reset_contactus() {
	document.form1.name.value = "";
	document.form1.name2.value = "";
	document.form1.contactno.value = "";
	document.form1.email.value = "";
	document.form1.country.value = "Please Select One";
	document.form1.feedback.value = "";
	document.form1.enewsletter.checked = false;
	return false;
}

function validate_movbeach() {
	
	// answer
	if (trimString(document.form1.answer.value) == ""){
		alert("Please check that you have type in your answer.");
		document.form1.answer.focus();
		return false;
	}
	
	// firstname
	if (trimString(document.form1.name.value) == ""){
		alert("Please check that you have entered a proper first name.");
		document.form1.name.focus();
		return false;		
	}
	
	// lastname
	if (trimString(document.form1.name2.value) == ""){
		alert("Please check that you have entered a proper last name.");
		document.form1.name2.focus();
		return false;		
	}
	
	// nric
	if (trimString(document.form1.nric.value) == ""){
		alert("Please check that you have entered a proper NRIC/Passport No.");
		document.form1.nric.focus();
		return false;		
	}
	
	// gender
	if (document.form1.gender[0].checked == false && document.form1.gender[1].checked == false){
		alert("Please check that you have select a gender.");
		document.form1.gender[0].focus();
		return false;	
	}

	// email address
	if (trimString(document.form1.email.value) == "" || !isValidEmail(document.form1.email.value)){
		alert("Please check that you have entered a valid email.");
		document.form1.email.focus();
		return false;
	}
	
	// contact no
	if (trimString(document.form1.contactno.value) == "" || !isValidNumber(document.form1.contactno.value)){
		alert("Please check that you have entered a valid contact number.");
		document.form1.contactno.focus();
		return false;
	}
	
	// rules
	if (document.form1.rules.checked == false){
		alert("Please check if you have read and agree to the rules & regulations below.");
		document.form1.rules.focus();
		return false;
	}
	
	document.form1.action="/events_promotions/events/movie_beach_verify.asp";
	//document.form1.submit();
	return true;
}

function reset_movbeach() {
	document.form1.answer.value = "";
	document.form1.name.value = "";
	document.form1.name2.value = "";
	document.form1.nric.value = "";
	document.form1.gender[0].checked = false;
	document.form1.gender[1].checked = false;
	document.form1.email.value = "";
	document.form1.contactno.value = "";
	document.form1.rules.checked = false;

	return false;
}

/*function validate_sentosaflowers() {
	
	// name
	if (trimString(document.form1.participants1.value) == ""){
		alert("Please check that you have entered a proper name.");
		document.form1.participants1.focus();
		return false;		
	}
	
	// home no
	if (trimString(document.form1.home_no.value) == "" || !isValidNumber(document.form1.home_no.value)){
		alert("Please check that you have entered a valid home number.");
		document.form1.home_no.focus();
		return false;
	}
	
	// handphone
	if (trimString(document.form1.hp.value) == "" || !isValidNumber(document.form1.hp.value)){
		alert("Please check that you have entered a valid handphone number.");
		document.form1.hp.focus();
		return false;
	}
	
	// email address
	if (trimString(document.form1.email.value) == "" || !isValidEmail(document.form1.email.value)){
		alert("Please check that you have entered a valid email.");
		document.form1.email.focus();
		return false;
	}
	
	// mailing address
	if (trimString(document.form1.address.value) == ""){
		alert("Please check that you have entered a mailing address.");
		document.form1.address.focus();
		return false;		
	}
	
	document.form1.action="/events_promotions/events/sentosa_flowers_verify.asp";
	//document.form1.submit();
	return true;
}*/

function isValidEmail(email) {
	invalidChars = " /:,;!#$%^&*()+="
	if (email == "") { // cannot be empty
		return false
	}
	for (i=0; i<invalidChars.length; i++) { // does it contain any invalid characters?
		badChar = invalidChars.charAt(i)
		if (email.indexOf(badChar,0) > -1) {
			return false
		}
	}
	atPos = email.indexOf("@",1)			// there must be one "@" symbol
	if (atPos == -1) {
		return false
	}
	if (email.indexOf("@",atPos+1) != -1) {	// and only one "@" symbol
		return false
	}
	periodPos = email.indexOf(".",atPos)
	if (periodPos == -1) {					// and at least one "." after the "@"
		return false
	}
	if (periodPos+3 > email.length)	{		// must be at least 2 characters after the "."
		return false
	}
	return true
}

function isValidNumber(num) {
    var valid = '0123456789';
    var str_space, str_plus, str_minus;

    fieldContent=num;
    fieldLength=fieldContent.length;

    
    for (var i=0; i< fieldLength; i++) {
       str_space = str_space + " ";
       str_plus = str_plus + "+";
       str_minus = str_minus + "-";
       
       if (valid.indexOf(fieldContent.charAt(i)) == -1)
          return false;
    }
    
    return true;
}

function isValidNric(nric) {
	var validnum = '0123456789';
	var validletter = 'fsFS';
	var valid = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
   
	ic=nric;
	icLength=ic.length;
	if (icLength != 9)
	return false;
	if (validletter.indexOf(ic.charAt(0)) == -1)
		return false;
   for (var i=1; i< icLength-1; i++) {
       if (validnum.indexOf(ic.charAt(i)) == -1)
          return false;
    }
	if (valid.indexOf(ic.charAt(icLength-1)) == -1)
		return false;
   return true;
}

function trimString(s) 
{
  // Remove leading spaces and carriage returns  
  while ((s.substring(0,1) == ' ') || (s.substring(0,1) == '\n') || (s.substring(0,1) == '\r')) {
    s = s.substring(1,s.length);
  }

  // Remove trailing spaces and carriage returns
  while ((s.substring(s.length-1,s.length) == ' ') || (s.substring(s.length-1,s.length) == '\n') || (s.substring(s.length-1,s.length) == '\r')) {
    s = s.substring(0,s.length-1);
  }
  return s;
}


function mmLoadMenus() {
	if (window.mm_menu_0705081839_0) return;
	// explore sentosa - attractions
	window.mm_menu_0705081839_0 = new Menu("root",210,17,"Arial, Helvetica, sans-serif",11,"#333333","#333333","#D4E29B","#BED274","left","middle",3,0,1500,-5,7,true,true,true,0,false,true);
	mm_menu_0705081839_0.addMenuItem("Imbiah&nbsp;Lookout","location='/explore_sentosa/attractions/imbiah_lookout.html'");
	mm_menu_0705081839_0.addMenuItem("Animal&nbsp;&&nbsp;Bird&nbsp;Encounters","location='/explore_sentosa/attractions/animalbird_encounters.html'");
	mm_menu_0705081839_0.addMenuItem("Butterfly&nbsp;Park&nbsp;&&nbsp;Insect&nbsp;Kingdom","location='/explore_sentosa/attractions/butterflypark_insectkingdom.html'");
	mm_menu_0705081839_0.addMenuItem("Cable&nbsp;Car&nbsp;(CLOSED)","location='/explore_sentosa/attractions/cable_car.html'");
	mm_menu_0705081839_0.addMenuItem("DESPERADOS","location='/explore_sentosa/attractions/desperados.html'");
	mm_menu_0705081839_0.addMenuItem("Dolphin&nbsp;Lagoon","location='/explore_sentosa/attractions/dolphin_lagoon.html'");
	mm_menu_0705081839_0.addMenuItem("Fort&nbsp;Siloso&nbsp;Tours","location='/explore_sentosa/attractions/fort_siloso.html'");
	mm_menu_0705081839_0.addMenuItem("Gogreen&nbsp;Segway&reg;&nbsp;Eco&nbsp;Adventure","location='/explore_sentosa/attractions/segway.html'");
	mm_menu_0705081839_0.addMenuItem("Images&nbsp;of&nbsp;Singapore",
"location='/explore_sentosa/attractions/images_singapore.html'");
	mm_menu_0705081839_0.addMenuItem("Megazip&nbsp;Adventure&nbsp;Park&nbsp;(NEW!)","location='/explore_sentosa/attractions/mega_zip.html'");
	mm_menu_0705081839_0.addMenuItem("Azzura&nbsp;Beach&nbsp;Club&nbsp;(NEW!)","location='/explore_sentosa/attractions/azzura.html'");
	mm_menu_0705081839_0.addMenuItem("Wave&nbsp;House&nbsp;Sentosa&nbsp;(NEW!)","location='/explore_sentosa/attractions/wavehouse.html'");
	mm_menu_0705081839_0.addMenuItem("Resorts&nbsp;World&nbsp;Sentosa","location='/explore_sentosa/resorts_world/index.html'");
	
	mm_menu_0705081839_0.addMenuItem("Sentosa&nbsp;4D&nbsp;Magix","location='/explore_sentosa/attractions/sentosa_4dmagix.html'");
	mm_menu_0705081839_0.addMenuItem("Sentosa&nbsp;CineBlast","location='/explore_sentosa/attractions/sentosa_cineblast.html'");
	mm_menu_0705081839_0.addMenuItem("Sentosa&nbsp;Luge&nbsp;&amp;&nbsp;Skyride","location='/explore_sentosa/attractions/sentosa_luge.html'");
	mm_menu_0705081839_0.addMenuItem("Sentosa&nbsp;Nature&nbsp;Discovery","location='/explore_sentosa/attractions/nature_discovery.html'");
	mm_menu_0705081839_0.addMenuItem("Songs&nbsp;of&nbsp;the&nbsp;Sea","location='/explore_sentosa/attractions/songs_of_the_sea.html'");
	mm_menu_0705081839_0.addMenuItem("The&nbsp;Flying&nbsp;Trapeze","location='/explore_sentosa/attractions/the_flying_trapeze.html'");
	mm_menu_0705081839_0.addMenuItem("The&nbsp;Merlion&nbsp;&&nbsp;Merlion&nbsp;Walk","location='/explore_sentosa/attractions/the_merlion_merlionwalk.html'");
	mm_menu_0705081839_0.addMenuItem("Tiger&nbsp;Sky&nbsp;Tower","location='/explore_sentosa/attractions/skytower.html'");
	mm_menu_0705081839_0.addMenuItem("Underwater&nbsp;World","location='/explore_sentosa/attractions/underwater_world.html'");
	//mm_menu_0705081839_0.addMenuItem("VolcanoLand","location='/explore_sentosa/attractions/volcanoland.html'");
	mm_menu_0705081839_0.hideOnMouseOut=true;
	mm_menu_0705081839_0.bgColor='#5E7200';
	mm_menu_0705081839_0.menuBorder=1;
	mm_menu_0705081839_0.menuLiteBgColor='#D4E29B';
	mm_menu_0705081839_0.menuBorderBgColor='#5E7200';

	// explore sentosa - nature
  window.mm_menu_0705110226_0 = new Menu("root",160,17,"Arial, Helvetica, sans-serif",11,"#333333","#333333","#D4E29B","#BED274","left","middle",3,0,1500,-5,7,true,true,true,0,true,true);
 // mm_menu_0705110226_0.addMenuItem("Dragon&nbsp;Trail","location='/explore_sentosa/nature/dragon_trail.html'");//
  //mm_menu_0705110226_0.addMenuItem("Enchanted&nbsp;Grove&nbsp;of&nbsp;Tembusu","location='/explore_sentosa/nature/enchanted_grovetembusu.html'");
  //mm_menu_0705110226_0.addMenuItem("Fountain&nbsp;Gardens","location='/explore_sentosa/nature/fountain_gardens.html'");
//mm_menu_0705110226_0.addMenuItem("Herb&nbsp;&&nbsp;Spice&nbsp;Garden&nbsp;Tours","location='/explore_sentosa/nature/herb_spicegarden.html'");
  //mm_menu_0705110226_0.addMenuItem("Lost&nbsp;Civilisation&nbsp;&&nbsp;Ruined&nbsp;City","location='/explore_sentosa/nature/lostcivil_ruinedcity.html'");
  mm_menu_0705110226_0.addMenuItem("Mount&nbsp;Imbiah","location='/explore_sentosa/nature/mount_imbiah.html'");
  mm_menu_0705110226_0.addMenuItem("Nature&nbsp;Walk","location='/explore_sentosa/nature/nature_walk.html'");
  //mm_menu_0705110226_0.addMenuItem("Sentosa&nbsp;Orchid&nbsp;Gardens","location='/explore_sentosa/nature/sentosa_orchidgardens.html'");
  mm_menu_0705110226_0.addMenuItem("Southern&nbsp;Islands","location='/explore_sentosa/nature/southern_islands.html'");
 	mm_menu_0705110226_0.hideOnMouseOut=true;
  mm_menu_0705110226_0.bgColor='#5E7200';
  mm_menu_0705110226_0.menuBorder=1;
  mm_menu_0705110226_0.menuLiteBgColor='#D4E29B';
  mm_menu_0705110226_0.menuBorderBgColor='#5E7200';

	// explore sentosa - beaches
	window.mm_menu_0705110536_0 = new Menu("root",120,17,"Arial, Helvetica, sans-serif",11,"#333333","#333333","#D4E29B","#BED274","left","middle",3,0,1500,-5,7,true,true,true,0,false,true);
  mm_menu_0705110536_0.addMenuItem("Palawan&nbsp;Beach","location='/explore_sentosa/beaches/palawan_beach.html'");
  mm_menu_0705110536_0.addMenuItem("Siloso&nbsp;Beach","location='/explore_sentosa/beaches/siloso_beach.html'");
  mm_menu_0705110536_0.addMenuItem("Tanjong&nbsp;Beach","location='/explore_sentosa/beaches/tanjong_beach.html'");
  mm_menu_0705110536_0.hideOnMouseOut=true;
  mm_menu_0705110536_0.bgColor='#5E7200';
  mm_menu_0705110536_0.menuBorder=1;
  mm_menu_0705110536_0.menuLiteBgColor='#D4E29B';
  mm_menu_0705110536_0.menuBorderBgColor='#5E7200';

	// explore sentosa - dine
	/*window.mm_menu_0705110850_0 = new Menu("root",170,17,"Arial, Helvetica, sans-serif",11,"#333333","#333333","#D4E29B","#BED274","left","middle",3,0,1500,-5,7,true,true,true,0,true,true);
  mm_menu_0705110850_0.addMenuItem("Beach&nbsp;Bars","location='/explore_sentosa/dine_shop/beach_bars.html'");
	mm_menu_0705110850_0.addMenuItem("Convenience&nbsp;Stores","location='/explore_sentosa/dine_shop/convenience_stores.html'");
  mm_menu_0705110850_0.addMenuItem("Fast&nbsp;Food&nbsp;&&nbsp;Caf&eacute;s","location='/explore_sentosa/dine_shop/fastfood_cafes.html'");
  mm_menu_0705110850_0.addMenuItem("Local&nbsp;Fare","location='/explore_sentosa/dine_shop/local_fare.html'");
  mm_menu_0705110850_0.addMenuItem("Restaurants","location='/explore_sentosa/dine_shop/restaurants.html'");
  mm_menu_0705110850_0.addMenuItem("Exquisite&nbsp;Tastes&nbsp;by&nbsp;Sentosa","location='/explore_sentosa/dine_shop/catering.html'");
  mm_menu_0705110850_0.hideOnMouseOut=true;
  mm_menu_0705110850_0.bgColor='#5E7200';
  mm_menu_0705110850_0.menuBorder=1;
  mm_menu_0705110850_0.menuLiteBgColor='#D4E29B';
  mm_menu_0705110850_0.menuBorderBgColor='#5E7200';  */

  	// explore sentosa - shop
	window.mm_menu_0706110850_0 = new Menu("root",120,17,"Arial, Helvetica, sans-serif",11,"#333333","#333333","#D4E29B","#BED274","left","middle",3,0,1500,-5,7,true,true,true,0,true,true);
  mm_menu_0706110850_0.addMenuItem("Outlets","location='/explore_sentosa/dine_shop/shops.html'");
	// mm_menu_0706110850_0.addMenuItem("Merchandise","location='/explore_sentosa/dine_shop/merchandise.html'");
  mm_menu_0706110850_0.hideOnMouseOut=true;
  mm_menu_0706110850_0.bgColor='#5E7200';
  mm_menu_0706110850_0.menuBorder=1;
  mm_menu_0706110850_0.menuLiteBgColor='#D4E29B';
  mm_menu_0706110850_0.menuBorderBgColor='#5E7200';

  // hotels & spas - hotels
	window.mm_menu_0705111352_0 = new Menu("root",220,17,"Arial, Helvetica, sans-serif",11,"#333333","#333333","#D4C5E0","#BEA9CF","left","middle",3,0,1500,-5,7,true,true,true,0,true,true);
  mm_menu_0705111352_0.addMenuItem("Amara&nbsp;Sanctuary&nbsp;Resort&nbsp;Sentosa","location='/hotels_spas/hotels/amarasanctuary_resort.html'");
  mm_menu_0705111352_0.addMenuItem("Capella&nbsp;Singapore","location='/hotels_spas/hotels/capella_resort.html'");
	mm_menu_0705111352_0.addMenuItem("Costa&nbsp;Sands&nbsp;Resort","location='/hotels_spas/hotels/costasands_resort.html'");
  mm_menu_0705111352_0.addMenuItem("Rasa&nbsp;Sentosa&nbsp;Resort&nbsp;&#8218;&nbsp;Singapore","location='/hotels_spas/hotels/rasa_sentosa.html'");
	mm_menu_0705111352_0.addMenuItem("Siloso&nbsp;Beach&nbsp;Resort","location='/hotels_spas/hotels/silosobeach_resort.html'");
	mm_menu_0705111352_0.addMenuItem("The&nbsp;Sentosa&nbsp;Resort&nbsp;&amp;&nbsp;Spa","location='/hotels_spas/hotels/sentosaresort_spa.html'");
	mm_menu_0705111352_0.hideOnMouseOut=true;
  mm_menu_0705111352_0.bgColor='#7B6988';
  mm_menu_0705111352_0.menuBorder=1;
  mm_menu_0705111352_0.menuLiteBgColor='#D4C5E0';
  mm_menu_0705111352_0.menuBorderBgColor='#7B6988';
	
	// hotels & spas - spas
	window.mm_menu_0706111352_0 = new Menu("root",110,17,"Arial, Helvetica, sans-serif",11,"#333333","#333333","#D4C5E0","#BEA9CF","left","middle",3,0,1500,-5,7,true,true,true,0,true,true);
  mm_menu_0706111352_0.addMenuItem("Fish&nbsp;Reflexology","location='/hotels_spas/spas/spas.html#1'");
	mm_menu_0706111352_0.addMenuItem("Health&nbsp;Club&nbsp;and&nbsp;Spa","location='/hotels_spas/spas/spas.html#2'");
  mm_menu_0706111352_0.addMenuItem("Spa&nbsp;Botanica","location='/hotels_spas/spas/spas.html#3'");
  mm_menu_0706111352_0.hideOnMouseOut=true;
  mm_menu_0706111352_0.bgColor='#7B6988';
  mm_menu_0706111352_0.menuBorder=1;
  mm_menu_0706111352_0.menuLiteBgColor='#D4C5E0';
  mm_menu_0706111352_0.menuBorderBgColor='#7B6988';
	
	// hotels & spas - upcoming Accommodation
	window.mm_menu_0706111353_0 = new Menu("root",140,17,"Arial, Helvetica, sans-serif",11,"#333333","#333333","#D4C5E0","#BEA9CF","left","middle",3,0,1500,-5,7,true,true,true,0,true,true);
   mm_menu_0706111353_0.addMenuItem("Capella&nbsp;Singapore","location='/hotels_spas/upcoming/index.html#1'");
	  mm_menu_0706111353_0.hideOnMouseOut=true;
  mm_menu_0706111353_0.bgColor='#7B6988';
  mm_menu_0706111353_0.menuBorder=1;
  mm_menu_0706111353_0.menuLiteBgColor='#D4C5E0';
  mm_menu_0706111353_0.menuBorderBgColor='#7B6988';

	// events & promotions - events
	window.mm_menu_0707115313_0 = new Menu("root",110,17,"Arial, Helvetica, sans-serif",11,"#333333","#333333","#A5DCE5","#78C5D3","left","middle",3,0,1500,-5,7,true,true,true,0,true,true);
  mm_menu_0707115313_0.addMenuItem("Current&nbsp;Events","location='/events_promotions/events/index.asp'");
  	mm_menu_0707115313_0.addMenuItem("Past&nbsp;Events&nbsp;2009","location='/events_promotions/events/past_events_2009/past_events.html'");
	mm_menu_0707115313_0.addMenuItem("Past&nbsp;Events&nbsp;2008","location='/events_promotions/events/past_events_2008/past_events.html'");
	mm_menu_0707115313_0.addMenuItem("Past&nbsp;Events&nbsp;2007","location='/events_promotions/events/past_events_2007/past_events.html'");
	//mm_menu_0707115313_0.addMenuItem("Past&nbsp;Events&nbsp;2006","location='/events_promotions/events/past_events_2006/past_events.html'");
	mm_menu_0707115313_0.hideOnMouseOut=true;
  mm_menu_0707115313_0.bgColor='#007C9A';
  mm_menu_0707115313_0.menuBorder=1;
  mm_menu_0707115313_0.menuLiteBgColor='#A5DCE5';
  mm_menu_0707115313_0.menuBorderBgColor='#007C9A';

	// events & promotions - islander membership
	window.mm_menu_0707115315_0 = new Menu("root",150,17,"Arial, Helvetica, sans-serif",11,"#333333","#333333","#A5DCE5","#78C5D3","left","middle",3,0,1500,-5,7,true,true,true,0,true,true);
  mm_menu_0707115315_0.addMenuItem("Corporate&nbsp;Islander","location='/events_promotions/island_membership/corporate.html'");
	mm_menu_0707115315_0.addMenuItem("Individual/Family&nbsp;Islander","location='/events_promotions/island_membership/individual.html'");
	mm_menu_0707115315_0.addMenuItem("Islander&nbsp;FAQ","location='/events_promotions/island_membership/faq.html'");
	mm_menu_0707115315_0.hideOnMouseOut=true;
  mm_menu_0707115315_0.bgColor='#007C9A';
  mm_menu_0707115315_0.menuBorder=1;
  mm_menu_0707115315_0.menuLiteBgColor='#A5DCE5';
  mm_menu_0707115315_0.menuBorderBgColor='#007C9A';
	
	//about us - sentosa island
	window.mm_menu_0705112216_0 = new Menu("root",107,17,"Arial, Helvetica, sans-serif",11,"#333333","#333333","#FFE068","#FFD300","left","middle",3,0,1500,-5,7,true,true,true,0,true,true);
  mm_menu_0705112216_0.addMenuItem("Corporate&nbsp;Structure","location='/about_us/sentosa_island/corporate_structure.html'");
	mm_menu_0705112216_0.addMenuItem("Masterplan&nbsp;Projects","location='/about_us/sentosa_island/masterplan_projects.html'");
	mm_menu_0705112216_0.addMenuItem("Awards","location='/about_us/sentosa_island/awards.html'");
  mm_menu_0705112216_0.addMenuItem("Milestones","location='/about_us/sentosa_island/milestones.html'");
  mm_menu_0705112216_0.hideOnMouseOut=true;
  mm_menu_0705112216_0.bgColor='#EFA400';
  mm_menu_0705112216_0.menuBorder=1;
  mm_menu_0705112216_0.menuLiteBgColor='#FFE068';
  mm_menu_0705112216_0.menuBorderBgColor='#EFA400';
	
	//about us - corporate
	window.mm_menu_0517152138_0 = new Menu("root",188,18,"Arial, Helvetica, sans-serif",11,"#FFFFFF","#FFFFFF","#849CB1","#CCCCCC","left","middle",3,0,1000,-5,7,true,false,true,0,true,true);
  mm_menu_0517152138_0.addMenuItem("Annual&nbsp;Report&nbsp;2003/2004","window.open('/corporate/files/Sentosa_AR_0304.pdf', '_blank');");
  mm_menu_0517152138_0.addMenuItem("Financial&nbsp;Report&nbsp;2003/2004","window.open('/corporate/files/Sentosa_FR_0304.pdf', '_blank');");
  mm_menu_0517152138_0.addMenuItem("Annual&nbsp;Report&nbsp;2004/2005","window.open('/corporate/files/Sentosa_AR_0405 FA.pdf', '_blank');");
  mm_menu_0517152138_0.addMenuItem("Financial&nbsp;Report&nbsp;2004/2005","window.open('/corporate/files/Sentosa_FR_0405 FA.pdf', '_blank');");
  mm_menu_0517152138_0.addMenuItem("Financial&nbsp;Report&nbsp;2005/2006","window.open('/corporate/files/Sentosa_FR_0506 FA.pdf', '_blank');");
  mm_menu_0517152138_0.addMenuItem("Annual&nbsp;Report&nbsp;2006/2007","window.open('/corporate/files/Sentosa AR 0607.pdf', '_blank');");
	mm_menu_0517152138_0.hideOnMouseOut=true;
	mm_menu_0517152138_0.bgColor='#555555';
	mm_menu_0517152138_0.menuBorder=1;
	mm_menu_0517152138_0.menuLiteBgColor='#FFFFFF';
	mm_menu_0517152138_0.menuBorderBgColor='#777777';

	mm_menu_0517152138_0.writeMenus();
} // mmLoadMenus()

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 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_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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

// Flash Click Activate Override
function CreateControl(DivID, CLSID, ObjectID, WIDTH, HEIGHT, URL, AUTOSTART)
{
	var d = document.getElementById(DivID);
  d.innerHTML = '<object classid=' + CLSID + ' id=' + ObjectID + ' width=' + WIDTH + ' height=' + HEIGHT +'><param name="movie" value=' + URL + '><param name="quality" value="high"><param name="menu" value="false"><param name="wmode" value="transparent"><embed src=' + URL + ' quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width=' + WIDTH + ' height=' + HEIGHT +' wmode="transparent" menu="false"></embed></object>';
}


