 
/*** 
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 NUMBER 1 **********************************/

//Menu object creation
oCMenu1=new makeCM("oCMenu1") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu1.pxBetween=0
oCMenu1.fromLeft=2
oCMenu1.fromTop=138
oCMenu1.rows=1
oCMenu1.menuPlacement="left"

oCMenu1.offlineRoot="" 
oCMenu1.onlineRoot="" 
oCMenu1.resizeCheck=1
oCMenu1.wait=500 
oCMenu1.zIndex=0

//Level properties - ALL properties have to be spesified in level 0
oCMenu1.level[0]=new cm_makeLevel() //Add this for each new level

oCMenu1.level[0].width=190
oCMenu1.level[0].height=20
oCMenu1.level[0].regClass="cl2Level0"
oCMenu1.level[0].overClass="cl2Level0over"
oCMenu1.level[0].borderX=0
oCMenu1.level[0].borderY=0
oCMenu1.level[0].borderClass="cl2Level0border"
oCMenu1.level[0].offsetX=-152
oCMenu1.level[0].offsetY=+22
oCMenu1.level[0].rows=0
oCMenu1.level[0].arrow=""
oCMenu1.level[0].arrowWidth=9
oCMenu1.level[0].arrowHeight=18
oCMenu1.level[0].align="right"

//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
oCMenu1.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)

oCMenu1.level[1].clippx=0

oCMenu1.level[1].width=150
oCMenu1.level[1].height=24
oCMenu1.level[1].regClass="cl2Level1"
oCMenu1.level[1].overClass="cl2Level1over"
oCMenu1.level[1].borderX=0
oCMenu1.level[1].borderY=0
oCMenu1.level[1].align="right"
oCMenu1.level[1].offsetX=-(oCMenu1.level[0].width+900)/10+80
oCMenu1.level[1].borderClass="cl2Level1border"
oCMenu1.level[1].offsetY=5
oCMenu1.level[1].arrow=""

oCMenu1.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu1.level[2].width=140
oCMenu1.level[2].height=20
oCMenu1.level[2].regClass="cl2Level2"
oCMenu1.level[2].overClass="cl2Level2over"
oCMenu1.level[2].borderX=0
oCMenu1.level[2].borderY=0
oCMenu1.level[2].align="right" 
oCMenu1.level[2].offsetX=-(oCMenu1.level[1].width-0)/10+100
oCMenu1.level[2].offsetY=-1
oCMenu1.level[2].borderClass="cl2Level2border"
oCMenu1.level[2].align="bottom"

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/

oCMenu1.makeMenu('top1','','Company Profile','about_us.html')
  	oCMenu1.makeMenu('sub00','top1','About Us','about_us.html')
	oCMenu1.makeMenu('sub01','top1','Management Team','man_team.html')

oCMenu1.makeMenu('top2','','The InSearch Difference','why_insearch.html')
	oCMenu1.makeMenu('sub06','top2','Why InSearch?','why_insearch.html')
	oCMenu1.makeMenu('sub07','top2','Business Models','biz_models.html')
	oCMenu1.makeMenu('sub08','top2','Our Strategy','our_strategy.html')
	oCMenu1.makeMenu('sub09','top2','InSearch InSight','insearch_insight.html')
	oCMenu1.makeMenu('sub010','top2','FAQs','faqs.html')

oCMenu1.makeMenu('top3','','Credentials','clients.html')
	oCMenu1.makeMenu('sub11','top3','Our Portfolio','clients.html')
	oCMenu1.makeMenu('sub12','top3','Facts About InSearch','facts.html')
	oCMenu1.makeMenu('sub13','top3','Actual Results','actual_results.html')
	
oCMenu1.makeMenu('top4','','Contact Us','office_locations.html')
	oCMenu1.makeMenu('sub14','top4','Office Locations','office_locations.html')
	oCMenu1.makeMenu('sub15','top4','Careers at InSearch','careers.html')
	oCMenu1.makeMenu('sub16','top4','Submit Your Resume','submit.html')

//Leave this line - it constructs the menu
oCMenu1.construct()	

//Extra test code to customize the CoolMenus.
var xx,yy

function getCoords(e){
	xx=(bw.ns4 || bw.ns6)?e.pageX:event.x||event.clientX
  yy=(bw.ns4 || bw.ns6)?e.pageY:event.y||event.clientY
}

//Capturing onmousemove event
if(bw.ns4) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove=getCoords;	

