/* [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','4555',jdecode('Home'),jdecode(''),'/4555.html','true',[],'',''],
	['PAGE','115143',jdecode('NEWS-Blog'),jdecode(''),'/115143.html','true',[],'',''],
	['PAGE','21464',jdecode('unser+Heim'),jdecode(''),'/21464.html','true',[],'',''],
	['PAGE','4639',jdecode('Dogs'),jdecode(''),'/4639/index.html','true',[ 
		['PAGE','21473',jdecode('Buster'),jdecode(''),'/4639/21473.html','true',[],'',''],
		['PAGE','21482',jdecode('Tascha'),jdecode(''),'/4639/21482.html','true',[],'',''],
		['PAGE','21491',jdecode('Anuschka'),jdecode(''),'/4639/21491.html','true',[],'',''],
		['PAGE','21500',jdecode('Sibiria'),jdecode(''),'/4639/21500.html','true',[],'',''],
		['PAGE','21518',jdecode('Tadita'),jdecode(''),'/4639/21518.html','true',[],'',''],
		['PAGE','92601',jdecode('Shane'),jdecode(''),'/4639/92601.html','true',[],'',''],
		['PAGE','108301',jdecode('Tegan'),jdecode(''),'/4639/108301.html','true',[],'',''],
		['PAGE','110701',jdecode('Shadowfax'),jdecode(''),'/4639/110701.html','true',[],'','']
	],'',''],
	['PAGE','64101',jdecode('Horses'),jdecode(''),'/64101.html','true',[],'',''],
	['PAGE','4612',jdecode('Musher'),jdecode(''),'/4612/index.html','true',[ 
		['PAGE','21527',jdecode('Alex'),jdecode(''),'/4612/21527.html','true',[],'',''],
		['PAGE','21536',jdecode('Dani'),jdecode(''),'/4612/21536.html','true',[],'','']
	],'',''],
	['PAGE','21409',jdecode('Schlittenrennen'),jdecode(''),'/21409/index.html','true',[ 
		['PAGE','131101',jdecode('Booties-Sponsoring'),jdecode(''),'/21409/131101.html','true',[],'',''],
		['PAGE','21545',jdecode('2006'),jdecode(''),'/21409/21545.html','true',[],'',''],
		['PAGE','21554',jdecode('2008'),jdecode(''),'/21409/21554.html','true',[],'',''],
		['PAGE','106501',jdecode('2009'),jdecode(''),'/21409/106501.html','true',[],'',''],
		['PAGE','126201',jdecode('2010'),jdecode(''),'/21409/126201.html','true',[],'',''],
		['PAGE','144001',jdecode('2011'),jdecode(''),'/21409/144001.html','true',[],'','']
	],'',''],
	['PAGE','21581',jdecode('Wagenrennen'),jdecode(''),'/21581/index.html','true',[ 
		['PAGE','21563',jdecode('2003'),jdecode(''),'/21581/21563.html','true',[],'',''],
		['PAGE','21572',jdecode('2004'),jdecode(''),'/21581/21572.html','true',[],'',''],
		['PAGE','21400',jdecode('2005'),jdecode(''),'/21581/21400.html','true',[],'',''],
		['PAGE','21590',jdecode('2006'),jdecode(''),'/21581/21590.html','true',[],'',''],
		['PAGE','21599',jdecode('2007'),jdecode(''),'/21581/21599.html','true',[],'',''],
		['PAGE','99501',jdecode('2008'),jdecode(''),'/21581/99501.html','true',[],'',''],
		['PAGE','126222',jdecode('2009'),jdecode(''),'/21581/126222.html','true',[],'',''],
		['PAGE','141501',jdecode('2010'),jdecode(''),'/21581/141501.html','true',[],'','']
	],'',''],
	['PAGE','47201',jdecode('Hundeschule'),jdecode(''),'/47201.html','true',[],'',''],
	['PAGE','21090',jdecode('Events+2005-07'),jdecode(''),'/21090/index.html','true',[ 
		['PAGE','40622',jdecode('Arosa+05'),jdecode(''),'/21090/40622.html','true',[],'',''],
		['PAGE','40643',jdecode('Military+SKNH+06'),jdecode(''),'/21090/40643.html','true',[],'',''],
		['PAGE','40664',jdecode('Eisee+06'),jdecode(''),'/21090/40664.html','true',[],'',''],
		['PAGE','36901',jdecode('Pontresina+07'),jdecode(''),'/21090/36901.html','true',[],'',''],
		['PAGE','45401',jdecode('Lenzerheide+07'),jdecode(''),'/21090/45401.html','true',[],'',''],
		['PAGE','38201',jdecode('Jungfraujoch+07'),jdecode(''),'/21090/38201.html','true',[],'',''],
		['PAGE','45422',jdecode('Tiefschnee+07'),jdecode(''),'/21090/45422.html','true',[],'',''],
		['PAGE','48801',jdecode('Z%C3%BCri+Zoo+07'),jdecode(''),'/21090/48801.html','true',[],'',''],
		['PAGE','45443',jdecode('Bodyflying+07'),jdecode(''),'/21090/45443.html','true',[],'',''],
		['PAGE','55801',jdecode('Kollbrunn+07'),jdecode(''),'/21090/55801.html','true',[],'',''],
		['PAGE','59901',jdecode('Zofingen+07'),jdecode(''),'/21090/59901.html','true',[],'',''],
		['PAGE','45464',jdecode('Bretagne+07'),jdecode(''),'/21090/45464.html','true',[],'','']
	],'',''],
	['PAGE','120001',jdecode('Events+2009'),jdecode(''),'/120001/index.html','true',[ 
		['PAGE','120022',jdecode('Military+Aarburg+Mai+09'),jdecode(''),'/120001/120022.html','true',[],'',''],
		['PAGE','120043',jdecode('Struppirennen+Mai+09'),jdecode(''),'/120001/120043.html','true',[],'',''],
		['PAGE','122301',jdecode('Military+Gebenstorf'),jdecode(''),'/120001/122301.html','true',[],'',''],
		['PAGE','126243',jdecode('Bretagne+09'),jdecode(''),'/120001/126243.html','true',[],'','']
	],'',''],
	['PAGE','21099',jdecode('In+Gedenken'),jdecode(''),'/21099/index.html','true',[ 
		['PAGE','26401',jdecode('Amber+Knight'),jdecode(''),'/21099/26401.html','true',[],'',''],
		['PAGE','26422',jdecode('Siobh%C3%A0n'),jdecode(''),'/21099/26422.html','true',[],'',''],
		['PAGE','21509',jdecode('Ares'),jdecode(''),'/21099/21509.html','true',[],'','']
	],'',''],
	['PAGE','4747',jdecode('Galerie'),jdecode(''),'/4747/index.html','true',[ 
		['PAGE','21671',jdecode('Rudel'),jdecode(''),'/4747/21671.html','true',[],'',''],
		['PAGE','52201',jdecode('Training'),jdecode(''),'/4747/52201.html','true',[],'','']
	],'',''],
	['PAGE','50501',jdecode('Links'),jdecode(''),'/50501.html','true',[],'',''],
	['PAGE','97601',jdecode('Kontakt'),jdecode(''),'/97601.html','true',[],'',''],
	['PAGE','115122',jdecode('Suchen'),jdecode(''),'/115122.html','true',[],'','']];
var siteelementCount=61;
theSitetree.topTemplateName='Circulation';
theSitetree.paletteFamily='FC2323';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10587';
theSitetree.graphicsetId='10561';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='000000';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Circulation',
				paletteFamily: 	'FC2323',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10587',
				graphicsetId: 	'10561',
				contentColor: 	'FFFFFF',
				contentBGColor: '000000',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4555',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1186959']={
webappId:    '1501',
documentId:  '4555',
internalId:  '1186959',
customField: '1501'
};
webappMappings['7008']=webappMappings['7008-566']={
webappId:    '7008',
documentId:  '97601',
internalId:  '566',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4555',
internalId:  '',
customField: '20100512-154856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4639',
internalId:  '',
customField: '20100907-075858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108301',
internalId:  '',
customField: '20100907-091318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21500',
internalId:  '',
customField: '20100907-083229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21409',
internalId:  '',
customField: '20091101-231111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106501',
internalId:  '',
customField: '20091101-231341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21554',
internalId:  '',
customField: '20090210-231427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120001',
internalId:  '',
customField: '20091101-221845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21464',
internalId:  '',
customField: '20100415-151733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21473',
internalId:  '',
customField: '20100903-172111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21482',
internalId:  '',
customField: '20100907-081249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21491',
internalId:  '',
customField: '20100907-081328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21518',
internalId:  '',
customField: '20100907-085125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92601',
internalId:  '',
customField: '20100907-090204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64101',
internalId:  '',
customField: '20100903-132307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4612',
internalId:  '',
customField: '20100512-160313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21527',
internalId:  '',
customField: '20100903-130209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21536',
internalId:  '',
customField: '20100903-131958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21545',
internalId:  '',
customField: '20080225-184055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21581',
internalId:  '',
customField: '20091101-234440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21563',
internalId:  '',
customField: '20070416-182657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21572',
internalId:  '',
customField: '20070425-133444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21400',
internalId:  '',
customField: '20070416-183055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21590',
internalId:  '',
customField: '20070830-121048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21599',
internalId:  '',
customField: '20080720-170952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99501',
internalId:  '',
customField: '20081215-210621'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47201',
internalId:  '',
customField: '20090611-144944'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21090',
internalId:  '',
customField: '20081003-131442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40622',
internalId:  '',
customField: '20070416-192438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40643',
internalId:  '',
customField: '20070830-121401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40664',
internalId:  '',
customField: '20070416-191347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36901',
internalId:  '',
customField: '20070509-132243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45401',
internalId:  '',
customField: '20070417-002849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38201',
internalId:  '',
customField: '20070301-184857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45422',
internalId:  '',
customField: '20070830-121653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48801',
internalId:  '',
customField: '20070417-003357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45443',
internalId:  '',
customField: '20070416-221259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55801',
internalId:  '',
customField: '20070430-142521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59901',
internalId:  '',
customField: '20070514-165654'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45464',
internalId:  '',
customField: '20070830-121730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21099',
internalId:  '',
customField: '20081003-125754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26401',
internalId:  '',
customField: '20070823-175725'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26422',
internalId:  '',
customField: '20070823-180034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21509',
internalId:  '',
customField: '20071005-134058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4747',
internalId:  '',
customField: '20090522-135736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21671',
internalId:  '',
customField: '20090522-140015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52201',
internalId:  '',
customField: '20090522-135853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141501',
internalId:  '',
customField: '20100908-105611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144001',
internalId:  '',
customField: '20100908-144353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '50501',
internalId:  '',
customField: '20100512-170101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97601',
internalId:  '',
customField: '20090521-142511'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '110701',
internalId:  '',
customField: '20100907-091440'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '115122',
internalId:  'search',
customField: 'language:de;country:CH;'
};
webappMappings['7050']=webappMappings['7050-813']={
webappId:    '7050',
documentId:  '115143',
internalId:  '813',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115143',
internalId:  '',
customField: '20090522-215446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115122',
internalId:  '',
customField: '20090521-141939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120043',
internalId:  '',
customField: '20090601-144041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120022',
internalId:  '',
customField: '20090622-160241'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '122301',
internalId:  '',
customField: '20090622-163440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126222',
internalId:  '',
customField: '20091129-212058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126243',
internalId:  '',
customField: '20091101-234420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '126201',
internalId:  '',
customField: '20100415-164630'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '131101',
internalId:  '',
customField: '20100512-155444'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INX2R7';
var companyName   = 'Black+Knight+Racers';
var htmlTitle	  = 'Black+Knight+Racers';
var metaKeywords  = 'Husky+Huskys+Hundeschlittenschlitten+wagenrennen+bikej%EF%BF%BDring+alex+buster+anuschka+sibiria+tascha+hundeschlittenrennen+rennen+Hunde+hunde+schlitten+Husky+huskys+dobermann+dobi+freizeit+hobby+schnee+k%EF%BF%BDlte+Vw+lt+31+schlittensack+trainingswagen+wagen+training+rennen+wagenrennnen+schneerennen+zwinger+auslauf+hundebox+schlafplatz+leine+halsband+auto+musher+mushing+fahren+doghandler+dog+dogs+handler+dobermannclub+balzers+thun+zurzach+bartsopen+smv+dssv+alex+michi+nicol+j%EF%BF%BDrg+Buster+Busti+tascha+sibiria+sibi+ares+anusch+anuschka+sibirische+sibir+ares+tadita+thun+k%EF%BF%BDlliken+pick+up+plausch+ferien+pelzkappe+pelzm%EF%BF%BDtzen+dog+racing+racers+bkr+BKR+black+knight+racer+ritter+amber+Knight+Amber+ambibambi+aramis+bettina++fr%EF%BF%BDnzi++jasmin+freunde+offsnow+wohnwagen+Dreamcatcher+Dewsburys';
var metaContents  = 'Black+Knight+Racers%3A+8+Siberian+Huskys%2C+1+Irish+Cob+und+2+Musher.+Unsere+gemeinsame+Abenteuer+hier+dokumentiert.';
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();
};
