/* [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','1349',jdecode('Choice+Airports%2CTaxis%2FHome'),jdecode(''),'/1349.html','true',[],'',''],
	['PAGE','1444',jdecode('Warrington+Choice+Airports%2CTaxis%2F+Enquiry%2FTaxi+Bookings%2C+'),jdecode(''),'/1444.html','true',[],'',''],
	['PAGE','9839',jdecode('About+Choice+airports%2Ctaxis.'),jdecode(''),'/9839.html','true',[],'',''],
	['PAGE','1370',jdecode('Choice+airports%2Ctaxis%2FAbout+My+Company.'),jdecode(''),'/1370.html','true',[],'',''],
	['PAGE','1412',jdecode('Choice+Airports%2CTaxis%2FMy+Blog'),jdecode(''),'/1412.html','true',[],'',''],
	['PAGE','22039',jdecode('Photos%2FChoice+Airport+Transfers%2CWarrington'),jdecode(''),'/22039.html','true',[],'','']];
var siteelementCount=6;
theSitetree.topTemplateName='Sakura';
theSitetree.paletteFamily='BDB9B9';
theSitetree.keyvisualId='9072';
theSitetree.keyvisualName='kv_9072.jpg';
theSitetree.fontsetId='17330';
theSitetree.graphicsetId='12744';
theSitetree.contentColor='5D5C5C';
theSitetree.contentBGColor='F3F2F2';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Sakura',
				paletteFamily: 	'BDB9B9',
				keyvisualId: 	'9072',
				keyvisualName: 	'kv_9072.jpg',
				fontsetId: 		'17330',
				graphicsetId: 	'12744',
				contentColor: 	'5D5C5C',
				contentBGColor: 'F3F2F2',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				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:  '9839',
internalId:  '',
customField: '20091111-000216'
};
webappMappings['7050']=webappMappings['7050-1573']={
webappId:    '7050',
documentId:  '1412',
internalId:  '1573',
customField: 'language:en;country:GB;'
};
webappMappings['7008']=webappMappings['7008-3384']={
webappId:    '7008',
documentId:  '1444',
internalId:  '3384',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1349',
internalId:  '',
customField: '20100202-213332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1370',
internalId:  '',
customField: '20091001-222534'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1349',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1412',
internalId:  '',
customField: '20081218-121007'
};
webappMappings['7060']=webappMappings['7060-c7f6b67b88fedd3c5d840449aae519a1']={
webappId:    '7060',
documentId:  '22039',
internalId:  'c7f6b67b88fedd3c5d840449aae519a1',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1444',
internalId:  '',
customField: '20090620-085316'
};
webappMappings['1501']=webappMappings['1501-8379778']={
webappId:    '1501',
documentId:  '1349',
internalId:  '8379778',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22039',
internalId:  '',
customField: '20100117-231948'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT20INE764';
var companyName   = 'CHOICE+AIRPORT+Transfers+%26+taxis+in+Warrington+Cheshire.';
var htmlTitle	  = 'WARRINGTON+AIRPORTS%2C+TAXIS%2CTRANSFERS%2CSummer+2010+Bookings+Now+Being+Taken%2C20+YEARS+EXPERIENCE+IN+HOLIDAY+TRAVEL%2C24%2F7%2CMeet+and+Greet.Buisness+Accounts%2CMinibus+Service%2CCheshire+Taxis%2CCredit+cards+accepted.';
var metaKeywords  = '%3CTITLE%3EWarrington+Airport+Transfers+%26+Taxis%2C%3C%2FTITLE%3E+%3CMETA+NAME%3D%22KEYWORDS%22+CONTENT%3D%22taxi+services+manchester+uk%2Cmanchester+taxi+service%2Cwarrington+taxis%2Ctaxi+liverpool%2Cmanchester+taxi%2Ccorporate+taxi+hire+cheshire%2Ctaxis+in+cheshire%2Cminibus+travel+warrington%2Cairport+taxis+cheshire%2Cairport+taxi+warrington%2Cmanchester+airport+taxi+service%2Cliverpool+airport+taxi%2Cmanchester+airport+taxi%2Cmanchester+airport+shuttle%2Cairport+transfer+uk%2Cairport+transfer+taxis%2Cmanchester+airport+transfers%2Cliverpool+airport+transfers%2Cwarrington+airport+taxis%2Ccheshire%2Cmanchester+courier%2C+warrington%2C+manchester%2Cmanchester+airport+meet+and+greet%2Cmeet+and+greet+manchester%2CBirchwood+Airport+Taxis%2CMinicabs%2CWoolston+Taxis%2CWinwick+Airport+Travel%2CCroft+airport+Taxis%2CWoolston+Grange+Taxis%2CCulcheth+Minicabs%2CTaxis%2CGemini+Taxis%2CBurtonwood+Private+Hire%2C%22%3E+%3CMETA+NAME%3D%22DESCRIPTION%22+CONTENT%3D%22Warrington+Airport+taxis+%26+transfers%2CCheshire.Holiday+Taxis%2CMinicabs%2CLeisure+Travel%2CVacations%2CCruise+Travel%2CTaxi+prices%2CAirport+Taxis+Warrington%2CCheshire%2CAccounts%2CCredit+Card+Facility%2CMeet+%26+Greet%2CBuisness+Travel%2Cairport+Transportation%2CManchester+Airport+Taxis%2CLiverpool+Airport+Taxis%2CFlights+Tracked+Online%2CExecutive+Travel%2CNights+out%2CRace+Meetings%2CSeaports%2CLeisure+Travel%2CHoliday+Taxis%2CFully+Licenced%2CCustomer+Satisfaction+Guaranteed%2CLocal%2CLong+distance+Taxis%2CBirchwood+Airport+Travel%2CTaxis%2CWoolston+Airport+Transfers%2CWarrington+Minicabs%2C%22%3E+%3CMETA+NAME%3D%22ROBOTS%22+CONTENT%3D%22INDEX%2CFOLLOW%22%3E';
var metaContents  = 'Warrington+Airport+Transfers+%2C+Taxis%2CPrompt%2CReliable+Taxi+services%2CCheshire%2CMerseyside%2C+Manchester%2C+uk%2CWarrington+taxis%2Ctaxi+liverpool%2Cmanchester+taxi%2Ccorporate+taxi+hire+cheshire%2Ctaxis+in+cheshire%2Cminibus+travel+warrington%2Cairport+taxis+cheshire%2Cairport+taxi+warrington%2Cmanchester+airport+taxi+service%2Cliverpool+airport+taxi%2Cmanchester+airport+taxi%2Cmanchester+airport+shuttle%2Cairport+transfer+uk%2Cairport+transfer+taxis%2Cmanchester+airport+transfers%2Cliverpool+airport+transfers%2Cwarrington+airport+taxis%2Ccheshire%2Cmanchester+courier%2C+warrington%2C+manchester%2Cmanchester+airport+meet+and+greet%2Cmeet+and+greet+manchester%2CBirchwood+Airport+Taxis%2CMinicabs%2CWoolston+Taxis%2CWinwick+Airport+Travel%2CCroft+airport+Taxis%2CWoolston+Grange+Taxis%2CCulcheth+Minicabs%2CTaxis%2CMETA+NAME%3DDESCRIPTION+CONTENT%3DWarrington+Airport+taxis++transfers%2CCheshire.Taxi+prices%2CAirport+Taxis+Warrington%2CCheshire%2CAccounts%2CCredit+Card+Facility%2CMeet++Greet%2CBuisness+Travel%2Cairport+Transportation%2CManchester+Airport+Taxis%2CLiverpool+Airport+Taxis%2CFlights+Tracked+Online%2CExecutive+Travel%2CNights+out%2CRace+Meetings%2CSeaports%2CLeisure+Travel%2CHoliday+Taxis%2CFully+Licenced%2CCustomer+Satisfaction+Guaranteed%2CLocal%2CLong+distance+Taxis%2CBirchwood+Airport+Travel%2CTaxis%2CWoolston+Airport+Transfers%2CWarrington+Minicabs%2CMETA+NAME%3DROBOTS+CONTENT%3DINDEX%2CFOLLOW';
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();
};
