/*** 
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=1
oCMenu.fromLeft=0 
oCMenu.fromTop=81   
oCMenu.rows=1 
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1//to show the background blur bar or not
oCMenu.barWidth="1004"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX=0 
oCMenu.barY=81
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=80
oCMenu.level[0].height=26 
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=1
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=oCMenu.level[0].width-2
oCMenu.level[1].height=24
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=-(oCMenu.level[0].width-2)/2+38
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"


//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify 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=100
oCMenu.level[2].height=20
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"
oCMenu.level[2].borderClass="clLevel2border"


/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
oCMenu.makeMenu('top0','','&nbsp;About us','aboutus.html','_parent',78)
	
oCMenu.makeMenu('top1','','&nbsp;Servo Products','servoproducts.html','_parent',123,0)
	oCMenu.makeMenu('sub11','top1','Mattke AG','mattkeag.html','_parent',143)
	oCMenu.makeMenu('sub12','top1','Small Motors with Drive','smallmotorswithdrive.html','_parent',143,30)
	oCMenu.makeMenu('sub13','top1','Stepper Motors','steppermotors.html','_parent',143)
	oCMenu.makeMenu('sub14','top1','Enquiry Sheet','enquirysheetservo.html','_parent',143)

	
oCMenu.makeMenu('top2','','&nbsp;Encoders','encoders.html','_parent',120)
	oCMenu.makeMenu('sub20','top2','Absolute Encoder','absolute.html','_parent',130)
	oCMenu.makeMenu('sub21','top2','Incremental Encoder','incremental.html','_parent',130)

//oCMenu.makeMenu('top3','','&nbsp;Inclinometers','inclinometers.html','_parent',133)
oCMenu.makeMenu('top3','','&nbsp;TILT Sensors','tiltsensors.html','_parent',133)
	oCMenu.makeMenu('sub30','top3','Inclinometers from POSITAL FRABA','Inclinometersforfraba.html','_parent',133,30)
	oCMenu.makeMenu('sub31','top3','Precision Tilt Meters from AOSI, USA','precisetiltsensors.html','_parent',133,30)
		oCMenu.makeMenu('sub301','sub31','Sensors','tsensors.html','_parent',130,22)
		oCMenu.makeMenu('sub302','sub31','TILT Meters','tiltmeters.html','_parent',130,22)
		oCMenu.makeMenu('sub303','sub31','EZ Detect','ezdetect.html','_parent',130,22)

oCMenu.makeMenu('top5','','&nbsp;Wall Covering','wallcovering.html','_parent',157)
	oCMenu.makeMenu('sub50','top5','Interior and Public Buildings','interior.html','_parent',155,30)
		oCMenu.makeMenu('sub501','sub50','Handling','handling.html','_parent',130)
		oCMenu.makeMenu('sub502','sub50','Technical Properties','technicalproperties.html','_parent',130)
		oCMenu.makeMenu('sub503','sub50','How to use','howtouse.html','_parent',130)
		oCMenu.makeMenu('sub504','sub50','Available patterns','availablepatterns.html','_parent',130)

oCMenu.makeMenu('top6','','&nbsp;EMI Shielding','emishielding.html','_parent',166)
	oCMenu.makeMenu('sub60','top6','For Electronic Systems','electronicsystems.html','_parent',200)
		oCMenu.makeMenu('sub601','sub60','Conductive Gaskets','conductivegaskets.html','_parent',170)
		oCMenu.makeMenu('sub602','sub60','Honey Comb Mesh','honeycombmesh.html','_parent',170)
		oCMenu.makeMenu('sub603','sub60','Wrap Around Shield for Cables','wraparoundshieldforcabels.html','_parent',170,30)
		oCMenu.makeMenu('sub604','sub60','O Profiles for Grooves','oprofiles.html','_parent',170)
		oCMenu.makeMenu('sub605','sub60','Clip on Gaskets','clipongaskets.html','_parent',170)
		oCMenu.makeMenu('sub606','sub60','Conductive Tapes','conductivetapes.html','_parent',170)
		//oCMenu.makeMenu('sub507','sub50','Conductive Lining Material','conductiveliningmaterial.html','_parent',190)
		oCMenu.makeMenu('sub609','sub60','D-connector adapter with built-in filters','dconnectoradapter.html','_parent',170,30)
		oCMenu.makeMenu('sub610','sub60','Feed thru connectors & special EMC glands','feedthruconnectors.html','_parent',170,30)
		oCMenu.makeMenu('sub611','sub60','optical transparent mesh/ITO quoted foils for displays','opticaltransparent.html','_parent',170,30)
		oCMenu.makeMenu('sub612','sub60','Flat Shields','flatshields.html','_parent',170)
		oCMenu.makeMenu('sub613','sub60','customised solution incluing doors for special enclosures','customisedsolution.html','_parent',170,45)
		oCMenu.makeMenu('sub614','sub60','Enclosures & Printed Circuit Boards','eandpcircuitboards.html','_parent',170,30)
		oCMenu.makeMenu('sub615','sub60','Finger Strips','fingerstrips.html','_parent',170)
	oCMenu.makeMenu('sub62','top6','For Rooms and Enclosure Systems','roomsenclosuressystems.html','_parent',200,30)
	oCMenu.makeMenu('sub63','top6','Testing Equipments','testingequipments.html','_parent',200,30)

	
oCMenu.makeMenu('top7','','&nbsp;Sensors','sensors.html','_parent',120)
	oCMenu.makeMenu('sub70','top7','Inertial Sensors','inertialsensors.html','_parent',200)
	oCMenu.makeMenu('sub71','top7','Motion Sensors','motionsensors.html','_parent',200)
	oCMenu.makeMenu('sub72','top7','Safety Switches','safetyswitches.html','_parent',200)
	oCMenu.makeMenu('sub73','top7','Programmable Proximity Switch','ppswitch.html','_parent',200)
	oCMenu.makeMenu('sub74','top7','Other Sensors','othersensors.html','_parent',200)
		//oCMenu.makeMenu('sub701','sub72','Compass and Navigation Products','candnproducts.html','_parent',130,30)

oCMenu.makeMenu('top8','','&nbsp;Contact us','contactus.html','_parent',90)

//Leave this line - it constructs the menu
oCMenu.construct()		