<!--


function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom && !this.opera5)?1:0;
	this.ie8=(this.ver.indexOf("MSIE 8")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6||this.ie7||this.ie8
	this.mac=this.agent.indexOf("Mac")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie8 || this.ie7 || this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
	return this
}
var bw=new lib_bwcheck()



/*** variables you can configure ***/

FoldNumber = 10			//How many toplinks do you have?
var stayFolded = false		//Stay open when you click a new toplink?
foldImg = 0				//Do you want images (if not set to 0 and remove the images from the body)?
mainOffsetY = 5				//Vertical space adjustment between the main items, in pixels.

//This is the default image.
//Remember to change the actual images in the page as well, but remember to keep the name of the image.
var unImg=new Image();
unImg.src='foldoutmenu_arrow.gif'

var exImg=new Image();					//Making an image variable...
exImg.src='foldoutmenu_arrow_open.gif'	//...this is the source of the image that it changes to when the menu expands.

// NOTE: if you change the position of divCont from absolute to relative, you can put the foldoutmenu in a table.
// HOWEVER it will no longer work in netscape 4. If you wish to support netscape 4, you have to use absolute positioning.

/*** There should be no need to change anything beyond this. ***/

// A unit of measure that will be added when setting the position of a layer.
var px = bw.ns4||window.opera?"":"px";

if(navigator.userAgent.indexOf('Opera')>-1 && document.getElementById){ //Opera 5 resize fix.
	scrX= innerWidth; scrY= innerHeight;
	document.onmousemove= function(){
		if(scrX<innerWidth-10 || scrY<innerHeight-10 || scrX>innerWidth+10 || scrY>innerHeight+10){
			scrX = innerWidth;
			scrY = innerHeight;
			initFoldout();
		}
	};
}
 
//object constructor...
function makeMenu(obj,nest){
	nest= (!nest)?"":'document.'+nest+'.';
	this.el= bw.ie4?document.all[obj]:bw.ns4?eval(nest+'document.'+obj):document.getElementById(obj);	
   	this.css= bw.ns4?this.el:this.el.style;
	this.ref= bw.ns4?this.el.document:document;		
	this.x= (bw.ns4||bw.opera5)?this.css.left:this.el.offsetLeft;
	this.y= (bw.ns4||bw.opera5)?this.css.top:this.el.offsetTop;
	this.h= (bw.ie||bw.ns6)?this.el.offsetHeight:bw.ns4?this.ref.height:bw.opera5?this.css.pixelHeight:0;
    this.vis= b_vis;
	this.hideIt= b_hideIt;
    this.showIt= b_showIt;
    this.moveIt= b_moveIt;
	return this
}
//object methods...
function b_showIt(){this.css.visibility='visible'}
function b_hideIt(){this.css.visibility='hidden'}
function b_vis(){if(this.css.visibility=='hidden' || this.css.visibility=='HIDDEN' || this.css.visibility=='hide') return true;}
function b_moveIt(x,y){this.x=x; this.y=y; this.css.left=this.x+px; this.css.top=this.y+px}

/************************************************************************************
This is the function that changes the sub menus to folded or unfolded state.
************************************************************************************/
function menu(num){
	if(bw.bw){
		if (!stayFolded){
			for (var i=0; i<oSub.length; i++){
				if (i!=num){
					oSub[i].hideIt()
					if (foldImg)oTop[i].ref["imgA"+i].src = unImg.src
				}
			}
			for(var i=1; i<oTop.length; i++){
				oTop[i].moveIt(0,oTop[i-1].y+oTop[i-1].h)
			}
		}
		if (oSub[num].vis()){
			oSub[num].showIt()
			if (foldImg)oTop[num].ref["imgA"+num].src = exImg.src
		}else{
			oSub[num].hideIt()
			if(foldImg)oTop[num].ref["imgA"+num].src = unImg.src
		}
		for(var i=1; i<oTop.length; i++){ 
			if (!oSub[i-1].vis()) oTop[i].moveIt(0,oTop[i-1].y+oTop[i-1].h+oSub[i-1].h+mainOffsetY) 
			else oTop[i].moveIt(0,oTop[i-1].y+oTop[i-1].h+mainOffsetY)
		}
	}
}

/*********************************************************************
The init function... there should be no need to change anything here.
*********************************************************************/
function initFoldout(){
	
	
	
	//Fixing the browsercheck for opera... this can be removed if the browsercheck has been updated!!
	bw.opera5 = (navigator.userAgent.indexOf("Opera")>-1 && document.getElementById)?true:false
	if (bw.opera5) bw.ns6 = 0

	oTop = new Array()
	oSub = new Array()
	//Making the objects and hiding the subs...
	for (var i=0; i<FoldNumber; i++){
		oTop[i] = new makeMenu('divTop'+i,'divCont')
		oSub[i] = new makeMenu('divSub'+i,'divCont.document.divTop'+i)
		oSub[i].hideIt()
	}
	
	//Positioning the top objects...
	oTop[0].moveIt(0,0)
	for (var i=1; i<oTop.length; i++){
		oTop[i].moveIt(0, oTop[i-1].y+oTop[i-1].h+mainOffsetY)
	}
	
	//Making the containing menu object and showing it...
	oCont = new makeMenu('divCont')
	oCont.showIt()
}

// If the browser is ok, the script is started onload...
if(bw.bw) onload = initFoldout;

//handle menu images
//-------------------
if (navigator.appVersion.indexOf("2.") != -1){
	check = false;
	}
if ((navigator.appVersion.indexOf("3.") != -1) && (navigator.appName.indexOf("Explorer") != -1)){
	check = false;
	}
else {
	check = true;
	}
if (check == true){
	aboutus = new Image();
	aboutus.src = "media/images/menu/about-us-01.gif";
	aboutuson = new Image();
	aboutuson.src = "media/images/menu/about-us-02.gif";
	aboutusstay = new Image();
	aboutusstay.src = "media/images/menu/about-us-02.gif";
	
	Clients = new Image();
	Clients.src = "media/images/menu/clients-01.gif";
	Clientson = new Image();
	Clientson.src = "media/images/menu/clients-02.gif";
	Clientsstay = new Image();
	Clientsstay.src = "media/images/menu/clients-02.gif";

	Press = new Image();
	Press.src = "media/images/menu/Press-01.gif";
	Presson = new Image();
	Presson.src = "media/images/menu/Press-02.gif";
	Pressstay = new Image();
	Pressstay.src = "media/images/menu/Press-02.gif";
	
	NewsLetter = new Image();
	NewsLetter.src = "media/images/menu/NewsLetter-01.gif";
	NewsLetteron = new Image();
	NewsLetteron.src = "media/images/menu/NewsLetter-02.gif";
	NewsLetterstay = new Image();
	NewsLetterstay.src = "media/images/menu/NewsLetter-02.gif";
			
	Philosophy = new Image();
	Philosophy.src = "media/images/menu/philosophy-01.gif";
	Philosophyon = new Image();
	Philosophyon.src = "media/images/menu/philosophy-02.gif";
	Philosophystay = new Image();
	Philosophystay.src = "media/images/menu/philosophy-02.gif";

	Management = new Image();
	Management.src = "media/images/menu/management-01.gif";
	Managementon = new Image();
	Managementon.src = "media/images/menu/management-02.gif";
	Managementstay = new Image();
	Managementstay.src = "media/images/menu/management-02.gif";
	
	AltourCompanies = new Image();
	AltourCompanies.src = "media/images/menu/altour-companies-01.gif";
	AltourCompanieson = new Image();
	AltourCompanieson.src = "media/images/menu/altour-companies-02.gif";
	AltourCompaniesstay = new Image();
	AltourCompaniesstay.src = "media/images/menu/altour-companies-02.gif";
	
	Philanthropy = new Image();
	Philanthropy.src = "media/images/menu/Philanthropy-01.gif";
	Philanthropyon = new Image();
	Philanthropyon.src = "media/images/menu/Philanthropy-02.gif";
	Philanthropystay = new Image();
	Philanthropystay.src = "media/images/menu/Philanthropy-02.gif";
	
	AltourLimousine = new Image();
	AltourLimousine.src = "media/images/menu/a-limousine-01.gif";
	AltourLimousineon = new Image();
	AltourLimousineon.src = "media/images/menu/a-limousine-02.gif";
	AltourLimousinestay = new Image();
	AltourLimousinestay.src = "media/images/menu/a-limousine-02.gif";
	
	AirCharter = new Image();
	AirCharter.src = "media/images/menu/a-air-charter-01.gif";
	AirCharteron = new Image();
	AirCharteron.src = "media/images/menu/a-air-charter-02.gif";
	AirCharterstay = new Image();
	AirCharterstay.src = "media/images/menu/a-air-charter-02.gif";
	
	AMT = new Image();
	AMT.src = "media/images/menu/a-man-tech-01.gif";
	AMTon = new Image();
	AMTon.src = "media/images/menu/a-man-tech-02.gif";
	AMTstay = new Image();
	AMTstay.src = "media/images/menu/a-man-tech-02.gif";
	
	AIM = new Image();
	AIM.src = "media/images/menu/a-inc-man-01.gif";
	AIMon = new Image();
	AIMon.src = "media/images/menu/a-inc-man-02.gif";
	AIMstay = new Image();
	AIMstay.src = "media/images/menu/a-inc-man-02.gif";
	
	TravelMaster = new Image();
	TravelMaster.src = "media/images/menu/travel-master-01.gif";
	TravelMasteron = new Image();
	TravelMasteron.src = "media/images/menu/travel-master-02.gif";
	TravelMasterstay = new Image();
	TravelMasterstay.src = "media/images/menu/travel-master-02.gif";
	
	CCC = new Image();
	CCC.src = "media/images/menu/classic-01.gif";
	CCCon = new Image();
	CCCon.src = "media/images/menu/classic-02.gif";
	CCCstay = new Image();
	CCCstay.src = "media/images/menu/classic-02.gif";
	
	Locations = new Image();
	Locations.src = "media/images/menu/locations-01.gif";
	Locationson = new Image();
	Locationson.src = "media/images/menu/locations-02.gif";
	Locationsstay = new Image();
	Locationsstay.src = "media/images/menu/locations-02.gif";
	
	USAEastCoast = new Image();
	USAEastCoast.src = "media/images/menu/usa-east-coast-01.gif";
	USAEastCoaston = new Image();
	USAEastCoaston.src = "media/images/menu/usa-east-coast-02.gif";
	USAEastCoaststay = new Image();
	USAEastCoaststay.src = "media/images/menu/usa-east-coast-02.gif";
	
	USAMidwest = new Image();
	USAMidwest.src = "media/images/menu/usa-midwest-01.gif";
	USAMidweston = new Image();
	USAMidweston.src = "media/images/menu/usa-midwest-02.gif";
	USAMidweststay = new Image();
	USAMidweststay.src = "media/images/menu/usa-midwest-02.gif";
	
	USAWestCoast = new Image();
	USAWestCoast.src = "media/images/menu/usa-west-coast-01.gif";
	USAWestCoaston = new Image();
	USAWestCoaston.src = "media/images/menu/usa-west-coast-02.gif";
	USAWestCoaststay = new Image();
	USAWestCoaststay.src = "media/images/menu/usa-west-coast-02.gif";
	
	UnitedKingdom = new Image();
	UnitedKingdom.src = "media/images/menu/united-kingdom-01.gif";
	UnitedKingdomon = new Image();
	UnitedKingdomon.src = "media/images/menu/united-kingdom-02.gif";
	UnitedKingdomstay = new Image();
	UnitedKingdomstay.src = "media/images/menu/united-kingdom-02.gif";
	
	France = new Image();
	France.src = "media/images/menu/france-01.gif";
	Franceon = new Image();
	Franceon.src = "media/images/menu/france-02.gif";
	Francestay = new Image();
	Francestay.src = "media/images/menu/france-02.gif";
	
	Careers = new Image();
	Careers.src = "media/images/menu/careers-01.gif";
	Careerson = new Image();
	Careerson.src = "media/images/menu/careers-02.gif";
	Careersstay = new Image();
	Careersstay.src = "media/images/menu/careers-02.gif";
	
	Employees = new Image();
	Employees.src = "media/images/menu/employees-01.gif";
	Employeeson = new Image();
	Employeeson.src = "media/images/menu/employees-02.gif";
	Employeesstay = new Image();
	Employeesstay.src = "media/images/menu/employees-02.gif";
	
	IndependantAgents = new Image();
	IndependantAgents.src = "media/images/menu/indepen-agents-01.gif";
	IndependantAgentson = new Image();
	IndependantAgentson.src = "media/images/menu/indepen-agents-02.gif";
	IndependantAgentsstay = new Image();
	IndependantAgentsstay.src = "media/images/menu/indepen-agents-02.gif";
	
	CurrentPositions = new Image();
	CurrentPositions.src = "media/images/menu/current-pos-01.gif";
	CurrentPositionson = new Image();
	CurrentPositionson.src = "media/images/menu/current-pos-02.gif";
	CurrentPositionsstay = new Image();
	CurrentPositionsstay.src = "media/images/menu/current-pos-02.gif";
}

imageStay = ""

function imageon(name){
	if (imageStay != name){
        	document[name].src = eval(name + "on.src");
	}
}
function imageoff(name){
	if (imageStay != name){
        	document[name].src = eval(name + ".src");
	}
}

function on(name){
        if (check == true){
	imageon(name);
	}
}
function off(name){
        if (check == true){
	imageoff(name);
	}
}

function stay(name){
	if (check == true){
	document[name].src = eval(name + "stay.src");
	if (imageStay != name){
		if (imageStay != ""){
			document[imageStay].src = eval(imageStay + ".src");
		}
	}
	imageStay = name
	}
}
//-->