//<script language="javascript1.2">


//以下是menu的javascript

var isHTMLPageLoaded = false;
var isNS     = false;
var isIE     = false;
var flagMore = false;
var flagOver = false;
var flag1    = false;
var flagWhichLayerActive = 0;
var t1       = 0;
var menuCount = 8;
var flagNSStopShowingMenus = false;

// vars for left menu highlights

SubMenu = new Array();

if (parseInt(navigator.appVersion) >= 4) {
	if (navigator.appName == "Netscape") isNS = true;
	else if(navigator.appName == "Microsoft Internet Explorer")	isIE = true;
}
function menuOver(MenuID,e){
   if(flagNSStopShowingMenus) return
   flagWhichLayerActive = MenuID;
   flagOver = true;
   clearTimeout(t1);
   if(isNS){
      for(i=0;i< menuCount; i++){
         if(MenuID == i) SubMenu[i].visibility = 'show';
         else SubMenu[i].visibility = 'hide';
      }
   }
   if(isIE){
      for(i=0;i< menuCount; i++){
         if(MenuID == i) {
            if(SubMenu[i].style.pixelLeft != -500) return
            show(SubMenu[i]);
         }
           else hide(SubMenu[i]);
      }
   }
}

function menuOut(MenuID1,e){
   flagOver = false;
   clearTimeout(t1)
   if(isNS) t1 = setTimeout("SubMenu[" + MenuID1 + "].visibility = 'hide'",200);
   if(isIE) t1 = setTimeout("hide(SubMenu[" + MenuID1 + "])",200);
}

function hide(MenuObject){
   MenuObject.style.pixelLeft = -500;
}

function show(MenuObject){
   MenuObject.style.pixelLeft = MenuObject.origLeft;
   MenuObject.style.visibility = 'visible';
}

function submenuOver(e){
   clearTimeout(t1);
   if(isNS) SubMenu[flagWhichLayerActive].routeEvent(e);
   if(isIE) SubMenu[flagWhichLayerActive].style.visibility = 'visible';
}

function submenuOut(e){
   if(isNS && flag1){flag1=false;return}
   if(isNS && flagOver){flagOver = false;return}
   if(isNS){
      SubMenu[flagWhichLayerActive].visibility = 'hide';
      SubMenu[flagWhichLayerActive].routeEvent(e);
   }
   if(isIE){
      if(SubMenu[flagWhichLayerActive].contains(event.toElement)) return;
      if(event.toElement == document.all.nav0) return;
      hide(SubMenu[flagWhichLayerActive]);
   }
}

function overLink(){flag1 = true}

function stopShowingMenus(){ flagNSStopShowingMenus = true}

function init(){

}

function errorHandler(){return true}

if(isNS) window.onresize = stopShowingMenus;
window.onload = init;
window.onerror = errorHandler;

//render menus

//OFF[currentLevel] = ON;
//eval("document.images.imgMenu" + currentLevel + ".src = ON ");

//render left instant cash section
if(isNS){document.write("<layer src=/auto/left_instant_cash.htm width=146 height=255 top=" + document.images.reperImg.y + "left=0></layer>")}

textToWrite = "";
if(isNS) textToWrite += "<DIV id=NETSCAPE_BUG_PREVENTION style='POSITION:absolute;TOP:0px;LEFT:0px;WIDTH:10px;BORDER:#294594 0px solid;BACKGROUND-COLOR:#FFFFFF;layer-background-color:#FFFFFF;VISIBILITY:hidden'></DIV>";
textToWrite += "<DIV id=lyrSubMenu1 class=popupMenus style='POSITION: absolute;TOP:105px;LEFT:200px;WIDTH:100px;BORDER:#003366 0px solid;PADDING-LEFT:5px;VISIBILITY:hidden;MARGIN:0px'>"
   + "<TABLE border='0' cellspacing='1' BGCOLOR='#D6F1FA'><TR><TD BGCOLOR='#D6F1FA'><table width='130' border='0' cellspacing='1' cellpadding='0' class='a12' bgcolor='#FFFFFF'>"
   + "<tr bgcolor='#D6F1FA'> "

   + "<td bgcolor='#D6F1FA' width='133' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='hala.htm'>The Hottest最新好康</a></td>"
   + "</tr><tr> "

   + "<td bgcolor='#D6F1FA' width='133' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='hala1-1.htm'>Special Event Calendar</a></td>"
   + "</tr><tr> "

   + "<td bgcolor='#D6F1FA' width='133' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'>花邊新聞</td>"

   + "</tr></table></TD></TR></TABLE>"
      + "</DIV>"
   + "<DIV id=lyrSubMenu2 class=popupMenus style='POSITION: absolute;TOP:105px;LEFT:200px;WIDTH:100px;BORDER:#003366 0px solid;PADDING-LEFT:5px;VISIBILITY:hidden;MARGIN:0px'>"
   + "<TABLE border='0' cellspacing='1' BGCOLOR='#D6F1FA'><TR><TD BGCOLOR='#D6F1FA'><table width='130' border='0' cellspacing='1' cellpadding='0' class='a12' bgcolor='#FFFFFF'>"
   + "<tr bgcolor='#D6F1FA'> "

   + "<td bgcolor='#D6F1FA' width='133' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='part1.htm'>all inclusive一價全包</a></td>"
   + "</tr><tr> "

   + "<td bgcolor='#D6F1FA' width='133' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='mini.htm'>Mini Club 兒童俱樂部</a></td>"
   + "</tr><tr> "

   + "<td bgcolor='#D6F1FA' width='133' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'>Entertainment</td>"
   + "</tr><tr> "

   + "<td bgcolor='#D6F1FA' width='133' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='food.htm'>Food美食</a></td>"
   + "</tr><tr> "

   + "<td bgcolor='#D6F1FA' width='133' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='sport.htm'>Sports運動</a></td>"
   + "</tr><tr>"

   + "<td bgcolor='#D6F1FA' width='133' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='a-z.htm'>A-Z大辭典</a></td>"
   + "</tr></table></TD></TR></TABLE>"
   + "</DIV>"
   + "<DIV id=lyrSubMenu3 class=popupMenus style='POSITION: absolute;TOP:105px;LEFT:200px;WIDTH:100px;BORDER:#294594 0px solid;PADDING-LEFT:5px;VISIBILITY:hidden;MARGIN:0px'>"
   + "<TABLE border='0' cellspacing='1' BGCOLOR='#D6F1FA'><TR><TD BGCOLOR='#D6F1FA'><table width='100' border='0' cellspacing='1' cellpadding='0' class='a12' bgcolor='#FFFFFF'>"
   + "<tr bgcolor='#D6F1FA'> "

   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/Villages_Borabora01.htm'>巴里島</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/Villages_bintan.htm'>民丹島</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/Villages_Phuket.htm'>普吉島</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/Villages_Cherating.htm'>珍拉汀灣</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/Villages_kani.htm'>卡尼島</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/Villages_faru.htm'>法魯島</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/Villages_Kabirabora.htm'>石垣島</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/Villages_Sahoro.htm'>北海道</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/wordother.htm'>世界其他據點</a></td>"
   + "</tr></tr>"
   + "</tr>"
   + "</table></TD></TR></TABLE>"
   + "</DIV>"
   + "<DIV id=lyrSubMenu4 class=popupMenus style='POSITION: absolute;TOP:105px;LEFT:200px;WIDTH:100px;BORDER:#003366 0px solid;PADDING-LEFT:5px;VISIBILITY:hidden;MARGIN:0px'>"
   + "<TABLE border='0' cellspacing='1' BGCOLOR='#D6F1FA'><TR><TD BGCOLOR='#D6F1FA'><table width='130' border='0' cellspacing='1' cellpadding='0' class='a12' bgcolor='#FFFFFF'>"
   + "<tr bgcolor='#D6F1FA'> "

   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='taiwan.htm'>地址 / 電話 / 傳真 / email</a></td>"
   + "</tr><tr> "
    
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='go01.htm'>the G.O.s 靈魂人物</a></td>"
   + "</tr><tr> "
   
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='village.htm'>加入Village GO</a></td>"
   + "</tr><tr> "
   
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='office.htm'>加入Office GO</a></td>"
   + "</tr>"
   + "</table></TD></TR></TABLE>"
   + "</DIV>"
   + "<DIV id=lyrSubMenu5 class=popupMenus style='POSITION:absolute;TOP:105px;LEFT:376px;WIDTH:100px;BORDER:#003366 0px solid;PADDING-LEFT:5px;VISIBILITY:hidden;MARGIN:0px'>"
   + "<TABLE border='0' cellspacing='1' BGCOLOR='#D6F1FA'><TR><TD BGCOLOR='#D6F1FA'><table width='100' border='0' cellspacing='1' cellpadding='0' class='a12' bgcolor='#FFFFFF'>"
   + "<tr>"

   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='data.htm'>查詢</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='data2.htm'>我要訂位</a></td>"
   + "</tr></tr>"
   + "</table></TD></TR></TABLE>"
   + "</DIV>"
   + "<DIV id=lyrSubMenu6 class=popupMenus style='POSITION:absolute;TOP:106px;LEFT:376px;WIDTH:100px;BORDER:#003366 0px solid;PADDING-LEFT:5px;VISIBILITY:hidden;MARGIN:0px'>"
   + "<TABLE border='0' cellspacing='1' BGCOLOR='#D6F1FA'><TR><TD BGCOLOR='#D6F1FA'><table width='100' border='0' cellspacing='1' cellpadding='0' class='a12' bgcolor='#FFFFFF'>"
   + "<tr>"

   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/Villages_Borabora01.htm'>巴里島</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/Villages_bintan.htm'>民丹島</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/Villages_Phuket.htm'>普吉島</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/Villages_Cherating.htm'>珍拉汀灣</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/Villages_kani.htm'>卡尼島</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/Villages_faru.htm'>法魯島</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/Villages_Kabirabora.htm'>石垣島</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/Villages_Sahoro.htm'>北海道</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='Villages/wordother.htm'>世界其他據點</a></td>"
   + "</tr></tr>"
   + "</table></TD></TR></TABLE>"
   + "</DIV>"
   + "<DIV id=lyrSubMenu7 class=popupMenus style='POSITION:absolute;TOP:313px;LEFT:376px;WIDTH:150px;BORDER:#003366 0px solid;PADDING-LEFT:5px;VISIBILITY:hidden;MARGIN:0px'>"
   + "<TABLE border='0' cellspacing='1' BGCOLOR='#D6F1FA'><TR><TD BGCOLOR='#D6F1FA'><table width='120' border='0' cellspacing='1' cellpadding='0' class='a12' bgcolor='#FFFFFF'>"
   + "<tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'>Win a Vacation 準備中</td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='download.htm'>下載桌布 / 保護程式</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'>E-cards</td>"
   + "</tr></tr>"
   + "</table></TD></TR></TABLE>"
   + "</DIV>"
   + "<DIV id=lyrSubMenu8 class=popupMenus style='POSITION:absolute;TOP:330px;LEFT:376px;WIDTH:100px;BORDER:#003366 0px solid;PADDING-LEFT:5px;VISIBILITY:hidden;MARGIN:0px'>"
   + "<TABLE border='0' cellspacing='1' BGCOLOR='#D6F1FA'><TR><TD BGCOLOR='#D6F1FA'><table width='100' border='0' cellspacing='1' cellpadding='0' class='a12' bgcolor='#FFFFFF'>"
   + "<tr>"

   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='discuss/discusslist.asp'>討論區</a></td>"
   + "</tr></tr>"
   + "<td bgcolor='#D6F1FA' width='88%' onMouseOver=this.style.backgroundColor='#ffffff' onMouseOut=this.style.backgroundColor='#D6F1FA'><a href='ArticleIssue/ArticleIssueList.asp'>CM故事書</a></td>"
   + "</tr></tr>"
   + "</table></TD></TR></TABLE>"
   + "</DIV>";

document.write(textToWrite)

if(isNS){
   for(j=0;j<menuCount;j++){
      eval("SubMenu[j] = document.lyrSubMenu" + (j + 1));
      SubMenu[j].captureEvents(Event.MOUSEOVER | Event.MOUSEOUT);
      for(i=0;i<SubMenu[j].document.links.length;i++) SubMenu[j].document.links[i].onmouseover = overLink;
   }
}
if(isIE) {
   for(i=0; i<menuCount; i++) {
      eval("SubMenu[i] = document.all.lyrSubMenu" + (i + 1));
      SubMenu[i].style.pixelLeft = -500;
   }
}

for(i=0; i<menuCount; i++){
   SubMenu[i].onmouseover = submenuOver;
   SubMenu[i].onmouseout  = submenuOut;
}

SubMenu[0].origLeft = 381
SubMenu[1].origLeft = 0
SubMenu[2].origLeft = 450
SubMenu[3].origLeft = 249
SubMenu[4].origLeft = 133
SubMenu[5].origLeft = 102
SubMenu[6].origLeft = 188
SubMenu[7].origLeft = 188
//</script>
