/*** 
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="/" 
oCMenu.onlineRoot="/" 
oCMenu.resizeCheck=1 
oCMenu.wait=0 
oCMenu.fillImg=""
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="634"
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=31
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")','','')
*************************************/

// Style & Innovation
oCMenu.makeMenu('top0', '', '', 'style.aspx', '_top', '184', '29', 'images/cta_style.gif', 'images/cta_style_roll.gif', '', '', '', '', '', '', '', '')
oCMenu.makeMenu('sub00','top0','','style.aspx','_top','184','33','images/snav_style_overview.gif','images/snav_style_overview_roll.gif','','','right','','','','','')
oCMenu.makeMenu('sub01','top0','','style_styles.aspx','_top','184','24','images/snav_style_styles.gif','images/snav_style_styles_roll.gif','','','right','','','','','')
oCMenu.makeMenu('sub02','top0','','style_finishes.aspx','_top','184','22','images/snav_style_finishes.gif','images/snav_style_finishes_roll.gif','','','right','','','','','')
oCMenu.makeMenu('sub03','top0','','style_green.aspx','_top','184','32','images/snav_style_green.gif','images/snav_style_green_roll.gif','','','right','','','','','')

// Take A Tour
oCMenu.makeMenu('top1', '', '', '', '_top', '150', '29', 'images/cta_tour.gif', 'images/cta_tour_roll.gif', '', '', '', '', '', 'window.open("tour.aspx","gallery","width=650,height=500")', '', '')
oCMenu.makeMenu('sub10','top1','','','_top','150','40','images/snav_tour.gif','images/snav_tour_roll.gif','','','right','','','window.open("tour.aspx","gallery","width=650,height=500")','','')

// Customer Support
oCMenu.makeMenu('top2', '', '', 'support_contact.aspx', '_top', '168', '29', 'images/cta_customer.gif', 'images/cta_customer_roll.gif', '', '', '', '', '', '', '', '')
oCMenu.makeMenu('sub20','top2','','support_contact.aspx','_top','168','33','images/snav_customer_contact.gif','images/snav_customer_contact_roll.gif','','','right','','','','','')
oCMenu.makeMenu('sub21', 'top2', '', 'support_warranty.aspx', '_top', '168', '24', 'images/snav_customer_warranty.gif', 'images/snav_customer_warranty_roll.gif', '', '', 'right', '', '', '', '', '')
oCMenu.makeMenu('sub22', 'top2', '', 'support_faq.aspx', '_top', '168', '32', 'images/snav_customer_faq.gif', 'images/snav_customer_faq_roll.gif', '', '', 'right', '', '', '', '', '')

// Company
oCMenu.makeMenu('top3', '', '', 'company.aspx', '_top', '132', '29', 'images/cta_company.gif', 'images/cta_company_roll.gif', '', '', '', '', '', '', '', '')
oCMenu.makeMenu('sub30','top3','','company.aspx','_top','124','33','images/snav_company_overview.gif','images/snav_company_overview_roll.gif','','','right','','','','','')
oCMenu.makeMenu('sub31','top3','','company_vision.aspx','_top','124','24','images/snav_company_vision.gif','images/snav_company_vision_roll.gif','','','right','','','','','')
oCMenu.makeMenu('sub32','top3','','company_history.aspx','_top','124','32','images/snav_company_history.gif','images/snav_company_history_roll.gif','','','right','','','','','')

//Leave this line - it constructs the menu
oCMenu.construct()