// JavaScript Document

/******************* MENU NUMBER 1 **********************************/



/*** 
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
oCMenu2=new makeCM("oCMenu2") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu2.pxBetween=5
oCMenu2.fromLeft=20
oCMenu2.fromTop=2  
oCMenu2.rows=1 
oCMenu2.menuPlacement="center"
     
//Add resize to resize the first one also----
oCMenu2.onresize="oCMenu2.construct(1)"
		                                                         
oCMenu2.offlineRoot="M:/IROC/site" 
//oCMenu2.onlineRoot="http://www.iroccorp.com"
oCMenu2.onlineRoot="http://www.iroccorp.com" 
oCMenu2.resizeCheck=1 
oCMenu2.wait=1000 
oCMenu2.fillImg=""
oCMenu2.zIndex=0

//Background bar properties
oCMenu2.useBar=0
oCMenu2.barWidth="50%"
oCMenu2.barHeight="menu" 
oCMenu2.barClass="cl2Bar"
oCMenu2.barX=250 
oCMenu2.barY=129
oCMenu2.barBorderX=0
oCMenu2.barBorderY=0
oCMenu2.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
oCMenu2.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu2.level[0].width=70
oCMenu2.level[0].height=17 
oCMenu2.level[0].regClass="cl2Level0"
oCMenu2.level[0].overClass="cl2Level0over"
oCMenu2.level[0].borderX=0
oCMenu2.level[0].borderY=0
oCMenu2.level[0].borderClass="cl2Level0border"
oCMenu2.level[0].offsetX=0
oCMenu2.level[0].offsetY=0
oCMenu2.level[0].rows=0
oCMenu2.level[0].arrow=0
oCMenu2.level[0].arrowWidth=0
oCMenu2.level[0].arrowHeight=0
oCMenu2.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
oCMenu2.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu2.level[1].width=140
oCMenu2.level[1].height=18
oCMenu2.level[1].regClass="cl2Level1"
oCMenu2.level[1].overClass="cl2Level1over"
oCMenu2.level[1].borderX=1
oCMenu2.level[1].borderY=1
oCMenu2.level[1].align="right" 
oCMenu2.level[1].offsetX=-(oCMenu2.level[0].width-2)/2+32
oCMenu2.level[1].offsetY=0
oCMenu2.level[1].borderClass="cl2Level1border"

//EXAMPLE SUB LEVEL[2] 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
oCMenu2.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu2.level[2].width=200
oCMenu2.level[2].height=18
oCMenu2.level[2].regClass="cl2Level2"
oCMenu2.level[2].overClass="cl2Level2over"
oCMenu2.level[2].borderX=1
oCMenu2.level[2].borderY=1
oCMenu2.level[2].align="right" 
oCMenu2.level[2].offsetX=0
oCMenu2.level[2].offsetY=0
oCMenu2.level[2].borderClass="cl2Level2border"

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
//oCMenu2.makeMenu('top0','','TSX  ','/tsx_links.htm','',50,'','')

oCMenu2.makeMenu('top1','','HOME','/index.htm','',40,'','')
	
oCMenu2.makeMenu('top2','','ABOUT IROC','/about.htm','',75,'')
	oCMenu2.makeMenu('sub10','top2','Management','/management.htm')
	oCMenu2.makeMenu('sub11','top2','Board of Directors','/board.htm')
	oCMenu2.makeMenu('sub49','top2','Health and Safety','/HSE.htm')
	oCMenu2.makeMenu('sub50','top2','Events','/events.htm')
	
oCMenu2.makeMenu('top3','','DRILLING & PRODUCTION SERVICES','/drilling.htm','',195,'','')
	oCMenu2.makeMenu('sub12','top3','Eagle Well Servicing','/eagle/index.htm')
		oCMenu2.makeMenu('sub40','sub12','Rig Inventories','/eagle/rig_inventory.htm')
		oCMenu2.makeMenu('sub41','sub12','Features','/eagle/features.htm')
	oCMenu2.makeMenu('sub46','top3','AERO Rentals','/aero/index.htm')
	
	

oCMenu2.makeMenu('top4','','TECHNOLOGY SERVICES','/canadatech/index.php','',138,'')
	oCMenu2.makeMenu('sub16','top4','Canada Tech','/canadatech/index.php')
		oCMenu2.makeMenu('sub30','sub16','Facilities','/canadatech/facilities.php')
		oCMenu2.makeMenu('sub31','sub16','Manufacturing Process','/canadatech/manufacturing_process.php')
		oCMenu2.makeMenu('sub32','sub16','Products By Category','/canadatech/products-cat.php')
		oCMenu2.makeMenu('sub33','sub16','Products By Solution','/canadatech/products-sol.php')
		oCMenu2.makeMenu('sub48','sub16','Service & Returns','/canadatech/Repair_returns.php')
		oCMenu2.makeMenu('sub34','sub16','Rentals','/canadatech/rental.php')
		oCMenu2.makeMenu('sub35','sub16','Support and Downloads','/canadatech/support_downloads.php')
		oCMenu2.makeMenu('sub36','sub16','News & Events','/canadatech/news_events.php')
		oCMenu2.makeMenu('sub37','sub16','Contacts','/canadatech/contacts.php')
oCMenu2.makeMenu('top5','','INVESTOR RELATIONS','/investor_relations.htm','',125,'')
	oCMenu2.makeMenu('sub17','top5','Press Releases','/press_releases/press_releases.htm')
	oCMenu2.makeMenu('sub18','top5','Public Reporting','/public_reporting.htm')
	oCMenu2.makeMenu('sub19','top5','TSX: ISC','http://cxa.marketwatch.com/TSX/en/Market/quote.aspx?symb=ISC&sid=2726233','_blank')
	oCMenu2.makeMenu('sub20','top5','Sedar','http://www.sedar.com/DisplayProfile.do?lang=EN&issuerType=03&issuerNo=00014277','_blank')

oCMenu2.makeMenu('top6','','CAREERS','/career.htm','',55,'','')

oCMenu2.makeMenu('top7','','CONTACT US','/contact.htm','',67,'','')
	
//Leave this line - it constructs the menu
oCMenu2.construct()		


