var _disable_empty_list=false;
var _hide_empty_list=false;

var onclickaction="alert"

function goListGroup(){
for (i=arguments.length-1;i>=0; i--){
if (arguments[i].selectedIndex!=-1){
var selectedOptionvalue=arguments[i].options[arguments[i].selectedIndex].value
if (selectedOptionvalue!=""){
if (onclickaction=="alert")
alert(selectedOptionvalue)
else if (newwindow==1)
window.open(selectedOptionvalue)
else
window.location=selectedOptionvalue
break
}
}
}
}


if (typeof(disable_empty_list)=="undefined") { disable_empty_list=_disable_empty_list; }
if (typeof(hide_empty_list)=="undefined") { hide_empty_list=_hide_empty_list; }

var cs_goodContent=true, cs_M="M", cs_L="L", cs_curTop=null, cs_curSub=null;

function cs_findOBJ(obj,n) {
  for (var i=0; i<obj.length; i++) {
    if (obj[i].name==n) { return obj[i]; }
  }
  return null;
}
function cs_findContent(n) { return cs_findOBJ(cs_content,n); }

function cs_findM(m,n) {
  if (m.name==n) { return m; }

  var sm=null;
  for (var i=0; i<m.items.length; i++) {
    if (m.items[i].type==cs_M) {
      sm=cs_findM(m.items[i],n);
      if (sm!=null) { break; }
    }
  }
  return sm;
}
function cs_findMenu(n) { return (cs_curSub!=null && cs_curSub.name==n)?cs_curSub:cs_findM(cs_curTop,n); }

function cs_contentOBJ(n,obj){ this.name=n; this.menu=obj; this.lists=new Array(); this.cookie=""; }; cs_content=new Array();
function cs_topmenuOBJ(tm) { this.name=tm; this.items=new Array(); this.df=0; this.addM=cs_addM; this.addL=cs_addL; }
function cs_submenuOBJ(dis,link,sub) {
  this.name=sub;
  this.type=cs_M; this.dis=dis; this.link=link; this.df=0;

  var x=cs_findMenu(sub);
  this.items=x==null?new Array():x.items;

  this.addM=cs_addM; this.addL=cs_addL;
}
function cs_linkOBJ(dis,link) { this.type=cs_L; this.dis=dis; this.link=link; }

function cs_addM(dis,link,sub) { this.items[this.items.length]=new cs_submenuOBJ(dis,link,sub); }
function cs_addL(dis,link) { this.items[this.items.length]=new cs_linkOBJ(dis,link); }

function cs_showMsg(msg) { window.status=msg; }
function cs_badContent(n) { cs_goodContent=false; cs_showMsg("["+n+"] Not Found."); }

function cs_optionOBJ(text,value) { this.text=text; this.value=value; }
function cs_emptyList(list) { for (var i=list.options.length-1; i>=0; i--) { list.options[i]=null; } }
function cs_refreshList(list,opt,df) {
  cs_emptyList(list);

  for (var i=0; i<opt.length; i++) {
    list.options[i]=new Option(opt[i].text, opt[i].value);
  }

  if (opt.length>0) {
    list.selectedIndex=df;
  }
}
function cs_getOptions(menu) {
  var opt=new Array();
  for (var i=0; i<menu.items.length; i++) {
    opt[i]=new cs_optionOBJ(menu.items[i].dis, menu.items[i].link);
  }
  return opt;
}
function cs_updateListGroup(content,idx,sidx,mode) {
  var i=0, curItem=null, menu=content.menu;

  while (i<idx) {
    menu=menu.items[content.lists[i++].selectedIndex];
  }

  if (menu.items[sidx].type==cs_M && idx<content.lists.length-1) {
    var df=cs_getIdx(mode,content.cookie,idx+1,menu.items[sidx].df);

    cs_refreshList(content.lists[idx+1], cs_getOptions(menu.items[sidx]), df);
    if (content.cookie) {
      cs_setCookie(content.cookie+"_"+(idx+1),df);
    }

    if (idx+1<content.lists.length) {
      if (disable_empty_list) {
        content.lists[idx+1].disabled=false;
      }
      if (hide_empty_list) {
        content.lists[idx+1].style.display="";
      }

      cs_updateListGroup(content,idx+1,df,mode);
    }
  }
  else {
    for (var s=idx+1; s<content.lists.length; s++) {
      cs_emptyList(content.lists[s]);

      if (disable_empty_list) {
        content.lists[s].disabled=true;
      }
      if (hide_empty_list) {
        content.lists[s].style.display="none";
      }

      if (content.cookie) {
        cs_setCookie(content.cookie+"_"+s,"");
      }
    }
  }
}
function cs_initListGroup(content,mode) {
  var df=cs_getIdx(mode,content.cookie,0,content.menu.df);

  cs_refreshList(content.lists[0], cs_getOptions(content.menu), df);
  if (content.cookie) {
    cs_setCookie(content.cookie+"_"+0,df);
  }

  cs_updateListGroup(content,0,df,mode);
}

function cs_updateList() {
  var content=this.content;
  for (var i=0; i<content.lists.length; i++) {
    if (content.lists[i]==this) {
      if (content.cookie) {
        cs_setCookie(content.cookie+"_"+i,this.selectedIndex);
      }

      if (i<content.lists.length-1) {
        cs_updateListGroup(content,i,this.selectedIndex,"");
      }
    }
  }
}

function cs_getIdx(mode,name,idx,df) {
  if (mode) {
    var cs_idx=cs_getCookie(name+"_"+idx);
    if (cs_idx!="") {
      df=parseInt(cs_idx);
    }
  }
  return df;
}

function _setCookie(name, value) {
  document.cookie=name+"="+value;
}
function cs_setCookie(name, value) {
  setTimeout("_setCookie('"+name+"','"+value+"')",0);
}

function cs_getCookie(name) {
  var cookieRE=new RegExp(name+"=([^;]+)");
  if (document.cookie.search(cookieRE)!=-1) {
    return RegExp.$1;
  }
  else {
    return "";
  }
}

// ----
function addListGroup(n,tm) {
  if (cs_goodContent) {
    cs_curTop=new cs_topmenuOBJ(tm); cs_curSub=null;

    var c=cs_findContent(n);
    if (c==null) {
      cs_content[cs_content.length]=new cs_contentOBJ(n,cs_curTop);
    }
    else {
      delete(c.menu); c.menu=cs_curTop;
    }
  }
}

function addList(n,dis,link,sub,df) {
  if (cs_goodContent) {
    cs_curSub=cs_findMenu(n);

    if (cs_curSub!=null) {
      cs_curSub.addM(dis,link||"",sub);
      if (typeof(df)!="undefined") { cs_curSub.df=cs_curSub.items.length-1; }
    }
    else {
      cs_badContent(n);
    }
  }
}

function addOption(n,dis,link,df) {
  if (cs_goodContent) {
    cs_curSub=cs_findMenu(n);

    if (cs_curSub!=null) {
      cs_curSub.addL(dis,link||"");
      if (typeof(df)!="undefined") { cs_curSub.df=cs_curSub.items.length-1; }
    }
    else {
      cs_badContent(n);
    }
  }
}

function initListGroup(n) {
  var _content=cs_findContent(n), count=0;
  if (_content!=null) {
    content=new cs_contentOBJ("cs_"+n,_content.menu);
    cs_content[cs_content.length]=content;

    for (var i=1; i<initListGroup.arguments.length; i++) {
      if (typeof(arguments[i])=="object" && arguments[i].tagName && arguments[i].tagName=="SELECT") {
        content.lists[count]=arguments[i];

        arguments[i].onchange=cs_updateList;
        arguments[i].content=content; arguments[i].idx=count++;
      }
      else if (typeof(arguments[i])=="string" && /^[a-zA-Z_]\w*$/.test(arguments[i])) {
        content.cookie=arguments[i];
      }
    }

    if (content.lists.length>0) {
      cs_initListGroup(content,content.cookie);
    }
  }
}

function resetListGroup(n) {
  var content=cs_findContent("cs_"+n);
  if (content!=null && content.lists.length>0) {
    cs_initListGroup(content,"");
  }
}
// ------
//sidebar_menu
var menu1=new Array()//johor
menu1[0]='<a href="/hotel/malaysia_hotel/johor_hotel/johor_hotel.html">All Hotel</a>'
menu1[1]='<a href="/hotel/malaysia_hotel/johor_hotel/johor_hotel.html#batu_pahat">Batu Pahat Hotel</a>'
menu1[2]='<a href="/hotel/malaysia_hotel/johor_hotel/desaru.html">Desaru Beach Hotel</a>'
menu1[3]='<a href="/hotel/malaysia_hotel/johor_hotel/gunung_ledang.html">Gunung Ledang Hotel</a>'
menu1[4]='<a href="/hotel/malaysia_hotel/johor_hotel/johor_bahru.html">Johor Bahru Hotel</a>'
menu1[5]='<a href="/hotel/malaysia_hotel/johor_hotel/johor_hotel.html#kota_tinggi">Kota Tinggi Hotel</a>'
menu1[6]='<a href="/hotel/malaysia_hotel/johor_hotel/johor_hotel.html#mersing">Mersing Hotel</a>'
menu1[7]='<a href="/hotel/malaysia_hotel/johor_hotel/johor_hotel.html#pasir_gudang">Pasir Gudang Hotel</a>'
menu1[8]='<a href="/hotel/malaysia_hotel/johor_hotel/johor_hotel.html#pontian">Pontian Hotel</a>'
menu1[9]='<a href="/hotel/malaysia_hotel/johor_hotel/johor_hotel.html#pulai">Pulai Hotel</a>'
menu1[10]='<a href="/hotel/malaysia_hotel/johor_hotel/johor_hotel.html#skudai">Skudai Hotel</a>'
menu1[11]='<a href="#"></a>'
menu1[12]='<a href="/hotel/malaysia_hotel/johor_hotel/besar_island.html">Besar Island Hotel</a>'
menu1[13]='<a href="/hotel/malaysia_hotel/johor_hotel/pemanggil_island.html">Pemanggil Island Hotel</a>'
menu1[14]='<a href="/hotel/malaysia_hotel/johor_hotel/rawa_island.html">Rawa Island Hotel</a>'
menu1[15]='<a href="/hotel/malaysia_hotel/johor_hotel/tinggi_island.html">Tinggi Island Hotel</a>'

var menu2=new Array()//kedah
menu2[0]='<a href="/hotel/malaysia_hotel/kedah_hotel/kedah_hotel.html">All Hotel</a>'
menu2[1]='<a href="/hotel/malaysia_hotel/kedah_hotel/alor_setar.html">Alor Setar Hotel</a>'
menu2[2]='<a href="/hotel/malaysia_hotel/kedah_hotel/kedah_hotel.html#kulim">Kulim Hotel</a>'
menu2[3]='<a href="/hotel/malaysia_hotel/kedah_hotel/langkawi_island.html">Langkawi Island Hotel</a>'
menu2[4]='<a href="/hotel/malaysia_hotel/kedah_hotel/kedah_hotel.html#sungai_petani">Sungai Petani Hotel</a>'

var menu3=new Array()//kelantan
menu3[0]='<a href="/hotel/malaysia_hotel/kelantan_hotel/kelantan_hotel.html">All Hotel</a>'
menu3[1]='<a href="/hotel/malaysia_hotel/kelantan_hotel/kota_bahru.html">Kota Bahru Hotel</a>'
menu3[2]='<a href="/hotel/malaysia_hotel/kelantan_hotel/pantai_cahaya_bulan.html">Pantai Cahaya Bulan Hotel</a>'

var menu4=new Array()//malacca
menu4[0]='<a href="/hotel/malaysia_hotel/malacca_hotel/malacca_hotel.html">All Hotel</a>'
menu4[1]='<a href="/hotel/malaysia_hotel/malacca_hotel/malacca_hotel.html#alor_gajah">Alor Gajah Hotel</a>'
menu4[2]='<a href="/hotel/malaysia_hotel/malacca_hotel/malacca_hotel.html#ayer_keroh">Ayer Keroh Hotel</a>'
menu4[3]='<a href="/hotel/malaysia_hotel/malacca_hotel/malacca_town.html">City Centre Hotel</a>'
menu4[4]='<a href="/hotel/malaysia_hotel/malacca_hotel/tanjung_kling.html">Tanjung Kling Hotel</a>'

var menu5=new Array()//n.sembilan
menu5[0]='<a href="/hotel/malaysia_hotel/negeri_sembilan_hotel/negeri_sembilan_hotel.html">All Hotel</a>'
menu5[1]='<a href="/hotel/malaysia_hotel/negeri_sembilan_hotel/port_dickson.html">Port Dickson Hotel</a>'
menu5[2]='<a href="/hotel/malaysia_hotel/negeri_sembilan_hotel/negeri_sembilan_hotel.html">Putra Nilai Hotel</a>'
menu5[3]='<a href="/hotel/malaysia_hotel/negeri_sembilan_hotel/seremban.html">Seremban Hotel</a>'

var menu6=new Array()//pahang
menu6[0]='<a href="/hotel/malaysia_hotel/pahang_hotel/pahang_hotel.html">All Hotel</a>'
menu6[1]='<a href="/hotel/malaysia_hotel/pahang_hotel/bukit_tinggi.html">Bukit Tinggi Hotel</a>'
menu6[2]='<a href="/hotel/malaysia_hotel/pahang_hotel/cameron_highlands.html">Cameron Highlands Hotel</a>'
menu6[3]='<a href="/hotel/malaysia_hotel/pahang_hotel/cherating.html">Cherating Hotel</a>'
menu6[4]='<a href="/hotel/malaysia_hotel/pahang_hotel/fraser_hill.html">Fraser Hill Hotel</a>'
menu6[5]='<a href="/hotel/malaysia_hotel/pahang_hotel/genting_highlands.html">Genting Highlands Hotel</a>'
menu6[6]='<a href="/hotel/malaysia_hotel/pahang_hotel/pahang_hotel.html#kuala_rompin">Kuala Rompin Hotel</a>'
menu6[7]='<a href="/hotel/malaysia_hotel/pahang_hotel/kuantan.html">Kuantan Hotel</a>'
menu6[8]='<a href="/hotel/malaysia_hotel/pahang_hotel/taman_negara.html">Taman Negara Hotel</a>'
menu6[9]='<a href="/hotel/malaysia_hotel/pahang_hotel/pahang_hotel.html#temerloh">Temerloh Hotel</a>'
menu6[10]='<a href="/hotel/malaysia_hotel/pahang_hotel/tioman_island.html">Tioman Island Hotel</a>'

var menu7=new Array()//penang
menu7[0]='<a href="/hotel/malaysia_hotel/penang_hotel/penang_hotel.html">All Hotel</a>'
menu7[1]='<a href="/hotel/malaysia_hotel/penang_hotel/penang_hotel.html#airport">Airport Hotel</a>'
menu7[2]='<a href="/hotel/malaysia_hotel/penang_hotel/batu_ferringhi.html">Batu Ferringhi Hotel</a>'
menu7[3]='<a href="/hotel/malaysia_hotel/penang_hotel/penang_hotel.html#batu_uban">Batu Uban Hotel</a>'
menu7[4]='<a href="/hotel/malaysia_hotel/penang_hotel/penang_hotel.html#bukit_mertajam">Bukit Mertajam Hotel</a>'
menu7[5]='<a href="/hotel/malaysia_hotel/penang_hotel/georgetown.html">Georgetown Hotel</a>'
menu7[6]='<a href="/hotel/malaysia_hotel/penang_hotel/penang_hotel.html#gurney_drive">Gurney Drive Hotel</a>'
menu7[7]='<a href="/hotel/malaysia_hotel/penang_hotel/penang_hotel.html#seberang_jaya">Seberang Jaya Hotel</a>'
menu7[8]='<a href="/hotel/malaysia_hotel/penang_hotel/tanjung_bungah.html">Tanjung Bungah</a>'
menu7[9]='<a href="/hotel/malaysia_hotel/penang_hotel/jerejak_island.html">Jerejak Island</a>'

var menu8=new Array()//perak
menu8[0]='<a href="/hotel/malaysia_hotel/perak_hotel/perak_hotel.html">All Hotel</a>'
menu8[1]='<a href="/hotel/malaysia_hotel/perak_hotel/perak_hotel.html#batu_gajah">Batu Gajah Hotel</a>'
menu8[2]='<a href="/hotel/malaysia_hotel/perak_hotel/perak_hotel.html#bukit_merah">Bukit Merah Hotel</a>'
menu8[3]='<a href="/hotel/malaysia_hotel/perak_hotel/ipoh.html">Ipoh Hotel</a>'
menu8[4]='<a href="/hotel/malaysia_hotel/perak_hotel/perak_hotel.html#kampar">Kampar Hotel</a>'
menu8[5]='<a href="/hotel/malaysia_hotel/perak_hotel/perak_hotel.html#lumut">Lumut Hotel</a>'
menu8[6]='<a href="/hotel/malaysia_hotel/perak_hotel/perak_hotel.html#taiping">Taiping Hotel</a>'
menu8[7]='<a href="/hotel/malaysia_hotel/perak_hotel/pangkor_island.html">Pangkor Island Hotel</a>'

var menu9=new Array()//sabah
menu9[0]='<a href="/hotel/malaysia_hotel/sabah_hotel/sabah_hotel.html">All Hotel</a>'
menu9[1]='<a href="/hotel/malaysia_hotel/sabah_hotel/danum_valley.html">Danum Valley Hotel</a>'
menu9[2]='<a href="/hotel/malaysia_hotel/sabah_hotel/sabah_hotel.html#keningau">Keningau Hotel</a>'
menu9[3]='<a href="/hotel/malaysia_hotel/sabah_hotel/sabah_hotel.html#kinarut">Kinarut Hotel</a>'
menu9[4]='<a href="/hotel/malaysia_hotel/sabah_hotel/kota_kinabalu.html">Kota Kinabalu Hotel</a>'
menu9[5]='<a href="/hotel/malaysia_hotel/sabah_hotel/sabah_hotel.html#kudat">Kudat Hotel</a>'
menu9[6]='<a href="/hotel/malaysia_hotel/sabah_hotel/sabah_hotel.html#lahad_datu">Lahad Datu Hotel</a>'
menu9[7]='<a href="/hotel/malaysia_hotel/sabah_hotel/mount_kinabalu.html">Mount Kinabalu Hotel</a>'
menu9[8]='<a href="/hotel/malaysia_hotel/sabah_hotel/sabah_hotel.html#papar">Papar Hotel</a>'
menu9[9]='<a href="/hotel/malaysia_hotel/sabah_hotel/sabah_hotel.html#sandakan">Sandakan Hotel</a>'
menu9[10]='<a href="/hotel/malaysia_hotel/sabah_hotel/sabah_hotel.html#semporna">Semporna Hotel</a>'
menu9[11]='<a href="/hotel/malaysia_hotel/sabah_hotel/sabah_hotel.html#tawau">Tawau Hotel</a>'
menu9[12]='<a href="/hotel/malaysia_hotel/sabah_hotel/sabah_hotel.html#tuaran">Tuaran Hotel</a>'
menu9[13]='<a href="#"></a>'
menu9[14]='<a href="/hotel/malaysia_hotel/sabah_hotel/gaya_island.html">Gaya Island Hotel</a>'
menu9[15]='<a href="/hotel/malaysia_hotel/sabah_hotel/kapalai_island.html">Kapalai Island Hotel</a>'
menu9[16]='<a href="/hotel/malaysia_hotel/sabah_hotel/lankayan_island.html">Lankayan Island Hotel</a>'
menu9[17]='<a href="/hotel/malaysia_hotel/sabah_hotel/layang_layang_island.html">Layang-Layang Island Hotel</a>'
menu9[18]='<a href="/hotel/malaysia_hotel/sabah_hotel/mabul_island.html">Mabul Island Hotel</a>'
menu9[19]='<a href="/hotel/malaysia_hotel/sabah_hotel/mataking_island.html">Mataking Island Hotel</a>'
menu9[20]='<a href="/hotel/malaysia_hotel/sabah_hotel/sipadan_island.html">Sipadan Island Hotel</a>'
menu9[21]='<a href="/hotel/malaysia_hotel/sabah_hotel/tiga_island.html">Tiga Island Hotel</a>'

var menu10=new Array()//sarawak
menu10[0]='<a href="/hotel/malaysia_hotel/sarawak_hotel/sarawak_hotel.html">All Hotel</a>'
menu10[1]='<a href="/hotel/malaysia_hotel/sarawak_hotel/batang_ai.html">Batang Ai National Park Hotel</a>'
menu10[2]='<a href="/hotel/malaysia_hotel/sarawak_hotel/sarawak_hotel.html#bintulu">Bintulu Hotel</a>'
menu10[3]='<a href="/hotel/malaysia_hotel/sarawak_hotel/damai.html">Damai Beach Hotel</a>'
menu10[4]='<a href="/hotel/malaysia_hotel/sarawak_hotel/gunung_mulu.html">Gunung Mulu National Park Hotel</a>'
menu10[5]='<a href="/hotel/malaysia_hotel/sarawak_hotel/kuching.html">Kuching Hotel</a>'
menu10[6]='<a href="/hotel/malaysia_hotel/sarawak_hotel/sarawak_hotel.html#miri">Miri Hotel</a>'
menu10[7]='<a href="/hotel/malaysia_hotel/sarawak_hotel/mount_santubong.html">Mount Santubong Hotel</a>'
menu10[8]='<a href="/hotel/malaysia_hotel/sarawak_hotel/sarawak_hotel.html#sibu">Sibu Hotel</a>'

var menu11=new Array()//selangor
menu11[0]='<a href="/hotel/malaysia_hotel/selangor_hotel/selangor_hotel.html">All Hotel</a>'
menu11[1]='<a href="/hotel/malaysia_hotel/selangor_hotel/selangor_hotel.html#airport">Airport Hotel</a>'
menu11[2]='<a href="/hotel/malaysia_hotel/selangor_hotel/selangor_hotel.html#ampang">Ampang Hotel</a>'
menu11[3]='<a href="/hotel/malaysia_hotel/selangor_hotel/selangor_hotel.html#cyber">CyberJaya/Putrajaya Hotel</a>'
menu11[4]='<a href="/hotel/malaysia_hotel/selangor_hotel/selangor_hotel.html#damansara">Damansara Hotel</a>'
menu11[5]='<a href="/hotel/malaysia_hotel/selangor_hotel/selangor_hotel.html#klang">Klang Hotel</a>'
menu11[6]='<a href="/hotel/malaysia_hotel/selangor_hotel/selangor_hotel.html#kuala_selangor">Kuala Selangor Hotel</a>'
menu11[7]='<a href="/hotel/malaysia_hotel/selangor_hotel/selangor_hotel.html#mines_resort_city">MINES Resort City Hotel</a>'
menu11[8]='<a href="/hotel/malaysia_hotel/selangor_hotel/petaling_jaya.html">Petaling Jaya Hotel</a>'
menu11[9]='<a href="/hotel/malaysia_hotel/selangor_hotel/shah_alam.html">Shah Alam Hotel</a>'
menu11[10]='<a href="/hotel/malaysia_hotel/selangor_hotel/selangor_hotel.html#subang_usj">Subang/USJ Hotel</a>'
menu11[11]='<a href="/hotel/malaysia_hotel/selangor_hotel/selangor_hotel.html#sunway">Sunway Hotel</a>'

var menu12=new Array()//terengganu
menu12[0]='<a href="/hotel/malaysia_hotel/terengganu_hotel/terengganu_hotel.html">All Hotel</a>'
menu12[1]='<a href="/hotel/malaysia_hotel/terengganu_hotel/terengganu_hotel.html#batu_rakit">Batu Rakit Hotel</a>'
menu12[2]='<a href="/hotel/malaysia_hotel/terengganu_hotel/kenyir_lake.html">Kenyir Lake Hotel</a>'
menu12[3]='<a href="/hotel/malaysia_hotel/terengganu_hotel/terengganu_hotel.html#kijal">Kijal Hotel</a>'
menu12[4]='<a href="/hotel/malaysia_hotel/terengganu_hotel/kuala_terengganu.html">Kuala Terengganu Hotel</a>'
menu12[5]='<a href="/hotel/malaysia_hotel/terengganu_hotel/terengganu_hotel.html#marang">Marang Hotel</a>'
menu12[6]='<a href="/hotel/malaysia_hotel/terengganu_hotel/terengganu_hotel.html#merang">Merang Hotel</a>'
menu12[7]='<a href="/hotel/malaysia_hotel/terengganu_hotel/terengganu_hotel.html#paka">Paka Hotel</a>'
menu12[8]='<a href="/hotel/malaysia_hotel/terengganu_hotel/terengganu_hotel.html#tanjung_jara">Tanjung Jara Hotel</a>'
menu12[9]='<a href="#"></a>'
menu12[10]='<a href="/hotel/malaysia_hotel/terengganu_hotel/gemia_island.html">Gemia Island Hotel</a>'
menu12[11]='<a href="/hotel/malaysia_hotel/terengganu_hotel/kapas_island.html">Kapas Island Hotel</a>'
menu12[12]='<a href="/hotel/malaysia_hotel/terengganu_hotel/lang_tengah_island.html">Lang Tengah Island Hotel</a>'
menu12[13]='<a href="/hotel/malaysia_hotel/terengganu_hotel/perhentian_island.html">Perhentian Island Hotel</a>'
menu12[14]='<a href="/hotel/malaysia_hotel/terengganu_hotel/redang_island.html">Redang Island Hotel</a>'
menu12[15]='<a href="/hotel/malaysia_hotel/terengganu_hotel/tenggol_island.html">Tenggol Island Hotel</a>'

var disappeardelay=250  
var horizontaloffset=10 //horizontal offset of menu from default location. (0-5 is a good value)

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width: 160px" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}// JavaScript Document
