/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=0
oCMenu.fromTop=0
oCMenu.rows=1 
oCMenu.menuPlacement="0"
                                                             
oCMenu.offlineRoot="menu/" 
oCMenu.onlineRoot="menu/" 
oCMenu.resizeCheck=1 
oCMenu.wait=0 
oCMenu.fillImg=""
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="697"
oCMenu.barHeight="menu"
oCMenu.barClass="clBar"
oCMenu.barX=0 
oCMenu.barY=0
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be specified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=130
oCMenu.level[0].height=28
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="bottom"

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=0
oCMenu.level[1].height=0
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=0
oCMenu.level[1].borderY=0
oCMenu.level[1].align=""
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass, align, rows, nolink, onclick, onmouseover, onmouseout)

If you need to launch a popup from one of the top nav buttons, use this code as a reference:
oCMenu.makeMenu('sub42','top4','','','_top','152','23','weddings_submenus_tour.gif','weddings_submenus_tour_roll.gif','','','right','','','window.open("http://tour.circlepix.com/tour.htm?id=264911&refurl=herecomestheguide.com","gallery","width=750,height=575")','','')
*************************************/


// Home
oCMenu.makeMenu('top0','','','../index.aspx','_top','94','19','../images/nav_home.gif','../images/nav_home_roll.gif','','','','','','','','')

// Guestrooms
oCMenu.makeMenu('top1','','','../guestrooms.aspx','_top','206','19','../images/nav_guestrooms.gif','../images/nav_guestrooms_roll.gif','','','','','','','','')

// Dining 
oCMenu.makeMenu('top2','','','../dining.aspx','_top','186','19','../images/nav_dining.gif','../images/nav_dining_roll.gif','','','','','','','','')
oCMenu.makeMenu('sub20','top2','','../dining_windsors.aspx','_top','163','30','../images/nav_dining_windsor.gif','../images/nav_dining_windsor_roll.gif','','','','','','','','')

// Meetings
oCMenu.makeMenu('top3','','','../meeting.aspx','_top','155','19','../images/nav_meeting.gif','../images/nav_meeting_roll.gif','','','','','','','','')
oCMenu.makeMenu('sub30','top3','','../meeting_kosher.aspx','_top','163','30','../images/nav_meeting_kosher.gif','../images/nav_meeting_kosher_roll.gif','','','','','','','','')
oCMenu.makeMenu('sub31','top3','','../meeting_weddings.aspx','_top','163','30','../images/nav_meeting_weddings.gif','../images/nav_meeting_weddings_roll.gif','','','right','','','','','')
oCMenu.makeMenu('sub32','top3','','../meeting_social.aspx','_top','163','30','../images/nav_meeting_social.gif','../images/nav_meeting_social_roll.gif','','','right','','','','','')
oCMenu.makeMenu('sub33','top3','','../meeting_rfp.aspx','_top','163','30','../images/nav_meeting_rfp.gif','../images/nav_meeting_rfp_roll.gif','','','right','','','','','')

// Contact
oCMenu.makeMenu('top4','','','../contact.aspx','_top','109','19','../images/nav_contact.gif','../images/nav_contact_roll.gif','','','','','','','','')


//Leave this line - it constructs the menu
oCMenu.construct();