

/***********************************************
* 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
var menu1=new Array()
menu1[1]='<a href="http://www.tuwanekhotel.com/rewardpoints.html">Use your Points</a>' 
menu1[2]='<a href="http://www.tuwanekhotel.com/accom.html#casa">Casa Blanca Suite</a>'
menu1[3]='<a href="http://www.tuwanekhotel.com/accom.html#african">African Queen Suite</a>'
menu1[4]='<a href="http://www.tuwanekhotel.com/accom.html#bogeys">Bogeys Beach Suite</a>'
menu1[5]='<a href="http://www.tuwanekhotel.com/accom.html#watersedge">Water’s Edge Private Spa Suite</a>'
menu1[6]='<a href="http://www.tuwanekhotel.com/accom.html#tree">Tree House Cottage</a>'
menu1[7]='<a href="http://www.tuwanekhotel.com/accom.html#wildberry">Wildberry Cottage</a>'
menu1[8]='<a href="http://www.tuwanekhotel.com/accom.html#creek">Creekside Cottage</a>'
menu1[9]='<a href="http://www.tuwanekhotel.com/accom.html#palms">Indian Palms Luxury Condo</a>'
menu1[10]='<a href="http://tuwanekhotel.com/bigwhitecottage.html">Big White Ski Condo Kelowna</a>'
menu1[11]='<a href="http://tuwanekhotel.com/sundancecondo.html">Sundance Ridge Condo Kelowna</a>'
menu1[12]='<a href="http://www.tuwanekhotel.com/vtours/index.html">Take a Virtual Tour</a>'
menu1[13]='<a href="http://www.tuwanekhotel.com/spa.html">Sunshine Coast Spa Services</a>'
menu1[14]='<a href="http://www.tuwanekhotel.com/giftcertificates.html">Buy Gift Certificates</a>'
menu1[15]='<a href="http://www.tuwanekhotel.com/breakfastmenus.html">Breakfast Menus</a>'

//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="http://www.atthewatersedge.com/sunshinecoastspaservices.html#swed" target="_blank">Classic Massage</a>'
menu2[1]='<a href="http://www.atthewatersedge.com/sunshinecoastspaservices.html#pump" target="_blank">Scrubs and Wraps</a>'
menu2[2]='<a href="http://www.atthewatersedge.com/sunshinecoastspaservices.html#em" target="_blank">Signature Facials</a>'
menu2[3]='<a href="http://www.atthewatersedge.com/sunshinecoastspaservices.html#manicure" target="_blank">Manicure and Pedicure</a>'
menu2[4]='<a href="http://www.atthewatersedge.com/sunshinecoastspaservices.html#yoga" target="_blank">Private Yoga Classes</a>'
menu2[5]='<a href="http://www.atthewatersedge.com/sunshinecoastspaservices.html#package" target="_blank">Spa Bundles</a>'
menu2[6]='<a href="http://www.atthewatersedge.com/spaspecials.html" target="_blank">This Month’s Specials</a>'
menu2[7]='<a href="http://www.tuwanekhotel.com/giftcardsspa.html">Buy Gift Cards</a>'

//Contents for menu 3, and so on
var menu3=new Array()
menu3[0]='<a href="http://www.tuwanekhotel.com/clubroom.html#movie">Movie Theatre</a>'
menu3[1]='<a href="http://www.tuwanekhotel.com/clubroom.html#games">Games Room</a>'
menu3[2]='<a href="http://www.tuwanekhotel.com/clubroom.html#busi">Business Centre</a>'
menu3[3]='<a href="http://www.tuwanekhotel.com/clubroom.html#snack">Snack Bar</a>'
menu3[3]='<a href="http://www.tuwanekhotel.com/amenities_calling.html">Complimentary Calling</a>'

var menu4=new Array()
menu4[0]='<a href="http://www.tuwanekhotel.com/accom.html#tree">Accommodations</a>'
menu4[1]='<a href="http://www.treehousecottage.com/avail.html">Availability</a>'

var menu5=new Array()
menu5[0]='<a href="http://www.tuwanekhotel.com/packages.html#coastal">Coastal Escape Getaway</a>'
menu5[1]='<a href="http://www.tuwanekhotel.com/packages.html#water">Waters Edge Spa Getaway</a>'
menu5[2]='<a href="http://www.tuwanekhotel.com/packages.html#eminence">Eminence Day at the Spa Getaway</a>'
menu5[3]='<a href="http://www.tuwanekhotel.com/packages.html#girls">Girls Getaway Weekend at the Spa</a>'
menu5[4]='<a href="http://www.tuwanekhotel.com/packages.html#honey">Honeymoon/Anniversary Getaway</a>'
menu5[5]='<a href="http://www.tuwanekhotel.com/weddings.html">Wedding Ceremonies</a>'
menu5[6]='<a href="http://www.tuwanekhotel.com/weddingvowrenewals.html">Wedding Vow Renewals</a>'
menu5[7]='<a href="http://www.tuwanekhotel.com/packages.html#fly">The Flying Getaway</a>'
menu5[8]='<a href="http://www.tuwanekhotel.com/packages.html#kayak">The Sea Kayaking Getaway</a>'

var menu6=new Array()
menu6[0]='<a href="http://www.tuwanekhotel.com/restaurants.html">Restaurants</a>'
menu6[1]='<a href="http://www.tuwanekhotel.com/sunshinecoastevents.html">Community Events</a>'
menu6[2]='<a href="http://www.tuwanekhotel.com/seakayaking.html">Sea Kayaking</a>'
menu6[3]='<a href="http://www.tuwanekhotel.com/activities.html#hike">Hiking and Walking</a>'
menu6[4]='<a href="http://www.tuwanekhotel.com/activities.html#bird">Bird Watching</a>'
menu6[5]='<a href="http://www.tuwanekhotel.com/skookumchuckrapids.html">Skookumchuck Narrows</a>'
menu6[6]='<a href="http://www.tuwanekhotel.com/activities.html#princess">Princess Louisa Tours</a>'
menu6[7]='<a href="http://www.tuwanekhotel.com/golfcourses.html">Golfing</a>'
menu6[8]='<a href="http://www.tuwanekhotel.com/divingthesunshinecoast.html">Diving</a>'
menu6[9]='<a href="http://www.tuwanekhotel.com/activities.html#snow">Snow Shoeing</a>'
menu6[10]='<a href="http://www.tuwanekhotel.com/tetrahedronprovincialpark.html">Tetrahedron Park</a>'

var menu7=new Array()
menu7[0]='<a href="http://www.tuwanekhotel.com/pdfs/directions.pdf">Printable Map</a>'
menu7[1]='<a href="http://www.tuwanekhotel.com/traveltips.html">Travel Tips</a>'

var menu8=new Array()
menu8[0]='<a href="http://www.tuwanekhotel.com/contact.html">Toll-free phone</a>'
menu8[1]='<a href="mailto:info@tuwanekhotel.com">Email Us</a>'
menu8[2]='<a href="http://messenger.providesupport.com/messenger/tranquility.html">Guest Concierge</a>'
menu8[3]='<a href="http://www.tuwanekhotel.com/employment.html">Employment Opportunity</a>'

var menu9=new Array()
menu9[0]='<a href="http://www.tuwanekhotel.com/rates.html">Rates 2009/2010</a>'
menu9[1]='<a href="http://www.tuwanekhotel.com/corporaterates.html">Corporate Rates</a>'
menu9[2]='<a href="http://www.tuwanekhotel.com/policies.html">Reservation Policies</a>'

var menu10=new Array()
menu10[0]='<a href="http://www.tuwanekhotel.com/reviews.html">Reviews and Press</a>'
menu10[1]='<a href="http://www.tripadvisor.com/Hotel_Review-g499146-d1076463-Reviews-Tuwanek_Hotel-Sechelt_Sunshine_Coast_British_Columbia.html" target="_blank">Trip Advisor Reviews</a>'
menu10[2]='<a href="http://www.tuwanekhotel.com/bestgreenhotels.html">Best Green Hotels</a>'
menu10[3]='<a href="http://www.tuwanekhotel.com/bestplacestokiss.html">Best Places to Kiss</a>'
menu10[4]='<a href="http://www.tuwanekhotel.com/communitygiving.html">Community Giving</a>'

var menu11=new Array()
menu11[0]='<a href="http://www.tuwanekhotel.com/specials.html">Getaway Specials </a>'
menu11[1]='<a href="http://www.tuwanekhotel.com/specials.html#spa">Cottage Spa Specials</a>'

var menu12=new Array()
menu12[0]='<a href="http://www.tuwanekhotel.com/guestbook.html">Guestbook 2009</a>'
menu12[1]='<a href="http://www.tuwanekhotel.com/guestbook.html">Guestbook 2008</a>'
menu12[2]='<a href="http://www.tuwanekhotel.com/guestbook.html">Guestbook 2007-1998</a>'


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