/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','8301',jdecode('Cruises'),jdecode(''),'/8301.html','true',[],'',''],
	['PAGE','9001',jdecode('Menus'),jdecode(''),'/9001.html','true',[],'',''],
	['PAGE','47201',jdecode('Drink'),jdecode(''),'/47201/index.html','true',[ 
		['PAGE','33101',jdecode('Wine+List'),jdecode(''),'/47201/33101.html','true',[],'',''],
		['PAGE','46601',jdecode('Bar+Tariff'),jdecode(''),'/47201/46601.html','true',[],'','']
	],'',''],
	['PAGE','8322',jdecode('Sunday+Lunch'),jdecode(''),'/8322.html','true',[],'',''],
	['PAGE','18601',jdecode('Christmas'),jdecode(''),'/18601.html','true',[],'',''],
	['PAGE','9901',jdecode('Football+Trips'),jdecode(''),'/9901/index.html','true',[ 
		['PAGE','91423',jdecode('Football+contact+form'),jdecode(''),'/9901/91423.html','true',[],'','']
	],'',''],
	['PAGE','22601',jdecode('Testimonials'),jdecode(''),'/22601.html','true',[],'',''],
	['PAGE','45822',jdecode('Contact'),jdecode(''),'/45822.html','true',[],'',''],
	['PAGE','52701',jdecode('Maps'),jdecode(''),'/52701.html','true',[],'',''],
	['PAGE','8343',jdecode('Booking+Conditions'),jdecode(''),'/8343.html','true',[],'',''],
	['PAGE','54101',jdecode('Gallery+-+Views'),jdecode(''),'/54101/index.html','true',[ 
		['PAGE','25001',jdecode('Gallery'),jdecode(''),'/54101/25001.html','false',[],'','']
	],'',''],
	['PAGE','10701',jdecode('Links'),jdecode(''),'/10701.html','true',[],'',''],
	['PAGE','102523',jdecode('Richard+Ferris'),jdecode(''),'/102523.html','false',[],'',''],
	['PAGE','45101',jdecode('Search'),jdecode(''),'/45101.html','true',[],'','']];
var siteelementCount=19;
theSitetree.topTemplateName='Occasions';
theSitetree.paletteFamily='1752B4';
theSitetree.keyvisualId='6672';
theSitetree.keyvisualName='kv_6672.jpg';
theSitetree.fontsetId='11190';
theSitetree.graphicsetId='12002';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='1752B4';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Occasions',
				paletteFamily: 	'1752B4',
				keyvisualId: 	'6672',
				keyvisualName: 	'kv_6672.jpg',
				fontsetId: 		'11190',
				graphicsetId: 	'12002',
				contentColor: 	'FFFFFF',
				contentBGColor: '1752B4',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-ec96969c00cc8d45824b23449bab46fb']={
webappId:    '7060',
documentId:  '25001',
internalId:  'ec96969c00cc8d45824b23449bab46fb',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '47201',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54101',
internalId:  '',
customField: '20090324-113907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52701',
internalId:  '',
customField: '20090327-093041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46601',
internalId:  '',
customField: '20091217-071812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47201',
internalId:  '',
customField: '20091224-084248'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '501',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '8301',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '9001',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45822',
internalId:  '',
customField: '20091130-074815'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '54101',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-131']={
webappId:    '7008',
documentId:  '45822',
internalId:  '131',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45101',
internalId:  '',
customField: '20090125-030248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20091201-023451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20090913-123736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9001',
internalId:  '',
customField: '20090623-021458'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33101',
internalId:  '',
customField: '20100613-052649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8322',
internalId:  '',
customField: '20100824-035317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20100412-065819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20100608-233139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20091217-070931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8343',
internalId:  '',
customField: '20090125-024923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20100603-083542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25001',
internalId:  '',
customField: '20090125-023023'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '45101',
internalId:  'search',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '33101',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '46601',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '8322',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '18601',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '9901',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '10701',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '22601',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '8343',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-7b02841262aee48f1394d552722b24bd']={
webappId:    '7060',
documentId:  '54101',
internalId:  '7b02841262aee48f1394d552722b24bd',
customField: 'language:en;country:US;'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '52701',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '25001',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '45101',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '52701',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '45822',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-2809']={
webappId:    '7008',
documentId:  '91423',
internalId:  '2809',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91423',
internalId:  '',
customField: '20100608-233412'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '91423',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '102523',
internalId:  '',
customField: '20100531-051237'
};
var canonHostname = 'wscwrk01.ehost-services.com';
var accountId     = 'AEN010INVYFP';
var companyName   = 'City+Centre+Cruises';
var htmlTitle	  = 'Manchesters+exclusive+cruising+restaurant+boat+and+event+venue+-+LS+LOWRY';
var metaKeywords  = 'Barca+Barge%2CBarca%2CBarge+City+Centre+Cruises%2CBarge+cruises+manchester%2CBarge+cruises+manchester%2CBarge+from+Barca%2Cbarge+from+castlefield%2CBarge+from+Dukes+92%2CBarge+LS+Lowry%2Cbarge+party+manchester%2Cbarge+party%2CBarge+restaurant%2Cbarge+to+manchester+united%2Cbarge+to+MUFC%2Cbarge+to+old+trafford%2CBarge+trips+to+Old+Trafford%2CBarge%2CBarge+disco%2Cboat+cruise+manchester%2Cboat+cruises+in+manchester%2Cboat+cruises+manchester%2Cboat+dining+in+manchester%2Cboat+dinner+manchester%2CBoat+party%2Cboat+restaurant+manchester%2Cboat+restaurant%2Cboat+restaurants+manchester%2Cboat+tour+manchester%2Cboat+trips+in+manchester%2Cboat+trips+manchester%2CBridgewater+Canal+Barge%2CBridgewater+Canal%2Ccanal+barge+to+manchester+united%2Ccanal+barge+to+old+trafford%2CCanal+barge%2Ccanal+boat+restaurant+manchester%2Ccanal+boat+trips+manchester%2Ccanal+cruise+manchester%2CCanal+cruise%2CCanal+food%2CCanal+trip%2CCanal%2Ccastlefield+barge%2Ccastlefield+boat%2Ccastlefield+canal+cruises%2Ccastlefield+canal+trips%2CCastlefield+Hotel%2CCastlefield%2Ccity+center+cruises%2Ccity+centre+cruise+manchester%2Ccity+centre+cruise%2Ccity+centre+cruisers+manchester%2Ccity+centre+cruisers%2CCity+Centre+Cruises+Barge%2CCity+Centre+Cruises+Limited%2CCity+Centre+Cruises+Ltd%2Ccity+centre+cruises+manchester%2CCity+Centre+Cruises%2Ccity+cruises+manchester%2Ccity+cruises+salford%2Ccity+cruises%2Ccitycentercruises%2Ccitycentrecruises%2CCorporate+barge%2CCorporate+entertainment%2Ccruises+in+manchester%2Ccruising+restaurant%2Cdinner+on+a+barge+in+manchester%2Cdinner+on+a+boat+in+manchester%2C%2CDukes+92+Barge%2CDukes+92%2Cexclusive+dining+manchester%2Cexclusive+restaurant+manchester%2CFood+boat%2Cfootball+barge+trip%2Cfootball+trip%2CHen+party+Barge%2CHen+party%2CHydraulic+footbridge%2CImperial+War+Museum+North%2CKaraoke+Barge%2CKaraoke%2Cl+s+lowry+cruises%2CL+S+Lowry%2CL.S.Lowry+Barge%2CL.S.Lowry%2CLock+92%2Clowry+cruises%2Cls+lowry+barge%2Cls+lowry+boat%2Cls+lowry+cruise%2Cls+lowry+cruises%2CLS+Lowry%2Clunch+cruises+manchester%2CMan+united+by+barge%2Cmanchester+barge+cruise%2CManchester+barge+cruises%2Cmanchester+barge+trips%2Cmanchester+boat+cruise%2Cmanchester+boat+cruises%2Cmanchester+boat+dinner%2Cmanchester+boat+trips%2Cmanchester+canal+boat+trips%2Cmanchester+canal+cruise%2Cmanchester+canal+cruises%2Cmanchester+canal+trips%2Cmanchester+city+center+cruises%2Cmanchester+city+centre+cruise%2Cmanchester+city+centre+cruises%2Cmanchester+city+cruise%2Cmanchester+cruise%2Cmanchester+cruises%2Cmanchester+river+cruise%2CManchester+river+cruises%2CManchester+Ship+Canal%2CManchester+united+by+barge%2CManchester+United+Football+Club%2CManchester+United%2CMUFC+Barge%2CMUFC%2CNarrowboat%2COld+Trafford+by+barge%2COld+Trafford%2COx+Noble%2CParty+barge%2CParty+boat%2CPomona+Lock%2Crestaurant+barge+manchester%2CRestaurant+barge%2Crestaurant+boat+manchester%2CRestaurant+boat%2Crestaurant+boats+manchester%2Crestaurant+on+a+barge%2Crestaurant+on+a+boat%2Criver+cruise+manchester%2CRiver+Irwell%2CRochdale+canal%2CSalford+Keys%2CSalford+Quays+Barge%2CSalford+Quays%2CShip+Canal%2CStretford%2Csunday+lunch+cruise%2CSunday+lunch+cruise%2CSunday+Lunch%2Cthe+lowry+barge%2CThe+Lowry+Barge%2CThe+Lowry%2CThe+Mark+Addy%2CThe+Ox%2CThe+White+Lion%2CTheatre+of+Dreams+by+barge%2CTheatre+of+Dreams%2CWaters+Meeting%2CWorsley%2Cwww.citycentrecruises.co.uk%2C+www.citycentrecruises.com%2C';
var metaContents  = 'Manchesters+exclusive+cruising+restaurant+boat%2C+sailing+on+the+Bridgewater+and+Manchester+ship+Canals.';
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();
};
