/********************************************************************************
Calling the write functions and setting variables
********************************************************************************/


//Variables to set

oFoldMenu=new foldoutMenuObj('oFoldMenu')
oFoldMenu.substay=false //Should the sub menus stay folded?  
oFoldMenu.sub2stay=false //Should the sub2 menus stay folded?
oFoldMenu.sub3stay=false //Should the sub3 menus stay folded? 
oFoldMenu.sub4stay=false //Should the sub4 menus stay folded?
oFoldMenu.sub5stay=false //Should the sub5 menus stay folded?  
oFoldMenu.sub6stay=false //Should the sub6 menus stay folded?  

oFoldMenu.menubetween=2 //The pixel value between the foldoutmenus


oFoldMenu.left=2 //The left position of the menu 
oFoldMenu.top=20 //The top position of the menu 
oFoldMenu.width=105 //The width of the menu
oFoldMenu.maxheight=300 //The maxheight of the menu, be sure to set this one high enough

//Setting styles
oFoldMenu.clFold="background-image: url(images/espaceur.gif); background-color: #CCCCCC; layer-background-color: #CCCCCC; width: 110"  //Regular styles for the topDivs
oFoldMenu.clSub="background-image: url(images/espaceur.gif); background-color: #FFCC33; layer-background-color: #FB8800; width: 110"  //Styles for the subDivs 
oFoldMenu.clSub2="background-image: url(images/espaceur.gif); background-color: #FFCC99; layer-background-color: #FB6600; width: 110"  //Styles for the sub2Divs
oFoldMenu.clSub3="background-image: url(images/espaceur.gif); background-color: #FB4400; layer-background-color: #FB4400; width: 110" //Styles for the sub3Divs
oFoldMenu.clSub4="background-image: url(images/espaceur.gif); background-color: #66EE00; layer-background-color: #66EE00; width: 110" //Styles for the sub4Divs
oFoldMenu.clSub5="background-image: url(images/espaceur.gif); background-color: #99EE00; layer-background-color: #99EE00; width: 110" //Styles for the sub5Divs

oFoldMenu.clCont="position:absolute; width:100" //The cont layer, set position to relative if you want to try and have it inside a layer or whatever
oFoldMenu.clFoldLinks="font-family:Arial, Helvetica; font-size:13px; text-decoration:none; font-weight:normal; color:#CC0000" //The style for the toplinks
oFoldMenu.clSubLinks="font-family:Arial, Helvetica; font-size:13px; font-weight:normal; text-decoration:none; color:#CC0000" //The style for the sublinks
oFoldMenu.clSub2Links="font-family:Arial, Helvetica; font-size:12px; text-decoration:none; color:Black" //The style for the sub2links
oFoldMenu.clSub3Links="font-family:Arial, Helvetica; font-size:11px; text-decoration:none; color:Black" //The style for the sub3links
oFoldMenu.clSub4Links="font-family:Arial, Helvetica; font-size:10px; text-decoration:none; color:Black" //The style for the sub4links
oFoldMenu.clSub5Links="font-family:Arial, Helvetica; font-size:10px; text-decoration:none; color:Black" //The style for the sub5links

//Do not change this line!
oFoldMenu.makeStyle()


//Making menus

/*ARGUMENTS:
type = what type of menu this item is (top,sub,sub2,sub3,sub4,sub5)
text = the text for the item
lnk = the link for the item (not needed if submenus)
target = the target for the link (not needed if no target or no link)
offimage = the default "arrow" image for this element (if you spesify no text, you can use the image only)
onimage = the image to swap to when clicked (not needed if you don't want a swap image)
fc = if you want the item to execute another javascript function aswell use this
opn = if you want this particilar item to be opened on load set this to 1 (0,1)
*/

//MAIN 1
oFoldMenu.make('top','overview','index.htm',0,0,0)

//MAIN 2
oFoldMenu.make('top','spas','../spa/index.htm',0,0,0)

//MAIN 3
oFoldMenu.make('top','golf','../golf/index.htm',0,0,0)

//MAIN 4
oFoldMenu.make('top','tours','../subtours.htm',0,0,0)

//MAIN 5
oFoldMenu.make('top','shopping','../shopping/index.htm',0,0,0)

//MAIN 6
oFoldMenu.make('top','water sports','../hotels/daypass.htm',0,0,0)

//MAIN 7
oFoldMenu.make('top','tennis','../hotels/daypass.htm',0,0,0)
	

oFoldMenu.construct()

