/* [nodename, id, name, navigationtext, href, isnavigation, childs[], templatename] */

function jdecode(s) {
    s = s.replace(/\+/g, "%20")
    return unescape(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 theSitetree=[ 
	['PAGE','4607',jdecode('RECEPTION'),jdecode(''),'/4607.html','true',[],''],
	['PAGE','4664',jdecode('The+Manor+House'),jdecode(''),'/4664/index.html','true',[ 
		['PAGE','10457',jdecode('History+of+the+House'),jdecode(''),'/4664/10457.html','true',[],''],
		['PAGE','21057',jdecode('Caves+%26+Tunnels'),jdecode(''),'/4664/21057.html','true',[],'']
	],''],
	['PAGE','4691',jdecode('The+Rooms+'),jdecode(''),'/4691.html','true',[],''],
	['PAGE','6186',jdecode('The+Dining'),jdecode(''),'/6186.html','true',[],''],
	['PAGE','7164',jdecode('The+Prices+2010'),jdecode(''),'/7164.html','true',[],''],
	['PAGE','7191',jdecode('Request+a+Brochure'),jdecode(''),'/7191.html','true',[],''],
	['PAGE','5015',jdecode('Contact+Details'),jdecode(''),'/5015.html','true',[],''],
	['PAGE','85357',jdecode('Directions'),jdecode(''),'/85357.html','true',[],''],
	['PAGE','4880',jdecode('WINE+TOURS'),jdecode(''),'/4880/index.html','true',[ 
		['PAGE','17857',jdecode('Wine+Tours+1+Day'),jdecode(''),'/4880/17857.html','true',[],''],
		['PAGE','145457',jdecode('Weekend+Wine+Tour'),jdecode(''),'/4880/145457.html','true',[],''],
		['PAGE','17884',jdecode('Wine+Tours+2+Day'),jdecode(''),'/4880/17884.html','true',[],''],
		['PAGE','17911',jdecode('Wine+Tours+3+Day'),jdecode(''),'/4880/17911.html','true',[],''],
		['PAGE','17938',jdecode('Loire+Chateau+Tours'),jdecode(''),'/4880/17938.html','true',[],''],
		['PAGE','17965',jdecode('Organic+%2F+Biodynamic+Wine'),jdecode(''),'/4880/17965.html','true',[],''],
		['PAGE','17992',jdecode('Women+Only+Wine+Tours'),jdecode(''),'/4880/17992.html','true',[],''],
		['PAGE','135657',jdecode('Harvest+Wine+Tour+1+Day'),jdecode(''),'/4880/135657.html','true',[],''],
		['PAGE','138157',jdecode('Group+pricing'),jdecode(''),'/4880/138157.html','true',[],''],
		['PAGE','129957',jdecode('Canoe+%26+Wine+Tour+'),jdecode(''),'/4880/129957.html','true',[],''],
		['PAGE','130857',jdecode('Bike+%26+Wine+Tour+'),jdecode(''),'/4880/130857.html','true',[],'']
	],''],
	['PAGE','145057',jdecode('NEW+WEEKENDS'),jdecode(''),'/145057.html','true',[],''],
	['PAGE','98057',jdecode('LGM+online+tour'),jdecode(''),'/98057.html','true',[],''],
	['PAGE','106957',jdecode('The+Blog'),jdecode(''),'/106957/index.html','true',[ 
		['PAGE','105357',jdecode('SEPTEMBER+2008'),jdecode(''),'/106957/105357.html','true',[],''],
		['PAGE','102257',jdecode('AUGUST+2008'),jdecode(''),'/106957/102257.html','true',[],''],
		['PAGE','99357',jdecode('JULY+2008'),jdecode(''),'/106957/99357.html','true',[],''],
		['PAGE','95557',jdecode('JUNE+2008'),jdecode(''),'/106957/95557.html','true',[],''],
		['PAGE','93457',jdecode('MAY+2008'),jdecode(''),'/106957/93457.html','true',[],''],
		['PAGE','89657',jdecode('APRIL+2008'),jdecode(''),'/106957/89657.html','true',[],''],
		['PAGE','86757',jdecode('MARCH+2008'),jdecode(''),'/106957/86757.html','true',[],''],
		['PAGE','83757',jdecode('FEBRUARY+2008'),jdecode(''),'/106957/83757.html','true',[],''],
		['PAGE','83778',jdecode('JANUARY+2008'),jdecode(''),'/106957/83778.html','true',[],''],
		['PAGE','73457',jdecode('DECEMBER+2007'),jdecode(''),'/106957/73457.html','true',[],''],
		['PAGE','69657',jdecode('NOVEMBER+2007'),jdecode(''),'/106957/69657.html','true',[],''],
		['PAGE','65857',jdecode('OCTOBER+2007'),jdecode(''),'/106957/65857.html','true',[],''],
		['PAGE','55557',jdecode('SEPTEMBER+2007'),jdecode(''),'/106957/55557.html','true',[],''],
		['PAGE','50557',jdecode('AUGUST+2007'),jdecode(''),'/106957/50557.html','true',[],''],
		['PAGE','48457',jdecode('JULY+2007'),jdecode(''),'/106957/48457.html','true',[],''],
		['PAGE','44057',jdecode('JUNE+2007'),jdecode(''),'/106957/44057.html','true',[],''],
		['PAGE','39857',jdecode('MAY+2007'),jdecode(''),'/106957/39857.html','true',[],'']
	],''],
	['PAGE','5901',jdecode('Vineyards+to+Visit'),jdecode(''),'/5901/index.html','true',[ 
		['PAGE','77257',jdecode('Saumur+-+Le+Puy+'),jdecode(''),'/5901/77257.html','true',[],''],
		['PAGE','77278',jdecode('Saumur'),jdecode(''),'/5901/77278.html','true',[],''],
		['PAGE','77299',jdecode('Saumur+Champigny'),jdecode(''),'/5901/77299.html','true',[],''],
		['PAGE','77320',jdecode('Saumur+Sparkling'),jdecode(''),'/5901/77320.html','true',[],''],
		['PAGE','77341',jdecode('Anjou'),jdecode(''),'/5901/77341.html','true',[],''],
		['PAGE','77362',jdecode('Savennieres'),jdecode(''),'/5901/77362.html','true',[],''],
		['PAGE','77383',jdecode('Chinon'),jdecode(''),'/5901/77383.html','true',[],''],
		['PAGE','77404',jdecode('Bourgeuil'),jdecode(''),'/5901/77404.html','true',[],''],
		['PAGE','77425',jdecode('St+Nicolas+de+Bourgeuil'),jdecode(''),'/5901/77425.html','true',[],''],
		['PAGE','77446',jdecode('Touraine'),jdecode(''),'/5901/77446.html','true',[],'']
	],''],
	['PAGE','32257',jdecode('Local+Restaurants'),jdecode(''),'/32257.html','true',[],''],
	['PAGE','4961',jdecode('Things+to+Do'),jdecode(''),'/4961/index.html','true',[ 
		['PAGE','23857',jdecode('Antiques+%26+Markets'),jdecode(''),'/4961/23857.html','true',[],''],
		['PAGE','31357',jdecode('French+Lessons'),jdecode(''),'/4961/31357.html','true',[],''],
		['PAGE','41057',jdecode('Break+from+Paris'),jdecode(''),'/4961/41057.html','true',[],''],
		['PAGE','27657',jdecode('Womens+Holidays'),jdecode(''),'/4961/27657.html','true',[],''],
		['PAGE','4907',jdecode('Maps+and+Weather+'),jdecode(''),'/4961/4907.html','true',[],''],
		['PAGE','29758',jdecode('Art+Expo+2007'),jdecode(''),'/4961/29758.html','true',[],''],
		['PAGE','62757',jdecode('Maison+d%26%23x27%3BHotes+du+Vin'),jdecode(''),'/4961/62757.html','true',[],''],
		['PAGE','88257',jdecode('Wine+Tours'),jdecode(''),'/4961/88257.html','true',[],''],
		['PAGE','88278',jdecode('Meet+the+Wine+Maker'),jdecode(''),'/4961/88278.html','true',[],''],
		['PAGE','88299',jdecode('Wine+Tour+Vouchers'),jdecode(''),'/4961/88299.html','true',[],''],
		['PAGE','88320',jdecode('Ecole+du+Vin'),jdecode(''),'/4961/88320.html','true',[],''],
		['PAGE','88341',jdecode('Vineyard+Picnics'),jdecode(''),'/4961/88341.html','true',[],''],
		['PAGE','88362',jdecode('Wine+Art'),jdecode(''),'/4961/88362.html','true',[],'']
	],''],
	['PAGE','5202',jdecode('Guestbook'),jdecode(''),'/5202/index.html','true',[ 
		['PAGE','5203',jdecode('Read+Guestbook'),jdecode(''),'/5202/5203.html','true',[],'']
	],''],
	['PAGE','9657',jdecode('Our+Links'),jdecode(''),'/9657/index.html','true',[ 
		['PAGE','68557',jdecode('Scribbles'),jdecode(''),'/9657/68557.html','true',[],'']
	],''],
	['PAGE','60857',jdecode('A+Riverside+Cottage'),jdecode(''),'/60857/index.html','true',[ 
		['PAGE','60878',jdecode('Self+Catering+Tariff+2010'),jdecode(''),'/60857/60878.html','true',[],'']
	],''],
	['PAGE','36557',jdecode('Site+Map'),jdecode(''),'/36557.html','true',[],'']];
var siteelementCount=75;
theSitetree.topTemplateName='Cosy';
theSitetree.paletteFamily='6D834C';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10603';
theSitetree.graphicsetId='10623';
theSitetree.contentColor='1D2315';
theSitetree.contentBGColor='D3DDC4';
var theTemplate={
				name: 			'Cosy',
				paletteFamily: 	'6D834C',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10603',
				graphicsetId: 	'10623',
				contentColor: 	'1D2315',
				contentBGColor: 'D3DDC4',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'6E844D',
				e_color: 		'8DA767',
				f_color: 		'404D2D',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1002']={
webappId:    '1002',
documentId:  '5202',
internalId:  '5202aam010in2l15',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '5203',
internalId:  '5202aam010in2l15',
customField: 'action=list'
};
webappMappings['1006']={
webappId:    '1006',
documentId:  '4607',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '77278',
internalId:  '',
customField: '20080524-112735'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '99357',
internalId:  '',
customField: '20080721-154425'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4607',
internalId:  '',
customField: '20100114-132849'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5202',
internalId:  '',
customField: '20040619-231303'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5203',
internalId:  '',
customField: '20040619-231303'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4664',
internalId:  '',
customField: '20091110-150733'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10457',
internalId:  '',
customField: '20081203-161719'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '21057',
internalId:  '',
customField: '20070212-223553'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4691',
internalId:  '',
customField: '20091110-150923'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '6186',
internalId:  '',
customField: '20091110-151016'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '98057',
internalId:  '',
customField: '20080724-173755'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7164',
internalId:  '',
customField: '20091110-151315'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '7191',
internalId:  '',
customField: '20091110-151604'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5015',
internalId:  '',
customField: '20091110-152250'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4880',
internalId:  '',
customField: '20091117-151524'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17857',
internalId:  '',
customField: '20091110-123455'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17884',
internalId:  '',
customField: '20091110-123618'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17911',
internalId:  '',
customField: '20091110-123738'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17938',
internalId:  '',
customField: '20091110-123837'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17965',
internalId:  '',
customField: '20091110-123931'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17992',
internalId:  '',
customField: '20091110-124138'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20081202-162524'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '32257',
internalId:  '',
customField: '20071113-151554'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4961',
internalId:  '',
customField: '20091110-154120'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '23857',
internalId:  '',
customField: '20050124-124707'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '4907',
internalId:  '',
customField: '20080125-132504'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '77257',
internalId:  '',
customField: '20080524-112138'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '9657',
internalId:  '',
customField: '20100114-133642'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '145057',
internalId:  '',
customField: '20100114-125955'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '29758',
internalId:  '',
customField: '20061219-031332'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '27657',
internalId:  '',
customField: '20070212-225208'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '31357',
internalId:  '',
customField: '20070212-225340'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '41057',
internalId:  '',
customField: '20070507-124010'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '50557',
internalId:  '',
customField: '20070927-113358'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '48457',
internalId:  '',
customField: '20070815-173058'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '44057',
internalId:  '',
customField: '20070716-160138'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '39857',
internalId:  '',
customField: '20070815-172442'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '36557',
internalId:  '',
customField: '20081202-121659'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '60878',
internalId:  '',
customField: '20090108-202923'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '60857',
internalId:  '',
customField: '20090814-160436'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '55557',
internalId:  '',
customField: '20071218-121111'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '62757',
internalId:  '',
customField: '20080413-071411'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '65857',
internalId:  '',
customField: '20071218-114540'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '68557',
internalId:  '',
customField: '20080125-133032'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '69657',
internalId:  '',
customField: '20080115-130033'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '5015',
internalId:  '11758129',
customField: 'en:GB:'
};
webappMappings['1008']={
webappId:    '1008',
documentId:  '7191',
internalId:  '11758129',
customField: 'en:GB:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '73457',
internalId:  '',
customField: '20080203-214103'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '77299',
internalId:  '',
customField: '20080524-114032'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '77320',
internalId:  '',
customField: '20080524-114622'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '77341',
internalId:  '',
customField: '20080524-120017'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '77362',
internalId:  '',
customField: '20081202-163147'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '77383',
internalId:  '',
customField: '20080524-121826'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '77404',
internalId:  '',
customField: '20080524-122136'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '77425',
internalId:  '',
customField: '20081202-162649'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '77446',
internalId:  '',
customField: '20080524-122744'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '83757',
internalId:  '',
customField: '20080315-181105'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '83778',
internalId:  '',
customField: '20080315-174839'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '85357',
internalId:  '',
customField: '20091110-152446'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '95557',
internalId:  '',
customField: '20080702-100014'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '93457',
internalId:  '',
customField: '20080521-223014'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '86757',
internalId:  '',
customField: '20080325-163231'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88257',
internalId:  '',
customField: '20080413-070440'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88278',
internalId:  '',
customField: '20080413-071508'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88299',
internalId:  '',
customField: '20080413-071648'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88320',
internalId:  '',
customField: '20080413-071904'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88341',
internalId:  '',
customField: '20080413-072110'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88362',
internalId:  '',
customField: '20080413-072204'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '89657',
internalId:  '',
customField: '20080413-065143'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '102257',
internalId:  '',
customField: '20081027-120123'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '105357',
internalId:  '',
customField: '20081027-120827'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '106957',
internalId:  '',
customField: '20091110-153920'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '138157',
internalId:  '',
customField: '20091110-155801'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '145457',
internalId:  '',
customField: '20100114-130750'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '129957',
internalId:  '',
customField: '20091110-124609'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '130857',
internalId:  '',
customField: '20091110-124647'
};
webappMappings['1501']={
webappId:    '1501',
documentId:  '4607',
internalId:  '2089266',
customField: '1501'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '135657',
internalId:  '',
customField: '20091110-124437'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN2L15';
var companyName   = 'La+Grande+Maison+d%27Arthenay';
var htmlTitle	  = 'french+loire+wine+tours+in+france+bed+breakfast+france+french+bb+loire+group+wine+tours+wine+tasting+bb+bed+breakfast+loire+valley+private+wine+tours+france+Saumur+France+Weekend+Wine+Tour';
var metaKeywords  = 'French+Wine+Tour%2C+Bed+Breakfast%2C+BB%2C+Wine+Tours+France%2C+Gites+Vacations+Loire+Valley+France%2C+accommodation+Saumur+Maine+et+Loire+France%2C+Wine+Courses%2C+charming+BB%2C+chateau+loire+valley%2C+french+inn%2C+hotel%2C+hotels%2C+bed+breakfast+vineyard+accommodation%2C++FRENCH+BB+Loire+Valley%2C++Alastair+Sawday%2C+special+places+to+stay%2C+West+France%2C+Karen+Brown%2C+guest+house+Saumur%2C+chambres%2C+maison+dhotes%2C+accommodation+france+bed+breakfast+loire%2C+accommodation++tours+bed++breakfasts++Troglodytes%2C+Caves%2C+Saumur%2C++wine%2C+group+wwekend+wine+tours+tasting%2C+loire+valley%2C+france+holidays%2C+Saumur%2C+angers%2C+wine+tasting%2C+holidays%2C++chambres+dhotes+wine+wine+tours+loire+valley+france+holidays+saumur+angers+wine+tasting+holidays+vacation++++women+friendly%2C+gay+friendly%2C++loire+valley+vineyards+wine+french+travel+france+chateaux+area+lesbian+holidays+holiday++wine++vineyard+holiday%2C+vacation+in+france%2C+wine+holidays%2C+wine+vacation%2C+vins+de+la+loire%2C+chateaux+de+la+loire%2C+lesbian+holidays%2C+lesbian+honeymoon%2C+civil+partnership+honeymoon%2C+gay+holidays+in+France';
var metaContents  = 'french+loire+wine+tours+in+france+bb+bed+breakfast+gite+lagrandemaison.net+offers+Wine+Tours+Bed++Breakfast%2C+B++B%2C+BB+in+the+Loire+Valley+France+Saumur+Maine+et+Loire.+Chambres+dHotes++La+Grande+Maison+dArthenay.+La++Chambres+dHotes+Bed++Breakfast+Holidays++Loire+Valley+France+Wine+Tours%2C+Wine+Tasting%2C+Vineyard+BB%2C+Vineyard+stay%2C+Vineyards++Wine+Courses%2C+GROUP+Wine+Tours%2C+Vacations++France.+Group+Weekend+Wine+tours%2C+FRENCH+wine+vacations%2C+bed+breakfast+vineyard+accommodation.+Lesbian+and+Gay+Guesthouse+near+Saumur%2C+Angers%2C+Tours+in+France';
					                                                                    
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;                                                                     
	};                                                                               
/* EOF */					                                                            
