/* [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','5301',jdecode('About+Us'),jdecode(''), jdecode('%2F5301%2Findex.html'), 'true',[ 
		['PAGE','91091',jdecode('Testimonials'),jdecode(''), jdecode('%2F5301%2F91091.html'), 'true',[],'',''],
		['PAGE','91891',jdecode('Why+Choose+Arrow'),jdecode(''), jdecode('%2F5301%2F91891.html'), 'true',[],'',''],
		['PAGE','92191',jdecode('A+Greener+Way+'),jdecode(''), jdecode('%2F5301%2F92191.html'), 'true',[],'','']
	],'',''],
	['PAGE','268413',jdecode('Office+Hours'),jdecode(''), jdecode('%2F268413.html'), 'true',[],'',''],
	['PAGE','165802',jdecode('Agents+Page'),jdecode(''), jdecode('%2F165802.html'), 'true',[],'',''],
	['PAGE','213813',jdecode('Concert+Travel+'),jdecode(''), jdecode('%2F213813.html'), 'true',[],'',''],
	['PAGE','5430',jdecode('Great+Days+Out+'),jdecode(''), jdecode('%2F5430%2Findex.html'), 'true',[ 
		['PAGE','236713',jdecode('February+2012'),jdecode(''), jdecode('%2F5430%2F236713.html'), 'true',[],'',''],
		['PAGE','240113',jdecode('March+2012'),jdecode(''), jdecode('%2F5430%2F240113.html'), 'true',[],'',''],
		['PAGE','246113',jdecode('April+2012'),jdecode(''), jdecode('%2F5430%2F246113.html'), 'true',[],'',''],
		['PAGE','253613',jdecode('May+2012'),jdecode(''), jdecode('%2F5430%2F253613.html'), 'true',[],'',''],
		['PAGE','258213',jdecode('June+2012'),jdecode(''), jdecode('%2F5430%2F258213.html'), 'true',[],'',''],
		['PAGE','258239',jdecode('July+2012'),jdecode(''), jdecode('%2F5430%2F258239.html'), 'true',[],'',''],
		['PAGE','258265',jdecode('August+2012'),jdecode(''), jdecode('%2F5430%2F258265.html'), 'true',[],'','']
	],'',''],
	['PAGE','5456',jdecode('Short+Breaks+'),jdecode(''), jdecode('%2F5456%2Findex.html'), 'true',[ 
		['PAGE','274013',jdecode('March+2012'),jdecode(''), jdecode('%2F5456%2F274013.html'), 'true',[],'',''],
		['PAGE','276013',jdecode('April+2012'),jdecode(''), jdecode('%2F5456%2F276013.html'), 'true',[],'',''],
		['PAGE','277513',jdecode('May+2012'),jdecode(''), jdecode('%2F5456%2F277513.html'), 'true',[],'',''],
		['PAGE','278413',jdecode('June+2012'),jdecode(''), jdecode('%2F5456%2F278413.html'), 'true',[],'',''],
		['PAGE','279713',jdecode('August+2012'),jdecode(''), jdecode('%2F5456%2F279713.html'), 'true',[],'',''],
		['PAGE','281813',jdecode('September+2012'),jdecode(''), jdecode('%2F5456%2F281813.html'), 'true',[],'',''],
		['PAGE','283413',jdecode('October+2012'),jdecode(''), jdecode('%2F5456%2F283413.html'), 'true',[],'',''],
		['PAGE','284113',jdecode('November+2012'),jdecode(''), jdecode('%2F5456%2F284113.html'), 'true',[],'',''],
		['PAGE','92491',jdecode('General+Information'),jdecode(''), jdecode('%2F5456%2F92491.html'), 'true',[],'',''],
		['PAGE','181602',jdecode('Terms+%26+Conditions+'),jdecode(''), jdecode('%2F5456%2F181602.html'), 'true',[],'','']
	],'',''],
	['PAGE','42601',jdecode('How+to+Book'),jdecode(''), jdecode('%2F42601.html'), 'true',[],'',''],
	['PAGE','5404',jdecode('Private+Hire'),jdecode(''), jdecode('%2F5404%2Findex.html'), 'true',[ 
		['PAGE','91391',jdecode('Terms+and+Conditions'),jdecode(''), jdecode('%2F5404%2F91391.html'), 'true',[],'','']
	],'',''],
	['PAGE','25901',jdecode('Group+Travel'),jdecode(''), jdecode('%2F25901.html'), 'true',[],'',''],
	['PAGE','5352',jdecode('School+Travel'),jdecode(''), jdecode('%2F5352%2Findex.html'), 'true',[ 
		['PAGE','5378',jdecode('Promotions'),jdecode(''), jdecode('%2F5352%2F5378.html'), 'true',[],'',''],
		['PAGE','6701',jdecode('Request+a+Quote'),jdecode(''), jdecode('%2F5352%2F6701.html'), 'true',[],'','']
	],'',''],
	['PAGE','5508',jdecode('Our+Coaches'),jdecode(''), jdecode('%2F5508%2Findex.html'), 'true',[ 
		['PAGE','160902',jdecode('46+Seat+-+Club+Class+'),jdecode(''), jdecode('%2F5508%2F160902.html'), 'true',[],'',''],
		['PAGE','160928',jdecode('49+%26+51+Seat+Coach'),jdecode(''), jdecode('%2F5508%2F160928.html'), 'true',[],'',''],
		['PAGE','160954',jdecode('49+Seat+-+Executive+'),jdecode(''), jdecode('%2F5508%2F160954.html'), 'true',[],'',''],
		['PAGE','160980',jdecode('33+Seat+Coach+'),jdecode(''), jdecode('%2F5508%2F160980.html'), 'true',[],'','']
	],'',''],
	['PAGE','5534',jdecode('Contact+Us'),jdecode(''), jdecode('%2F5534.html'), 'true',[],'',''],
	['PAGE','5560',jdecode('How+to+find+us'),jdecode(''), jdecode('%2F5560.html'), 'true',[],'',''],
	['PAGE','162002',jdecode('Current+Vacancies'),jdecode(''), jdecode('%2F162002.html'), 'true',[],'','']];
var siteelementCount=41;
theSitetree.topTemplateName='Fellow';
theSitetree.paletteFamily='000000';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10416';
theSitetree.graphicsetId='10695';
theSitetree.contentColor='DDDDDD';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'en',
  country: 'GB'
};
var prodDef={
  wl_name: 'easily_co_uk',
  product: 'WSCSYSSSSLY0XVD7'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Fellow',
				paletteFamily: 	'000000',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10416',
				graphicsetId: 	'10695',
				contentColor: 	'DDDDDD',
				contentBGColor: '000000',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-3448']={
webappId:    '7008',
documentId:  '5534',
internalId:  '3448',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '274013',
internalId:  '',
customField: '20120120-141908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20110813-092026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5352',
internalId:  '',
customField: '20111114-105252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5534',
internalId:  '',
customField: '20100216-163322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5560',
internalId:  '',
customField: '20090417-173256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5430',
internalId:  '',
customField: '20120108-130149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5378',
internalId:  '',
customField: '20111114-105455'
};
webappMappings['7008']=webappMappings['7008-3450']={
webappId:    '7008',
documentId:  '6701',
internalId:  '3450',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6701',
internalId:  '',
customField: '20090103-132449'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5404',
internalId:  '',
customField: '20090417-113737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '283413',
internalId:  '',
customField: '20120123-185748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5456',
internalId:  '',
customField: '20120119-101350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '253613',
internalId:  '',
customField: '20120117-164327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '246113',
internalId:  '',
customField: '20120117-163928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5508',
internalId:  '',
customField: '20120119-113156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '213813',
internalId:  '',
customField: '20111114-092719'
};
webappMappings['7008']=webappMappings['7008-9016']={
webappId:    '7008',
documentId:  '165802',
internalId:  '9016',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160928',
internalId:  '',
customField: '20110516-145639'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5301',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25901',
internalId:  '',
customField: '20120119-112755'
};
webappMappings['7008']=webappMappings['7008-4442']={
webappId:    '7008',
documentId:  '25901',
internalId:  '4442',
customField: 'language:en;country:GB;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '5560',
internalId:  'location',
customField: 'language:en;country:GB;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '281813',
internalId:  '',
customField: '20120123-105019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '258213',
internalId:  '',
customField: '20120129-215400'
};
webappMappings['7008']=webappMappings['7008-5717']={
webappId:    '7008',
documentId:  '42601',
internalId:  '5717',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42601',
internalId:  '',
customField: '20111114-093333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '240113',
internalId:  '',
customField: '20120117-163556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236713',
internalId:  '',
customField: '20120129-152505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91391',
internalId:  '',
customField: '20120119-112337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91091',
internalId:  '',
customField: '20111114-091924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91891',
internalId:  '',
customField: '20120119-092456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92191',
internalId:  '',
customField: '20100216-165016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92491',
internalId:  '',
customField: '20120119-103253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '181602',
internalId:  '',
customField: '20120119-093605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165802',
internalId:  '',
customField: '20120202-085052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160980',
internalId:  '',
customField: '20120119-113843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160902',
internalId:  '',
customField: '20120119-113907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162002',
internalId:  '',
customField: '20110616-193426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '258239',
internalId:  '',
customField: '20120202-185538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '276013',
internalId:  '',
customField: '20120120-153359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160954',
internalId:  '',
customField: '20110516-154300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '268413',
internalId:  '',
customField: '20120129-171601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '284113',
internalId:  '',
customField: '20120123-201211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '277513',
internalId:  '',
customField: '20120123-190738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '278413',
internalId:  '',
customField: '20120120-161442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '279713',
internalId:  '',
customField: '20120123-084605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '258265',
internalId:  '',
customField: '20120203-144636'
};
var webAppHostname = 'cgi.easily.co.uk:80';
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT20INERTK';
var companyName   = 'Arrow+Coach+Travel++';
var htmlTitle	  = 'Arrow+Coach+Travel+%26+Holidays+Limited+';
var metaKeywords  = 'Coach+Hire%2C+West+Yorkshire%2C+Huddersfield%2C+Day+Trips%2C+Excursions%2C+Coach+Holidays%2C+Short+Breaks%2C+Group+Travel%2C+Travel+Express%2C+Airport+Transfers%2CShort+Breaks%2C+';
var metaContents  = 'Coach+Hire+in+Hudderfield%2C+West+Yorkshire%2C+Travel+Express';
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();
};

