/* [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','1508',jdecode('Home'),jdecode(''),'/1508/index.html','true',[ 
		['PAGE','114349',jdecode('FAQs'),jdecode(''),'/1508/114349.html','true',[],'']
	],''],
	['PAGE','64415',jdecode('Sir+Richard+Molyneux'),jdecode(''),'/64415/index.html','true',[ 
		['PAGE','64854',jdecode('Military+Career'),jdecode(''),'/64415/64854.html','true',[],''],
		['PAGE','91710',jdecode('Ancestry'),jdecode(''),'/64415/91710.html','true',[],'']
	],''],
	['PAGE','1565',jdecode('About+the+regiment'),jdecode(''),'/1565/index.html','true',[ 
		['PAGE','94110',jdecode('Battle+Honours'),jdecode(''),'/1565/94110.html','true',[],''],
		['PAGE','108849',jdecode('Officers'),jdecode(''),'/1565/108849.html','true',[],''],
		['PAGE','158950',jdecode('Regimental+Roles'),jdecode(''),'/1565/158950.html','true',[],'']
	],''],
	['PAGE','28401',jdecode('Join+us'),jdecode(''),'/28401/index.html','true',[ 
		['PAGE','29002',jdecode('Join+molyneuxs+%28follow+up+page%29'),jdecode(''),'/28401/29002.html','false',[],'']
	],''],
	['PAGE','1592',jdecode('Events'),jdecode(''),'/1592/index.html','true',[ 
		['PAGE','46101',jdecode('Muster+List'),jdecode(''),'/1592/46101.html','true',[],''],
		['PAGE','93610',jdecode('Events+for+you'),jdecode(''),'/1592/93610.html','true',[],'']
	],''],
	['PAGE','1646',jdecode('Rag+Bag'),jdecode(''),'/1646/index.html','true',[ 
		['PAGE','107649',jdecode('Book+Review'),jdecode(''),'/1646/107649.html','true',[],''],
		['PAGE','120164',jdecode('Jokes+page'),jdecode(''),'/1646/120164.html','true',[],''],
		['PAGE','141050',jdecode('How+to.....'),jdecode(''),'/1646/141050.html','true',[],'']
	],''],
	['PAGE','8201',jdecode('History'),jdecode(''),'/8201/index.html','true',[ 
		['PAGE','125150',jdecode('Scaffold+speech'),jdecode(''),'/8201/125150.html','true',[],''],
		['PAGE','163550',jdecode('Road+to+Civil+War'),jdecode(''),'/8201/163550.html','true',[],''],
		['PAGE','140650',jdecode('Charles%26%23x27%3B+1630+%26%23x27%3BOrders%26%23x27%3B'),jdecode(''),'/8201/140650.html','true',[],''],
		['PAGE','150950',jdecode('1628+Parliament+disolved'),jdecode(''),'/8201/150950.html','true',[],''],
		['PAGE','118049',jdecode('Stuart+Tree'),jdecode(''),'/8201/118049.html','true',[],''],
		['PAGE','126450',jdecode('Chronology+of+the+Queen'),jdecode(''),'/8201/126450.html','true',[],''],
		['PAGE','133250',jdecode('Strafford%26%23x27%3Bs+defence'),jdecode(''),'/8201/133250.html','true',[],''],
		['PAGE','17801',jdecode('Battles'),jdecode(''),'/8201/17801.html','true',[],''],
		['PAGE','143350',jdecode('Religion'),jdecode(''),'/8201/143350.html','true',[],''],
		['PAGE','144150',jdecode('Book+of+Sports'),jdecode(''),'/8201/144150.html','true',[],''],
		['PAGE','17828',jdecode('Famous+Names'),jdecode(''),'/8201/17828.html','true',[],''],
		['PAGE','109349',jdecode('The+Price+of+things'),jdecode(''),'/8201/109349.html','true',[],''],
		['PAGE','112649',jdecode('Currency'),jdecode(''),'/8201/112649.html','true',[],''],
		['PAGE','113499',jdecode('Rebel+atrocities'),jdecode(''),'/8201/113499.html','true',[],''],
		['PAGE','122750',jdecode('Find+your+MP'),jdecode(''),'/8201/122750.html','true',[],''],
		['PAGE','161350',jdecode('Poetry'),jdecode(''),'/8201/161350.html','true',[],''],
		['PAGE','124150',jdecode('Dogs+of+the+period'),jdecode(''),'/8201/124150.html','true',[],'']
	],''],
	['PAGE','1673',jdecode('Links'),jdecode(''),'/1673.html','true',[],''],
	['PAGE','10501',jdecode('Letters'),jdecode(''),'/10501/index.html','true',[ 
		['PAGE','137950',jdecode('Molyneux+Letters'),jdecode(''),'/10501/137950.html','true',[],''],
		['PAGE','159650',jdecode('Wentworth+Letters'),jdecode(''),'/10501/159650.html','true',[],''],
		['PAGE','160350',jdecode('Charles%26%23x27%3B+Letters'),jdecode(''),'/10501/160350.html','true',[],'']
	],''],
	['PAGE','15101',jdecode('Latest+Additions'),jdecode(''),'/15101.html','true',[],''],
	['PAGE','126950',jdecode('The+Cavalier+in+Exile'),jdecode(''),'/126950/index.html','true',[ 
		['PAGE','126977',jdecode('Foreword'),jdecode(''),'/126950/126977.html','true',[],''],
		['PAGE','127004',jdecode('First+book'),jdecode(''),'/126950/127004.html','true',[],''],
		['PAGE','127761',jdecode('First+book+part+2'),jdecode(''),'/126950/127761.html','true',[],''],
		['PAGE','128003',jdecode('First+book+part+3'),jdecode(''),'/126950/128003.html','true',[],''],
		['PAGE','128350',jdecode('Second+book'),jdecode(''),'/126950/128350.html','true',[],''],
		['PAGE','128377',jdecode('Second+book+part+2'),jdecode(''),'/126950/128377.html','true',[],''],
		['PAGE','128404',jdecode('Second+book+part+3'),jdecode(''),'/126950/128404.html','true',[],''],
		['PAGE','129250',jdecode('Third+book'),jdecode(''),'/126950/129250.html','true',[],''],
		['PAGE','129277',jdecode('Third+book+part+2'),jdecode(''),'/126950/129277.html','true',[],''],
		['PAGE','129304',jdecode('Third+book+part+3'),jdecode(''),'/126950/129304.html','true',[],''],
		['PAGE','131050',jdecode('Fourth+book'),jdecode(''),'/126950/131050.html','true',[],''],
		['PAGE','131077',jdecode('Fourth+book+part+2'),jdecode(''),'/126950/131077.html','true',[],''],
		['PAGE','131104',jdecode('Fourth+book+part+3'),jdecode(''),'/126950/131104.html','true',[],''],
		['PAGE','131650',jdecode('Sir+Egerton+Brydges'),jdecode(''),'/126950/131650.html','true',[],''],
		['PAGE','131677',jdecode('Life+of+Margaret'),jdecode(''),'/126950/131677.html','true',[],''],
		['PAGE','132150',jdecode('Life+of+Margaret+2'),jdecode(''),'/126950/132150.html','true',[],''],
		['PAGE','132177',jdecode('Life+of+Margaret+3'),jdecode(''),'/126950/132177.html','true',[],'']
	],''],
	['PAGE','49301',jdecode('Richard+Symonds+Diary'),jdecode(''),'/49301/index.html','true',[ 
		['PAGE','49701',jdecode('April+1644'),jdecode(''),'/49301/49701.html','true',[],''],
		['PAGE','54701',jdecode('July+1644'),jdecode(''),'/49301/54701.html','true',[],''],
		['PAGE','59201',jdecode('August+1644'),jdecode(''),'/49301/59201.html','true',[],''],
		['PAGE','63401',jdecode('September+1644'),jdecode(''),'/49301/63401.html','true',[],''],
		['PAGE','69401',jdecode('Wilmott%26%23x27%3Bs+disgrace'),jdecode(''),'/49301/69401.html','true',[],''],
		['PAGE','72201',jdecode('October+1644'),jdecode(''),'/49301/72201.html','true',[],''],
		['PAGE','77601',jdecode('November+1644'),jdecode(''),'/49301/77601.html','true',[],''],
		['PAGE','80801',jdecode('June+1645'),jdecode(''),'/49301/80801.html','true',[],''],
		['PAGE','84638',jdecode('July+1645'),jdecode(''),'/49301/84638.html','true',[],''],
		['PAGE','86994',jdecode('August+1645'),jdecode(''),'/49301/86994.html','true',[],''],
		['PAGE','88510',jdecode('October+1645'),jdecode(''),'/49301/88510.html','true',[],'']
	],''],
	['PAGE','160850',jdecode('Bibliography'),jdecode(''),'/160850.html','true',[],''],
	['PAGE','169455',jdecode('Guestbook'),jdecode(''),'/169455/index.html','true',[ 
		['PAGE','169450',jdecode('Read+Guestbook'),jdecode(''),'/169455/169450.html','true',[],'']
	],'']];
var siteelementCount=75;
theSitetree.topTemplateName='Ornaments';
theSitetree.paletteFamily='BB2D56';
theSitetree.keyvisualId='3899';
theSitetree.keyvisualName='kv_3899.jpg';
theSitetree.fontsetId='10493';
theSitetree.graphicsetId='11075';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Ornaments',
				paletteFamily: 	'BB2D56',
				keyvisualId: 	'3899',
				keyvisualName: 	'kv_3899.jpg',
				fontsetId: 		'10493',
				graphicsetId: 	'11075',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'887248',
				e_color: 		'887248',
				f_color: 		'887248',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12'
			  };
var webappMappings = {};
webappMappings['1006']={
webappId:    '1006',
documentId:  '1508',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '169455',
internalId:  '169455aam010in3j1b',
customField: 'action=form&icq=false'
};
webappMappings['1002']={
webappId:    '1002',
documentId:  '169450',
internalId:  '169455aam010in3j1b',
customField: 'action=list'
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '28401',
internalId:  'aam010in3j1b1067a2f9b60',
customField: ''
};
webappMappings['1001']={
webappId:    '1001',
documentId:  '29002',
internalId:  'aam010in3j1b1067a2f9b60',
customField: 'followUp'
};
webappMappings['1005']={
webappId:    '1005',
documentId:  '114349',
internalId:  '10e27a2e3e2.4c10fc4b',
customField: 'en:US:'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '169455',
internalId:  '',
customField: '20090802-161027'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '169450',
internalId:  '',
customField: '20090802-160739'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1508',
internalId:  '',
customField: '20091014-214319'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '114349',
internalId:  '',
customField: '20090814-163432'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '64415',
internalId:  '',
customField: '20070607-020431'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '64854',
internalId:  '',
customField: '20060113-104449'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '91710',
internalId:  '',
customField: '20060428-225213'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '137950',
internalId:  '',
customField: '20070607-232346'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1565',
internalId:  '',
customField: '20090729-151800'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '94110',
internalId:  '',
customField: '20060507-200127'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '108849',
internalId:  '',
customField: '20060930-135928'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '28401',
internalId:  '',
customField: '20090815-215944'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '29002',
internalId:  '',
customField: '20050921-213611'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1592',
internalId:  '',
customField: '20091014-213605'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '46101',
internalId:  '',
customField: '20080920-143713'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '93610',
internalId:  '',
customField: '20081211-131623'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '158950',
internalId:  '',
customField: '20090729-152938'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '159650',
internalId:  '',
customField: '20080720-212345'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '160350',
internalId:  '',
customField: '20080720-213856'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '160850',
internalId:  '',
customField: '20091022-141643'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '161350',
internalId:  '',
customField: '20090816-205804'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '163550',
internalId:  '',
customField: '20091022-143526'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1646',
internalId:  '',
customField: '20070327-221611'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '107649',
internalId:  '',
customField: '20061003-225335'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '120164',
internalId:  '',
customField: '20061203-212519'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '141050',
internalId:  '',
customField: '20070712-103238'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '8201',
internalId:  '',
customField: '20090814-165443'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '125150',
internalId:  '',
customField: '20070402-142427'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '140650',
internalId:  '',
customField: '20070629-234042'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '118049',
internalId:  '',
customField: '20061114-203556'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '126450',
internalId:  '',
customField: '20070311-223144'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '133250',
internalId:  '',
customField: '20070421-154222'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17801',
internalId:  '',
customField: '20060430-170545'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '143350',
internalId:  '',
customField: '20070915-134551'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '144150',
internalId:  '',
customField: '20070915-180716'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '17828',
internalId:  '',
customField: '20070110-104550'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '109349',
internalId:  '',
customField: '20061003-203723'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '112649',
internalId:  '',
customField: '20060930-212922'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '113499',
internalId:  '',
customField: '20070110-104815'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '122750',
internalId:  '',
customField: '20070110-212540'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '124150',
internalId:  '',
customField: '20070113-181753'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '1673',
internalId:  '',
customField: '20081211-132721'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '10501',
internalId:  '',
customField: '20080720-205019'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '15101',
internalId:  '',
customField: '20090801-222029'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '126950',
internalId:  '',
customField: '20070418-211042'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '126977',
internalId:  '',
customField: '20070411-224711'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '127004',
internalId:  '',
customField: '20070331-220338'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '127761',
internalId:  '',
customField: '20070323-200625'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '128003',
internalId:  '',
customField: '20070322-235748'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '128350',
internalId:  '',
customField: '20070323-195739'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '128377',
internalId:  '',
customField: '20070323-200150'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '128404',
internalId:  '',
customField: '20070323-200417'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '129250',
internalId:  '',
customField: '20070331-215332'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '129277',
internalId:  '',
customField: '20070331-215650'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '129304',
internalId:  '',
customField: '20070331-215837'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '131050',
internalId:  '',
customField: '20070415-221540'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '131077',
internalId:  '',
customField: '20070415-224753'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '131104',
internalId:  '',
customField: '20070415-224927'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '131650',
internalId:  '',
customField: '20070415-225429'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '131677',
internalId:  '',
customField: '20070415-225808'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '132150',
internalId:  '',
customField: '20070415-230053'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '132177',
internalId:  '',
customField: '20070415-230237'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '49301',
internalId:  '',
customField: '20060120-223005'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '49701',
internalId:  '',
customField: '20060409-160637'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '54701',
internalId:  '',
customField: '20051230-221346'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '59201',
internalId:  '',
customField: '20060108-222230'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '63401',
internalId:  '',
customField: '20060122-175033'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '69401',
internalId:  '',
customField: '20060130-140236'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '72201',
internalId:  '',
customField: '20060317-114729'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '77601',
internalId:  '',
customField: '20060326-011244'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '80801',
internalId:  '',
customField: '20060401-191428'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '84638',
internalId:  '',
customField: '20060403-190842'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '86994',
internalId:  '',
customField: '20060404-225920'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '88510',
internalId:  '',
customField: '20060409-155744'
};
webappMappings['5000']={
webappId:    '5000',
documentId:  '150950',
internalId:  '',
customField: '20080308-154403'
};
var canonHostname = 'creator.amenworld.com';
var accountId     = 'AAM010IN3J1B';
var companyName   = 'ord+Molyneux%2C+his+life+and+exploits';
var htmlTitle	  = 'English+Civil+War+Regiment+of+Lord+Molyneux+and+civil+war+battles';
var metaKeywords  = 'Sealed+Knot%2C+English+Civil+War%2C+civil+war+battles%2C+Molyneux%2C+Regiment%2C+re-enactment%2C+sheffield%2C+yorkshire%2C+Edgehill%2C+Naseby%2C+Croxteth+hall%2C+Sefton%2C+Liverpool%2C+Pike%2C+shot%2C+drums%2C+history%2C+charity%2C+battle%2C+war%2C+cannon%2C+skirmish%2C+Sheffield%2C+south+yorkshire%2C';
var metaContents  = 'English+Civil+War+regiments+in+the+Sealed+Knot+and+the+English+Civil+War+Society+give+historical+re-enactments+of+civil+war+battles%2C+skirmishes+and+living+history+events.+Molyneux+raised+two+regiments%2C+one+of+horse+and+one+of+foot+in+the+English+Civil+War.+We+are+the+foot+regiment+and+we+represent+the+soldiers+who+fought+at+battles+from+Edgehill+to+Naseby.+Sheffield+Sealed+Knot+company+of+foot';
					                                                                    
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 */					                                                            
