oM=new makeCM("oM"); 
oM.resizeCheck=1; 
oM.rows=1;  
oM.onlineRoot="http://www.advancedpersonnel.co.nz"; 

oM.pxBetween=0;

function checkBrowser()
{
	this.ver=navigator.appVersion;
	this.dom=document.getElementById?1:0;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie55=(this.ver.indexOf("MSIE 5.5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5)?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	return this;
}

var objSniff = checkBrowser();

// document.write("objSniff version:" + this.ver );

// Using this browsers sniffer temporarily to "fix" positioning
//  problems we have been having with the different browsers.
//  Coolmenus is *supposed* to be able to handle this stuff, but 
//  the code is fairly complex...

// If the user has IE4 or IE5
if(objSniff.ie6 || objSniff.ie55 || objSniff.ie5 || objSniff.ie4)
{
	oM.fromLeft=175;

	if(objSniff.ie6 || objSniff.ie55 || objSniff.ie4)
	{
		oM.fromTop=96;
	} else if(objSniff.ie5)
	{
		oM.fromTop=95;
	}

// NS6 identifies itself as version 5 or above
} else if(objSniff.ns5 || objSniff.ns4)
{
	oM.fromTop=97;
	if(objSniff.ns5)
	{
		oM.fromLeft=174;
	} else {
		oM.fromLeft=173;
	}
// User is using something other than the "norm"
//  Mozilla and Opera users fall into this category.
} else
{
	oM.fromTop=96; 
	oM.fromLeft=175; 

}

// oM.fromTop=52;
// oM.fromLeft=8;

oM.wait=300; 
oM.zIndex=400;
oM.useBar=0; 

/* Create the menu levels here */
oM.level[0]=new cm_makeLevel(85,21,"clT","clTover",1,1,'',0,"bottom",0,0,0,0,0);
oM.level[1]=new cm_makeLevel(150,19,"clS","clSover",1,1,"clB",0,"right",0,0,"",10,10);
oM.level[2]=new cm_makeLevel(100,19,"clS2","clS2over",1,1,"clB");
//oM.level[3]=new cm_makeLevel(150,19,"clS2","clS2over",1,1,"clB");
//oM.level[4]=new cm_makeLevel(160,19);

/********************* BUILD THE MENU HERE *********************/
/* SYNTAX 
oM.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout)
DO NOT USE HYPHENS "-" WHEN NAMING MENU OBJECTS AS THEY WILL BREAK THE MENU 
*/

// Home
oM.makeMenu('Home','','Home','/index.cfm','','80','21','','');

// About us
oM.makeMenu('About_us','','About us','/aboutus/index.shtml','','100','21','','');
	oM.makeMenu('SeniorManagement','About_us','Senior Management','/aboutus/index.shtml');
	oM.makeMenu('ChBranch_About','About_us','Christchurch Branch','/aboutus/christbranch/index.shtml');
		 oM.makeMenu('Consultants_ChBranch','ChBranch_About','Consultants','/aboutus/christbranch/index.shtml');
	     oM.makeMenu('Staff_ChBranch','ChBranch_About','Support Staff','/aboutus/christbranch/staff.shtml'); 
  oM.makeMenu('InvBranch_About','About_us','Invercargill Branch','/aboutus/inverbranch/index.shtml');
		 oM.makeMenu('Consultants_InvBranch','InvBranch_About','Consultants','/aboutus/inverbranch/index.shtml');
		oM.makeMenu('Staff_InvBranch','InvBranch_About','Support Staff','/aboutus/inverbranch/staff.shtml');

  oM.makeMenu('NelBranch_About','About_us','Nelson Branch','/aboutus/nelsbranch/index.shtml');
		oM.makeMenu('Consultants_NelBranch','NelBranch_About','Consultants','/aboutus/nelsbranch/index.shtml');
  oM.makeMenu('Staff_NelBranch','NelBranch_About','Support Staff','/aboutus/nelsbranch/staff.shtml');

  oM.makeMenu('NthsBranch_About','About_us','North Shore Branch','/aboutus/nthsbranch/index.shtml');
oM.makeMenu('Consultants_NthsBranch','NthsBranch_About','Consultants','/aboutus/nthsbranch/index.shtml');
  oM.makeMenu('Staff_NthsBranch','NthsBranch_About','Support Staff','/aboutus/nthsbranch/staff.shtml');

//  oM.makeMenu('MnkuBranch_About','About_us','Manukau Branch','/aboutus/mnkubranch/index.shtml');
//oM.makeMenu('Consultants_MnkuBranch','MnkuBranch_About','Consultants','/aboutus/mnkubranch/index.shtml');
//  oM.makeMenu('Staff_MnkuBranch','MnkuBranch_About','Support Staff','/aboutus/mnkubranch/staff.shtml');
    oM.makeMenu('MnkuBranch_About','About_us','Manukau Branch','http://www.adstaff.co.nz/','_blank');
		
// Branches
oM.makeMenu('Contacts','','Our Branches','/contacts/index.shtml','','130','21','','');
   oM.makeMenu('ChristchurchBranch','Contacts','Christchurch Branch','/contacts/index.shtml');
   oM.makeMenu('InvercargillBranch','Contacts','Invercargill Branch','/contacts/index.shtml#Invgl');
   oM.makeMenu('NelsonBranch','Contacts','Nelson Branch','/contacts/index.shtml#Neln');
   oM.makeMenu('NthsBranch','Contacts','North Shore Branch','/contacts/index.shtml#Nths');
   //oM.makeMenu('ManukauBranch','Contacts','Manukau Branch','/contacts/index.shtml#Mnku');
   oM.makeMenu('ManukauBranch','Contacts','Manukau Branch','http://www.adstaff.co.nz/','_blank');
   
// Employers Services
oM.makeMenu('Employers','','Employers Services','/employers/index.shtml','','160','21','','');
   oM.makeMenu('PermanentPlacements','Employers','Permanent Placements','/employers/index.shtml');
   oM.makeMenu('TemporaryAssignments','Employers','Temporary Assignments','/employers/tplacements.shtml');
   oM.makeMenu('ExecutiveLeasing','Employers','Executive Leasing','/employers/leasing.shtml');   
   oM.makeMenu('OtherServices','Employers','Other Services','/employers/othservices.shtml');
   oM.makeMenu('HealthSafetyPolicy','Employers','Health and Safety Policy','/employers/hspolicy.shtml');
   oM.makeMenu('OSHWebsite','Employers','OSH Website','http://www.osh.govt.nz','_blank');
//   oM.makeMenu('Login_Clients','Employers','Log in','/clients/index.shtml');
   oM.makeMenu('Registration_Clients','Employers','Registration Form','/clients/freg_clients.shtml');

// Employees Services
oM.makeMenu('Services','','Employee Information','/services/index.shtml','','140','21','','');
   oM.makeMenu('MarketingYourself','Services','Marketing Yourself','/services/index.shtml');
   oM.makeMenu('CVs','Services','CV Preparation','http://www.cokerations.co.nz/','_blank');
   	oM.makeMenu('JobsNewZealand','Services','Working in New Zealand','/services/jobnz.shtml');   	
	oM.makeMenu('Immigration','Services','Immigration','http://www.immigration.govt.nz/migrant/stream/work/','_blank');
   	oM.makeMenu('IRD','Services','Inland Revenue','http://www.ird.govt.nz/nonresidents/','_blank');
   	oM.makeMenu('ERS','Services','Employment Relations','http://www.ers.govt.nz/audienceinfo/employees.html','_blank');
	oM.makeMenu('Registration','Services','Applicant Registration','/services/registr.shtml');
	//oM.makeMenu('Availability','Services','Temps Availability','/employees/index.shtml');

      
oM.menuPlacement=10;
oM.construct()
