//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="cuzco_machu.php">Cuzco &amp; Machu Picchu 3-6 days</a>'
menu1[1]='<a href="inca_trail.php">Inca Trail Trek 2-5 days</a>'
menu1[2]='<a href="amazon.php">Amazon & Manu 3-9 days</a>'
menu1[3]='<a href="lake_titicaca.php">Lake Titicaca 3-5 days</a>'
menu1[4]='<a href="lima1.php">Lima 2-4 days</a>'
menu1[5]='<a href="nazca.php">Nazca & Ballestas Islands 1-3 days</a>'
menu1[6]='<a href="arequipa.php">Arequipa 2-3 days</a>'
menu1[7]='<a href="chiclayo.php">Chiclayo 2-3 days</a>'
menu1[8]='<a href="trujillo.php">Trujillo 2-3 days</a>'
menu1[9]='<a href="cajamarca.php">Cajamarca 2-3 days</a>'
menu1[10]='<a href="ayacucho.php">Ayacucho 2-3 days</a>'
menu1[11]='<a href="huaraz.php">Huaraz 3-6 days</a>'
menu1[12]='<a href="kuelap.php">Kuelap &amp; Chachapoyas 4-9 days</a>'
menu1[13]='<a href="camping_treks.php">Camping &amp; Treks 2-9 days</a>'


//Contents for menu 2
var menu2=new Array()
menu2[0]='</a>'
menu2[1]='<a href="combined_cuzco_and_nazca.php">Cuzco & Nazca Lines 8 day</a>'
menu2[2]='<a href="combined_cuzco_paracas_nazca.php">Cuzco, Paracas & Nazca 9 day</a>'
menu2[3]='<a href="combined_highlands.php">Tour of the Highlands 9 day</a>'
menu2[4]='<a href="combined_tour_trail_combo.php">The Inca Trail & Tour Combo 9 day</a>'
menu2[5]='<a href="combined_mystical_world.php">The Mystical World 10 day</a>'
menu2[6]='<a href="combined_mystical_macaw_world.php">The "Mystical Macaw" World 10 day</a>'
menu2[7]='<a href="combined_incatrail_amazon.php">Inca Trail & Amazon 13 day</a>'
menu2[8]='<a href="combined_incatrail_highlands.php">Inca Trail & Highlands 13 day</a>'
menu2[9]='<a href="combined_macaw_cuzco_titicaca.php">The Mystical Highlands 14 day</a>'
menu2[10]='<a href="combined_inca_ancient.php">The Inca and Ancient Peru 14 day</a>'
menu2[11]='<a href="combined_incatrail_choqueqirao.php">Inca Trail & Choqueqirao 14 day</a>'
menu2[12]='<a href="combined_southern_cross.php">Cuzco, Titicaca & Arequipa 14 day</a>'
menu2[13]='<a href="combined_origins_of_amazon.php">Origins of the Amazon 15 day</a>'
menu2[14]='<a href="combined_trc_highlands_nazca.php">TRC, Highlands & Nazca 17 day</a>'
menu2[15]='<a href="combined_macaw_inca_titicaca.php">Amazon, Inca Trail & Titicaca 17 day</a>'
menu2[16]='<a href="combined_macaw_cuzco_titicaca_arequipa.php">Macaw Oasis & Southern Cross 17 day</a>'
menu2[17]='<a href="combined_peruguru_2.php">Peru Guru #2....21 day</a>'
menu2[18]='<a href="combined_peruguru_3.php">Peru Guru #3....24 day</a>'
menu2[19]='__MORE COMBO TRIPS AVAILABLE__</a>'

//Contents for menu 3
var menu3=new Array()
menu3[0]='</a>'
menu3[1]='___CUZCO, MACHU PICCHU & LIMA___</a>'
menu3[2]='<a href="cuzco_machu_5.php">Celestial World & Machu Picchu 5 day</a>'
menu3[3]='<a href="cuzco_machu_6A.php">The Capital of the Inca 6 day</a>'
menu3[4]='<a href="cuzco_machu_6.php">The Inca & Spaniards Capitals 7 day</a>'
menu3[5]='<a href="cuzco_machu_7.php">The Real Peru 8 day</a>'
menu3[6]='</a>'
menu3[7]='______CUZCO + OTHER REGIONS_____</a>'
menu3[8]='<a href="combined_cuzco_and_nazca.php">Cuzco & Nazca Lines 8 day</a>'
menu3[9]='<a href="combined_cuzco_paracas_nazca.php">Cuzco, Paracas & Nazca 9 day</a>'
menu3[10]='<a href="combined_highlands.php">Cuzco & Lake Titicaca 9 day</a>'
menu3[11]='<a href="combined_mystical_world.php">Cuzco & Amazon 10 day</a>'
menu3[12]='<a href="combined_mystical_macaw_world.php">Cuzco & Amazon Macaw Lick 10 day</a>'
menu3[13]='<a href="combined_macaw_cuzco_titicaca.php">The Mystical Highlands 14 day</a>'
menu3[14]='<a href="combined_southern_cross.php">Cuzco, Titicaca & Arequipa 14 day</a>'
menu3[15]='</a>'
menu3[15]='____CAMPING & INCA TRAIL TRIPS____</a>'
menu3[16]='<a href="camping_mountain_lodges_7.php">Mountain Lodges of Peru 7 day</a>'
menu3[17]='<a href="combined_tour_trail_combo.php">Cuzco & Inca Trail 9 day</a>'
menu3[18]='<a href="combined_incatrail_amazon.php">Inca Trail & Amazon 13 day</a>'
menu3[19]='<a href="combined_incatrail_highlands.php">Inca Trail & Lake Titicaca 13 day</a>'	
menu3[20]='<a href="combined_macaw_inca_titicaca.php">Amazon, Inca Trail & Titicaca 17 day</a>'
	
//Contents for menu 4
var menu4=new Array()
menu4[0]='_____________ECUADOR______________</a>'
menu4[1]='<a href="quito1.php">Quito Region 1-3 days</a>'
menu4[2]='<a href="galapagos.php">Galapagos 4-8 days</a>'
menu4[3]='______________BOLIVIA______________</a>'
menu4[4]='<a href="lapaz1.php">La Paz Region 1-4 days</a>'
menu4[5]='<a href="lake_titicaca.php">Lake Titicaca Region 3-5 days</a>'
menu4[6]='_PERU, ECUADOR & BOLIVIA COMBO_</a>'
menu4[7]='<a href="peru_ecuador_bolivia_combo.php">Peru, Ecuador & Bolivia 12-18 days</a>'
menu4[8]='<a href="combined_origins_of_inca.php">Origins of the Inca 13 days</a>'
menu4[9]='<a href="combined_bolivia_and_incatrail.php">Bolivia Sites & Peru Inca Trail 17 days</a>'
menu4[10]='<a href="combined_galapagos_fragatta_cuzco.php">Galapagos & Machu Picchu 14 days</a>'
menu4[11]='<a href="combined_incatrail_galapagos.php">Inca Trail & Galapagos 16 days</a>'
menu4[12]='<a href="combined_galapagos_estrelladelmar_cuzco.php">Galapagos & Machu Picchu 18 day</a>'


//Contents for menu 5
var menu5=new Array()
menu5[0]='<a href="specials.php">"About" our Specials</a>'
menu5[1]='<a href="specials_1.php">Super Saver Specials</a>'
menu5[2]='<a href="specials_2.php">Educators & Students</a>'
menu5[3]='<a href="specials_3.php">Travel Industry</a>'
menu5[4]='<a href="specials_4.php">Last Minute Group Deals</a>'




var menuwidth='165px' //default menu width
var menubgcolor='#FFE384'  //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=-500
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
