/*** 
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
oCMenu2=new makeCM("oCMenu2") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu2.pxBetween=0
oCMenu2.fromLeft=0
oCMenu2.fromTop=0
oCMenu2.rows=1 
oCMenu2.menuPlacement="0"
                                                             
oCMenu2.offlineRoot="/" 
oCMenu2.onlineRoot="/" 
oCMenu2.resizeCheck=1 
oCMenu2.wait=0 
oCMenu2.fillImg=""
oCMenu2.zIndex=0

//Background bar properties
oCMenu2.useBar=0
oCMenu2.barWidth="634"
oCMenu2.barHeight="menu"
oCMenu2.barClass="clBar"
oCMenu2.barX=0 
oCMenu2.barY=0
oCMenu2.barBorderX=0
oCMenu2.barBorderY=0
oCMenu2.barBorderClass=""

//Level properties - ALL properties have to be specified in level 0
oCMenu2.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu2.level[0].width=130
oCMenu2.level[0].height=31
oCMenu2.level[0].regClass="clLevel0"
oCMenu2.level[0].overClass="clLevel0over"
oCMenu2.level[0].borderX=0
oCMenu2.level[0].borderY=0
oCMenu2.level[0].borderClass="clLevel0border"
oCMenu2.level[0].offsetX=0
oCMenu2.level[0].offsetY=0
oCMenu2.level[0].rows=0
oCMenu2.level[0].arrow=0
oCMenu2.level[0].arrowWidth=0
oCMenu2.level[0].arrowHeight=0
oCMenu2.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
oCMenu2.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu2.level[1].width=0
oCMenu2.level[1].height=0
oCMenu2.level[1].regClass="clLevel1"
oCMenu2.level[1].overClass="clLevel1over"
oCMenu2.level[1].borderX=0
oCMenu2.level[1].borderY=0
oCMenu2.level[1].align=""
oCMenu2.level[1].offsetX=0
oCMenu2.level[1].offsetY=0
oCMenu2.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:
oCMenu2.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")','','')
*************************************/

// Kitchen Products
oCMenu2.makeMenu('topp0', '', '', 'kitchen.aspx', '_top', '450', '30', 'images/nav_kitchen.gif', 'images/nav_kitchen_roll.gif', '', '', '', '', '', '', '', '')
oCMenu2.makeMenu('subb00','topp0','','kitchen.aspx','_top','450','38','images/snav_kit_overview.gif','images/snav_kit_overview_roll.gif','','','right','','','','','')
//oCMenu2.makeMenu('subb01','topp0','','kitchen_new.aspx','_top','450','22','images/snav_kit_new.gif','images/snav_kit_new_roll.gif','','','right','','','','','')
oCMenu2.makeMenu('subb01','topp0','','kitchen','_top','450','23','images/snav_kit_coll.gif','images/snav_kit_coll_roll.gif','','','right','','','','','')

// Bath Products
oCMenu2.makeMenu('topp1', '', '', 'bath.aspx', '_top', '450', '30', 'images/nav_bath.gif', 'images/nav_bath_roll.gif', '', '', '', '', '', '', '', '')
oCMenu2.makeMenu('subb10','topp1','','bath.aspx','_top','450','38','images/snav_bath_overview.gif','images/snav_bath_overview_roll.gif','','','','','','','','')
//oCMenu2.makeMenu('subb11','topp1','','bath_new.aspx','_top','450','22','images/snav_bath_new.gif','images/snav_bath_new_roll.gif','','','','','','','','')
oCMenu2.makeMenu('subb11','topp1','','bath','_top','450','23','images/snav_bath_coll.gif','images/snav_bath_coll_roll.gif','','','','','','','','')
//oCMenu2.makeMenu('subb13','topp1','','bath_categories.aspx','_top','450','22','images/snav_bath_cat.gif','images/snav_bath_cat_roll.gif','','','','','','','','')
//oCMenu2.makeMenu('subb14','topp1','','bath_gallery.aspx','_top','450','32','images/snav_bath_gallery.gif','images/snav_bath_gallery_roll.gif','','','','','','','','')

//Leave this line - it constructs the menu
oCMenu2.construct()