/* [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','1001',jdecode('Home'),jdecode(''),'/1001.html','true',[],'',''],
	['PAGE','1052',jdecode('Gallery'),jdecode(''),'/1052/index.html','true',[ 
		['PAGE','86912',jdecode('Kathy'),jdecode(''),'/1052/86912.html','true',[],'',''],
		['PAGE','86933',jdecode('Klara'),jdecode(''),'/1052/86933.html','true',[],'',''],
		['PAGE','87112',jdecode('Charmin'),jdecode(''),'/1052/87112.html','true',[],'',''],
		['PAGE','87133',jdecode('Sara'),jdecode(''),'/1052/87133.html','true',[],'',''],
		['PAGE','98312',jdecode('Willemina'),jdecode(''),'/1052/98312.html','true',[],'',''],
		['PAGE','98333',jdecode('Estella'),jdecode(''),'/1052/98333.html','true',[],'',''],
		['PAGE','98354',jdecode('Pauleen'),jdecode(''),'/1052/98354.html','true',[],'',''],
		['PAGE','98375',jdecode('Renette'),jdecode(''),'/1052/98375.html','true',[],'',''],
		['PAGE','50201',jdecode('Abigail'),jdecode(''),'/1052/50201.html','true',[],'',''],
		['PAGE','51901',jdecode('Adriana'),jdecode(''),'/1052/51901.html','true',[],'',''],
		['PAGE','53401',jdecode('Brandi'),jdecode(''),'/1052/53401.html','true',[],'',''],
		['PAGE','54501',jdecode('Chloe'),jdecode(''),'/1052/54501.html','true',[],'',''],
		['PAGE','91312',jdecode('Alma'),jdecode(''),'/1052/91312.html','true',[],'',''],
		['PAGE','91333',jdecode('Anna'),jdecode(''),'/1052/91333.html','true',[],'',''],
		['PAGE','91354',jdecode('Evette'),jdecode(''),'/1052/91354.html','true',[],'',''],
		['PAGE','91375',jdecode('Felicia'),jdecode(''),'/1052/91375.html','true',[],'',''],
		['PAGE','56001',jdecode('Crista'),jdecode(''),'/1052/56001.html','true',[],'',''],
		['PAGE','56901',jdecode('Dayton'),jdecode(''),'/1052/56901.html','true',[],'',''],
		['PAGE','96812',jdecode('Marge'),jdecode(''),'/1052/96812.html','true',[],'',''],
		['PAGE','96833',jdecode('Marty'),jdecode(''),'/1052/96833.html','true',[],'',''],
		['PAGE','57901',jdecode('Gia'),jdecode(''),'/1052/57901.html','true',[],'',''],
		['PAGE','61301',jdecode('Jewel'),jdecode(''),'/1052/61301.html','true',[],'',''],
		['PAGE','12401',jdecode('Rowan'),jdecode(''),'/1052/12401.html','true',[],'',''],
		['PAGE','63343',jdecode('Lena'),jdecode(''),'/1052/63343.html','true',[],'',''],
		['PAGE','63301',jdecode('Kimberly'),jdecode(''),'/1052/63301.html','true',[],'',''],
		['PAGE','63322',jdecode('Kylee'),jdecode(''),'/1052/63322.html','true',[],'',''],
		['PAGE','62701',jdecode('Katrina'),jdecode(''),'/1052/62701.html','true',[],'',''],
		['PAGE','24764',jdecode('Nancy'),jdecode(''),'/1052/24764.html','true',[],'',''],
		['PAGE','63385',jdecode('Simone'),jdecode(''),'/1052/63385.html','true',[],'',''],
		['PAGE','63406',jdecode('Vivian'),jdecode(''),'/1052/63406.html','true',[],'',''],
		['PAGE','107512',jdecode('Lisa'),jdecode(''),'/1052/107512.html','true',[],'',''],
		['PAGE','107533',jdecode('Gisela'),jdecode(''),'/1052/107533.html','true',[],'',''],
		['PAGE','24743',jdecode('Molly'),jdecode(''),'/1052/24743.html','true',[],'',''],
		['PAGE','107554',jdecode('Janice'),jdecode(''),'/1052/107554.html','true',[],'',''],
		['PAGE','107575',jdecode('Sofie'),jdecode(''),'/1052/107575.html','true',[],'',''],
		['PAGE','107596',jdecode('Stefana'),jdecode(''),'/1052/107596.html','true',[],'',''],
		['PAGE','63364',jdecode('Olivia'),jdecode(''),'/1052/63364.html','true',[],'',''],
		['PAGE','58801',jdecode('Hanna'),jdecode(''),'/1052/58801.html','true',[],'','']
	],'',''],
	['PAGE','1073',jdecode('Contact'),jdecode(''),'/1073.html','true',[],'',''],
	['PAGE','1094',jdecode('Employment'),jdecode(''),'/1094.html','true',[],'',''],
	['PAGE','69701',jdecode('Links'),jdecode(''),'/69701.html','true',[],'',''],
	['PAGE','111612',jdecode('Miami+Escorts'),jdecode(''),'/111612.html','false',[],'',''],
	['PAGE','112612',jdecode('South+Florida+Escorts'),jdecode(''),'/112612.html','false',[],'',''],
	['PAGE','113312',jdecode('Miami+Beach+Escorts'),jdecode(''),'/113312.html','false',[],'',''],
	['PAGE','115112',jdecode('Boynton+Beach+Escorts'),jdecode(''),'/115112.html','false',[],'',''],
	['PAGE','116912',jdecode('Palm+Beach+County+Escorts'),jdecode(''),'/116912.html','false',[],'',''],
	['PAGE','113912',jdecode('Busty+Escorts+Miami'),jdecode(''),'/113912.html','false',[],'',''],
	['PAGE','124912',jdecode('Female+Escorts'),jdecode(''),'/124912.html','false',[],'',''],
	['PAGE','114312',jdecode('Fort+Lauderdale+Escorts'),jdecode(''),'/114312.html','false',[],'',''],
	['PAGE','117712',jdecode('Palm+Beach+Escorts'),jdecode(''),'/117712.html','false',[],'',''],
	['PAGE','118312',jdecode('Dade+County+Escorts'),jdecode(''),'/118312.html','false',[],'',''],
	['PAGE','119312',jdecode('Broward+County+Escorts'),jdecode(''),'/119312.html','false',[],'',''],
	['PAGE','120212',jdecode('South+Beach+Escorts'),jdecode(''),'/120212.html','false',[],'',''],
	['PAGE','120812',jdecode('Miami+Escort+Service'),jdecode(''),'/120812.html','false',[],'',''],
	['PAGE','121512',jdecode('Miami+Outcall+Escorts'),jdecode(''),'/121512.html','false',[],'',''],
	['PAGE','121912',jdecode('Palm+Beach+Outcall+Escorts'),jdecode(''),'/121912.html','false',[],'',''],
	['PAGE','122412',jdecode('Pompano+Escorts'),jdecode(''),'/122412.html','false',[],'',''],
	['PAGE','123112',jdecode('West+Palm+Beach+Escorts'),jdecode(''),'/123112.html','false',[],'',''],
	['PAGE','123412',jdecode('Miami+Upscale+Escorts'),jdecode(''),'/123412.html','false',[],'','']];
var siteelementCount=61;
theSitetree.topTemplateName='Basic';
theSitetree.paletteFamily='2E681F';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10828';
theSitetree.graphicsetId='11286';
theSitetree.contentColor='2E681F';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Basic',
				paletteFamily: 	'2E681F',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10828',
				graphicsetId: 	'11286',
				contentColor: 	'2E681F',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1001',
internalId:  '',
customField: '20110208-234758'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1052',
internalId:  '',
customField: '20110208-002014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63322',
internalId:  '',
customField: '20091116-043745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51901',
internalId:  '',
customField: '20091114-075311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61301',
internalId:  '',
customField: '20091115-094041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57901',
internalId:  '',
customField: '20091115-052456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58801',
internalId:  '',
customField: '20091115-061803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24743',
internalId:  '',
customField: '20091115-064854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24764',
internalId:  '',
customField: '20091115-072237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62701',
internalId:  '',
customField: '20091115-103503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63364',
internalId:  '',
customField: '20091116-094811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63385',
internalId:  '',
customField: '20091116-092025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56001',
internalId:  '',
customField: '20101227-223128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20091116-055246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53401',
internalId:  '',
customField: '20091114-110023'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63301',
internalId:  '',
customField: '20091116-042616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56901',
internalId:  '',
customField: '20091115-041306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54501',
internalId:  '',
customField: '20091114-120238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63343',
internalId:  '',
customField: '20091116-060418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1073',
internalId:  '',
customField: '20110208-003349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1094',
internalId:  '',
customField: '20110208-004318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50201',
internalId:  '',
customField: '20091114-064313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63406',
internalId:  '',
customField: '20091116-093502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69701',
internalId:  '',
customField: '20100919-154237'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1001',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1052',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '50201',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '51901',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '53401',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '54501',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '56001',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '56901',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '57901',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '58801',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '24743',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '24764',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '61301',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '62701',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '63301',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '63322',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '12401',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '63343',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '63385',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '63406',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '63364',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1073',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '1094',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5001']=webappMappings['5001-']={
webappId:    '5001',
documentId:  '69701',
internalId:  '',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86912',
internalId:  '',
customField: '20110106-120507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86933',
internalId:  '',
customField: '20101227-211457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87112',
internalId:  '',
customField: '20101227-155714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87133',
internalId:  '',
customField: '20101227-212608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91312',
internalId:  '',
customField: '20101228-152926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91333',
internalId:  '',
customField: '20101228-154009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91354',
internalId:  '',
customField: '20101228-215330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91375',
internalId:  '',
customField: '20101228-221255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96812',
internalId:  '',
customField: '20101228-234217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96833',
internalId:  '',
customField: '20101228-235535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98312',
internalId:  '',
customField: '20101229-131716'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98333',
internalId:  '',
customField: '20101229-132349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98354',
internalId:  '',
customField: '20101229-133914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98375',
internalId:  '',
customField: '20101229-134522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107512',
internalId:  '',
customField: '20101229-234537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107533',
internalId:  '',
customField: '20101229-235418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107554',
internalId:  '',
customField: '20101230-000611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107575',
internalId:  '',
customField: '20101230-002020'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107596',
internalId:  '',
customField: '20101230-002923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '111612',
internalId:  '',
customField: '20110208-005855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112612',
internalId:  '',
customField: '20110208-010933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113312',
internalId:  '',
customField: '20110208-012245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113912',
internalId:  '',
customField: '20110208-031911'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114312',
internalId:  '',
customField: '20110208-020107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115112',
internalId:  '',
customField: '20110208-012528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116912',
internalId:  '',
customField: '20110207-235456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117712',
internalId:  '',
customField: '20110208-023736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118312',
internalId:  '',
customField: '20110208-025417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119312',
internalId:  '',
customField: '20110208-025725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120212',
internalId:  '',
customField: '20110208-030049'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120812',
internalId:  '',
customField: '20110208-030313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121512',
internalId:  '',
customField: '20110208-030632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121912',
internalId:  '',
customField: '20110208-032923'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122412',
internalId:  '',
customField: '20110208-033820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123112',
internalId:  '',
customField: '20110208-034017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123412',
internalId:  '',
customField: '20110208-034259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '124912',
internalId:  '',
customField: '20110208-032629'
};
var canonHostname = 'cm1b.dca2.superb.net';
var accountId     = 'ACM1A0IN2MFY';
var companyName   = 'ALWAYS+Real+Girls+-+Real+Photos';
var htmlTitle	  = 'Miami+Escorts';
var metaKeywords  = '';
var metaContents  = '';
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();
};

