/* [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(''), jdecode('%2F501.html'), 'true',[],'',''],
	['PAGE','157845',jdecode('Groupon'),jdecode(''), jdecode('%2F157845.html'), 'true',[],'',''],
	['PAGE','8301',jdecode('Cruises'),jdecode(''), jdecode('%2F8301.html'), 'true',[],'',''],
	['PAGE','131834',jdecode('Historical+Cruises'),jdecode(''), jdecode('%2F131834.html'), 'true',[],'',''],
	['PAGE','160845',jdecode('Media+City+Cruise'),jdecode(''), jdecode('%2F160845.html'), 'true',[],'',''],
	['PAGE','147434',jdecode('MUFC+Tours+and+Cruises'),jdecode(''), jdecode('%2F147434.html'), 'true',[],'',''],
	['PAGE','8322',jdecode('Sunday+Lunch'),jdecode(''), jdecode('%2F8322.html'), 'true',[],'',''],
	['PAGE','9001',jdecode('Menus'),jdecode(''), jdecode('%2F9001%2Findex.html'), 'true',[ 
		['PAGE','138234',jdecode('Lunch+cruises'),jdecode(''), jdecode('%2F9001%2F138234.html'), 'true',[],'','']
	],'',''],
	['PAGE','47201',jdecode('Drink'),jdecode(''), jdecode('%2F47201%2Findex.html'), 'true',[ 
		['PAGE','33101',jdecode('Wine+List'),jdecode(''), jdecode('%2F47201%2F33101.html'), 'true',[],'',''],
		['PAGE','46601',jdecode('Bar+Tariff'),jdecode(''), jdecode('%2F47201%2F46601.html'), 'true',[],'','']
	],'',''],
	['PAGE','9901',jdecode('Football+Trips'),jdecode(''), jdecode('%2F9901%2Findex.html'), 'true',[ 
		['PAGE','91423',jdecode('Football+contact+form'),jdecode(''), jdecode('%2F9901%2F91423.html'), 'false',[],'','']
	],'',''],
	['PAGE','18601',jdecode('Christmas'),jdecode(''), jdecode('%2F18601.html'), 'false',[],'',''],
	['PAGE','168845',jdecode('FAQ'),jdecode(''), jdecode('%2F168845.html'), 'true',[],'',''],
	['PAGE','165745',jdecode('Contact+details'),jdecode(''), jdecode('%2F165745.html'), 'true',[],'',''],
	['PAGE','22601',jdecode('Testimonials'),jdecode(''), jdecode('%2F22601.html'), 'true',[],'',''],
	['PAGE','45822',jdecode('Contact'),jdecode(''), jdecode('%2F45822.html'), 'false',[],'',''],
	['PAGE','52701',jdecode('Maps'),jdecode(''), jdecode('%2F52701.html'), 'true',[],'',''],
	['PAGE','10701',jdecode('Links'),jdecode(''), jdecode('%2F10701.html'), 'true',[],'',''],
	['PAGE','8343',jdecode('Booking+Conditions'),jdecode(''), jdecode('%2F8343.html'), 'true',[],'',''],
	['PAGE','102523',jdecode('Richard+Ferris'),jdecode(''), jdecode('%2F102523.html'), 'false',[],'','']];
var siteelementCount=23;
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 prodDef={
  wl_name: 'enom',
  product: 'WSCENOSSSLYTC21T'
};
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['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '147434',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '138234',
internalId:  '',
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:  '52701',
internalId:  '',
customField: '20120116-122824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46601',
internalId:  '',
customField: '20110726-142456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47201',
internalId:  '',
customField: '20110726-141340'
};
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: '20120110-092316'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '168845',
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:  '165745',
internalId:  '',
customField: '20120112-062136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20120112-055632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20110712-000258'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9001',
internalId:  '',
customField: '20110709-024900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33101',
internalId:  '',
customField: '20110726-142904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8322',
internalId:  '',
customField: '20120115-041300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20120104-052358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20120112-062013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10701',
internalId:  '',
customField: '20101220-021525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8343',
internalId:  '',
customField: '20090125-024923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22601',
internalId:  '',
customField: '20120113-053401'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '165745',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138234',
internalId:  '',
customField: '20110711-235737'
};
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['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '160845',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '131834',
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'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '157845',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160845',
internalId:  '',
customField: '20120104-123536'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '102523',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131834',
internalId:  '',
customField: '20111214-042557'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168845',
internalId:  '',
customField: '20120112-045400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147434',
internalId:  '',
customField: '20111212-081847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157845',
internalId:  '',
customField: '20120111-004225'
};
var webAppHostname = 'wsc.ehost-services.com:80';
var canonHostname = 'wscwrk02.ehost-services.com';
var accountId     = 'AEN010INVYFP';
var companyName   = 'City+Centre+Cruises';
var htmlTitle	  = 'Manchester%27s+exclusive+cruising+restaurant+boats%2C+event+venues+and+canal+party+boats';
var metaKeywords  = 'Barge%2CCity+Centre+Cruises%2C%2CBarge+cruises+manchester%2Cbarge+from+castlefield%2CBarge+from+Dukes+92%2C+LS+Lowry%2Cbarge+party%2Cbarge+party%2CBarge+restaurant%2Cbarge+to+manchester+united%2Cbarge+to+MUFC%2Cbarge+to+old+trafford%2CBarge+trips+to+Old+Trafford%2CBarge%2C+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%2CBarge%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%2Cpartyboat%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%2C%2Crestaurant+on+a+barge%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+White+Lion%2CTheatre+of+Dreams+by+barge%2CTheatre+of+Dreams%2CWaters+Meeting%2CWorsley%2Cwww.citycentrecruises.co.uk%2C+www.citycentrecruises.com%2CMedia+City+UK%2CMediacity%2C';
var metaContents  = 'Manchester%27s+exclusive+cruising+restaurant+and+party+boats%2C+sailing+on+the+Bridgewater+Canal%2C+River+Irwell+and+Manchester+Ship+Canal.';
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();
};

