/* [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','2452',jdecode('Info+zur+Hundeschule'),jdecode(''), jdecode('%2F2452.html'), 'true',[],'',''],
	['PAGE','177301',jdecode('Problemhunde'),jdecode(''), jdecode('%2F177301.html'), 'true',[],'',''],
	['PAGE','2473',jdecode('Team'),jdecode(''), jdecode('%2F2473.html'), 'true',[],'',''],
	['PAGE','2494',jdecode('Angebote'),jdecode(''), jdecode('%2F2494.html'), 'true',[],'',''],
	['PAGE','154001',jdecode('%C3%9Cbungszeiten%3A'),jdecode(''), jdecode('%2F154001.html'), 'true',[],'',''],
	['PAGE','265401',jdecode('Welpenspielgruppen'),jdecode(''), jdecode('%2F265401.html'), 'true',[],'',''],
	['PAGE','184401',jdecode('HALLENTRAINING'),jdecode(''), jdecode('%2F184401.html'), 'false',[],'',''],
	['PAGE','176101',jdecode('Preise'),jdecode(''), jdecode('%2F176101.html'), 'true',[],'',''],
	['PAGE','4101',jdecode('Anl%C3%A4sse+und+Infos'),jdecode(''), jdecode('%2F4101.html'), 'true',[],'',''],
	['PAGE','10201',jdecode('Teilnehmer'),jdecode(''), jdecode('%2F10201.html'), 'true',[],'',''],
	['PAGE','112001',jdecode('Unsere+Hunde'),jdecode(''), jdecode('%2F112001.html'), 'true',[],'',''],
	['PAGE','162701',jdecode('Lehrreich'),jdecode(''), jdecode('%2F162701.html'), 'true',[],'',''],
	['PAGE','4122',jdecode('Hundebilder'),jdecode(''), jdecode('%2F4122.html'), 'true',[],'',''],
	['PAGE','118701',jdecode('Filmproduktion'),jdecode(''), jdecode('%2F118701.html'), 'true',[],'',''],
	['PAGE','183101',jdecode('Wegbeschreibung'),jdecode(''), jdecode('%2F183101.html'), 'true',[],'',''],
	['PAGE','239101',jdecode('Gute+Links'),jdecode(''), jdecode('%2F239101.html'), 'true',[],'',''],
	['PAGE','158701',jdecode('Film+Provet'),jdecode(''), jdecode('%2F158701.html'), 'false',[],'',''],
	['PAGE','120101',jdecode('Hundehalterseite'),jdecode(''), jdecode('%2F120101.html'), 'false',[],'',''],
	['PAGE','4401',jdecode('Links'),jdecode(''), jdecode('%2F4401.html'), 'false',[],'',''],
	['PAGE','9001',jdecode('Kontakt'),jdecode(''), jdecode('%2F9001.html'), 'true',[],'',''],
	['PAGE','2515',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F2515.html'), 'true',[],'',''],
	['PAGE','182601',jdecode('Wegbeschreibung'),jdecode(''), jdecode('%2F182601.html'), 'false',[],'',''],
	['PAGE','121301',jdecode('Sachkundenachweis'),jdecode(''), jdecode('%2F121301.html'), 'false',[],'',''],
	['PAGE','125801',jdecode('Hund2'),jdecode(''), jdecode('%2F125801.html'), 'false',[],'',''],
	['PAGE','137101',jdecode('Hundeah'),jdecode(''), jdecode('%2F137101.html'), 'false',[],'',''],
	['PAGE','137801',jdecode('Familienhunde+Bilder'),jdecode(''), jdecode('%2F137801.html'), 'false',[],'',''],
	['PAGE','146601',jdecode('Alfons'),jdecode(''), jdecode('%2F146601.html'), 'false',[],'',''],
	['PAGE','150101',jdecode('Andrea'),jdecode(''), jdecode('%2F150101.html'), 'false',[],'',''],
	['PAGE','161501',jdecode('Alfons'),jdecode(''), jdecode('%2F161501.html'), 'false',[],'',''],
	['PAGE','167501',jdecode('Filmschluss'),jdecode(''), jdecode('%2F167501.html'), 'false',[],'',''],
	['PAGE','168401',jdecode('Hunde+Daniela'),jdecode(''), jdecode('%2F168401.html'), 'false',[],'',''],
	['PAGE','171401',jdecode('Mein+Film'),jdecode(''), jdecode('%2F171401.html'), 'false',[],'',''],
	['PAGE','171901',jdecode('Schlusswort'),jdecode(''), jdecode('%2F171901.html'), 'false',[],'',''],
	['PAGE','173101',jdecode('jasmin'),jdecode(''), jdecode('%2F173101.html'), 'false',[],'',''],
	['PAGE','174701',jdecode('Junge+hunde'),jdecode(''), jdecode('%2F174701.html'), 'false',[],'',''],
	['PAGE','175301',jdecode('reginabild'),jdecode(''), jdecode('%2F175301.html'), 'false',[],'',''],
	['PAGE','185201',jdecode('Sachkundenachweis'),jdecode(''), jdecode('%2F185201.html'), 'false',[],'',''],
	['PAGE','186401',jdecode('Problemhund+1+Film'),jdecode(''), jdecode('%2F186401.html'), 'false',[],'',''],
	['PAGE','188901',jdecode('Korrektur+Bullterier'),jdecode(''), jdecode('%2F188901.html'), 'false',[],'',''],
	['PAGE','189501',jdecode('Problem+Sch%C3%A4fer'),jdecode(''), jdecode('%2F189501.html'), 'false',[],'',''],
	['PAGE','190101',jdecode('B%C3%B6se+hunde++Lenzburg'),jdecode(''), jdecode('%2F190101.html'), 'false',[],'',''],
	['PAGE','228501',jdecode('test'),jdecode(''), jdecode('%2F228501.html'), 'false',[],'',''],
	['PAGE','231101',jdecode('Nala+Leinenzerren'),jdecode(''), jdecode('%2F231101.html'), 'false',[],'',''],
	['PAGE','232601',jdecode('Tiervermittlung'),jdecode(''), jdecode('%2F232601.html'), 'false',[],'',''],
	['PAGE','236601',jdecode('Futter+Spielen+Beziehung'),jdecode(''), jdecode('%2F236601.html'), 'false',[],'',''],
	['PAGE','267201',jdecode('1stunde'),jdecode(''), jdecode('%2F267201.html'), 'false',[],'',''],
	['PAGE','271101',jdecode('Dogge'),jdecode(''), jdecode('%2F271101.html'), 'false',[],'','']];
var siteelementCount=47;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'hostpoint',
  product: 'WSCSYSSSSLYTC21Y'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4401',
internalId:  '',
customField: '20100321-175949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2452',
internalId:  '',
customField: '20120204-101623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2473',
internalId:  '',
customField: '20111209-001310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2494',
internalId:  '',
customField: '20120203-220204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2515',
internalId:  '',
customField: '20091110-115500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4101',
internalId:  '',
customField: '20120117-221555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4122',
internalId:  '',
customField: '20110423-010409'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2452',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-2515ahp340inva0g']={
webappId:    '1002',
documentId:  '2515',
internalId:  '2515ahp340inva0g',
customField: 'icq=false'
};
webappMappings['7008']=webappMappings['7008-1827']={
webappId:    '7008',
documentId:  '9001',
internalId:  '1827',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9001',
internalId:  '',
customField: '20120108-020058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10201',
internalId:  '',
customField: '20111204-231941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112001',
internalId:  '',
customField: '20111205-102841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118701',
internalId:  '',
customField: '20120203-233423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '120101',
internalId:  '',
customField: '20120203-231342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121301',
internalId:  '',
customField: '20100210-201245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125801',
internalId:  '',
customField: '20091130-173535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137101',
internalId:  '',
customField: '20091212-004959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137801',
internalId:  '',
customField: '20110805-163852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '146601',
internalId:  '',
customField: '20100108-011359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150101',
internalId:  '',
customField: '20100109-181102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154001',
internalId:  '',
customField: '20111205-103132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158701',
internalId:  '',
customField: '20100114-185806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161501',
internalId:  '',
customField: '20100302-115246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162701',
internalId:  '',
customField: '20111207-205156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167501',
internalId:  '',
customField: '20111206-001206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '168401',
internalId:  '',
customField: '20100228-130345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '171401',
internalId:  '',
customField: '20120108-023535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '171901',
internalId:  '',
customField: '20120108-023413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '173101',
internalId:  '',
customField: '20100302-112642'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174701',
internalId:  '',
customField: '20100303-161113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '175301',
internalId:  '',
customField: '20100304-125050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '176101',
internalId:  '',
customField: '20111206-191352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177301',
internalId:  '',
customField: '20120204-101655'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '182601',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '182601',
internalId:  '',
customField: '20100803-153325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183101',
internalId:  '',
customField: '20120108-020403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184401',
internalId:  '',
customField: '20110419-000553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185201',
internalId:  '',
customField: '20110102-212539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '186401',
internalId:  '',
customField: '20110301-212845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188901',
internalId:  '',
customField: '20110417-004259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '189501',
internalId:  '',
customField: '20110417-005845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '190101',
internalId:  '',
customField: '20110418-225702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228501',
internalId:  '',
customField: '20110419-015246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '231101',
internalId:  '',
customField: '20110421-011602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232601',
internalId:  '',
customField: '20110427-233824'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236601',
internalId:  '',
customField: '20120108-023933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '239101',
internalId:  '',
customField: '20120203-234713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '265401',
internalId:  '',
customField: '20111206-191500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '267201',
internalId:  '',
customField: '20120108-023833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '271101',
internalId:  '',
customField: '20120117-090920'
};
var webAppHostname = 'cgi.webomat.ch:80';
var canonHostname = 'webomat02.hostpoint.ch';
var accountId     = 'AHP340INVA0G';
var companyName   = '++++++';
var htmlTitle	  = 'Hundeschule+Seiler+W%C3%B6schnau';
var metaKeywords  = 'Hundeschule%2C+Hundetraining%2C+Hunde+trainieren%2C+Leinenzerren+agressive+Hunde%2C+Welpenspielstunde';
var metaContents  = 'Hundeschule+Seiler+in+W%C3%B6schnau';
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();
};

