/* [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(''), jdecode('%2F601.html'), 'true',[],'',''],
	['PAGE','652',jdecode('Client+Information'),jdecode(''), jdecode('%2F652.html'), 'true',[],'',''],
	['PAGE','673',jdecode('Candidate+Information'),jdecode(''), jdecode('%2F673%2Findex.html'), 'true',[ 
		['PAGE','715',jdecode('CV+Tips'),jdecode(''), jdecode('%2F673%2F715.html'), 'true',[],'',''],
		['PAGE','736',jdecode('Interview+Tips'),jdecode(''), jdecode('%2F673%2F736.html'), 'true',[],'','']
	],'',''],
	['PAGE','757',jdecode('Office+%26+Commercial'),jdecode(''), jdecode('%2F757%2Findex.html'), 'true',[ 
		['PAGE','778',jdecode('Administration'),jdecode(''), jdecode('%2F757%2F778.html'), 'true',[],'',''],
		['PAGE','820',jdecode('Reception'),jdecode(''), jdecode('%2F757%2F820.html'), 'true',[],'','']
	],'',''],
	['PAGE','862',jdecode('Accounts+%26+Finance'),jdecode(''), jdecode('%2F862%2Findex.html'), 'true',[ 
		['PAGE','6001',jdecode('Commerce%2FIndustry'),jdecode(''), jdecode('%2F862%2F6001.html'), 'true',[],'',''],
		['PAGE','6022',jdecode('Accountancy+Practice'),jdecode(''), jdecode('%2F862%2F6022.html'), 'true',[],'','']
	],'',''],
	['PAGE','111912',jdecode('Engineering+Vacancies'),jdecode(''), jdecode('%2F111912.html'), 'true',[],'',''],
	['PAGE','109812',jdecode('Financial+Services'),jdecode(''), jdecode('%2F109812.html'), 'true',[],'',''],
	['PAGE','103912',jdecode('IT+Vacancies'),jdecode(''), jdecode('%2F103912.html'), 'true',[],'',''],
	['PAGE','102612',jdecode('Construction+Vacancies'),jdecode(''), jdecode('%2F102612.html'), 'true',[],'',''],
	['PAGE','883',jdecode('Sales'),jdecode(''), jdecode('%2F883.html'), 'true',[],'',''],
	['PAGE','109012',jdecode('Fashion+Industry'),jdecode(''), jdecode('%2F109012.html'), 'true',[],'',''],
	['PAGE','967',jdecode('Non+Office'),jdecode(''), jdecode('%2F967.html'), 'true',[],'',''],
	['PAGE','98012',jdecode('Travel+and+Leisure'),jdecode(''), jdecode('%2F98012.html'), 'true',[],'',''],
	['PAGE','17001',jdecode('Recruitment'),jdecode(''), jdecode('%2F17001.html'), 'true',[],'',''],
	['PAGE','988',jdecode('Contact+us+%2F+opening+hrs'),jdecode(''), jdecode('%2F988.html'), 'true',[],'','']];
var siteelementCount=21;
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 prodDef={
  wl_name: 'easily_co_uk',
  product: 'WSCSYSSSSLY0XVDH'
};
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: '20110804-151507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '862',
internalId:  '',
customField: '20110726-153443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '736',
internalId:  '',
customField: '20110726-095529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '715',
internalId:  '',
customField: '20110726-095706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '757',
internalId:  '',
customField: '20110804-151507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '673',
internalId:  '',
customField: '20110328-112323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '988',
internalId:  '',
customField: '20120105-105619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6001',
internalId:  '',
customField: '20120105-105325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6022',
internalId:  '',
customField: '20120105-105248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '652',
internalId:  '',
customField: '20110804-150225'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '778',
internalId:  '',
customField: '20120105-105148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '967',
internalId:  '',
customField: '20111219-141703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '820',
internalId:  '',
customField: '20111219-140537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111912',
internalId:  '',
customField: '20110811-163836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '883',
internalId:  '',
customField: '20111219-141557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109812',
internalId:  '',
customField: '20111219-140902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17001',
internalId:  '',
customField: '20120105-105557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109012',
internalId:  '',
customField: '20110726-160739'
};
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:  '98012',
internalId:  '',
customField: '20111219-141728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103912',
internalId:  '',
customField: '20111219-141323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102612',
internalId:  '',
customField: '20110726-161534'
};
var webAppHostname = 'cgi.easily.co.uk:80';
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+accountancy%2C+Employment%2C+Administration%2C+Employ%2C+Temps%2C+Permanent%2C+Temp-to-perm%2C+Ware%2C+Cheshunt%2C+Hertford%2C+Harlow%2C+Stevenage%2C+Hatfield%2C+Welwyn%2C+Hoddesdon%2C+Broxbourne%2C+Turnford%2C+Royston%2C+Bishops+Stortford%2C++Epping%2C+Waltham';
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();
};

