/*** 
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=2
oCMenu.fromLeft=0 
oCMenu.fromTop=130   
oCMenu.rows=0 
oCMenu.menuPlacement=0

oCMenu.offlineRoot="file:///Z|/wwwroot/qfi/" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg="/images/cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth="menu"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
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=140
oCMenu.level[0].height=35
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0 
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass=0
oCMenu.level[0].offsetX=140
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].align="center" 


//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify 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 + 5
oCMenu.level[1].height=oCMenu.level[0].height
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
//oCMenu.level[1].style=""
oCMenu.level[1].offsetX=oCMenu.level[0].width
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].borderX=1 
oCMenu.level[1].borderY=1
oCMenu.level[1].rows=0
oCMenu.level[1].align="center"

/******************************************
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','','Home','default.htm','','','18')
	
oCMenu.makeMenu('top1','','IC Failure Analysis Microscopy','failure_analysis.htm')
	oCMenu.makeMenu('sub11','top1','Laser Signal Injection','laser_signal_injection.htm','','','18')
	oCMenu.makeMenu('sub12','top1','InfraScope Hot Spot Detection','infrascope_hot_spot_detection.htm')
	oCMenu.makeMenu('sub13','top1','emmi Photon Emission Detection','emmi_photon_emission_detection.htm')
	oCMenu.makeMenu('sub14','top1','FA Tool Options','fa_tool_options.htm','','','18')
		/*oCMenu.makeMenu('sub140','sub14','Multi-Sensor Optical Head','multi-sensor_optical_head.htm')
		oCMenu.makeMenu('sub141','sub14','Sample Mounting Options','sample_mounting_options.htm')
		oCMenu.makeMenu('sub142','sub14','Probing Options','probing_options.htm','','','18')
		oCMenu.makeMenu('sub143','sub14','Docking Options','docking_options.htm','','','18')*/
		oCMenu.makeMenu('sub140','sub14','Multi-Sensor Optical Head','fa_tool_options.htm')
		oCMenu.makeMenu('sub141','sub14','Sample Mounting Options','fa_tool_options.htm')
		oCMenu.makeMenu('sub142','sub14','Probing Options','fa_tool_options.htm','','','18')
		oCMenu.makeMenu('sub143','sub14','Docking Options','fa_tool_options.htm','','','18')		
	oCMenu.makeMenu('sub15','top1','Test Services','fa_test_services.htm','','','18')
	
oCMenu.makeMenu('top2','','Micro Thermal Mapping','micro_thermal_mapping.htm')
	oCMenu.makeMenu('sub20','top2','InfraScope II','infrascope_II.htm','','','18')
	oCMenu.makeMenu('sub21','top2','Thermal Transient','thermal_transient.htm','','','18')
	oCMenu.makeMenu('sub22','top2','Infrascope Options','infrascope_options.htm','','','18')
		oCMenu.makeMenu('sub220','sub22','Thermal Stage Options','thermal_stage_options.htm','','','18')
		oCMenu.makeMenu('sub221','sub22','Sample Mounting Options','mtm_sample_mounting_options.htm')
		oCMenu.makeMenu('sub222','sub22','InfraScope Controlled Power Supplies','infrascope_power_supplies.htm')
	oCMenu.makeMenu('sub23','top2','About Micro Thermal Mapping','about_micro_thermal_mapping.htm')
	oCMenu.makeMenu('sub24','top2','Test Services','mtm_test_services.htm','','','18')	


//oCMenu.makeMenu('top3','','About QFI','about_qfi.htm','','','18')

oCMenu.makeMenu('top4','','Contact QFI','contact_qfi.htm','','','18')
	oCMenu.makeMenu('sub40','top4','North America','contact_north_america.htm','','','18')
	oCMenu.makeMenu('sub41','top4','Asia','contact_asia.htm','','','18')
	oCMenu.makeMenu('sub42','top4','Europe','contact_europe.htm','','','18')

oCMenu.makeMenu('top5','','Library','library.htm','','','18')	
	oCMenu.makeMenu('sub50','top5','Publications','publications.htm','','','18')	
	oCMenu.makeMenu('sub51','top5','Microscopy Tutorial','microscopy_tutorial.htm','','','18')	
	oCMenu.makeMenu('sub52','top5','OptoMetrix Publications','http://www.optomet.com/news_home.htm','_blank')	

oCMenu.makeMenu('top6','','Partners & Links','partners_links.htm','','','18')	

oCMenu.makeMenu('top7','','Directions to QFI','directions.htm','','','18')	

oCMenu.makeMenu('top8','','Email','mailto:sales@quantumfocus.com','','','18')	

oCMenu.makeMenu('top9','','Sales','mailto:sales@quantumfocus.com','','','18')	

//Leave this line - it constructs the menu
oCMenu.construct()		