/* [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','5201',jdecode('Startseite'),jdecode(''), jdecode('%2F5201.html'), 'true',[],'',''],
	['PAGE','57501',jdecode('Aktuelles+'),jdecode(''), jdecode('%2F57501.html'), 'true',[],'',''],
	['PAGE','8901',jdecode('Wir+%C3%BCber+uns'),jdecode(''), jdecode('%2F8901%2Findex.html'), 'true',[ 
		['PAGE','10201',jdecode('Yvonne+Zoelly'),jdecode(''), jdecode('%2F8901%2F10201.html'), 'true',[],'',''],
		['PAGE','47001',jdecode('Maja+Soom'),jdecode(''), jdecode('%2F8901%2F47001.html'), 'true',[],'',''],
		['PAGE','9301',jdecode('SKN+Diplom'),jdecode(''), jdecode('%2F8901%2F9301.html'), 'true',[],'','']
	],'',''],
	['PAGE','10222',jdecode('Philosophie'),jdecode(''), jdecode('%2F10222.html'), 'true',[],'',''],
	['PAGE','10243',jdecode('Angebot'),jdecode(''), jdecode('%2F10243%2Findex.html'), 'true',[ 
		['PAGE','10264',jdecode('Welpe+'),jdecode(''), jdecode('%2F10243%2F10264.html'), 'true',[],'',''],
		['PAGE','62812',jdecode('Junghund'),jdecode(''), jdecode('%2F10243%2F62812.html'), 'true',[],'',''],
		['PAGE','42601',jdecode('Erziehungskurs'),jdecode(''), jdecode('%2F10243%2F42601.html'), 'true',[],'',''],
		['PAGE','10285',jdecode('Familienhund'),jdecode(''), jdecode('%2F10243%2F10285.html'), 'true',[],'',''],
		['PAGE','38301',jdecode('Sporthund'),jdecode(''), jdecode('%2F10243%2F38301.html'), 'true',[],'',''],
		['PAGE','10306',jdecode('Halterkurs+SKN'),jdecode(''), jdecode('%2F10243%2F10306.html'), 'true',[],'',''],
		['PAGE','11901',jdecode('Theorie+SKN'),jdecode(''), jdecode('%2F10243%2F11901.html'), 'true',[],'',''],
		['PAGE','11922',jdecode('Praxis+SKN'),jdecode(''), jdecode('%2F10243%2F11922.html'), 'true',[],'',''],
		['PAGE','10327',jdecode('F%C3%A4hrten'),jdecode(''), jdecode('%2F10243%2F10327.html'), 'true',[],'',''],
		['PAGE','52001',jdecode('Kanton+Z%C3%BCrich'),jdecode(''), jdecode('%2F10243%2F52001.html'), 'true',[],'',''],
		['PAGE','10348',jdecode('Einzellektionen'),jdecode(''), jdecode('%2F10243%2F10348.html'), 'true',[],'','']
	],'',''],
	['PAGE','10369',jdecode('Termine'),jdecode(''), jdecode('%2F10369%2Findex.html'), 'true',[ 
		['PAGE','12501',jdecode('Welpe+'),jdecode(''), jdecode('%2F10369%2F12501.html'), 'true',[],'',''],
		['PAGE','63512',jdecode('Junghund'),jdecode(''), jdecode('%2F10369%2F63512.html'), 'true',[],'',''],
		['PAGE','42622',jdecode('Erziehungskurs'),jdecode(''), jdecode('%2F10369%2F42622.html'), 'true',[],'',''],
		['PAGE','12522',jdecode('Familienhund'),jdecode(''), jdecode('%2F10369%2F12522.html'), 'true',[],'',''],
		['PAGE','38601',jdecode('Sporthund'),jdecode(''), jdecode('%2F10369%2F38601.html'), 'true',[],'',''],
		['PAGE','12543',jdecode('Theorie+SKN'),jdecode(''), jdecode('%2F10369%2F12543.html'), 'true',[],'',''],
		['PAGE','12564',jdecode('Praxis+SKN'),jdecode(''), jdecode('%2F10369%2F12564.html'), 'true',[],'',''],
		['PAGE','12585',jdecode('F%C3%A4hrten'),jdecode(''), jdecode('%2F10369%2F12585.html'), 'true',[],'',''],
		['PAGE','12606',jdecode('Einzellektionen'),jdecode(''), jdecode('%2F10369%2F12606.html'), 'true',[],'','']
	],'',''],
	['PAGE','10390',jdecode('Kosten'),jdecode(''), jdecode('%2F10390.html'), 'true',[],'',''],
	['PAGE','8943',jdecode('Trainingsplatz'),jdecode(''), jdecode('%2F8943.html'), 'true',[],'',''],
	['PAGE','23401',jdecode('Fotos'),jdecode(''), jdecode('%2F23401%2Findex.html'), 'true',[ 
		['PAGE','5252',jdecode('Welpen%2FJunghunde%2FSKN'),jdecode(''), jdecode('%2F23401%2F5252.html'), 'true',[],'',''],
		['PAGE','18601',jdecode('Familien-%2FSporthunde'),jdecode(''), jdecode('%2F23401%2F18601.html'), 'true',[],'',''],
		['PAGE','23001',jdecode('F%C3%A4hrtentraining'),jdecode(''), jdecode('%2F23401%2F23001.html'), 'true',[],'','']
	],'',''],
	['PAGE','17001',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F17001.html'), 'true',[],'',''],
	['PAGE','16201',jdecode('Links'),jdecode(''), jdecode('%2F16201.html'), 'true',[],'',''],
	['PAGE','5273',jdecode('Impressum'),jdecode(''), jdecode('%2F5273.html'), 'true',[],'',''],
	['PAGE','5294',jdecode('Kontakt'),jdecode(''), jdecode('%2F5294.html'), 'true',[],'','']];
var siteelementCount=39;
theSitetree.topTemplateName='Eatdrink';
theSitetree.paletteFamily='7575CE';
theSitetree.keyvisualId='3358';
theSitetree.keyvisualName='kv_3358.jpg';
theSitetree.fontsetId='10621';
theSitetree.graphicsetId='10738';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'webland',
  product: 'WSCSYSSSSLY0XFY2'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Eatdrink',
				paletteFamily: 	'7575CE',
				keyvisualId: 	'3358',
				keyvisualName: 	'kv_3358.jpg',
				fontsetId: 		'10621',
				graphicsetId: 	'10738',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'1B1B6F',
				e_color: 		'1B1B6F',
				f_color: 		'1B1B6F',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7060']=webappMappings['7060-72103723fe2b5b09c5e48cb62170cd3b']={
webappId:    '7060',
documentId:  '5252',
internalId:  '72103723fe2b5b09c5e48cb62170cd3b',
customField: 'language:de;country:CH;'
};
webappMappings['7008']=webappMappings['7008-2448']={
webappId:    '7008',
documentId:  '5294',
internalId:  '2448',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5201',
internalId:  '',
customField: '20100806-171726'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5252',
internalId:  '',
customField: '20091012-203322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5273',
internalId:  '',
customField: '20090710-165951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5294',
internalId:  '',
customField: '20111106-113111'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5201',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20120112-150649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10201',
internalId:  '',
customField: '20110811-153032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9301',
internalId:  '',
customField: '20120112-150744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8943',
internalId:  '',
customField: '20090831-214128'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10222',
internalId:  '',
customField: '20110823-165328'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10243',
internalId:  '',
customField: '20110823-170350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10264',
internalId:  '',
customField: '20120209-125336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10285',
internalId:  '',
customField: '20100806-172013'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10306',
internalId:  '',
customField: '20110112-163144'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20090722-171432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11922',
internalId:  '',
customField: '20090722-171807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10327',
internalId:  '',
customField: '20111230-125150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10348',
internalId:  '',
customField: '20100903-180647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10369',
internalId:  '',
customField: '20120117-133657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20120209-125416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12522',
internalId:  '',
customField: '20120209-125744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12543',
internalId:  '',
customField: '20120131-134033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12564',
internalId:  '',
customField: '20120113-213317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12585',
internalId:  '',
customField: '20120209-125906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12606',
internalId:  '',
customField: '20120113-213424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10390',
internalId:  '',
customField: '20110823-164733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16201',
internalId:  '',
customField: '20120112-151118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62812',
internalId:  '',
customField: '20110823-163824'
};
webappMappings['1002']=webappMappings['1002-17001awb010inxfdn']={
webappId:    '1002',
documentId:  '17001',
internalId:  '17001awb010inxfdn',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17001',
internalId:  '',
customField: '20090728-114121'
};
webappMappings['7060']=webappMappings['7060-5b2edc1a35566bc88cf8dc406fdfb35a']={
webappId:    '7060',
documentId:  '18601',
internalId:  '5b2edc1a35566bc88cf8dc406fdfb35a',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20091012-203226'
};
webappMappings['7060']=webappMappings['7060-74363767d2ab9762cd5b9365d57449dc']={
webappId:    '7060',
documentId:  '23001',
internalId:  '74363767d2ab9762cd5b9365d57449dc',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23001',
internalId:  '',
customField: '20091012-203444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23401',
internalId:  '',
customField: '20100909-151349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38301',
internalId:  '',
customField: '20100806-172350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38601',
internalId:  '',
customField: '20120209-125839'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42601',
internalId:  '',
customField: '20110823-170448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42622',
internalId:  '',
customField: '20120209-125542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47001',
internalId:  '',
customField: '20120112-150947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52001',
internalId:  '',
customField: '20110113-210759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57501',
internalId:  '',
customField: '20120112-150442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63512',
internalId:  '',
customField: '20120209-125454'
};
var webAppHostname = 'wsc-app.webland.ch:80';
var canonHostname = 'wsc01.webland.ch';
var accountId     = 'AWB010INXFDN';
var companyName   = 'HundeABCZoelly';
var htmlTitle	  = 'HundeABCZoelly+%2F+Hundeschule+Yvonne+Zoelly+-+Ihre+Hundeschule+von+Yvonne+Zoelly+in+Kaiserstuhl+AG+f%C3%BCr+das+Z%C3%BCrcher+Unterland+und+den+Bezirk+Zurzach.+SKN-%2C+Welpen-%2C+Familienhunde-+und+F%C3%A4hrtenkurse+';
var metaKeywords  = 'HundeABCZoelly%2C+Zoelly%2C+Hundeschule%2C+Hundeerziehung%2C+Hundeausbildung%2C+SKN%2C+Sachkundenachweis%2C+SKN-Kurse%2C+Welpenspielstunde%2C+Familienhunde%2C+Familienhunde-Training%2C+F%C3%A4hrtenaufbau%2C+F%C3%A4hrtenkurse%2C+F%C3%A4hrtentraining%2C+Z%C3%BCrcher+Unterland%2C+Bezirk+Zurzach%2C+Kaiserstuhl%2C+Kaiserstuhl+AG%2C+Ersthundehalter%2C+Hovawart%2C+Kalif%2C+Hovawart+Plauschgruppe+F%C3%A4llanden';
var metaContents  = 'HundeABCZoelly.ch+-+Ihre+Hundeschule+von+Yvonne+Zoelly+f%C3%BCr+das+Z%C3%BCrcher+Unterland+und+den+Bezirk+Zurzach.+';
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();
};

