/* [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','4429',jdecode('Home'),jdecode(''), jdecode('%2F4429.html'), 'true',[],'',''],
	['PAGE','286001',jdecode('News+2012'),jdecode(''), jdecode('%2F286001%2Findex.html'), 'true',[ 
		['PAGE','226101',jdecode('+2011'),jdecode(''), jdecode('%2F286001%2F226101.html'), 'true',[],'',''],
		['PAGE','184001',jdecode('2010'),jdecode(''), jdecode('%2F286001%2F184001.html'), 'true',[],'',''],
		['PAGE','142101',jdecode('2009'),jdecode(''), jdecode('%2F286001%2F142101.html'), 'true',[],'',''],
		['PAGE','108461',jdecode('2008'),jdecode(''), jdecode('%2F286001%2F108461.html'), 'true',[],'',''],
		['PAGE','103916',jdecode('2007'),jdecode(''), jdecode('%2F286001%2F103916.html'), 'true',[],'',''],
		['PAGE','81665',jdecode('2006'),jdecode(''), jdecode('%2F286001%2F81665.html'), 'true',[],'',''],
		['PAGE','64185',jdecode('2005'),jdecode(''), jdecode('%2F286001%2F64185.html'), 'true',[],'',''],
		['PAGE','20803',jdecode('2004'),jdecode(''), jdecode('%2F286001%2F20803.html'), 'true',[],'','']
	],'',''],
	['PAGE','4486',jdecode('Rassenportrait'),jdecode(''), jdecode('%2F4486.html'), 'true',[],'',''],
	['PAGE','4540',jdecode('Wir+%C3%BCber+uns'),jdecode(''), jdecode('%2F4540.html'), 'true',[],'',''],
	['PAGE','16539',jdecode('Unsere+Curlies'),jdecode(''), jdecode('%2F16539%2Findex.html'), 'true',[ 
		['PAGE','16566',jdecode('Ch.+Engadin+Star%26%23x27%3Bs+Alinghi'),jdecode(''), jdecode('%2F16539%2F16566.html'), 'true',[],'',''],
		['PAGE','41375',jdecode('Ch.+Anatnaq+Arthur+%22Salo%22'),jdecode(''), jdecode('%2F16539%2F41375.html'), 'true',[],'',''],
		['PAGE','152901',jdecode('Engadin+Star%26%23x27%3Bs+Dream+%22Duscha%22'),jdecode(''), jdecode('%2F16539%2F152901.html'), 'true',[],'',''],
		['PAGE','160101',jdecode('Engadin+Star%26%23x27%3Bs+Ginger'),jdecode(''), jdecode('%2F16539%2F160101.html'), 'true',[],'',''],
		['PAGE','220101',jdecode('J.Ch+Engadin+Star%26%23x27%3Bs+Havanna'),jdecode(''), jdecode('%2F16539%2F220101.html'), 'true',[],'',''],
		['PAGE','106845',jdecode('Ch.+Anatnaq+Chester'),jdecode(''), jdecode('%2F16539%2F106845.html'), 'true',[],'','']
	],'',''],
	['PAGE','18079',jdecode('Welpen'),jdecode(''), jdecode('%2F18079%2Findex.html'), 'true',[ 
		['PAGE','248801',jdecode('Info+zu+Welpen+von+uns'),jdecode(''), jdecode('%2F18079%2F248801.html'), 'true',[],'',''],
		['PAGE','4567',jdecode('Wurf+Planung'),jdecode(''), jdecode('%2F18079%2F4567.html'), 'true',[],'',''],
		['PAGE','4594',jdecode('A-Wurf%2C+24.03.2003'),jdecode(''), jdecode('%2F18079%2F4594.html'), 'true',[],'',''],
		['PAGE','19643',jdecode('B-Wurf%2C+06.05.2004'),jdecode(''), jdecode('%2F18079%2F19643.html'), 'true',[],'',''],
		['PAGE','70073',jdecode('C-Wurf%2C+13.03.2006'),jdecode(''), jdecode('%2F18079%2F70073.html'), 'true',[],'',''],
		['PAGE','92165',jdecode('D-Wurf%2C+05-06.10.2006'),jdecode(''), jdecode('%2F18079%2F92165.html'), 'true',[],'',''],
		['PAGE','103089',jdecode('E-Wurf%2C+29.05.2007'),jdecode(''), jdecode('%2F18079%2F103089.html'), 'true',[],'',''],
		['PAGE','107161',jdecode('F-Wurf%2C+17.03.2008'),jdecode(''), jdecode('%2F18079%2F107161.html'), 'true',[],'',''],
		['PAGE','117401',jdecode('G-Wurf%2C+01.05.2009'),jdecode(''), jdecode('%2F18079%2F117401.html'), 'true',[],'',''],
		['PAGE','198301',jdecode('H-Wurf%2C+11.%2F12.08.2010'),jdecode(''), jdecode('%2F18079%2F198301.html'), 'true',[],'',''],
		['PAGE','160122',jdecode('I-Wurf%2C+11.03.2011'),jdecode(''), jdecode('%2F18079%2F160122.html'), 'true',[],'',''],
		['PAGE','254101',jdecode('J-Wurf+2012'),jdecode(''), jdecode('%2F18079%2F254101.html'), 'true',[],'','']
	],'',''],
	['PAGE','51578',jdecode('Nachzucht+'),jdecode(''), jdecode('%2F51578%2Findex.html'), 'true',[ 
		['PAGE','51978',jdecode('A-Wurf'),jdecode(''), jdecode('%2F51578%2F51978.html'), 'true',[],'',''],
		['PAGE','54765',jdecode('B-Wurf'),jdecode(''), jdecode('%2F51578%2F54765.html'), 'true',[],'',''],
		['PAGE','92192',jdecode('C-Wurf'),jdecode(''), jdecode('%2F51578%2F92192.html'), 'true',[],'',''],
		['PAGE','103943',jdecode('D-Wurf'),jdecode(''), jdecode('%2F51578%2F103943.html'), 'true',[],'',''],
		['PAGE','107307',jdecode('E-Wurf'),jdecode(''), jdecode('%2F51578%2F107307.html'), 'true',[],'',''],
		['PAGE','121401',jdecode('F-Wurf'),jdecode(''), jdecode('%2F51578%2F121401.html'), 'true',[],'',''],
		['PAGE','160143',jdecode('G-Wurf'),jdecode(''), jdecode('%2F51578%2F160143.html'), 'true',[],'',''],
		['PAGE','220122',jdecode('H-Wurf'),jdecode(''), jdecode('%2F51578%2F220122.html'), 'true',[],'',''],
		['PAGE','254122',jdecode('I-Wurf'),jdecode(''), jdecode('%2F51578%2F254122.html'), 'true',[],'','']
	],'',''],
	['PAGE','279701',jdecode('Zuchthunde'),jdecode(''), jdecode('%2F279701%2Findex.html'), 'true',[ 
		['PAGE','279801',jdecode('R%C3%BCden'),jdecode(''), jdecode('%2F279701%2F279801.html'), 'true',[],'',''],
		['PAGE','279822',jdecode('H%C3%BCndinnen'),jdecode(''), jdecode('%2F279701%2F279822.html'), 'true',[],'','']
	],'',''],
	['PAGE','105280',jdecode('Wir+gratulieren'),jdecode(''), jdecode('%2F105280.html'), 'true',[],'',''],
	['PAGE','286101',jdecode('Fotos++ab+2012'),jdecode(''), jdecode('%2F286101.html'), 'true',[],'',''],
	['PAGE','134401',jdecode('Fotos+bis+2011'),jdecode(''), jdecode('%2F134401.html'), 'true',[],'',''],
	['PAGE','45578',jdecode('Unsere+andern+Tiere'),jdecode(''), jdecode('%2F45578%2Findex.html'), 'true',[ 
		['PAGE','45659',jdecode('Dream'),jdecode(''), jdecode('%2F45578%2F45659.html'), 'true',[],'',''],
		['PAGE','127701',jdecode('Jadu'),jdecode(''), jdecode('%2F45578%2F127701.html'), 'true',[],'',''],
		['PAGE','45686',jdecode('Joy'),jdecode(''), jdecode('%2F45578%2F45686.html'), 'true',[],'',''],
		['PAGE','101742',jdecode('JCh.Caballus+Yummy+%22Naira%22'),jdecode(''), jdecode('%2F45578%2F101742.html'), 'true',[],'','']
	],'',''],
	['PAGE','61165',jdecode('In+Memoria'),jdecode(''), jdecode('%2F61165%2Findex.html'), 'true',[ 
		['PAGE','4513',jdecode('Ch.+Hillary+Curl+v.+Britho'),jdecode(''), jdecode('%2F61165%2F4513.html'), 'true',[],'',''],
		['PAGE','45632',jdecode('Musta'),jdecode(''), jdecode('%2F61165%2F45632.html'), 'true',[],'',''],
		['PAGE','45605',jdecode('Ukea'),jdecode(''), jdecode('%2F61165%2F45605.html'), 'true',[],'',''],
		['PAGE','54792',jdecode('Kimba%2C+Yvan%2C+Juscha'),jdecode(''), jdecode('%2F61165%2F54792.html'), 'true',[],'',''],
		['PAGE','251201',jdecode('Engadin+Star%26%23x27%3Bs+Hunde'),jdecode(''), jdecode('%2F61165%2F251201.html'), 'true',[],'','']
	],'',''],
	['PAGE','41402',jdecode('Seminare+%26+Treffen'),jdecode(''), jdecode('%2F41402%2Findex.html'), 'true',[ 
		['PAGE','164901',jdecode('Seminar+August+2009'),jdecode(''), jdecode('%2F41402%2F164901.html'), 'true',[],'',''],
		['PAGE','208601',jdecode('WCS+UK+2010'),jdecode(''), jdecode('%2F41402%2F208601.html'), 'true',[],'',''],
		['PAGE','208622',jdecode('Seminar+August+2010'),jdecode(''), jdecode('%2F41402%2F208622.html'), 'true',[],'',''],
		['PAGE','265001',jdecode('Seminar+August+2011'),jdecode(''), jdecode('%2F41402%2F265001.html'), 'true',[],'',''],
		['PAGE','267301',jdecode('H-Wurf+Treffen+2011'),jdecode(''), jdecode('%2F41402%2F267301.html'), 'true',[],'','']
	],'',''],
	['PAGE','4621',jdecode('Kontakt'),jdecode(''), jdecode('%2F4621.html'), 'true',[],'',''],
	['PAGE','41476',jdecode('Ihr+Weg+zu+uns'),jdecode(''), jdecode('%2F41476.html'), 'true',[],'',''],
	['PAGE','99141',jdecode('Anfahrt'),jdecode(''), jdecode('%2F99141.html'), 'true',[],'',''],
	['PAGE','4648',jdecode('Links'),jdecode(''), jdecode('%2F4648.html'), 'true',[],'',''],
	['PAGE','81697',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F81697%2Findex.html'), 'true',[ 
		['PAGE','81698',jdecode('Eintr%C3%A4ge'),jdecode(''), jdecode('%2F81697%2F81698.html'), 'false',[],'','']
	],'',''],
	['PAGE','108884',jdecode('Begriffe+%22Hundewelt%22'),jdecode(''), jdecode('%2F108884.html'), 'true',[],'','']];
var siteelementCount=72;
theSitetree.topTemplateName='Deepcolor';
theSitetree.paletteFamily='5583CB';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10349';
theSitetree.graphicsetId='10469';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='154186';
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: 			'Deepcolor',
				paletteFamily: 	'5583CB',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10349',
				graphicsetId: 	'10469',
				contentColor: 	'000000',
				contentBGColor: '154186',
				a_color: 		'5583CB',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4429',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142101',
internalId:  '',
customField: '20100303-211153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108461',
internalId:  '',
customField: '20081229-204720'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '41476',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['1002']=webappMappings['1002-81697ABW0X0INX2DI']={
webappId:    '1002',
documentId:  '81697',
internalId:  '81697ABW0X0INX2DI',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4429',
internalId:  '',
customField: '20120111-163005'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '99141',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16539',
internalId:  '',
customField: '20111021-171750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41375',
internalId:  '',
customField: '20111212-110405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16566',
internalId:  '',
customField: '20111212-110249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134401',
internalId:  '',
customField: '20111219-213621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103916',
internalId:  '',
customField: '20081208-095448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81665',
internalId:  '',
customField: '20061224-164932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64185',
internalId:  '',
customField: '20051224-182451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20803',
internalId:  '',
customField: '20041230-163523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4486',
internalId:  '',
customField: '20070101-195411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4540',
internalId:  '',
customField: '20110919-111610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4513',
internalId:  '',
customField: '20090611-222451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101742',
internalId:  '',
customField: '20110926-092935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106845',
internalId:  '',
customField: '20110319-095901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18079',
internalId:  '',
customField: '20110919-111714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4567',
internalId:  '',
customField: '20110523-135926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4594',
internalId:  '',
customField: '20031223-090027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19643',
internalId:  '',
customField: '20060715-204714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70073',
internalId:  '',
customField: '20070530-193728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92165',
internalId:  '',
customField: '20061219-220646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103089',
internalId:  '',
customField: '20080318-095620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107161',
internalId:  '',
customField: '20080527-221505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117401',
internalId:  '',
customField: '20100813-165535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51578',
internalId:  '',
customField: '20110910-091728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51978',
internalId:  '',
customField: '20071123-092734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54765',
internalId:  '',
customField: '20091017-090121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92192',
internalId:  '',
customField: '20080511-175653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103943',
internalId:  '',
customField: '20091017-085933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107307',
internalId:  '',
customField: '20090516-221203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121401',
internalId:  '',
customField: '20090428-214814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105280',
internalId:  '',
customField: '20111127-093515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45578',
internalId:  '',
customField: '20110919-110002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45659',
internalId:  '',
customField: '20080730-110701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127701',
internalId:  '',
customField: '20091018-211617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45686',
internalId:  '',
customField: '20040824-184057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61165',
internalId:  '',
customField: '20111230-183320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45632',
internalId:  '',
customField: '20070722-210935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45605',
internalId:  '',
customField: '20041207-112542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54792',
internalId:  '',
customField: '20041207-113036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41402',
internalId:  '',
customField: '20110817-203636'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4621',
internalId:  '',
customField: '20110408-175837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41476',
internalId:  '',
customField: '20060715-205609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99141',
internalId:  '',
customField: '20060715-205552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4648',
internalId:  '',
customField: '20120104-170502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81697',
internalId:  '',
customField: '20060103-144728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81698',
internalId:  '',
customField: '20060103-144728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108884',
internalId:  '',
customField: '20080402-153319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160122',
internalId:  '',
customField: '20110523-140720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152901',
internalId:  '',
customField: '20110523-140856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160101',
internalId:  '',
customField: '20111212-110622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160143',
internalId:  '',
customField: '20111105-182805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164901',
internalId:  '',
customField: '20090906-204501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '198301',
internalId:  '',
customField: '20101024-181956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184001',
internalId:  '',
customField: '20110417-201633'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '220101',
internalId:  '',
customField: '20111212-110755'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '208622',
internalId:  '',
customField: '20100827-194207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '208601',
internalId:  '',
customField: '20101202-191339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '220122',
internalId:  '',
customField: '20120111-162935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '248801',
internalId:  '',
customField: '20110523-135815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '226101',
internalId:  '',
customField: '20111223-153002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '251201',
internalId:  '',
customField: '20110507-175933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '265001',
internalId:  '',
customField: '20110817-204105'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '267301',
internalId:  '',
customField: '20110910-125625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '254101',
internalId:  '',
customField: '20110822-082024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '254122',
internalId:  '',
customField: '20110730-204409'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '279701',
internalId:  '-',
customField: '20111127-095242'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '279801',
internalId:  '-',
customField: '20111130-184846'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '279822',
internalId:  '-',
customField: '20111130-184941'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '286001',
internalId:  '-',
customField: '20120111-162801'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '286101',
internalId:  '-',
customField: '20120104-170054'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INX2DI';
var companyName   = 'ENGADIN+STAR%27S+CURLY+COATED+RETRIEVER';
var htmlTitle	  = 'Engadin+Stars.+Curly+Coated+Retriever.+Curlies.+Hundezucht.+Welpen.+Champion.+Hunde.+Zucht.';
var metaKeywords  = 'HundHundezuchtRetrieverCurly+Coated+RetrieverCrulyWelpen';
var metaContents  = 'HundezuchtCurly+Coated+RetrieverWelpen';
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();
};

