/* [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','20201',jdecode('Home'),jdecode(''),'/20201.html','true',[],'',''],
	['PAGE','21601',jdecode('Properties+to+Let'),jdecode(''),'/21601/index.html','true',[ 
		['PAGE','139593',jdecode('Harbour+Place+'),jdecode(''),'/21601/139593.html','true',[],'',''],
		['PAGE','122401',jdecode('Beach+Cottage'),jdecode(''),'/21601/122401.html','true',[],'',''],
		['PAGE','201637',jdecode('Josephine+Cottage'),jdecode(''),'/21601/201637.html','true',[],'',''],
		['PAGE','41801',jdecode('The+Bakery'),jdecode(''),'/21601/41801.html','true',[],'',''],
		['PAGE','33301',jdecode('Bexley+Street'),jdecode(''),'/21601/33301.html','false',[],'',''],
		['PAGE','30827',jdecode('Curlew+Cottage'),jdecode(''),'/21601/30827.html','true',[],'',''],
		['PAGE','168597',jdecode('Hodgson%26%23x27%3Bs+Bungalow'),jdecode(''),'/21601/168597.html','true',[],'',''],
		['PAGE','90501',jdecode('Katie+Cottage'),jdecode(''),'/21601/90501.html','true',[],'',''],
		['PAGE','146595',jdecode('Marine+Cottage'),jdecode(''),'/21601/146595.html','true',[],'',''],
		['PAGE','168997',jdecode('Old+Telephone+Exchange'),jdecode(''),'/21601/168997.html','true',[],'',''],
		['PAGE','83901',jdecode('Seabreeze+Cottage'),jdecode(''),'/21601/83901.html','false',[],'',''],
		['PAGE','189337',jdecode('Slip+Cottage'),jdecode(''),'/21601/189337.html','true',[],'',''],
		['PAGE','70601',jdecode('Stream+Walk'),jdecode(''),'/21601/70601.html','true',[],'',''],
		['PAGE','175337',jdecode('The+Ventings'),jdecode(''),'/21601/175337.html','true',[],'',''],
		['PAGE','191937',jdecode('4+Whitepost'),jdecode(''),'/21601/191937.html','true',[],'',''],
		['PAGE','107901',jdecode('Coastguard%26%23x27%3Bs+Cottage'),jdecode(''),'/21601/107901.html','true',[],'',''],
		['PAGE','168797',jdecode('Park+Avenue+Apartment'),jdecode(''),'/21601/168797.html','true',[],'',''],
		['PAGE','49201',jdecode('Seafarer%26%23x27%3Bs+Cottage'),jdecode(''),'/21601/49201.html','false',[],'',''],
		['PAGE','28701',jdecode('The+Slipway'),jdecode(''),'/21601/28701.html','true',[],'',''],
		['PAGE','53601',jdecode('Bluebells'),jdecode(''),'/21601/53601.html','true',[],'',''],
		['PAGE','52301',jdecode('The+Beach+House'),jdecode(''),'/21601/52301.html','true',[],'',''],
		['PAGE','132483',jdecode('Crab+Cottage'),jdecode(''),'/21601/132483.html','true',[],'',''],
		['PAGE','61927',jdecode('Franklin+Cottage'),jdecode(''),'/21601/61927.html','false',[],'',''],
		['PAGE','164855',jdecode('Harbour+Buildings'),jdecode(''),'/21601/164855.html','true',[],'',''],
		['PAGE','39901',jdecode('4+Knots+Yard'),jdecode(''),'/21601/39901.html','true',[],'',''],
		['PAGE','182637',jdecode('Native+Cottage'),jdecode(''),'/21601/182637.html','true',[],'',''],
		['PAGE','159885',jdecode('Ostrea+'),jdecode(''),'/21601/159885.html','true',[],'',''],
		['PAGE','97201',jdecode('Oyster+Cottage'),jdecode(''),'/21601/97201.html','true',[],'',''],
		['PAGE','61901',jdecode('Pebble+Beach+House'),jdecode(''),'/21601/61901.html','true',[],'',''],
		['PAGE','100901',jdecode('Sun+Sea+House'),jdecode(''),'/21601/100901.html','true',[],'',''],
		['PAGE','149345',jdecode('Sunset+Cottage'),jdecode(''),'/21601/149345.html','true',[],'',''],
		['PAGE','154087',jdecode('Lincombe'),jdecode(''),'/21601/154087.html','true',[],'',''],
		['PAGE','97227',jdecode('Woodlawn'),jdecode(''),'/21601/97227.html','true',[],'',''],
		['PAGE','130583',jdecode('Emperor+Cottage'),jdecode(''),'/21601/130583.html','false',[],'','']
	],'',''],
	['PAGE','196037',jdecode('Easter'),jdecode(''),'/196037.html','true',[],'',''],
	['PAGE','162641',jdecode('Dogs+Welcome'),jdecode(''),'/162641.html','true',[],'',''],
	['PAGE','191963',jdecode('WiFi+Properties'),jdecode(''),'/191963.html','true',[],'',''],
	['PAGE','103601',jdecode('Special+Offers'),jdecode(''),'/103601.html','false',[],'',''],
	['PAGE','43601',jdecode('Beach+Huts'),jdecode(''),'/43601.html','true',[],'',''],
	['PAGE','96201',jdecode('Inventory'),jdecode(''),'/96201.html','true',[],'',''],
	['PAGE','19201',jdecode('Booking+Conditions'),jdecode(''),'/19201.html','true',[],'',''],
	['PAGE','86101',jdecode('Booking+Form'),jdecode(''),'/86101.html','true',[],'',''],
	['PAGE','601',jdecode('Home+Owners'),jdecode(''),'/601.html','true',[],'',''],
	['PAGE','163441',jdecode('Cycle+Hire'),jdecode(''),'/163441.html','true',[],'',''],
	['PAGE','799',jdecode('Local+Area'),jdecode(''),'/799/index.html','true',[ 
		['PAGE','841',jdecode('Places+to+Eat'),jdecode(''),'/799/841.html','true',[],'',''],
		['PAGE','862',jdecode('Local+Attractions'),jdecode(''),'/799/862.html','true',[],'','']
	],'',''],
	['PAGE','22101',jdecode('About+Us'),jdecode(''),'/22101.html','true',[],'',''],
	['PAGE','883',jdecode('Contact+Us'),jdecode(''),'/883.html','true',[],'','']];
var siteelementCount=51;
theSitetree.topTemplateName='cutout';
theSitetree.paletteFamily='A1BCDD';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10611';
theSitetree.graphicsetId='10474';
theSitetree.contentColor='43637C';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'cutout',
				paletteFamily: 	'A1BCDD',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10611',
				graphicsetId: 	'10474',
				contentColor: 	'43637C',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '601',
internalId:  '',
customField: '20081007-105346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20201',
internalId:  '',
customField: '20100224-135759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '799',
internalId:  '',
customField: '20081114-115515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21601',
internalId:  '',
customField: '20100311-193413'
};
webappMappings['1501']=webappMappings['1501-6162974']={
webappId:    '1501',
documentId:  '20201',
internalId:  '6162974',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19201',
internalId:  '',
customField: '20091102-121205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '841',
internalId:  '',
customField: '20071206-132536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '883',
internalId:  '',
customField: '20081007-132441'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '862',
internalId:  '',
customField: '20071016-124059'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107901',
internalId:  '',
customField: '20090930-131220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22101',
internalId:  '',
customField: '20100111-115618'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '20201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28701',
internalId:  '',
customField: '20100111-112509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30827',
internalId:  '',
customField: '20091216-195910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33301',
internalId:  '',
customField: '20090923-133422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97227',
internalId:  '',
customField: '20100111-115009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39901',
internalId:  '',
customField: '20090930-174726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41801',
internalId:  '',
customField: '20091216-200215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100901',
internalId:  '',
customField: '20100201-215905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43601',
internalId:  '',
customField: '20100309-102524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '83901',
internalId:  '',
customField: '20090708-142041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49201',
internalId:  '',
customField: '20090508-131608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '191963',
internalId:  '',
customField: '20100220-142720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52301',
internalId:  '',
customField: '20091216-200613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53601',
internalId:  '',
customField: '20100309-103926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96201',
internalId:  '',
customField: '20081114-114637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61927',
internalId:  '',
customField: '20090724-110012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61901',
internalId:  '',
customField: '20090513-175742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130583',
internalId:  '',
customField: '20100122-113224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97201',
internalId:  '',
customField: '20100111-114523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70601',
internalId:  '',
customField: '20100125-101528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103601',
internalId:  '',
customField: '20100305-100721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86101',
internalId:  '',
customField: '20081007-133803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162641',
internalId:  '',
customField: '20100311-193336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90501',
internalId:  '',
customField: '20100220-142854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122401',
internalId:  '',
customField: '20100128-174521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132483',
internalId:  '',
customField: '20100209-133207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146595',
internalId:  '',
customField: '20091216-200753'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '139593',
internalId:  '',
customField: '20090923-134047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149345',
internalId:  '',
customField: '20100126-130255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154087',
internalId:  '',
customField: '20100115-102117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '159885',
internalId:  '',
customField: '20091216-200921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '163441',
internalId:  '',
customField: '20090720-114934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164855',
internalId:  '',
customField: '20100111-114033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168597',
internalId:  '',
customField: '20100111-113643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168997',
internalId:  '',
customField: '20100309-101518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168797',
internalId:  '',
customField: '20100111-113842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175337',
internalId:  '',
customField: '20091124-165847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '191937',
internalId:  '',
customField: '20100122-110708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189337',
internalId:  '',
customField: '20100309-103734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '182637',
internalId:  '',
customField: '20100311-193506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '196037',
internalId:  '',
customField: '20100311-193122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '201637',
internalId:  '',
customField: '20100309-104158'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT10IN29C8';
var companyName   = 'WHITSTABLE+HOLIDAY+HOMES+++++++++++++++++++++++++++01227+281800';
var htmlTitle	  = 'Whitstable+Holiday+Homes';
var metaKeywords  = 'Whitstable+self-catering+accommodation%2C+Whitstable+accommodation%2C+Whitstable+Guest+Houses%2C++holiday+cottages+in+Kent%2C+Kent+accommodation%2C+Kent+cottages%2C+Kent+holiday+cottages%2C+weekend+breaks+in+UK%2C+Whitstable+short+breaks%2C+weekend+break+Whitstable%2C+weekend+break+Kent%2C+short+breaks+in+Kent%2C+Whitstable+Oyster+Festival%2C+Whitstable+holiday+cottages%2C+Whitstable+cottage+holidays%2C+Whitstable+holiday+homes%2C+holiday+homes+in+Kent%2C+self-catering+cottages+in+Kent%2C+property+maintenance+UK%2C+holiday+home+property+maintenance%2C++www.whitstableholidayhomes.co.uk';
var metaContents  = 'Whitstable+Holiday+Homes+provides+a+unique+range+of+accommodation+in+Whitstable%2C+with+a+range+of+self-catering+holiday+lets+in+Whitstable+to+suit+all+tastes+and+budgets.+Famous+for+its+stunning+sunsets%2C+Whitstable+native+oysters%2C+local+art%2C+vibrant+watersports%2C+trendy+pubs+and+restaurants%2C+Whitstable+offers+the+perfect+getaway.';
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();
};
