/*** 
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

oCMenu.frames=0

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=5 
oCMenu.fromTop=60   
oCMenu.rows=1 
oCMenu.menuPlacement="left"

oCMenu.openOnClick=1                                                            
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=700 
oCMenu.fillImg="http://www.dodge-reliance.com/images_site/cm_fill.gif"
oCMenu.zIndex=500

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth=640
oCMenu.barHeight=17
oCMenu.barClass="clBar"
oCMenu.barX=0
oCMenu.barY=63
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=325
oCMenu.level[0].height=17 
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=6
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=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=185
oCMenu.level[1].height=17
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=1
oCMenu.level[1].borderY=1
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=-10
oCMenu.level[1].offsetY=2
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].arrow=""
oCMenu.level[1].arrowWidth=13
oCMenu.level[1].arrowHeight=9
oCMenu.zIndex[1]=200

//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to specify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=185
oCMenu.level[2].height=17
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"
oCMenu.level[2].align="right"
oCMenu.level[2].offsetX=-5
oCMenu.level[2].offsetY=0
oCMenu.level[2].borderClass="clLevel2border"
oCMenu.level[2].arrow="http://www.dodge-reliance.com/images_site/menu_arrow.gif"
oCMenu.level[2].arrowWidth=13
oCMenu.level[2].arrowHeight=9
oCMenu.zIndex[2]=200

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/

/* Home */
oCMenu.makeMenu('top0','','Home','http://www.dodge-reliance.com/','','53','17','','')
	
/* Productss */
oCMenu.makeMenu('top1','','Products','http://www.reliance.com/prodserv/products.htm','','70','17','','')
	oCMenu.makeMenu('sub100','top1','Dodge Products','http://www.dodge-pt.com','','200')
	oCMenu.makeMenu('sub101','top1','Reliance Products','http://www.reliance.com/prodserv/products.htm','','200')
	oCMenu.makeMenu('sub102','top1','Baldor Products','http://www.baldor.com/products/default.asp','','200')
	oCMenu.makeMenu('sub103','top1','Renewal Parts / Custom Classics','http://www.dodge-reliance.com/renewal_parts/index.html','','200')
	oCMenu.makeMenu('sub104','top1','System-1','http://www.dodge-reliance.com/system1/index.html','_blank','200')
	
/* Tools */
oCMenu.makeMenu('top2','','Tools','','','49','17','','')
		oCMenu.makeMenu('sub200','top2','Dodge Product Literature','http://www.dodge-pt.com/literature/index.html','','300')
		oCMenu.makeMenu('sub201','top2','Baldor - Reliance Literature','http://www.baldor.com/support/literature.asp','','300')		
		oCMenu.makeMenu('sub202','top2','SOLUTIONS Magazine','http://www.dodge-reliance.com/literature/magazine/index.html','','300')
		oCMenu.makeMenu('sub203','top2','Industrial Product Configurator','http://www.drconfig.com','','300')	
		oCMenu.makeMenu('sub205','top2','+ Services & Solutions','','','300')
		oCMenu.makeMenu('sub20502','sub205','Industry','http://www.dodge-reliance.com/industry/index.html','','150')
		oCMenu.makeMenu('sub20503','sub205','Training',' http://www.baldor.com/support/custedu.asp','','150')
		oCMenu.makeMenu('sub206','top2','PT Wizard CD','http://www.dodge-pt.com/pt_wizard/pt_wizard.html','','300')
		oCMenu.makeMenu('sub207','top2','PT Wizard Online','http://www.ptwizard.com/validateIpAddress.do','','300')
			
/* News */
oCMenu.makeMenu('top3','','News','','','49','17','','')
	oCMenu.makeMenu('sub301','top3','Press Releases','http://www.dodge-reliance.com/news/press_release.html','','180')
	oCMenu.makeMenu('sub303','top3','Trade Shows','http://www.baldor.com/news/tradeshows.asp','','180')
		
/* How to Buy */
oCMenu.makeMenu('top4','','How to Buy','','','82','17','','')
	oCMenu.makeMenu('sub401','top4','e-Commerce Solutions','http://www.dodge-reliance.com/ebilities/index.html','','175')
	oCMenu.makeMenu('sub402','top4','Locate a Distributor','http://www.reliance.com/distributor_locator/index.html','','175')
	oCMenu.makeMenu('sub403','top4','PTplace','http://www.ptplace.com','_blank','175')
	oCMenu.makeMenu('sub404','top4','Merchandise & Gifts','https://www.maspremium.com/bdrmerchandise','_blank','175')
	oCMenu.makeMenu('sub405','top4','Terms & Conditions','http://www.dodge-reliance.com/termsandconditions/','','175')

/* Related Sites */
oCMenu.makeMenu('top5','','Related Sites','','','92','17','','')
	oCMenu.makeMenu('sub501','top5','Baldor','http://www.baldor.com/','_blank','125')
	oCMenu.makeMenu('sub502','top5','Reliance','http://www.reliance.com/','_blank','125')
	oCMenu.makeMenu('sub503','top5','Dodge-pt','http://www.dodge-pt.com/','_blank','125')
	oCMenu.makeMenu('sub504','top5','PTplace','http://www.ptplace.com','_blank','125')
	oCMenu.makeMenu('sub505','top5','Endorsia','http://www.endorsia.com/','_blank','125')
	
/* About Us */
oCMenu.makeMenu('top6','','About Us','','','79','17','','')
		oCMenu.makeMenu('sub600','top6','About Baldor','http://www.baldor.com/about/default.asp','','250')
	
/* Contact Us */
oCMenu.makeMenu('top7','','Contact Us','','','79','17','','')
		oCMenu.makeMenu('sub701','top7','+ Contact Us','','','300')
			oCMenu.makeMenu('sub70101','sub701','Dodge-pt','http://www.dodge-pt.com/contact_us/contact_main.html','','150')
			oCMenu.makeMenu('sub70102','sub701','Reliance','http://www.baldor.com/about/locations.asp','','150')
	
//Leave this line - it constructs the menu
oCMenu.construct();

