/* [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','4301',jdecode('Home'),jdecode(''),'/4301.html','true',[],'',''],
	['PAGE','227601',jdecode('English'),jdecode(''),'/227601/index.html','true',[ 
		['PAGE','228801',jdecode('Podere+Zollaio+Apartments'),jdecode(''),'/227601/228801.html','true',[],'',''],
		['PAGE','328426',jdecode('Casa+Anita'),jdecode(''),'/227601/328426.html','true',[],'',''],
		['PAGE','282912',jdecode('Casa+Eden+Farmhouse'),jdecode(''),'/227601/282912.html','true',[],'',''],
		['PAGE','228927',jdecode('Gallery'),jdecode(''),'/227601/228927.html','true',[],'',''],
		['PAGE','229001',jdecode('Location'),jdecode(''),'/227601/229001.html','true',[],'',''],
		['PAGE','230001',jdecode('Prices+'),jdecode(''),'/227601/230001.html','true',[],'',''],
		['PAGE','284112',jdecode('Terms+and+Conditions'),jdecode(''),'/227601/284112.html','true',[],'',''],
		['PAGE','234612',jdecode('Enquiries'),jdecode(''),'/227601/234612.html','true',[],'',''],
		['PAGE','296526',jdecode('October%26%23x27%3Bs+Recipe+Page'),jdecode(''),'/227601/296526.html','false',[],'',''],
		['PAGE','293312',jdecode('News+and+Events'),jdecode(''),'/227601/293312.html','true',[],'',''],
		['PAGE','305126',jdecode('November%26%23x27%3Bs+Recipe+Page+'),jdecode(''),'/227601/305126.html','false',[],'',''],
		['PAGE','308726',jdecode('December%26%23x27%3Bs+Recipe+Page'),jdecode(''),'/227601/308726.html','false',[],'',''],
		['PAGE','316626',jdecode('January%26%23x27%3Bs+Recipe+Page'),jdecode(''),'/227601/316626.html','false',[],'',''],
		['PAGE','326926',jdecode('March+Recipe+Page'),jdecode(''),'/227601/326926.html','false',[],'',''],
		['PAGE','318826',jdecode('February%26%23x27%3Bs+Recipe+Page'),jdecode(''),'/227601/318826.html','false',[],'',''],
		['PAGE','331126',jdecode('April%26%23x27%3Bs+Recipe+Page'),jdecode(''),'/227601/331126.html','false',[],'',''],
		['PAGE','333326',jdecode('Recipe+for+May'),jdecode(''),'/227601/333326.html','false',[],'',''],
		['PAGE','337926',jdecode('New+page'),jdecode(''),'/227601/337926.html','false',[],'',''],
		['PAGE','336526',jdecode('June%26%23x27%3Bs+Recipe+Page'),jdecode(''),'/227601/336526.html','false',[],'',''],
		['PAGE','339026',jdecode('July%26%23x27%3Bs+Recipe+Page'),jdecode(''),'/227601/339026.html','false',[],'',''],
		['PAGE','339826',jdecode('August+Recipe+Page'),jdecode(''),'/227601/339826.html','true',[],'','']
	],'',''],
	['PAGE','227627',jdecode('Italiano'),jdecode(''),'/227627/index.html','true',[ 
		['PAGE','273238',jdecode('Appartamenti+Podere+Zollaio+'),jdecode(''),'/227627/273238.html','true',[],'',''],
		['PAGE','328926',jdecode('Casa+Anita'),jdecode(''),'/227627/328926.html','true',[],'',''],
		['PAGE','283712',jdecode('Casa+Colonica+Casa+Eden'),jdecode(''),'/227627/283712.html','true',[],'',''],
		['PAGE','273264',jdecode('Gallery'),jdecode(''),'/227627/273264.html','true',[],'',''],
		['PAGE','273290',jdecode('Dove+Siamo'),jdecode(''),'/227627/273290.html','true',[],'',''],
		['PAGE','273316',jdecode('Prezzi'),jdecode(''),'/227627/273316.html','true',[],'',''],
		['PAGE','273342',jdecode('Condizioni'),jdecode(''),'/227627/273342.html','true',[],'',''],
		['PAGE','273368',jdecode('Richieste'),jdecode(''),'/227627/273368.html','true',[],'',''],
		['PAGE','309226',jdecode('Vinci+news'),jdecode(''),'/227627/309226.html','true',[],'','']
	],'',''],
	['PAGE','227653',jdecode('Deutsch'),jdecode(''),'/227653/index.html','true',[ 
		['PAGE','237212',jdecode('Willkommen'),jdecode(''),'/227653/237212.html','true',[],'',''],
		['PAGE','249312',jdecode('Unterkunft'),jdecode(''),'/227653/249312.html','true',[],'',''],
		['PAGE','329226',jdecode('Haus+Casa+Anita'),jdecode(''),'/227653/329226.html','true',[],'',''],
		['PAGE','320226',jdecode('Haus+Casa+Eden'),jdecode(''),'/227653/320226.html','true',[],'',''],
		['PAGE','272912',jdecode('Fotogalerie'),jdecode(''),'/227653/272912.html','true',[],'',''],
		['PAGE','272938',jdecode('Wo+Sie+uns+finden'),jdecode(''),'/227653/272938.html','true',[],'',''],
		['PAGE','272964',jdecode('Preise'),jdecode(''),'/227653/272964.html','true',[],'',''],
		['PAGE','272990',jdecode('Konditionen'),jdecode(''),'/227653/272990.html','true',[],'',''],
		['PAGE','273016',jdecode('Anfragen'),jdecode(''),'/227653/273016.html','true',[],'',''],
		['PAGE','273042',jdecode('FAQ'),jdecode(''),'/227653/273042.html','true',[],'','']
	],'',''],
	['PAGE','314526',jdecode('Sitemap'),jdecode(''),'/314526.html','false',[],'','']];
var siteelementCount=45;
theSitetree.topTemplateName='Tide';
theSitetree.paletteFamily='C04B0B';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='13619';
theSitetree.graphicsetId='12063';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'GB'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Tide',
				paletteFamily: 	'C04B0B',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'13619',
				graphicsetId: 	'12063',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4301',
internalId:  '',
customField: '20100617-143207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227601',
internalId:  '',
customField: '20091012-171012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227627',
internalId:  '',
customField: '20091002-085619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '227653',
internalId:  '',
customField: '20100408-142044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228801',
internalId:  '',
customField: '20100617-143917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '249312',
internalId:  '',
customField: '20100617-144455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228927',
internalId:  '',
customField: '20091130-105746'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '229001',
internalId:  '',
customField: '20100105-154612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273264',
internalId:  '',
customField: '20091002-161056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '234612',
internalId:  '',
customField: '20090128-102622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '230001',
internalId:  '',
customField: '20100322-153405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '237212',
internalId:  '',
customField: '20090424-101845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273290',
internalId:  '',
customField: '20100105-155408'
};
webappMappings['7008']=webappMappings['7008-3698']={
webappId:    '7008',
documentId:  '234612',
internalId:  '3698',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '282912',
internalId:  '',
customField: '20100402-163106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273238',
internalId:  '',
customField: '20100617-144246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '314526',
internalId:  '',
customField: '20091204-162908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '316626',
internalId:  '',
customField: '20091221-104420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '309226',
internalId:  '',
customField: '20100216-104115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '272912',
internalId:  '',
customField: '20090908-154459'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '272938',
internalId:  '',
customField: '20100105-160020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '272964',
internalId:  '',
customField: '20100322-163916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '272990',
internalId:  '',
customField: '20090427-095616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273016',
internalId:  '',
customField: '20090820-103704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273042',
internalId:  '',
customField: '20090427-095802'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '308726',
internalId:  '',
customField: '20091202-163212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273316',
internalId:  '',
customField: '20100216-101648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273342',
internalId:  '',
customField: '20091002-162159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '273368',
internalId:  '',
customField: '20091002-162305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '293312',
internalId:  '',
customField: '20091221-141244'
};
webappMappings['7008']=webappMappings['7008-4296']={
webappId:    '7008',
documentId:  '273368',
internalId:  '4296',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '283712',
internalId:  '',
customField: '20100221-113304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '284112',
internalId:  '',
customField: '20091004-111731'
};
webappMappings['7008']=webappMappings['7008-5413']={
webappId:    '7008',
documentId:  '273016',
internalId:  '5413',
customField: 'language:en;country:GB;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '305126',
internalId:  '',
customField: '20091102-084832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '296526',
internalId:  '',
customField: '20091008-164956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '318826',
internalId:  '',
customField: '20100113-143512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '320226',
internalId:  '',
customField: '20100406-160036'
};
webappMappings['1501']=webappMappings['1501-10333632']={
webappId:    '1501',
documentId:  '4301',
internalId:  '10333632',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '326926',
internalId:  '',
customField: '20100319-111543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '328426',
internalId:  '',
customField: '20100608-141533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '328926',
internalId:  '',
customField: '20100324-160940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '329226',
internalId:  '',
customField: '20100406-160658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '331126',
internalId:  '',
customField: '20100331-105652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '333326',
internalId:  '',
customField: '20100429-163140'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '336526',
internalId:  '',
customField: '20100614-162936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '337926',
internalId:  '',
customField: '20100614-163431'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '339026',
internalId:  '',
customField: '20100621-170559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '339826',
internalId:  '',
customField: '20100729-170624'
};
var canonHostname = 'coucm4all01.netbenefit.co.uk';
var accountId     = 'ANBT20INEQIM';
var companyName   = 'Agriturismo+Podere+Zollaio+-+Vinci+-+Toscana';
var htmlTitle	  = '';
var metaKeywords  = 'Peaceful%2CSunny%2CGolf%2CHistory%2CBeauty%2CBeautiful%2CApartments%2CVillas%2CVilla%2CFarmhouse%2CPeace%2CQuiet%2CTuscany%2CTuscan%2CItaly%2CFlorence%2CPisa%2CLucca%2CSiena%2CSienna%2CSan+Miniato%2CMontecatini%2CCertaldo%2CPistoia%2CViareggio%2CMontelupo%2CVolterra%2CCasentino%2C+Holiday%2C+Vacation%2CIdyllic%2CSwimming+Pool%2CJacuzzi%2CWine%2C+Extra+Virgin+Olive+Oil%2COrganic%2CChianti%2CBiological%2CFarm+Holiday%2CFarmhouses%2CAgriturismo%2CCulture%2C+Sea%2CSeaside%2CBeaches%2C+Pleasant+Surroundings%2CSelf+Catering+Accommodation%2CFriendly%2CRelax%2CMagical%2CStunning+Views%2C+Leonardo+da+Vinci%2CBirthplace%2CAir+conditioning%2CFood%2C+Family%2CFamilies%2CParadise%2CHalf+Term%2CEaster%2CSummer+Holidays%2CGroups%2CPassion%2CRural%2CRomantic%2CTraditional%2CParadise%2CChildren%2CArtists%2CBook+Direct%2CFarmsty%2CArezzo%2CWine+Tasting%2COlive+Groves%2CHelpful%2CGuide%2CNature%2CVineyard%2CCellar%2CCountry%2CCountryside%2CResorts%2CLast+Minute%2CSpecial%2CTour%2CEmpoli%2CBarbecue%2C+Cook%2C+Rates%2COn-Line%2CDiscounts%2CProperties%2CStay%2C+Grosetto%2CMaremma%2CGreen+Tourism%2CArt%2CCities%2C+New+Year%2C+Christmas%2CWelcome%2CCycling%2CWalking%2CLandscape%2C+Comfortable%2CSolarium%2CSagre%2CHoneymoon%2CRelaxing%2CPanorama%2CHoliday+Homes';
var metaContents  = 'Podere+Zollaio+offers+you+well+priced+self+catering+accommodation+in+Vincy%2C+Tuscany';
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();
};
