/* [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','4597',jdecode('Home'),jdecode(''), jdecode('%2F4597.html'), 'true',[],'',''],
	['PAGE','108623',jdecode('Magyar-Vizsla'),jdecode(''), jdecode('%2F108623%2Findex.html'), 'true',[ 
		['PAGE','142741',jdecode('Geschichte'),jdecode(''), jdecode('%2F108623%2F142741.html'), 'true',[],'',''],
		['PAGE','142768',jdecode('Haltung'),jdecode(''), jdecode('%2F108623%2F142768.html'), 'true',[],'',''],
		['PAGE','142795',jdecode('Wesen'),jdecode(''), jdecode('%2F108623%2F142795.html'), 'true',[],'',''],
		['PAGE','142822',jdecode('Standards'),jdecode(''), jdecode('%2F108623%2F142822.html'), 'true',[],'','']
	],'',''],
	['PAGE','9628',jdecode('Wir+%C3%BCber+uns'),jdecode(''), jdecode('%2F9628%2Findex.html'), 'true',[ 
		['PAGE','143500',jdecode('Die+Zucht'),jdecode(''), jdecode('%2F9628%2F143500.html'), 'true',[],'',''],
		['PAGE','9655',jdecode('Unsere+Ziele'),jdecode(''), jdecode('%2F9628%2F9655.html'), 'true',[],'','']
	],'',''],
	['PAGE','142714',jdecode('Unsere+Hunde'),jdecode(''), jdecode('%2F142714%2Findex.html'), 'true',[ 
		['PAGE','9709',jdecode('Lara'),jdecode(''), jdecode('%2F142714%2F9709.html'), 'true',[],'',''],
		['PAGE','109933',jdecode('Piroska'),jdecode(''), jdecode('%2F142714%2F109933.html'), 'true',[],'',''],
		['PAGE','355611',jdecode('Zsana'),jdecode(''), jdecode('%2F142714%2F355611.html'), 'true',[],'',''],
		['PAGE','346011',jdecode('Iusha'),jdecode(''), jdecode('%2F142714%2F346011.html'), 'true',[],'',''],
		['PAGE','336695',jdecode('in+Memoriam'),jdecode(''), jdecode('%2F142714%2F336695.html'), 'true',[],'','']
	],'',''],
	['PAGE','143731',jdecode('Wurf+2005%3A+Piroska'),jdecode(''), jdecode('%2F143731%2Findex.html'), 'true',[ 
		['PAGE','339161',jdecode('neues+Zuhause'),jdecode(''), jdecode('%2F143731%2F339161.html'), 'true',[],'','']
	],'',''],
	['PAGE','143758',jdecode('Wurf+2006%3A+Lara'),jdecode(''), jdecode('%2F143758%2Findex.html'), 'true',[ 
		['PAGE','350161',jdecode('neues+Zuhause'),jdecode(''), jdecode('%2F143758%2F350161.html'), 'true',[],'','']
	],'',''],
	['PAGE','353697',jdecode('Wurf+2007%3A+Piroska'),jdecode(''), jdecode('%2F353697%2Findex.html'), 'true',[ 
		['PAGE','354271',jdecode('neues+Zuhause'),jdecode(''), jdecode('%2F353697%2F354271.html'), 'true',[],'','']
	],'',''],
	['PAGE','353706',jdecode('Wurf+2007%3A+Iusha'),jdecode(''), jdecode('%2F353706%2Findex.html'), 'true',[ 
		['PAGE','354438',jdecode('neues+Zuhause'),jdecode(''), jdecode('%2F353706%2F354438.html'), 'true',[],'','']
	],'',''],
	['PAGE','354765',jdecode('Wurf+2008%3A+Piroska'),jdecode(''), jdecode('%2F354765%2Findex.html'), 'true',[ 
		['PAGE','355259',jdecode('neues+Zuhause'),jdecode(''), jdecode('%2F354765%2F355259.html'), 'true',[],'','']
	],'',''],
	['PAGE','355620',jdecode('Wurf+2009%3A+Piroska'),jdecode(''), jdecode('%2F355620%2Findex.html'), 'true',[ 
		['PAGE','356156',jdecode('neues+Zuhause'),jdecode(''), jdecode('%2F355620%2F356156.html'), 'true',[],'','']
	],'',''],
	['PAGE','356495',jdecode('Wurf+2009%3A+Lara'),jdecode(''), jdecode('%2F356495%2Findex.html'), 'true',[ 
		['PAGE','356836',jdecode('neues+Zuhause'),jdecode(''), jdecode('%2F356495%2F356836.html'), 'true',[],'','']
	],'',''],
	['PAGE','357840',jdecode('Wurf+2010%3A+Zsana'),jdecode(''), jdecode('%2F357840%2Findex.html'), 'true',[ 
		['PAGE','358168',jdecode('neues+Zuhause'),jdecode(''), jdecode('%2F357840%2F358168.html'), 'true',[],'','']
	],'',''],
	['PAGE','358394',jdecode('Wurf+2011%3A+Zsana'),jdecode(''), jdecode('%2F358394.html'), 'true',[],'',''],
	['PAGE','356960',jdecode('Nachkommen'),jdecode(''), jdecode('%2F356960%2Findex.html'), 'true',[ 
		['PAGE','357030',jdecode('B-Wurf+2009'),jdecode(''), jdecode('%2F356960%2F357030.html'), 'true',[],'',''],
		['PAGE','357039',jdecode('A-Wurf+2009'),jdecode(''), jdecode('%2F356960%2F357039.html'), 'true',[],'',''],
		['PAGE','357048',jdecode('Zs-Wurf+2008'),jdecode(''), jdecode('%2F356960%2F357048.html'), 'true',[],'',''],
		['PAGE','357057',jdecode('W-Wurf+2007'),jdecode(''), jdecode('%2F356960%2F357057.html'), 'true',[],'',''],
		['PAGE','357066',jdecode('V-Wurf+2007'),jdecode(''), jdecode('%2F356960%2F357066.html'), 'true',[],'',''],
		['PAGE','357075',jdecode('U-Wurf+2006'),jdecode(''), jdecode('%2F356960%2F357075.html'), 'true',[],'',''],
		['PAGE','357084',jdecode('T-Wurf+2005'),jdecode(''), jdecode('%2F356960%2F357084.html'), 'true',[],'',''],
		['PAGE','357093',jdecode('S-Wurf+2004'),jdecode(''), jdecode('%2F356960%2F357093.html'), 'true',[],'',''],
		['PAGE','357111',jdecode('O-Wurf+2003'),jdecode(''), jdecode('%2F356960%2F357111.html'), 'true',[],'',''],
		['PAGE','357303',jdecode('N-Wurf+2003'),jdecode(''), jdecode('%2F356960%2F357303.html'), 'true',[],'',''],
		['PAGE','357120',jdecode('M-Wurf+2002'),jdecode(''), jdecode('%2F356960%2F357120.html'), 'true',[],'',''],
		['PAGE','357129',jdecode('L-Wurf+2001'),jdecode(''), jdecode('%2F356960%2F357129.html'), 'true',[],'',''],
		['PAGE','357138',jdecode('K-Wurf+2000'),jdecode(''), jdecode('%2F356960%2F357138.html'), 'true',[],'',''],
		['PAGE','357147',jdecode('J-Wurf+2000'),jdecode(''), jdecode('%2F356960%2F357147.html'), 'true',[],'',''],
		['PAGE','357156',jdecode('H-Wurf+1999'),jdecode(''), jdecode('%2F356960%2F357156.html'), 'true',[],'',''],
		['PAGE','357165',jdecode('G-Wurf+1998'),jdecode(''), jdecode('%2F356960%2F357165.html'), 'true',[],'',''],
		['PAGE','357174',jdecode('F-Wurf+1998'),jdecode(''), jdecode('%2F356960%2F357174.html'), 'true',[],'',''],
		['PAGE','357183',jdecode('D-Wurf+1997'),jdecode(''), jdecode('%2F356960%2F357183.html'), 'true',[],'',''],
		['PAGE','357192',jdecode('C-Wurf+1996'),jdecode(''), jdecode('%2F356960%2F357192.html'), 'true',[],'',''],
		['PAGE','357201',jdecode('B-Wurf+1995'),jdecode(''), jdecode('%2F356960%2F357201.html'), 'true',[],'',''],
		['PAGE','357210',jdecode('T-Wurf+1993'),jdecode(''), jdecode('%2F356960%2F357210.html'), 'true',[],'','']
	],'',''],
	['PAGE','341614',jdecode('Jagd'),jdecode(''), jdecode('%2F341614.html'), 'true',[],'',''],
	['PAGE','348665',jdecode('Kontakt'),jdecode(''), jdecode('%2F348665%2Findex.html'), 'true',[ 
		['PAGE','104302',jdecode('Unser+Standort'),jdecode(''), jdecode('%2F348665%2F104302.html'), 'true',[],'',''],
		['PAGE','104621',jdecode('Der+Weg+zu+uns'),jdecode(''), jdecode('%2F348665%2F104621.html'), 'true',[],'','']
	],'',''],
	['PAGE','105915',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F105915%2Findex.html'), 'true',[ 
		['PAGE','105916',jdecode('Eintr%C3%A4ge'),jdecode(''), jdecode('%2F105915%2F105916.html'), 'false',[],'','']
	],'',''],
	['PAGE','9871',jdecode('Vizsla-Club'),jdecode(''), jdecode('%2F9871.html'), 'true',[],'',''],
	['PAGE','142849',jdecode('Literatur'),jdecode(''), jdecode('%2F142849.html'), 'true',[],'',''],
	['PAGE','107144',jdecode('Links'),jdecode(''), jdecode('%2F107144.html'), 'true',[],'',''],
	['PAGE','338046',jdecode('Glossar'),jdecode(''), jdecode('%2F338046.html'), 'true',[],'','']];
var siteelementCount=64;
theSitetree.topTemplateName='Universal';
theSitetree.paletteFamily='1D186D';
theSitetree.keyvisualId='1670';
theSitetree.keyvisualName='freizeit.jpg';
theSitetree.fontsetId='276';
theSitetree.graphicsetId='339';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Universal',
				paletteFamily: 	'1D186D',
				keyvisualId: 	'1670',
				keyvisualName: 	'freizeit.jpg',
				fontsetId: 		'276',
				graphicsetId: 	'339',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'1D186D',
				b_color: 		'A0A0A0',
				c_color: 		'000000',
				d_color: 		'CDCDD4',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1501']=webappMappings['1501-555157']={
webappId:    '1501',
documentId:  '4597',
internalId:  '555157',
customField: '1501'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '104302',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4597',
internalId:  '1006',
customField: '1006'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '104621',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108623',
internalId:  '',
customField: '20060105-200834'
};
webappMappings['1002']=webappMappings['1002-105915ABW0X0INXX4O']={
webappId:    '1002',
documentId:  '105915',
internalId:  '105915ABW0X0INXX4O',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4597',
internalId:  '',
customField: '20111120-132129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142741',
internalId:  '',
customField: '20051216-145517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142768',
internalId:  '',
customField: '20060103-211927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142795',
internalId:  '',
customField: '20060103-214526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142822',
internalId:  '',
customField: '20051216-152952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9628',
internalId:  '',
customField: '20100713-091031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143500',
internalId:  '',
customField: '20060126-130751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9655',
internalId:  '',
customField: '20060126-111227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142714',
internalId:  '',
customField: '20120108-111011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9709',
internalId:  '',
customField: '20100519-135402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109933',
internalId:  '',
customField: '20090511-103315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '355611',
internalId:  '',
customField: '20120108-111248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '346011',
internalId:  '',
customField: '20090504-164218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '336695',
internalId:  '',
customField: '20081110-101019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143731',
internalId:  '',
customField: '20060117-102812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '339161',
internalId:  '',
customField: '20060421-205148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143758',
internalId:  '',
customField: '20080519-184736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '350161',
internalId:  '',
customField: '20060501-110720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '353697',
internalId:  '',
customField: '20070502-084810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '354271',
internalId:  '',
customField: '20070428-192737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '353706',
internalId:  '',
customField: '20070502-092216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '354438',
internalId:  '',
customField: '20070702-092754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '354765',
internalId:  '',
customField: '20080707-160131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '355259',
internalId:  '',
customField: '20080802-112405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '355620',
internalId:  '',
customField: '20090309-092229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '341614',
internalId:  '',
customField: '20080316-093843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '348665',
internalId:  '',
customField: '20060405-222730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104302',
internalId:  '',
customField: '20051228-103109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '104621',
internalId:  '',
customField: '20060107-162332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105915',
internalId:  '',
customField: '20051208-222352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105916',
internalId:  '',
customField: '20051208-222352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9871',
internalId:  '',
customField: '20051212-142304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142849',
internalId:  '',
customField: '20051228-103646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107144',
internalId:  '',
customField: '20091119-102527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '338046',
internalId:  '',
customField: '20060104-193739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '356156',
internalId:  '',
customField: '20090310-201933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '356495',
internalId:  '',
customField: '20100112-172021'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '356836',
internalId:  '',
customField: '20100112-175507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '356960',
internalId:  '',
customField: '20100519-170357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357039',
internalId:  '',
customField: '20110221-105925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357210',
internalId:  '',
customField: '20100519-152916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357201',
internalId:  '',
customField: '20100519-152849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357192',
internalId:  '',
customField: '20100528-151434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357183',
internalId:  '',
customField: '20100519-152809'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357174',
internalId:  '',
customField: '20100519-152756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357165',
internalId:  '',
customField: '20100531-192524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357156',
internalId:  '',
customField: '20100525-114928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357147',
internalId:  '',
customField: '20100519-152636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357138',
internalId:  '',
customField: '20100528-150040'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357129',
internalId:  '',
customField: '20100531-192034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357120',
internalId:  '',
customField: '20100525-115052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357303',
internalId:  '',
customField: '20100530-112711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357111',
internalId:  '',
customField: '20110221-111043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357093',
internalId:  '',
customField: '20110221-105741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357084',
internalId:  '',
customField: '20100528-145901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357075',
internalId:  '',
customField: '20100530-112238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357066',
internalId:  '',
customField: '20100528-145816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357057',
internalId:  '',
customField: '20100530-110820'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357048',
internalId:  '',
customField: '20100807-082115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357030',
internalId:  '',
customField: '20100519-152121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '357840',
internalId:  '',
customField: '20111111-172018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '358168',
internalId:  '',
customField: '20110221-131842'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '358394',
internalId:  '-',
customField: '20120108-111618'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXX4O';
var companyName   = 'M+a+g+y+a+r++-++V+i+z+s+l+a++-++Z+u+c+h+t';
var htmlTitle	  = 'Dasens+Magyar-Vizsla-Zucht';
var metaKeywords  = 'Lorenz+Dasen+Uschi+Dasen+Vizsla+Magyar+Zucht+Hundezucht+T%C3%A4uffelen+Schweiz+Jagdhund+Vorstehhund+Ungarischer+Jagdhund+Welpen+Ungarischer+Kurzhaar+Ungarisch+Dasens+Dasens';
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();
};

