//Contents for trekking
var menu1=new Array()
menu1[0]='<a href="annapurnatrekking.php">Annapurna Region Trek</a>'
menu1[1]='<a href="everesttrekking.php">Everest Region Trek</a>'
menu1[2]='<a href="langtangtrekking.php">Langtang & Helambu Trek</a>'
menu1[3]='<a href="dhaulagiri_treks.php">Dhaulagiri Trekking</a>'
menu1[4]='<a href="dolpo_php.php">Dolpo Trekking</a>'
menu1[5]='<a href="kanchenjunga_trek.php">Kanchenjunga Trek</a>'
menu1[6]='<a href="manaslu_treks.php">Manalu Circuit Trek</a>'
menu1[7]='<a href="makalu_treks.php">Makalu Trekking</a>'
menu1[8]='<a href="upper_mustang.php">Upper Mustang Trek</a>'


//Contents expedition in nepal
var menu2=new Array()
menu2[0]='<a href="everest_exp.php">Everest Expedition</a>'
menu2[1]='<a href="amadablam_expedition.php">Amadablam Expedition</a>'
menu2[2]='<a href="kanchenjunga_exp.php">Kanchenjunga Expedition</a>'
menu2[3]='<a href="makalu_expedition.php">Makalu Expedition</a>'
menu2[4]='<a href="thamserku_exp.php">Thamserku Expedition</a>'
menu2[5]='<a href="pumori_exp.php">Pumori Expedition</a>'
menu2[6]='<a href="lhotse_exp.php">Lhotse Expedition</a>'
menu2[7]='<a href="shisapangma_expedition.php">Shisapangma Expedition</a>'
menu2[8]='<a href="cholatse_exp.php">Cholatse Expedition</a>'
menu2[9]='<a href="chooyu_exp.php">Cho Oyu Expedition</a>'
menu2[10]='<a href="hungchi_exp.php">Hungchi Expedition</a>'
menu2[11]='<a href="labuche_exp.php">Lobuche Expedition</a>'


//Contents expedition in tibet
var menu3=new Array()
menu3[0]='<a href="everest_expedition_north.php">Everest Expedition (North)</a>'
menu3[1]='<a href="gurla_mandata_expedition.php">Gurla Mandata Expedition</a>'
menu3[2]='<a href="chooyu_exp.php">Cho Oyu Expedition</a>'
menu3[3]='<a href="shisapangma_expedition.php">Shisapangma Expedition</a>'
menu3[4]='<a href="nyenchen_thangla_expedition.php">Nyenchen Thangla Expedition</a>'
menu3[5]='<a href="lakpa_ri_expedition.php">Lhakpa - Ri Expedition</a>'

//Contents expedition peak climbing
var menu4=new Array()
menu4[0]='<a href="cholatse_peak.php">Cholatse Peak Climbing</a>'
menu4[1]='<a href="chulu_east.php">Chulu Centre Peak Climbing</a>'
menu4[2]='<a href="chulu_west.php">Chulu West Peak Climbing</a>'
menu4[3]='<a href="dhampus_peak.php">Dhampus Peak Climbing</a>'
menu4[4]='<a href="hiunchulipeak.php">Hiunchuli Peak Climbing</a>'
menu4[5]='<a href="island_peak.php">Island Peak Climbing</a>'
menu4[6]='<a href="lobuchepeak.php">Lobuche Peak Climbing</a>'
menu4[7]='<a href="mardihimal.php">Mardi Himal Peak Climbing</a>'
menu4[8]='<a href="mera_peak.php">Mera Peak Climbing</a>'
menu4[9]='<a href="naya_khang.php">Naya Khang Climbing</a>'
menu4[10]='<a href="pachharmo_peak_climbing.php">Pachharmo Peak Climbing</a>'
menu4[11]='<a href="paldorpeak.php">Paldor Peak Climbing</a>'
menu4[12]='<a href="pisang_peak.php">Pisang Peak Climbing</a>'
menu4[13]='<a href="pokhaldepeak.php">Pokhalde Peak Climbing</a>'
menu4[14]='<a href="ramdhung_peakclimbing.php">Ramdhung Peak Climbing</a>'
menu4[15]='<a href="singchuli_peak.php">Singchuli Peak Climbing</a>'
menu4[16]='<a href="tharpuchuli_tent_peak.php">Tharpu Chuli Peak Climbing</a>'
menu4[17]='<a href="yalapeakclimbing.php">Yala Peak Climbing</a>'


var menuwidth='170px' //default menu width
var menubgcolor='#08A3D9'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" 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="-500px"
if (menuwidth!=""){
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 < 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 up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
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")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"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)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

//end drop down menu