/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

if (typeof(decodeURIComponent) == 'undefined') {
  decodeURIComponent = function(s) {
    return unescape(s);
  }
}

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return decodeURIComponent(s);
}

var POS_NODENAME=0;
var POS_ID=1;
var POS_NAME=2;
var POS_NAVIGATIONTEXT=3;
var POS_HREF=4;
var POS_ISNAVIGATION=5;
var POS_CHILDS=6;
var POS_TEMPLATENAME=7;
var POS_TARGET=8;
var theSitetree=[ 
	['PAGE','601',jdecode('Home'),jdecode(''),'/601.html','true',[],'',''],
	['PAGE','652',jdecode('Client+Information'),jdecode(''),'/652.html','true',[],'',''],
	['PAGE','673',jdecode('Candidate+Information'),jdecode(''),'/673/index.html','true',[ 
		['PAGE','715',jdecode('CV+Tips'),jdecode(''),'/673/715.html','true',[],'',''],
		['PAGE','736',jdecode('Interview+Tips'),jdecode(''),'/673/736.html','true',[],'','']
	],'',''],
	['PAGE','757',jdecode('Office+%26+Commercial'),jdecode(''),'/757/index.html','true',[ 
		['PAGE','778',jdecode('Administration'),jdecode(''),'/757/778.html','true',[],'',''],
		['PAGE','799',jdecode('Secretarial+%2F+PA'),jdecode(''),'/757/799.html','true',[],'',''],
		['PAGE','820',jdecode('Reception'),jdecode(''),'/757/820.html','true',[],'',''],
		['PAGE','904',jdecode('Customer+Services'),jdecode(''),'/757/904.html','true',[],'',''],
		['PAGE','841',jdecode('Human+Resources'),jdecode(''),'/757/841.html','true',[],'','']
	],'',''],
	['PAGE','862',jdecode('Accounts+%26+Finance'),jdecode(''),'/862/index.html','true',[ 
		['PAGE','6001',jdecode('Commerce%2FIndustry'),jdecode(''),'/862/6001.html','true',[],'',''],
		['PAGE','6022',jdecode('Accountancy+Practice'),jdecode(''),'/862/6022.html','true',[],'',''],
		['PAGE','84912',jdecode('Legal+Accounts'),jdecode(''),'/862/84912.html','true',[],'','']
	],'',''],
	['PAGE','83112',jdecode('Scientific+%26+Engineering'),jdecode(''),'/83112.html','true',[],'',''],
	['PAGE','81312',jdecode('Logistics+%26+Transport'),jdecode(''),'/81312.html','true',[],'',''],
	['PAGE','883',jdecode('Sales'),jdecode(''),'/883.html','true',[],'',''],
	['PAGE','925',jdecode('Shipping'),jdecode(''),'/925.html','true',[],'',''],
	['PAGE','967',jdecode('Non+Office'),jdecode(''),'/967.html','true',[],'',''],
	['PAGE','17001',jdecode('Recruitment'),jdecode(''),'/17001.html','true',[],'',''],
	['PAGE','988',jdecode('Contact+us+%2F+opening+hrs'),jdecode(''),'/988.html','true',[],'','']];
var siteelementCount=22;
theSitetree.topTemplateName='Commander';
theSitetree.paletteFamily='2B25A2';
theSitetree.keyvisualId='2398';
theSitetree.keyvisualName='tastatur2.jpg';
theSitetree.fontsetId='393';
theSitetree.graphicsetId='439';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E0E0E0';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Commander',
				paletteFamily: 	'2B25A2',
				keyvisualId: 	'2398',
				keyvisualName: 	'tastatur2.jpg',
				fontsetId: 		'393',
				graphicsetId: 	'439',
				contentColor: 	'000000',
				contentBGColor: 'E0E0E0',
				a_color: 		'E0E0E0',
				b_color: 		'5762CA',
				c_color: 		'A1A4D2',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20100129-090732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '862',
internalId:  '',
customField: '20090219-151732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '736',
internalId:  '',
customField: '20081001-115614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '715',
internalId:  '',
customField: '20081001-115410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '757',
internalId:  '',
customField: '20090219-150818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '841',
internalId:  '',
customField: '20100209-104405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20090806-115513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '988',
internalId:  '',
customField: '20100215-173126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6001',
internalId:  '',
customField: '20100225-105721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6022',
internalId:  '',
customField: '20100201-142834'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20100127-170751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '778',
internalId:  '',
customField: '20100224-120607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '967',
internalId:  '',
customField: '20100129-091557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '799',
internalId:  '',
customField: '20081216-153211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '820',
internalId:  '',
customField: '20091117-134535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '904',
internalId:  '',
customField: '20100224-120651'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '883',
internalId:  '',
customField: '20100216-155708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '925',
internalId:  '',
customField: '20100211-181738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17001',
internalId:  '',
customField: '20100129-091118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81312',
internalId:  '',
customField: '20100203-224329'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-5229841']={
webappId:    '1501',
documentId:  '601',
internalId:  '5229841',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83112',
internalId:  '',
customField: '20100217-110637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84912',
internalId:  '',
customField: '20100304-172106'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT10IN2Q4W';
var companyName   = 'Calculus+Recruitment+Limited';
var htmlTitle	  = 'Calculus+Recruitment+Limited';
var metaKeywords  = 'Recruitment%2C+Agency%2C+Vacancies%2C+Vacancy%2C+Role%2C+Job%2C+Position%2C+Work+available%2C+Employment%2C+Ware%2C+Cheshunt%2C+Hertford%2C+Harlow%2C+Buntingford%2C+Stevenage%2C+Hatfield%2C+Welwyn%2C+Hoddesdon%2C+Broxbourne%2C+Turnford%2C+Royston%2C+Bishops+Stortford%2C+St+Albans%2C+Epping%2C+Hitchin%2C+Baldock%2C+Letchworth%2C+Waltham+Cross%2C+Welham+Green%2C+Wlatham+Abbey';
var metaContents  = 'Recruitment+agency+based+in+Ware%2C+Herts%2C+offering+general+office+and+accountancy+recruitment+and+more+latterly+specialist+recruitment+in+other+fields.+++';
theSitetree.getById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		if (ar[i][POS_ID] == id){
			return ar[i];
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getParentById = function(id, ar) {
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		for (var j = 0; j < ar[i][POS_CHILDS].length; j++) {
			if (ar[i][POS_CHILDS][j][POS_ID] == id) {
				// child found
				return ar[i];
			}
			var result=this.getParentById(id, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getName = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAME];
	}
	return null;
};

theSitetree.getNavigationText = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_NAVIGATIONTEXT];
	}
	return null;
};

theSitetree.getHREF = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_HREF];
	}
	return null;
};

theSitetree.getIsNavigation = function(id) {
	var elem = this.getById(id);
	if (elem != null){
		return elem[POS_ISNAVIGATION];
	}
	return null;
};

theSitetree.getTemplateName = function(id, lastTemplateName, ar) {
	if (typeof(lastTemplateName) == 'undefined'){
		lastTemplateName = this.topTemplateName;
	}
	if (typeof(ar) == 'undefined'){
		ar = this;
	}
	for (var i=0; i < ar.length; i++) {
		var actTemplateName = ar[i][POS_TEMPLATENAME];
		if (actTemplateName == ''){
			actTemplateName = lastTemplateName;
		}
		if (ar[i][POS_ID] == id) {
			return actTemplateName;
		}
		if (ar[i][POS_CHILDS].length > 0) {
			var result=this.getTemplateName(id, actTemplateName, ar[i][POS_CHILDS]);
			if (result != null){
				return result;
			}
		}
	}
	return null;
};

theSitetree.getByXx = function(lookup, xx, ar) {
    if (typeof(ar) == 'undefined'){
    	ar = this;
    }
    for (var i=0; i < ar.length; i++) {
        if (ar[i][xx] == lookup){
        	return ar[i];
        }
        if (ar[i][POS_CHILDS].length > 0) {
        	var result=this.getByXx(lookup, xx, ar[i][POS_CHILDS]);
            if (result != null){
                return result;
               }
        }
    }
    return null;
};

function gotoPage(lookup) {
	if(__path_prefix__ == "/servlet/CMServeRES" && typeof (changePage) == 'function'){
		changePage(lookup);
		return;
	}
	var page = theSitetree.getHREF(lookup);
	if (!page) {
		var testFor = [ POS_NAME, POS_NAVIGATIONTEXT ];
		for (var i=0 ; i < testFor.length ; i++) {
			var p = theSitetree.getByXx(lookup, testFor[i]);
			if (p != null) {
				page = p[POS_HREF];
				break;
			}
		}
	}
	document.location.href = (new URL(__path_prefix__ + page, true, true)).toString();
};
