/***********************************************
* 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
***********************************************/

//menu for heritage
var menu1=new Array()
//menu1[0]='<a href="gemstone-SubtleEnergy.htm">Working With Subtle Energy</a>'
//menu1[1]='<a href="gemstone-Aura.htm">Aura</a>'
//menu1[2]='<a href="gemstone-ChakrasAndGemstones.htm">Chakras And Gemstones</a>'
//menu1[3]='<a href="gemstone-GemstonesHealing.htm">Gemstones Healing</a>'
//menu1[4]='<a href="gemstone-PlanetaryGemstones.htm">Planetary Gemstones</a>'
//menu1[5]='<a href="gemstone_synthetic.htm">Synthetic Gemstones Education</a>'
// keep for future
//menu1[6]='<a href="Heritage-RSGC Trophies.htm">RSGC Trophies</a>'
//menu1[7]='<a href="Heritage-The Archives.htm">The Archives</a>'

//menu for golf
var menu2=new Array()
//menu2[0]='<a href="photo.htm">Activities Photo Gallery</a>'
//menu2[1]='<a href="Golf-Driving Range.htm">Driving Range</a>'
//menu2[2]='<a href="Golf-Golf Services.htm">Golfing Services</a>'
//menu2[3]='<a href="Golf-Rules.htm">Rules & Policies</a>'
//menu2[4]='<a href="Golf-Fixtures Current.htm">Fixtures</a>'
//menu2[5]='<a href="Golf-Results Men.htm">Results Men</a>'
//menu2[6]='<a href="Golf-Results Ladies.htm">Results Ladies</a>'
//menu2[7]='<a href="Golf-Hole in One.htm">Hole-in-One</a>'
//menu2[8]='<a href="Golf-Junior Golf Programme.htm">Junior Golf</a>'


//menu for sports
var menu3=new Array()
menu3[0]='<a href="Sports-Tennis.htm">Tennis</a>'
menu3[1]='<a href="Sports-Swimming.htm">Swimming</a>'
menu3[2]='<a href="Sports-Squash.htm">Squash</a>'
menu3[3]='<a href="Sports-Gymnasium.htm"">Gymnasium</a>'
menu3[4]='<a href="Sports-Billiards.htm">Billiards</a>'
menu3[5]='<a href="Sports-Martial Arts Classes.htm">Martial Arts</a>'
menu3[6]='<a href="Sports-Junior Tennis.htm">Junior Tennis</a>'
menu3[7]='<a href="Sports-Events.htm">Events Calendar</a>'


//menu for lifestyle
var menu4=new Array()
menu4[0]='<a href="Lifestyle-Dance Lessons.htm">Social Dancing</a>'
menu4[1]='<a href="Lifestyle-Fitness Classes.htm">Fitness Exercises</a>'
menu4[2]='<a href="Lifestyle-Personal Training.htm">Personal Training</a>'
menu4[3]='<a href="Lifestyle-Rejuvenate.htm">Rejuvenate</a>'
menu4[4]='<a href="Lifestyle-Pastimes.htm">Pastimes</a>'
menu4[5]='<a href="Lifestyle-Grooming.htm">Grooming</a>'


//menu for indulge
var menu5=new Array()
menu5[0]='<a href="Indulge-Promotions.htm">F&B Promotions</a>'
menu5[1]='<a href="Indulge-Main Lounge.htm">Main Lounge</a>'
menu5[2]='<a href="Indulge-1893.htm">1893 & Courtyard</a>'
menu5[3]='<a href="Indulge-Fairway.htm">Fairway</a>'
menu5[4]='<a href="Indulge-Men Bar.htm">Men\'s Bar</a>'
//menu5[4]='<a href="Indulge-Garden Terrace.htm">Garden Terrace</a>'
menu5[5]='<a href="Indulge-Poolside Pavilion.htm">Poolside Pavilion</a>'
menu5[6]='<a href="Indulge-Rotunda.htm">Rotunda</a>'


//menu for happenings
var menu6=new Array()
menu6[0]='<a href="Happenings-Events.htm">Events & Social</a>'
// keep for future
//menu6[1]='<a href="Happenings-Photos.htm">Photo Gallery</a>'

//menu for reciprocals
var menu7=new Array()
menu7[0]='<a href="Reciprocal-Main.htm">List by Country</a>'

//menu for general
var menu8=new Array()
menu8[0]='<a href="General-Management.htm">Management</a>'
menu8[1]='<a href="General-Corporate Golf.htm">Corporate Golf</a>'
menu8[2]='<a href="General-Private Functions.htm">Private Functions</a>'
menu8[3]='<a href="General-Advertising.htm">Advertising</a>'
//keep for future
//menu8[4]='<a href="General-Resources.htm">Resources & FAQ</a>'

var menuwidth		= '305px' //default menu width
var menubgcolor		= ''  //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
