/*** 
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.


MPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! 
IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT!

BEFORE PLACING THIS ON THE LIVE SITE, REPLACE www.newmont.com BELOW WITH WWW.NEWMONT.COM

IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! 
IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT! IMPORTANT!

**/

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

oCMenu.frames = 1

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=0 
 
oCMenu.rows=1
oCMenu.menuPlacement="center"
                                                             
oCMenu.offlineRoot="../txccri/" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg=""
oCMenu.zIndex=20

//Background bar properties
oCMenu.useBar=0 //BAR turned OFF
oCMenu.barWidth="100%"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX=0 
oCMenu.barY=40
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=40
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=-oCMenu.level[0].height+41
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=140
oCMenu.level[1].height=25
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=-(oCMenu.level[0].width-2)/2+20
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].arrow="/images/bullet_arrow2.gif"
oCMenu.level[1].arrowWidth=11
oCMenu.level[1].arrowHeight=11


//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=129
oCMenu.level[2].height=21
oCMenu.level[2].offsetX=-(oCMenu.level[1].width-2)/2+20
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) 
*************************************/
var firstdir=firstdirectory() ;

if (navigator.appVersion.indexOf("4.") != -1 && 
navigator.appName.indexOf("Explorer") != -1) {

	if (firstdir=='blank'){
 		oCMenu.makeMenu('top0','','HOME','','',130,19,'/images/nothing.gif','/images/nothing.gif');
	} else {
 		oCMenu.makeMenu('top0','','HOME','','',130,19,'/images/nothing.gif','/images/nothing.gif');
	}
	oCMenu.fromTop=135;  
}

else if (navigator.userAgent.indexOf("Firefox")!=-1) {
	if (firstdir=='blank'){
 		oCMenu.makeMenu('top0','','HOME','','',130,19,'/images/nothing.gif','/images/nothing.gif');
	} else {
 		oCMenu.makeMenu('top0','','HOME','','',130,19,'/images/nothing.gif','/images/nothing.gif');
	}
	oCMenu.fromTop=137;
}

else {if (firstdir=='blank'){
 		oCMenu.makeMenu('top0','','HOME','','',130,19,'/images/nothing.gif','/images/nothing.gif');
	} else {
 		oCMenu.makeMenu('top0','','HOME','','',130,19,'/images/nothing.gif','/images/nothing.gif');
	}
	oCMenu.fromTop=135; 
}



if (firstdir=='home'){
 oCMenu.makeMenu('top1','','HOME','/index.html','',78,27,'/images/b_home.gif','/images/b_home_over.gif');
} else {
 oCMenu.makeMenu('top1','','HOME','/index.html','',78,27,'/images/b_home.gif','/images/b_home_over.gif');
}

if (firstdir=='about'){
 oCMenu.makeMenu('top2','','ABOUT TCCRI','/about.html','',97,27,'/images/b_about.gif','/images/b_about_over.gif');
} else {
 oCMenu.makeMenu('top2','','ABOUT TCCRI','/about.html','',97,27,'/images/b_about.gif','/images/b_about_over.gif');
}


if (firstdir=='taskforce'){
oCMenu.makeMenu('top3','','TASK FORCES & EVENTS','/lift_texas.html','',142,27,'/images/b_news.gif','/images/b_news_over.gif')
}else{
oCMenu.makeMenu('top3','','TASK FORCES & EVENTS','/lift_texas.html','',142,27,'/images/b_news.gif','/images/b_news_over.gif')
}



if (firstdir=='publications'){
oCMenu.makeMenu('top4','','PUBLICATIONS','/publications.html','',102,27,'/images/b_pub.gif','/images/b_pub_over.gif')
}else{
oCMenu.makeMenu('top4','','PUBLICATIONS','/publications.html','',102,27,'/images/b_pub.gif','/images/b_pub_over.gif')
}

if (firstdir=='gala'){
oCMenu.makeMenu('top5','','2011 GALA','/2011_gala.html','',92,27,'/images/b_gala.gif','/images/b_gala_over.gif')
}else{
oCMenu.makeMenu('top5','','2011 GALA','/2011_gala.html','',92,27,'/images/b_contribute.gif','/images/b_contribute.gif')
}

//if (firstdir=='contribute'){
//oCMenu.makeMenu('top5','','CONTRIBUTE','/get_involved.html','',92,27,'/images/b_contribute.gif','/images/b_contribute_over.gif')
//}else{
//oCMenu.makeMenu('top5','','CONTRIBUTE','/get_involved.html','',92,27,'/images/b_contribute.gif','/images/b_contribute_over.gif')
//}

if (firstdir=='blog'){
oCMenu.makeMenu('top6','','CLEMENTS PROGRAM','/clements_program.html','',125,27,'/images/b_clements.gif','/images/b_clements_over.gif')
}else{
oCMenu.makeMenu('top6','','CLEMENTS PROGRAM','/clements_program.html','',125,27,'/images/b_clements.gif','/images/b_clements_over.gif')
}



	//these sub menus are only used if it is IE on PC!!!!

	oCMenu.makeMenu('sub21','top2','LIFT Principles','about.html','',110,'','','','','')
		oCMenu.makeMenu('sub211','sub21','Limited Government','about.html#limited','',126,'','','','','')
		oCMenu.makeMenu('sub212','sub21','Individual Liberties','about.html#liberties','',126,'','','','','')
		oCMenu.makeMenu('sub213','sub21','Free Enterprise','about.html#free','',126,'','','','','')
		oCMenu.makeMenu('sub214','sub21','Traditional Family Values','about.html#family','',126,'','','','','')
	oCMenu.makeMenu('sub22','top2','Board and Staff','our_board.html','',110,'','','','','')
	oCMenu.makeMenu('sub23','top2','Contact Us','contact.html','',110,'','','','','')		
	
	oCMenu.makeMenu('sub31','top3','2011-2012 Task Forces','lift_texas.html','',160,'','','','','')
		oCMenu.makeMenu('sub311','sub31','State Budget','lift_texas_SB2011.html','',160,'','','','','')
		oCMenu.makeMenu('sub312','sub31','Public Sector Reform','lift_texas_PSR2011.html','',160,'','','','','')
		oCMenu.makeMenu('sub313','sub31','State Taxation & Revenue','lift_texas_STR2011.html','',160,'','','','','')
		oCMenu.makeMenu('sub314','sub31','Public Education & School Finance','lift_texas_PESF2011.html','',160,'','','','','')
		oCMenu.makeMenu('sub315','sub31','Free Enterprise & State Regulation','lift_texas_FESR2011.html','',160,'','','','','')
		oCMenu.makeMenu('sub316','sub31','Self-Governance','lift_texas_SG2011.html','',160,'','','','','')
		oCMenu.makeMenu('sub317','sub31','Local Government','lift_texas_LG2011.html','',160,'','','','','')
		
	oCMenu.makeMenu('sub32','top3','2009-2010 Task Forces','lift_texas.html','',160,'','','','','')
		oCMenu.makeMenu('sub321','sub32','State Budget','lift_texas_state_budget.html','',160,'','','','','')
		oCMenu.makeMenu('sub322','sub32','Health & Human Services','lift_texas_hr.html','',160,'','','','','')
		oCMenu.makeMenu('sub323','sub32','School Finance & Property Tax Reform','lift_texas_school_tax.html','',160,'','','','','')
		oCMenu.makeMenu('sub324','sub32','Transportation','lift_texas_transportation.html','',160,'','','','','')
		oCMenu.makeMenu('sub325','sub32','Insurance','lift_texas_insurance.html','',160,'','','','','')
		oCMenu.makeMenu('sub326','sub32','Energy & the Environment','lift_texas_energy_env.html','',160,'','','','','')
		oCMenu.makeMenu('sub327','sub32','Government Reform','lift_texas_gov_reform.html','',160,'','','','','')
		oCMenu.makeMenu('sub328','sub32','Economic and Workforce Development','lift_texas_economic_wf.html','',160,'','','','','')
		oCMenu.makeMenu('sub329','sub32','Western Civilization','lift_texas_western_civ.html','',160,'','','','','')
	
	oCMenu.makeMenu('sub33','top3','2007-2008 Task Forces','lift_texas.html','',160,'','','','','')
		oCMenu.makeMenu('sub331','sub33','Outsourcing & Privatization','lift_texas_op.html','',160,'','','','','')
		oCMenu.makeMenu('sub332','sub33','Property Tax','lift_texas_pt.html','',160,'','','','','')
		oCMenu.makeMenu('sub333','sub33','Election Integrity','lift_texas_ei.html','',160,'','','','','')
		oCMenu.makeMenu('sub334','sub33','Energy & Telecommunications','lift_texas_et.html','',160,'','','','','')
		oCMenu.makeMenu('sub335','sub33','Health & Human Services','lift_texas_hhs5.html','',160,'','','','','')
		oCMenu.makeMenu('sub336','sub33','Water and the Free Market','lift_texas_wfm.html','',160,'','','','','')
		oCMenu.makeMenu('sub337','sub33','Families First Phase III','lift_texas_ff3.html','',160,'','','','','')
		oCMenu.makeMenu('sub338','sub33','Illegal Immigration Phase II','lift_texas_ii2.html','',160,'','','','','')
		
	oCMenu.makeMenu('sub34','top3','2005-2006 Task Forces','lift_texas.html','',160,'','','','','')
			oCMenu.makeMenu('sub342','sub34','Texas Families First Phase II ','lift_texas_ff2.html','',160,'','','','','','')
			oCMenu.makeMenu('sub343','sub34','Healthcare Reform Task Force','lift_texas_hhs4.html','',160,'','','','','','')
			oCMenu.makeMenu('sub344','sub34','Property Rights Task Force','lift_texas_land.html','',160,'','','','','','')
			oCMenu.makeMenu('sub345','sub34','Illegal Immigration Task Force ','lift_texas_ii.html','',160,'','','','','','')
			oCMenu.makeMenu('sub346','sub34','State Taxation Task Force ','lift_texas_st.html','',160,'','','','','','')
			oCMenu.makeMenu('sub347','sub34','Public School Finance','lift_texas_psf.html','',160,'','','','','','')
	
	oCMenu.makeMenu('sub35','top3','Events','events.html','',160,'','','','','')
	
	oCMenu.makeMenu('sub41','top4','LIFT Perspectives','publications.html#lift','',150,'','','','','','right')
		oCMenu.makeMenu('sub411','sub41','Limited Government','publications.html#government','',126,'','','','','')
		oCMenu.makeMenu('sub412','sub41','Individual Liberties','publications.html#liberties','',126,'','','','','')
		oCMenu.makeMenu('sub413','sub41','Free Enterprise','publications.html#free','',126,'','','','','')
		oCMenu.makeMenu('sub414','sub41','Traditional Family Values','publications.html#family','',126,'','','','','')
		oCMenu.makeMenu('sub415','sub41','Role of Government','publications.html#role','',126,'','','','','')
	oCMenu.makeMenu('sub42','top4','Task Force Reports','publications.html#taskforce','',150,'','','','','','right')
	oCMenu.makeMenu('sub43','top4','Research Reports','publications.html#research','',150,'','','','','','right')
	oCMenu.makeMenu('sub44','top4','Op-Eds & Press Releases','publications.html#oped','',150,'','','','','','right')
	
	oCMenu.makeMenu('sub61','top6','2009 Class','clements_scholars_2009.html','',127,'','','','','','left')
	oCMenu.makeMenu('sub62','top6','2011 Class','clements_program.html#2011','',127,'','','','','','left')
	
// end of conditional for PC only menus

			function firstdirectory() {// returns the name of the first directory (except the language!
			var lenPath 
			lenPath = location.pathname.indexOf('/',4)- location.pathname.indexOf('/',3)  ;
			return location.pathname.substr(location.pathname.indexOf('/',3)+1 ,lenPath -1)
		}
	
	//Leave this line - it constructs the menu
oCMenu.construct();		

