// JavaScript Document
<!--

function mmLoadMenus() {
  if (window.mm_menu_0204153142_0) return;
  
window.mm_menu_0204163047_0 = new Menu("root",400,28,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FFFFFF","#008db0","#566422","left","middle",6,0,0,-5,7,true,false,true,0,false,true);
  mm_menu_0204163047_0.addMenuItem("欢迎 - Welcome","location='default.php'");
  mm_menu_0204163047_0.addMenuItem("传说 - The Legend","location='jj_legend.php'");
  mm_menu_0204163047_0.addMenuItem("我们的文化遗产 / 我们的使命 - Our Heritage / Our Mission","location='jj_heritage.php'");
  mm_menu_0204163047_0.addMenuItem("维护婆罗洲的文化遗产 - Preserving Borneo (Sabah) Tradition","location='jj_preserving.php'");
  mm_menu_0204163047_0.addMenuItem("Our Recognition","location='jj_recognition.php'");   
  mm_menu_0204163047_0.addMenuItem("他们怎么说 - What People Say","location='jj_whatpeoplesay.php'");   
   mm_menu_0204163047_0.hideOnMouseOut=true;
   mm_menu_0204163047_0.bgColor='#CCCCCC';
   mm_menu_0204163047_0.menuBorder=1;
   mm_menu_0204163047_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0204163047_0.menuBorderBgColor='#777777';
   
  window.mm_menu_0204153142_0 = new Menu("root",600,28,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FFFFFF","#b55340","#566422","left","middle",6,0,0,-5,7,true,false,true,0,false,true);
  mm_menu_0204153142_0.addMenuItem("婆罗洲民族传统护理配套 - Ethnic of Dusun(Borneo) Massages","location='massages_ethnic.php'");
  mm_menu_0204153142_0.addMenuItem("SPA护理  - Spa Treatment","location='massages_spatreatment.php'");
  mm_menu_0204153142_0.addMenuItem("身体护理 - Body Treatment","location='massages_bodytreatment.php'");
  mm_menu_0204153142_0.addMenuItem("蜜月佳期双人配套 - Couple's Spa","location='massages_couple.php'");  
  mm_menu_0204153142_0.addMenuItem("Vacation Spa","location='massages_vacationspa.php'");
  mm_menu_0204153142_0.addMenuItem("婆罗洲热带雨林身体磨砂配套 - Body Scrub","location='massages_bodyscrub.php'");  
  mm_menu_0204153142_0.addMenuItem("婆罗洲深海亮丽身体Spa - Body Glow","location='massages_bodyglow.php'");
  mm_menu_0204153142_0.addMenuItem("单程式护理疗程 - Single Treatment","location='massages_single.php'");  
  mm_menu_0204153142_0.addMenuItem("孩童Spa - Kiddies' Spa","location='massages_kiddies.php'");    
  mm_menu_0204153142_0.hideOnMouseOut=true;
   mm_menu_0204153142_0.bgColor='#330033';
   mm_menu_0204153142_0.menuBorder=1;
   mm_menu_0204153142_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0204153142_0.menuBorderBgColor='#777777';

    window.mm_menu_0204162625_0 = new Menu("root",300,28,"Verdana, Arial, Helvetica, sans-serif",12,"#FFFFFF","#FFFFFF","#d08316","#566422","left","middle",6,0,0,-5,7,true,false,true,0,false,true);
  mm_menu_0204162625_0.addMenuItem("我们的方针 - Spa Etiquette","location='faq_spaetiquette.php'");
//  mm_menu_0204162625_0.addMenuItem("Glossary of Terms","location='faq_glossary.php'");  
//  mm_menu_0204162625_0.addMenuItem("Spa Products","location='faq_spaproducts.php'");      
  mm_menu_0204162625_0.addMenuItem("问与答 - Questions & Answers","location='faq_qna.php'");     
   mm_menu_0204162625_0.hideOnMouseOut=true;
   mm_menu_0204162625_0.bgColor='#CCCCCC';
   mm_menu_0204162625_0.menuBorder=1;
   mm_menu_0204162625_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0204162625_0.menuBorderBgColor='#777777';


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




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_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_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_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}



function chk(email)
{
invalid = "";

if (!email)
invalid = "No email address found!";

else {

if ( (email.indexOf("@") == -1) || (email.indexOf(".") == -1) )
invalid += "\n\nInvalid email address.  Your email address is missing an '@' sign and a '.' in the domain name (like '.com').  Please check your address then submit again.";

if (email.indexOf("youremailhere") > -1)
invalid += "\n\nInvalid email address.  Make sure your email address included your username, the '@' sign, and the domain name (like '.com').";

if (email.indexOf("\\") > -1)
invalid += "\n\nEmail address contains an invalid back-slash (\\) character.  Remove the character and submit again.";

if (email.indexOf("/") > -1)
invalid += "\n\nEmail address contains an invalid forward-slash (/) character.  Remove the character and submit again.";

if (email.indexOf("'") > -1)
invalid += "\n\nEmail address contains an invalid apostrophe (') character.  Remove the character and submit again.";

if (email.indexOf("zaz.com.br") > -1)
invalid += "\n\nPlease do not use an email address that has an autoresponder set up for it.  Thanks.";

if (email.indexOf("!") > -1)
invalid += "\n\nEmail address contains an invalid exclamation point (!) character.  Remove the character or correct the email address then submit again.";

if ( (email.indexOf(",") > -1) || (email.indexOf(";") > -1) )
invalid += "\n\nPlease only enter one email address in the box at a time.  Remove the extra addresses and submit again.";

if (email.indexOf("?subject") > -1)
invalid += "\n\nYou do not need to add '?subject=...' to your email address.  Please remove the '?subject=...' from your email address and submit again.";
}

if (invalid == "")
   {
      page = "http://www.jari-jari.com/subsend.php?Email=" + email;
      window.open(page, "SendWindow", "width=400,height=200");
	  return true;
}
else
   {
   alert("Oops, something is wrong...." + invalid);
   return false;
   }
}

function fitPic(s, p){
	window.open('picture.html?'+s+'?'+p,'fitWindow','height=100,width=100,top=0,left=0,z-lock=1,resizable=1');
}
