/***********************************************
* AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

//Contents for menu 1 root of the site
var menu1=new Array()
menu1[0]='<a href="trips/Spring-Training/index.html">MAR > Barcelona Spring Training</a>'
menu1[1]='<a href="trips/Giro-Italia-trip-01/index.html">MAY > GIRO D&acute;ITALIA</a>'
menu1[2]='<a href="trips/Pyrenees-01/index.html">JUN > The Trans-Pyrenees Challenge</a>'
menu1[3]='<a href="trips/Dolomites-01/index.html">JUN > The Trans-Dolomites Challenge</a>'
menu1[4]='<a href="trips/Tour-de-France.html">JUL > TOUR DE FRANCE</a>'
menu1[5]='<a href="trips/Etape_du_Tour.html">JUL > ETAPE DU TOUR</a>'
menu1[6]='<a href="trips/Alps-01/index.php">AUG > The Trans-Alpine Challenge</a>'
menu1[7]='<a href="trips/Swiss-01/index.php">AUG > The Trans-Swiss Challenge</a>'
menu1[8]='<a href="trips/Pyrenees-01/index.html">SEP > The Trans-Pyrenees Challenge</a>'
menu1[9]='<a href="trips/Lombardy-01/index.html">SEP > Tour of Lombardy and Lake Como</a>'



//Contents for menu 1, 1 level down from root of the site
var menu11=new Array()
menu11[0]='<a href="../trips/Spring-Training/index.html">MAR > Barcelona Spring Training</a>'
menu11[1]='<a href="../trips/Giro-Italia-trip-01/index.html">MAY > GIRO D&acute;ITALIA</a>'
menu11[2]='<a href="../trips/Pyrenees-01/index.html">JUN > The Trans-Pyrenees Challenge</a>'
menu11[3]='<a href="../trips/Dolomites-01/index.html">JUN > The Trans-Dolomites Challenge</a>'
menu11[4]='<a href="../trips/Tour-de-France.html">JUL > TOUR DE FRANCE</a>'
menu11[5]='<a href="../trips/Etape_du_Tour.html">JUL > ETAPE DU TOUR</a>'
menu11[6]='<a href="../trips/Alps-01/index.php">AUG > The Trans-Alpine Challenge</a>'
menu11[7]='<a href="../trips/Swiss-01/index.php">AUG > The Trans-Swiss Challenge</a>'
menu11[8]='<a href="../trips/Pyrenees-01/index.html">SEP > The Trans-Pyrenees Challenge</a>'
menu11[9]='<a href="../trips/Lombardy-01/index.html">SEP > Tour of Lombardy and Lake Como</a>'


//Contents for menu 1, 2 levels down from root of the site
var menu12=new Array()
menu12[0]='<a href="../../trips/Spring-Training/index.html">MAR > Barcelona Spring Training</a>'
menu12[1]='<a href="../../trips/Giro-Italia-trip-01/index.html">MAY > GIRO D&acute;ITALIA</a>'
menu12[2]='<a href="../../trips/Pyrenees-01/index.html">JUN > The Trans-Pyrenees Challenge</a>'
menu12[3]='<a href="../../trips/Dolomites-01/index.html">JUN > The Trans-Dolomites Challenge</a>'
menu12[4]='<a href="../../trips/Tour-de-France.html">JUL > TOUR DE FRANCE</a>'
menu12[5]='<a href="../../trips/Etape_du_Tour.html">JUL > ETAPE DU TOUR</a>'
menu12[6]='<a href="../../trips/Alps-01/index.php">AUG > The Trans-Alpine Challenge</a>'
menu12[7]='<a href="../../trips/Swiss-01/index.php">AUG > The Trans-Swiss Challenge</a>'
menu12[8]='<a href="../../trips/Pyrenees-01/index.html">SEP > The Trans-Pyrenees Challenge</a>'
menu12[9]='<a href="../../trips/Lombardy-01/index.html">SEP > Tour of Lombardy and Lake Como</a>'

//
// trips n plus 1 menu
//Contents for menu 5 root of the site
//var menu5=new Array()
// menu5[0]='<a href="tripsnplus1/Spring-Training/index.php">Spring Training in Barcelona</a>'



//Contents for menu 5, 1 level down from root of the site
//var menu51=new Array()
// menu51[0]='<a href="../tripsnplus1/Spring-Training/index.php">Spring Training in Barcelona</a>'


//Contents for menu 5, 2 levels down from root of the site
//var menu52=new Array()
// menu52[0]='<a href="../../tripsnplus1/Spring-Training/index.php">Spring Training in Barcelona</a>'



//Contents for menu 2, root of the site
var menu2=new Array()
menu2[0]='<a href="why-thomson/index.html">Why Thomson Bike Tours</a>'
menu2[1]='<a href="why-thomson/FAQ.html">FAQ</a>'
menu2[2]='<a href="why-thomson/FRP.html">Frequent Rider Progam</a>'
menu2[3]='<a href="why-thomson/custom-trips.html">Custom Trips</a>'

//Contents for menu 2, 1 level down from root of the site
var menu21=new Array()
menu21[0]='<a href="../why-thomson/index.html">Why Thomson Bike Tours</a>'
menu21[1]='<a href="../why-thomson/FAQ.html">FAQ</a>'
menu21[2]='<a href="../why-thomson/FRP.html">Frequent Rider Progam</a>'
menu21[3]='<a href="../why-thomson/custom-trips.html">Custom Trips</a>'

//Contents for menu 2, 2 levels down from root of the site
var menu22=new Array()
menu22[0]='<a href="../../why-thomson/index.html">Why Thomson Bike Tours</a>'
menu22[1]='<a href="../../why-thomson/FAQ.html">FAQ</a>'
menu22[2]='<a href="../../why-thomson/FRP.html">Frequent Rider Progam</a>'
menu22[3]='<a href="../../why-thomson/custom-trips.html">Custom Trips</a>'


//Contents for menu 3
var menu3=new Array()
menu3[0]='<a href="about-us/index.html">Our Staff</a>'
menu3[1]='<a href="about-us/contact-us.html">Contact Us</a>'
menu3[2]='<a href="about-us/in-the-press.html">In The Press</a>'
menu3[3]='<a href="about-us/links.html">Links</a>'

//Contents for menu 3, 1 level down from root of the site
var menu31=new Array()
menu31[0]='<a href="../about-us/index.html">Our Staff</a>'
menu31[1]='<a href="../about-us/contact-us.html">Contact Us</a>'
menu31[2]='<a href="../about-us/in-the-press.html">In The Press</a>'
menu31[3]='<a href="../about-us/links.html">Links</a>'

//Contents for menu 3, 2 levels down from root of the site
var menu32=new Array()
menu32[0]='<a href="../../about-us/index.html">Our Staff</a>'
menu32[1]='<a href="../../about-us/contact-us.html">Contact Us</a>'
menu32[2]='<a href="../../about-us/in-the-press.html">In The Press</a>'
menu32[3]='<a href="../../about-us/links.html">Links</a>'

//Contents for menu 4
var menu4=new Array()
menu4[0]='<a href="partners/orbea/index.html">Orbea</a>'
menu4[1]='<a href="partners/gtc/index.php">Grand Tour Coaching</a>'
menu4[2]='<a href="partners/vdo/index.html">VDO</a>'
menu4[3]='<a href="partners/continental/index.php">Continental</a>'
menu4[4]='<a href="partners/travelguard/index.php">Travel Guard</a>'
menu4[5]='<a href="partners/apresvelo/index.php">Apres Velo</a>'
//Contents for menu 4, 1 level down from root of the site
var menu41=new Array()
menu41[0]='<a href="../partners/orbea/index.html">Orbea</a>'
menu41[1]='<a href="../partners/gtc/index.php">Grand Tour Coaching</a>'
menu41[2]='<a href="../partners/vdo/index.html">VDO</a>'
menu41[3]='<a href="../partners/continental/index.php">Continental</a>'
menu41[4]='<a href="../partners/travelguard/index.php">Travel Guard</a>'
menu41[5]='<a href="../partners/apresvelo/index.php">Apres Velo</a>'
//Contents for menu 4, 2 levels down from root of the site
var menu42=new Array()
menu42[0]='<a href="../../partners/orbea/index.html">Orbea</a>'
menu42[1]='<a href="../../partners/gtc/index.php">Grand Tour Coaching</a>'
menu42[2]='<a href="../../partners/vdo/index.html">VDO</a>'
menu42[3]='<a href="../../partners/continental/index.php">Continental</a>'
menu42[4]='<a href="../../partners/travelguard/index.php">Travel Guard</a>'
menu42[5]='<a href="../../partners/apresvelo/index.php">Apres Velo</a>'

//Contents for menu 6
var menu6=new Array()
menu6[0]='<a href="https://shop.thomsonbiketours.com/">Cycle Clothing Home</a>'
var menu61=new Array()
menu61[0]='<a href="https://shop.thomsonbiketours.com/">Cycle Clothing Home</a>'
var menu62=new Array()
menu62[0]='<a href="https://shop.thomsonbiketours.com/">Cycle Clothing Home</a>'

var menuwidth='165px' //default menu width
var menubgcolor='#cccccc'  //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



