var NS = 0;
var NS4 = 0;
browserName = navigator.appName.substring(0,8);
browserVer = parseFloat(navigator.appVersion);
if (browserName == "Netscape" && browserVer >= 5)
{ NS = 1; }
if (browserName == "Netscape" && browserVer < 5)
{ NS4 = 1; }

oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=0
oCMenu.fromTop=0
oCMenu.rows=0
oCMenu.menuPlacement="left"

                                                                   
oCMenu.offlineRoot=""
oCMenu.onlineRoot=""
oCMenu.resizeCheck=1
oCMenu.wait=500
oCMenu.fillImg="/images/spacer.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="menu"
oCMenu.barHeight="menu"
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=0

//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=210
oCMenu.level[0].height=28
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=210
oCMenu.level[0].offsetY=-29
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=195
oCMenu.level[1].height=28
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=0
oCMenu.level[1].borderY=0
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].align="right"
oCMenu.level[1].arrow="/images/template/nav_plus.gif"
oCMenu.level[1].arrowWidth=14
oCMenu.level[1].arrowHeight=7

//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
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=195
oCMenu.level[2].height=28
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"
oCMenu.level[2].borderX=0
oCMenu.level[2].borderY=0
oCMenu.level[2].align="right" 
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].borderClass="clLevel2border"
oCMenu.level[2].align="right"
oCMenu.level[2].arrow="/images/template/nav_plus.gif"
oCMenu.level[2].arrowWidth=14
oCMenu.level[2].arrowHeight=7

//EXAMPLE SUB LEVEL[3] 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[3]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[3].width=155
oCMenu.level[3].height=28
oCMenu.level[3].regClass="clLevel3"
oCMenu.level[3].overClass="clLevel3over"
oCMenu.level[3].borderX=0
oCMenu.level[3].borderY=0
oCMenu.level[3].align="right" 
oCMenu.level[3].offsetX=0
oCMenu.level[3].offsetY=0
oCMenu.level[3].borderClass="clLevel3border"
oCMenu.level[3].align="right"
oCMenu.level[3].arrow="/images/template/nav_plus.gif"
oCMenu.level[3].arrowWidth=14
oCMenu.level[3].arrowHeight=7


/******************************************
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('aboutcalvalley','','','','','210','28','images/template/nav_01_about_us_off.gif','images/template/nav_01_about_us_on.gif')
	oCMenu.makeMenu('about_profile','aboutcalvalley','Company Profile','about-company-profile.cfm','','155')
	oCMenu.makeMenu('about_history','aboutcalvalley','History','about-history.cfm','','155')
	oCMenu.makeMenu('about_officers','aboutcalvalley','Officers','about-officers.cfm','','155')
	oCMenu.makeMenu('about_directors','aboutcalvalley','Board of Directors','about-board-of-directors.cfm','','155')
	oCMenu.makeMenu('about_governance','aboutcalvalley','Governance','about-governance.cfm','','155')
	oCMenu.makeMenu('about_disclaimer','aboutcalvalley','Disclaimer','about-disclaimer.cfm','','155')

oCMenu.makeMenu('operations','','','','','210','28','images/template/nav_02_operations_off.gif','images/template/nav_02_operations_on.gif')
	oCMenu.makeMenu('operations_overview','operations','Operations','operations-overview.cfm','','155')
	oCMenu.makeMenu('operations_overviewmap','operations','Overview/Map','','','155')
		oCMenu.makeMenu('operations_overviewmap_yemen9','operations_overviewmap','Yemen Block 9','operations-overviewmap-yemen9.cfm','','155')	
		oCMenu.makeMenu('operations_overviewmap_yemen9_partners','operations_overviewmap','Yemen Block 9 Partners','operations-overviewmap-yemenpartners.cfm','','155')
	oCMenu.makeMenu('operations_highlights','operations','2010 Highlights','operations-highlights.cfm','','155')
	oCMenu.makeMenu('operations_explorations','operations','Exploration','','','155')
		oCMenu.makeMenu('operations_yemen','operations_explorations','Yemen Exploration','operations-yemen-exploration.cfm','','155')
		oCMenu.makeMenu('operations_ethiopia','operations_explorations','Ethiopia Exploration','operations-ethiopia-exploration.cfm','','155')
	oCMenu.makeMenu('operations_development','operations','Development','','','155')
		oCMenu.makeMenu('operations_yemen_fields','operations_development','Yemen Fields','operations-yemen-fields.cfm','','155')
		oCMenu.makeMenu('operations_ethiopia_fields','operations_development','Ethiopia Fields','operations-ethiopia-fields.cfm','','155')
oCMenu.makeMenu('operations_facilities','operations','Facilities','','','155')
		oCMenu.makeMenu('operations_yemen_facilities','operations_facilities','Yemen Facilities','operations-yemen-facilities.cfm','','155')
	oCMenu.makeMenu('operations_production','operations','Production','','','155')
		oCMenu.makeMenu('operations_production_yemen','operations_production','Yemen Production','operations-production-yemen.cfm','','155')

oCMenu.makeMenu('investorrelations','','','','','210','28','images/template/nav_03_investors_off.gif','images/template/nav_03_investors_on.gif')
	oCMenu.makeMenu('investorrelations_overview','investorrelations','Overview','investorrelations-overview.cfm','','155')
	oCMenu.makeMenu('investorrelations_newsreleases','investorrelations','News Releases','investorrelations-newsreleases.cfm','','155')
	oCMenu.makeMenu('investorrelations_financial','investorrelations','Financial Reports','','','155')
		oCMenu.makeMenu('investorrelations_annual_reports','investorrelations_financial','Annual Reports','investorrelations-annual-reports.cfm','','155')
		oCMenu.makeMenu('investorrelations_quarterly_reports','investorrelations_financial','Quarterly Reports','investorrelations-quarterly-reports.cfm','','155')
		oCMenu.makeMenu('investorrelations_aif','investorrelations_financial','AIF','investorrelations-aif.cfm','','155')
	oCMenu.makeMenu('investorrelations_presentations','investorrelations','Presentations','investorrelations-presentations.cfm','','155')
	oCMenu.makeMenu('investorrelations_filings','investorrelations','Public Filings','','','155')
		oCMenu.makeMenu('investorrelations_sedar','investorrelations_filings','Sedar Profile','investorrelations-sedar-profile.cfm','','155')
	oCMenu.makeMenu('investorrelations_stock','investorrelations','Stock Quote','investorrelations-stock.cfm','','155')
	oCMenu.makeMenu('investorrelations_analysts','investorrelations','Analysts','investorrelations-analysts.cfm','','155')
	oCMenu.makeMenu('investorrelations_contact','investorrelations','Investor Relations Contact','investorrelations-contact.cfm','','155')

oCMenu.makeMenu('careers','','','','','210','28','images/template/nav_05_careers_off.gif','images/template/nav_05_careers_on.gif')
	oCMenu.makeMenu('careers_careers','careers','Careers','careers.cfm','','155')
	oCMenu.makeMenu('careers_opportunities','careers','Job Opportunities','','','155')
		oCMenu.makeMenu('careers_canada','careers_opportunities','Canada','careers-job-canada.cfm','','155')
		oCMenu.makeMenu('careers_yemen','careers_opportunities','Yemen','careers-job-yemen.cfm','','155')
		
oCMenu.makeMenu('contact','','','contact.cfm','','210','28','images/template/nav_06_contact_us_off.gif','images/template/nav_06_contact_us_on.gif')
