/* [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','1601',jdecode('Home'),jdecode(''),'/1601.html','true',[],'',''],
	['PAGE','19701',jdecode('About+Us'),jdecode(''),'/19701/index.html','true',[ 
		['PAGE','18901',jdecode('Meat+and+Tater%26%23x27%3Bs+Bio'),jdecode(''),'/19701/18901.html','true',[],'','']
	],'',''],
	['PAGE','74744',jdecode('Bulldog+Cookbook'),jdecode(''),'/74744.html','true',[],'',''],
	['PAGE','70101',jdecode('Lost+and+Found'),jdecode(''),'/70101.html','true',[],'',''],
	['PAGE','15243',jdecode('HOT+NEWS%21%21%21'),jdecode(''),'/15243/index.html','true',[ 
		['PAGE','74255',jdecode('Channel+8+in+Dallas%2FFt.+Worth'),jdecode(''),'/15243/74255.html','true',[],'',''],
		['PAGE','74264',jdecode('Texas+Courthouse+News'),jdecode(''),'/15243/74264.html','true',[],'',''],
		['PAGE','74273',jdecode('Fox+News+Austin'),jdecode(''),'/15243/74273.html','true',[],'',''],
		['PAGE','9301',jdecode('Channel+5+News+in+Texas'),jdecode(''),'/15243/9301.html','true',[],'',''],
		['PAGE','15222',jdecode('Star+Telegram+News+Article'),jdecode(''),'/15243/15222.html','true',[],'',''],
		['PAGE','22201',jdecode('Cox.net+West+Texas+Local+'),jdecode(''),'/15243/22201.html','true',[],'',''],
		['PAGE','36701',jdecode('Puppy+Pipeline'),jdecode(''),'/15243/36701.html','true',[],'',''],
		['PAGE','63101',jdecode('AKC+Suspension'),jdecode(''),'/15243/63101.html','true',[],'','']
	],'',''],
	['PAGE','63122',jdecode('Buyer+Beware%21%21%21'),jdecode(''),'/63122/index.html','true',[ 
		['PAGE','73721',jdecode('Epuppypro%2FLobopuppies+'),jdecode(''),'/63122/73721.html','true',[],'','']
	],'',''],
	['PAGE','1694',jdecode('Are+you+a+victim+%3F'),jdecode(''),'/1694/index.html','true',[ 
		['PAGE','4401',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/1694/4401.html','false',[],'',''],
		['PAGE','20101',jdecode('Your+next+steps'),jdecode(''),'/1694/20101.html','true',[],'','']
	],'',''],
	['PAGE','18922',jdecode('In+Memory+of'),jdecode(''),'/18922/index.html','true',[ 
		['PAGE','1778',jdecode('Brooklyn%26%23x27%3Bs+Story'),jdecode(''),'/18922/1778.html','true',[],'',''],
		['PAGE','18943',jdecode('Piper%26%23x27%3Bs+Story'),jdecode(''),'/18922/18943.html','true',[],'',''],
		['PAGE','73643',jdecode('Bertha%26%23x27%3Bs+Story'),jdecode(''),'/18922/73643.html','true',[],'',''],
		['PAGE','73971',jdecode('Zoey%26%23x27%3Bs+Story'),jdecode(''),'/18922/73971.html','true',[],'','']
	],'',''],
	['PAGE','18964',jdecode('In+Honor+of'),jdecode(''),'/18964/index.html','true',[ 
		['PAGE','1652',jdecode('Meat+and+Taters+Story'),jdecode(''),'/18964/1652.html','true',[],'',''],
		['PAGE','30201',jdecode('Guinness%26%23x27%3Bs+Story'),jdecode(''),'/18964/30201.html','true',[],'',''],
		['PAGE','73835',jdecode('Pag%26%23x27%3Bs+Story'),jdecode(''),'/18964/73835.html','true',[],'',''],
		['PAGE','74672',jdecode('Lexie%26%23x27%3Bs+Story'),jdecode(''),'/18964/74672.html','true',[],'','']
	],'',''],
	['PAGE','34401',jdecode('About+Bulldogs'),jdecode(''),'/34401/index.html','true',[ 
		['PAGE','33522',jdecode('The+Bulldog+Standard'),jdecode(''),'/34401/33522.html','true',[],'',''],
		['PAGE','33501',jdecode('Bringing+Home+a+Baby'),jdecode(''),'/34401/33501.html','true',[],'',''],
		['PAGE','49801',jdecode('Buying+the+right+bullie%3F'),jdecode(''),'/34401/49801.html','true',[],'',''],
		['PAGE','1904',jdecode('Insurance'),jdecode(''),'/34401/1904.html','true',[],'',''],
		['PAGE','1862',jdecode('Food'),jdecode(''),'/34401/1862.html','true',[],'',''],
		['PAGE','1883',jdecode('Vets+by+State'),jdecode(''),'/34401/1883.html','true',[],'','']
	],'',''],
	['PAGE','46401',jdecode('Bulldog+Conditions'),jdecode(''),'/46401/index.html','true',[ 
		['PAGE','26901',jdecode('Cherry+Eye'),jdecode(''),'/46401/26901.html','true',[],'',''],
		['PAGE','35201',jdecode('Wrinkles+a+problem%3F'),jdecode(''),'/46401/35201.html','true',[],'',''],
		['PAGE','45601',jdecode('Wiggle+them+Hips%21'),jdecode(''),'/46401/45601.html','true',[],'',''],
		['PAGE','43601',jdecode('Quick+Bullie+Remedies'),jdecode(''),'/46401/43601.html','true',[],'',''],
		['PAGE','15801',jdecode('Harmful+things'),jdecode(''),'/46401/15801.html','true',[],'',''],
		['PAGE','48601',jdecode('Heat+Stress'),jdecode(''),'/46401/48601.html','true',[],'',''],
		['PAGE','1820',jdecode('Bulldog+Medicine+Chest'),jdecode(''),'/46401/1820.html','true',[],'','']
	],'',''],
	['PAGE','17801',jdecode('Photo+Album'),jdecode(''),'/17801/index.html','true',[ 
		['PAGE','14301',jdecode('Our+Peeps'),jdecode(''),'/17801/14301.html','true',[],'',''],
		['PAGE','10801',jdecode('The+Meat+%26+Tater+Show'),jdecode(''),'/17801/10801.html','true',[],'',''],
		['PAGE','40901',jdecode('Myspace+Crew'),jdecode(''),'/17801/40901.html','true',[],'','']
	],'',''],
	['PAGE','15201',jdecode('Please+Help%21'),jdecode(''),'/15201.html','true',[],'',''],
	['PAGE','27801',jdecode('Rescue+Stories'),jdecode(''),'/27801/index.html','true',[ 
		['PAGE','39501',jdecode('Dutchie%26%23x27%3Bs+Story'),jdecode(''),'/27801/39501.html','true',[],'',''],
		['PAGE','50901',jdecode('Missy%26%23x27%3Bs+Story'),jdecode(''),'/27801/50901.html','true',[],'',''],
		['PAGE','42901',jdecode('Buster%26%23x27%3Bs+Story'),jdecode(''),'/27801/42901.html','true',[],'','']
	],'',''],
	['PAGE','3706',jdecode('Guestbook'),jdecode(''),'/3706/index.html','true',[ 
		['PAGE','3701',jdecode('Read+Guestbook'),jdecode(''),'/3706/3701.html','false',[],'','']
	],'',''],
	['PAGE','26922',jdecode('The+Wrinkle'),jdecode(''),'/26922/index.html','true',[ 
		['PAGE','27301',jdecode('The+Wrinkle+%28follow+up+page%29'),jdecode(''),'/26922/27301.html','false',[],'','']
	],'',''],
	['PAGE','23801',jdecode('Ask+Meatball'),jdecode(''),'/23801/index.html','true',[ 
		['PAGE','24201',jdecode('Ask+Meatball+%28follow+up+page%29'),jdecode(''),'/23801/24201.html','false',[],'','']
	],'',''],
	['PAGE','57922',jdecode('Celebrity+Bulldogs'),jdecode(''),'/57922.html','true',[],'',''],
	['PAGE','12601',jdecode('Favorite+Bullie+Links'),jdecode(''),'/12601.html','true',[],'','']];
var siteelementCount=61;
theSitetree.topTemplateName='Contrast';
theSitetree.paletteFamily='363C95';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='16627';
theSitetree.graphicsetId='12215';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Contrast',
				paletteFamily: 	'363C95',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'16627',
				graphicsetId: 	'12215',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-3706AHW050INX34W']={
webappId:    '1002',
documentId:  '3706',
internalId:  '3706AHW050INX34W',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1601',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-219906']={
webappId:    '1501',
documentId:  '1601',
internalId:  '219906',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1601',
internalId:  '',
customField: '20081118-073337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19701',
internalId:  '',
customField: '20070811-115739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18901',
internalId:  '',
customField: '20070518-052331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74672',
internalId:  '',
customField: '20081117-080058'
};
webappMappings['7060']=webappMappings['7060-d5242e9736832f464dcac64814e882f9']={
webappId:    '7060',
documentId:  '10801',
internalId:  'd5242e9736832f464dcac64814e882f9',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-7e13657101011d486d7f6926eaf5d888']={
webappId:    '7060',
documentId:  '14301',
internalId:  '7e13657101011d486d7f6926eaf5d888',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-c81b9ab6a125fd9617b03eb6db5e3491']={
webappId:    '7060',
documentId:  '40901',
internalId:  'c81b9ab6a125fd9617b03eb6db5e3491',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-9398']={
webappId:    '7008',
documentId:  '23801',
internalId:  '9398',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-9399']={
webappId:    '7008',
documentId:  '26922',
internalId:  '9399',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70101',
internalId:  '',
customField: '20071103-093421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74255',
internalId:  '',
customField: '20081002-092937'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15243',
internalId:  '',
customField: '20081002-092548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74264',
internalId:  '',
customField: '20081002-093509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74273',
internalId:  '',
customField: '20081002-093925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9301',
internalId:  '',
customField: '20070502-182402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15222',
internalId:  '',
customField: '20070507-130845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22201',
internalId:  '',
customField: '20070514-190400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36701',
internalId:  '',
customField: '20070604-153424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63101',
internalId:  '',
customField: '20070731-134123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63122',
internalId:  '',
customField: '20081117-072504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73721',
internalId:  '',
customField: '20081117-073805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1694',
internalId:  '',
customField: '20070601-112738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4401',
internalId:  '',
customField: '20070910-120824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20101',
internalId:  '',
customField: '20070522-215827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18922',
internalId:  '',
customField: '20080709-133704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1778',
internalId:  '',
customField: '20080215-162036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18943',
internalId:  '',
customField: '20070524-080123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73643',
internalId:  '',
customField: '20080709-123136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73971',
internalId:  '',
customField: '20080709-131735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18964',
internalId:  '',
customField: '20081117-073900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1652',
internalId:  '',
customField: '20070811-120219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30201',
internalId:  '',
customField: '20070521-130800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73835',
internalId:  '',
customField: '20080709-130230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34401',
internalId:  '',
customField: '20070627-123159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33522',
internalId:  '',
customField: '20070619-190117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33501',
internalId:  '',
customField: '20070524-082501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49801',
internalId:  '',
customField: '20070627-122253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1904',
internalId:  '',
customField: '20070627-124149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1862',
internalId:  '',
customField: '20070611-135118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1883',
internalId:  '',
customField: '20070520-163146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46401',
internalId:  '',
customField: '20071005-174816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26901',
internalId:  '',
customField: '20070619-185253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35201',
internalId:  '',
customField: '20070619-185228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45601',
internalId:  '',
customField: '20070619-185040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43601',
internalId:  '',
customField: '20081002-094729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15801',
internalId:  '',
customField: '20070507-135739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48601',
internalId:  '',
customField: '20070626-104352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1820',
internalId:  '',
customField: '20070518-053211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17801',
internalId:  '',
customField: '20070615-084550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14301',
internalId:  '',
customField: '20070509-192901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10801',
internalId:  '',
customField: '20070504-085433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40901',
internalId:  '',
customField: '20070615-091954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15201',
internalId:  '',
customField: '20080709-112520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27801',
internalId:  '',
customField: '20070627-121733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39501',
internalId:  '',
customField: '20070611-140511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50901',
internalId:  '',
customField: '20070627-121009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42901',
internalId:  '',
customField: '20070614-213106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3706',
internalId:  '',
customField: '20070509-152649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3701',
internalId:  '',
customField: '20070423-173745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26922',
internalId:  '',
customField: '20080215-162421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27301',
internalId:  '',
customField: '20070910-120416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23801',
internalId:  '',
customField: '20070518-055157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24201',
internalId:  '',
customField: '20070515-113512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57922',
internalId:  '',
customField: '20070716-162503'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12601',
internalId:  '',
customField: '20080215-162157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74744',
internalId:  '',
customField: '20081117-092939'
};
webappMappings['7008']=webappMappings['7008-9397']={
webappId:    '7008',
documentId:  '1694',
internalId:  '9397',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INX34W';
var companyName   = 'Bulldog+Voice';
var htmlTitle	  = 'For+the+Love+of+Bulldogs';
var metaKeywords  = 'English+Bulldogs%2C+epuppypro.com%2C+lobopuppies.com%2C+Meatball+and+TaterTot%2C+Courtney+Vaux%2C+Puppy+Importing%2C+Russia%2C+Puppies%2C+Bullies%2C+Bullie+Gear%2C+Puppy+Tee-Shirts%2C+Bulldog+Voice%2C+BulldogVoice%2C+Puppy+Mills%2C+Bulldog+Brokers%2C+Innovative+Puppy+Products%2C+Epuppypro%2C+lobopuppies%2C+Danielle+ONeil%2C+Bullie+Gear%2C+Bulldog+Puppy+litter%2C+puppy+litter%2C+Superstar+Bulldogs%2C+Superior+Bulldogs%2C+Bulldogs%2C+Elite+Bully%2C+Bulldog+Ravine%2C+The+wrong+puppy';
var metaContents  = 'Puppy+Importing%2C+English+Bulldogs%2C+Meatball+and+Tatertot%2C+English+Bulldogs%2C+epuppypro.com%2C+lobopuppies.com%2C+Meatball+and+TaterTot%2C+Courtney+Vaux%2C+Puppy+Importing%2C+Russia%2C+Puppies%2C+Bullies%2C+Bullie+Gear%2C+Puppy+Tee-Shirts%2C+Bulldog+Voice%2C+Epuppypro%2C+E+Puppy+Pro%2C+Texas%2C+Bulldog+Puppies%2C+Danielle+O+Neil%2C+Bulldog+Ravine%2C+The+wrong+puppy';
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();
};
