/*** 
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.rockwellautomation.com/lib/images/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=185
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=8
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.rockwellautomation.com/lib/images/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) 
*************************************/

/* ABOUT US */
oCMenu.makeMenu('top0','','About Us','','','73','17','','')
	oCMenu.makeMenu('sub00','top0','> Who We Are','http://www.rockwellautomation.com/about_us/','','150')
	oCMenu.makeMenu('sub01','top0','> Careers','http://www.rockwellautomation.com/careers/','','150')
	oCMenu.makeMenu('sub02','top0','> Contact Us','http://www.rockwellautomation.com/contact/','','150')
	oCMenu.makeMenu('sub03','top0','> Investor Relations','http://www.rockwellautomation.com/investors/','','150')
	oCMenu.makeMenu('sub04','top0','> Analyst Relations','http://www.rockwellautomation.com/analysts/','','150')
	oCMenu.makeMenu('sub05','top0','> Legal Notices','http://www.rockwellautomation.com/important_notices/','','150')
	oCMenu.makeMenu('sub06','top0','> Partners','http://www.rockwellautomation.com/partners/','','150')
	oCMenu.makeMenu('sub07','top0','> Suppliers','http://www.rockwellautomation.com/supply/','','150')
	oCMenu.makeMenu('sub08','top0','> Worldwide Distributors','http://www.rockwellautomation.com/distributor/','','150')
	oCMenu.makeMenu('sub09','top0','> Worldwide Locations','http://www.rockwellautomation.com/locations/','','150')
	
/* NEWS & EVENTS */
oCMenu.makeMenu('top1','','News & Events','','','106','17','','')
	oCMenu.makeMenu('sub100','top1','> Overview','http://www.rockwellautomation.com/news/','','200')
	oCMenu.makeMenu('sub101','top1','> Company News','http://phx.corporate-ir.net/phoenix.zhtml?c=196186&p=irol-news&nyo=0','','200')
	oCMenu.makeMenu('sub102','top1','> Financial News','http://phx.corporate-ir.net/phoenix.zhtml?c=196186&p=irol-newsFinancial&nyo=0','','200')
	oCMenu.makeMenu('sub103','top1','> Product & Service News','http://phx.corporate-ir.net/phoenix.zhtml?c=196186&p=irol-newsProduct&nyo=0','','200')
	oCMenu.makeMenu('sub104','top1','> News Contacts','http://www.rockwellautomation.com/news/news_contacts.html','','200')
	oCMenu.makeMenu('sub105','top1','> Newsletters & Magazines','http://www.rockwellautomation.com/news/online.html','','200')
	oCMenu.makeMenu('sub106','top1','> Automation Fair','http://www.automationfair.com','','200')
	oCMenu.makeMenu('sub107','top1','> Events','http://www.rockwellautomation.com/events/','','200')

/* PRODUCTS */
oCMenu.makeMenu('top2','','Products','http://www.rockwellautomation.com/products/','','73','17','','')
	oCMenu.makeMenu('sub200','top2','> Product Directory','http://www.rockwellautomation.com/products/','','200')
	oCMenu.makeMenu('sub201','top2','> Tools & Resources','http://www.rockwellautomation.com/resources/','','200')
	oCMenu.makeMenu('sub202','top2','> Knowledgebase','http://www.rockwellautomation.com/support/','','200')
	oCMenu.makeMenu('sub203','top2','> Support Resources','http://www.rockwellautomation.com/resources/support.html','','200')
	oCMenu.makeMenu('sub204','top2','> Training Resources','http://www.rockwellautomation.com/resources/training.html','','200')
	oCMenu.makeMenu('sub205','top2','> Configuration & Selection Tools','http://www.rockwellautomation.com/en/e-tools/','','200')
	oCMenu.makeMenu('sub206','top2','> Integrated Architecture Tools','http://www.rockwellautomation.com/solutions/integratedarchitecture/resources.html','','200')
	oCMenu.makeMenu('sub207','top2','> Product Catalogs','http://www.ab.com/catalogs/','','200')
	oCMenu.makeMenu('sub208','top2','> Literature Library','http://www.rockwellautomation.com/literature/literature.html','','200')
	oCMenu.makeMenu('sub209','top2','> Product Certification','http://www.rockwellautomation.com/products/certification/','','200')
	oCMenu.makeMenu('sub210','top2','> Legacy Products','http://www.rockwellautomation.com/products/customclassics/','','200')
	oCMenu.makeMenu('sub211','top2','> Product Migration','http://www.rockwellautomation.com/solutions/migration/','','200')
	oCMenu.makeMenu('sub212','top2','> How to Purchase','http://www.rockwellautomation.com/resources/purchase.html','','200')
			
/* SERVICES */
oCMenu.makeMenu('top3','','Services & Support','','','130','17','','')
	oCMenu.makeMenu('sub301','top3','> Overview','http://www.rockwellautomation.com/services/','','220')
	oCMenu.makeMenu('sub302','top3','> Get Support Now','http://www.rockwellautomation.com/support/','','220')
	oCMenu.makeMenu('sub303','top3','> Assessment Services','http://www.rockwellautomation.com/services/assessment/','','220')
	oCMenu.makeMenu('sub304','top3','> Asset Management Services','http://www.rockwellautomation.com/services/assetmanagement/','','220')
	oCMenu.makeMenu('sub305','top3','> Condition Monitoring Services','http://www.rockwellautomation.com/services/conditionmonitoring/','','220')
	oCMenu.makeMenu('sub306','top3','> Network Services','http://www.rockwellautomation.com/services/networks/','','220')
	oCMenu.makeMenu('sub307','top3','> Online & Phone Support','http://www.rockwellautomation.com/services/onlinephone/','','220')
	oCMenu.makeMenu('sub308','top3','> OnSite Support Services','http://www.rockwellautomation.com/services/onsite/','','220')
	oCMenu.makeMenu('sub309','top3','> Remote Services','http://www.rockwellautomation.com/services/remote/','','220')
	oCMenu.makeMenu('sub310','top3','> Repair Services & Renewal Parts','http://www.rockwellautomation.com/services/repair/','','220')
	oCMenu.makeMenu('sub3011','top3','> Training Services','http://www.rockwellautomation.com/services/training/','','220')
	oCMenu.makeMenu('sub3012','top3','> Safety Services','http://www.rockwellautomation.com/services/safety/','','220')
	oCMenu.makeMenu('sub3013','top3','> Security Services','http://www.rockwellautomation.com/services/security/','','220')
	oCMenu.makeMenu('sub3014','top3','+ Additional Services','','','220')
		oCMenu.makeMenu('sub301401','sub3014','> TechLabs','http://www.rockwellautomation.com/services/additional/techlabs.html','','180')
		oCMenu.makeMenu('sub301402','sub3014','> Test Engineering Systems','http://www.rockwellautomation.com/services/additional/testengineering.html','','180')
		oCMenu.makeMenu('sub301403','sub3014','> Panel Building','http://www.rockwellautomation.com/services/additional/panelbuilding.html','','180')

/* INDUSTRIES & SOLUTIONS */
oCMenu.makeMenu('top4','','Industries & Solutions','','','146','17','','')
	oCMenu.makeMenu('sub401','top4','> Overview','http://www.rockwellautomation.com/industries/','','220')
	oCMenu.makeMenu('sub402','top4','+ Industries & Applications','','','220')
		oCMenu.makeMenu('sub40201','sub402','> Automotive','http://www.rockwellautomation.com/industries/automotive/','','250')
		oCMenu.makeMenu('sub40202','sub402','> Beverage','http://www.rockwellautomation.com/industries/beverage/','','250')
		oCMenu.makeMenu('sub40203','sub402','> Consumer Packaged Goods','http://www.rockwellautomation.com/industries/cpg/','','250')
		oCMenu.makeMenu('sub40204','sub402','> Entertainment','http://www.rockwellautomation.com/industries/entertainment/','','250')
		oCMenu.makeMenu('sub40205','sub402','> Fibers & Textiles','http://www.rockwellautomation.com/industries/fiberstextiles/','','250')
		oCMenu.makeMenu('sub40206','sub402','> Food','http://www.rockwellautomation.com/industries/food','','250')
		oCMenu.makeMenu('sub40207','sub402','> Forest Products','http://www.rockwellautomation.com/industries/forestproducts/','','250')
		oCMenu.makeMenu('sub40208','sub402','> Household, Personal Care & Chemicals','http://www.rockwellautomation.com/industries/homehealthbeauty/','','250')
		oCMenu.makeMenu('sub40209','sub402','> Infrastructure','http://www.rockwellautomation.com/industries/infrastructure/','','250')
		oCMenu.makeMenu('sub402010','sub402','> Life Sciences','http://www.rockwellautomation.com/industries/lifesciences/','','250')
		oCMenu.makeMenu('sub402011','sub402','> Material Handling & Logistics','http://www.rockwellautomation.com/industries/materialhandling/','','250')
		oCMenu.makeMenu('sub402012','sub402','> Marine','http://www.rockwellautomation.com/industries/marine/','','250')
		oCMenu.makeMenu('sub402013','sub402','> Metals','http://www.rockwellautomation.com/industries/metals/','','250')
		oCMenu.makeMenu('sub402014','sub402','> Metalforming','http://www.rockwellautomation.com/industries/metalforming/','','250')
		oCMenu.makeMenu('sub402015','sub402','> Mining, Minerals & Cement','http://www.rockwellautomation.com/industries/mining/','','250')
		oCMenu.makeMenu('sub402016','sub402','> Oil & Gas','http://www.rockwellautomation.com/industries/oilgas/','','250')
		oCMenu.makeMenu('sub402017','sub402','> Packaging','http://www.rockwellautomation.com/industries/packaging/','','250')
		oCMenu.makeMenu('sub402018','sub402','> Print & Publishing','http://www.rockwellautomation.com/industries/printpublishing/','','250')
		oCMenu.makeMenu('sub402019','sub402','> Semiconductor & Electronics','http://www.rockwellautomation.com/industries/semiconductor/','','250')
		oCMenu.makeMenu('sub402020','sub402','> Tire & Rubber','http://www.rockwellautomation.com/industries/tirerubber/','','250')
		oCMenu.makeMenu('sub402021','sub402','> Water Wastewater','http://www.rockwellautomation.com/industries/water/','','250')
	oCMenu.makeMenu('sub403','top4','> Combustion Control','http://www.rockwellautomation.com/solutions/combustioncontrol/','','220')
	oCMenu.makeMenu('sub404','top4','> Condition Monitoring Solutions','http://www.rockwellautomation.com/solutions/conditionmonitoring/','','220')
	oCMenu.makeMenu('sub405','top4','> Drive System Solutions','http://www.rockwellautomation.com/solutions/drivesystems/','','220')
	oCMenu.makeMenu('sub406','top4','> Essential Components','http://www.rockwellautomation.com/components/','','220')
	oCMenu.makeMenu('sub407','top4','> Information Solutions','http://www.rockwellautomation.com/solutions/information/','','220')
	oCMenu.makeMenu('sub408','top4','> Integrated Architecture','http://www.rockwellautomation.com/solutions/integratedarchitecture/','','220')
	oCMenu.makeMenu('sub409','top4','> Intelligent Motor Control','http://www.rockwellautomation.com/solutions/intelligentcontrol/','','220')
	oCMenu.makeMenu('sub4010','top4','> Machine Builder (OEM) Solutions','http://www.rockwellautomation.com/solutions/oem/','','220')
	oCMenu.makeMenu('sub4011','top4','> Manufacturing Convergence','http://www.rockwellautomation.com/solutions/convergence/','','220')
	oCMenu.makeMenu('sub4012','top4','> Migration Solutions','http://www.rockwellautomation.com/solutions/migration/','','220')
	oCMenu.makeMenu('sub4013','top4','> On-Machine Solutions','http://www.rockwellautomation.com/solutions/onmachine/','','220')
	oCMenu.makeMenu('sub4014','top4','> Power & Energy Management','http://www.rockwellautomation.com/solutions/pems/','','220')
	oCMenu.makeMenu('sub4015','top4','> Process Solutions','http://www.rockwellautomation.com/solutions/process/','','220')
	oCMenu.makeMenu('sub4016','top4','> RFID Solutions','http://www.rockwellautomation.com/solutions/rfid/','','220')
	oCMenu.makeMenu('sub4017','top4','> Safety Solutions','http://www.rockwellautomation.com/solutions/safety/','','220')
	oCMenu.makeMenu('sub4018','top4','> Security Solutions','http://www.rockwellautomation.com/solutions/security/','','220')
	oCMenu.makeMenu('sub4019','top4','> Strategic Maintenance Solutions','http://www.rockwellautomation.com/solutions/maintenance/','','220')
	oCMenu.makeMenu('sub4020','top4','> Sustainable Production Solutions','http://www.rockwellautomation.com/solutions/sustainability/','','220')
	oCMenu.makeMenu('sub4021','top4','> Visualization','http://www.ab.com/eoi/','','220')
	oCMenu.makeMenu('sub4022','top4','> Case Studies','http://domino.automation.rockwell.com/applications/css_artilce.nsf','_blank','220')		
	
//Leave this line - it constructs the menu
oCMenu.construct();

