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

oM.frames = 0

//Menu properties   
oM.pxBetween=30
oM.fromLeft=20 
oM.fromTop=0   
oM.rows=1 
oM.menuPlacement="center"
                                                             
oM.offlineRoot="" 
oM.onlineRoot="" 
oM.resizeCheck=1 
oM.wait=1000 
oM.fillImg="cm_fill.gif"
oM.zIndex=0

//Background bar properties
oM.useBar=0
oM.barWidth="100%"
oM.barHeight="menu" 
oM.barClass="clBar"
oM.barX=0 
oM.barY=0
oM.barBorderX=0
oM.barBorderY=0
oM.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
oM.level[0]=new cm_makeLevel() //Add this for each new level
oM.level[0].width=92
oM.level[0].height=20 
oM.level[0].regClass="clLevel0"
oM.level[0].overClass="clLevel0over"
oM.level[0].borderX=1
oM.level[0].borderY=1
oM.level[0].borderClass="clLevel0border"
oM.level[0].offsetX=0
oM.level[0].offsetY=0
oM.level[0].rows=0
oM.level[0].arrow=0
oM.level[0].arrowWidth=0
oM.level[0].arrowHeight=0
oM.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
oM.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oM.level[1].width=oM.level[0].width-2
oM.level[1].height=20
oM.level[1].regClass="clLevel1"
oM.level[1].overClass="clLevel1over"
oM.level[1].borderX=1
oM.level[1].borderY=1
oM.level[1].align="right" 
oM.level[1].offsetX=-(oM.level[0].width-2)/2+41
oM.level[1].offsetY=0
oM.level[1].arrow="images/arrows.gif"
oM.level[1].arrowWidth=9
oM.level[1].arrowHeight=9
oM.level[1].borderClass="clLevel1border"
oM.level[1].roundBorder=0


//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
oM.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oM.level[2].width=150
oM.level[2].height=20
oM.level[2].offsetX=0
oM.level[2].offsetY=0
oM.level[2].regClass="clLevel2"
oM.level[2].overClass="clLevel2over"
oM.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) 
*************************************/
oM.makeMenu('top0','','services','services.html');
  oM.makeMenu('sub01','top0','10 Principles', 'services.html');
  oM.makeMenu('sub02','top0','Approach', 'approach.html');

oM.makeMenu('top1','','clients','clients.html','',120);
  oM.makeMenu('sub11','top1','Client List', 'clients.html','',120);
  oM.makeMenu('sub12','top1','Case Studies','cs_a3solutions.html','',120);
	oM.makeMenu('sub120','sub12','A3 Solutions', 'cs_a3solutions.html');
	oM.makeMenu('sub121','sub12','Brio Technology', 'cs_briotech.html');
	oM.makeMenu('sub122','sub12','Multi-client', 'cs_multiclient.html');
	oM.makeMenu('sub123','sub12','Philips', 'cs_philips.html');
	oM.makeMenu('sub124','sub12','Recipio', 'cs_recipio.html');
  oM.makeMenu('sub13','top1','Project Examples','ex_prodmarketing.html','',120);
	oM.makeMenu('sub130','sub13','Product Marketing', 'ex_prodmarketing.html');
	oM.makeMenu('sub131','sub13','Qualitative Research', 'ex_qresearch.html');
	oM.makeMenu('sub132','sub13','Partner Development', 'ex_partnerdev.html');
	oM.makeMenu('sub133','sub13','Demand Generation', 'ex_demandgen.html');
	oM.makeMenu('sub134','sub13','Strategic Advising', 'ex_stratadvising.html');

oM.makeMenu('top2','','resources','resources.html');
  oM.makeMenu('sub20','top2','Books', 'resources.html');
  oM.makeMenu('sub21','top2','Articles', 'resources.html');
  oM.makeMenu('sub22','top2','Survey', 'survey.html');


oM.makeMenu('top3','','About Us','aboutus.html');
  oM.makeMenu('sub30','top3','Background', 'aboutus.html');
  oM.makeMenu('sub31','top3','Experience','techexp.html');
	oM.makeMenu('sub310','sub31','Technology Experience', 'techexp.html');
	oM.makeMenu('sub311','sub31','Market Knowledge', 'marketknowledge.html');
	oM.makeMenu('sub312','sub31','Association Experience', 'assocexp.html');
  oM.makeMenu('sub32','top3','Philosophy', 'philosophy.html');
  oM.makeMenu('sub33','top3','The Founder', 'founder.html');
  oM.makeMenu('sub34','top3','Partners', 'partners.html');

oM.makeMenu('top4','','Contact','contactus.html');
  oM.makeMenu('sub40','top4','Contact QM', 'contactus.html');

oM.construct()


//Extra test code to customize the CoolMenus.
var xx,yy
oM.m["top0"].b.hideIt() //Hiding the first item.
oM.m["top1"].b.hideIt() //Hiding the first item.
oM.m["top2"].b.hideIt() //Hiding the first item.
oM.m["top3"].b.hideIt() //Hiding the first item.
oM.m["top4"].b.hideIt() //Hiding the first item.

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;

