/* [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','4498',jdecode('Home'),jdecode(''),'/4498.html','true',[],'',''],
	['PAGE','342367',jdecode('Willkommen'),jdecode(''),'/342367/index.html','true',[ 
		['PAGE','4555',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/342367/4555.html','true',[],'','']
	],'',''],
	['PAGE','232787',jdecode('Mein+Garten'),jdecode(''),'/232787.html','true',[],'',''],
	['PAGE','446454',jdecode('Mein+Park'),jdecode(''),'/446454.html','true',[],'',''],
	['PAGE','445670',jdecode('Illusionen'),jdecode(''),'/445670.html','true',[],'',''],
	['PAGE','434805',jdecode('NEU+-+10+W%C3%9CNSCHE'),jdecode(''),'/434805.html','true',[],'',''],
	['PAGE','445326',jdecode('Uebungsplatz'),jdecode(''),'/445326.html','true',[],'',''],
	['PAGE','441341',jdecode('Spiel+-+mit+Menschen'),jdecode(''),'/441341/index.html','true',[ 
		['PAGE','444192',jdecode('WINTERM%C3%84RCHEN'),jdecode(''),'/441341/444192.html','true',[],'',''],
		['PAGE','443600',jdecode('Adventsfeier+30.11.08'),jdecode(''),'/441341/443600.html','true',[],'','']
	],'',''],
	['PAGE','321584',jdecode('Welpen+'),jdecode(''),'/321584/index.html','true',[ 
		['PAGE','433109',jdecode('Welpenkauf'),jdecode(''),'/321584/433109.html','true',[],'','']
	],'',''],
	['PAGE','247887',jdecode('Show+'),jdecode(''),'/247887.html','true',[],'',''],
	['PAGE','158317',jdecode('Unsere+H%C3%BCndinnen'),jdecode(''),'/158317/index.html','true',[ 
		['PAGE','335574',jdecode('Sweety++und++Lady'),jdecode(''),'/158317/335574.html','true',[],'',''],
		['PAGE','238887',jdecode('Pedigree'),jdecode(''),'/158317/238887.html','true',[],'',''],
		['PAGE','176442',jdecode('W%C3%BCrfe'),jdecode(''),'/158317/176442.html','true',[],'',''],
		['PAGE','24466',jdecode('S-Wurf'),jdecode(''),'/158317/24466.html','true',[],'',''],
		['PAGE','4609',jdecode('Welpen'),jdecode(''),'/158317/4609.html','true',[],'','']
	],'',''],
	['PAGE','4582',jdecode('Rasse'),jdecode(''),'/4582/index.html','true',[ 
		['PAGE','10403',jdecode('Standard+D'),jdecode(''),'/4582/10403.html','true',[],'',''],
		['PAGE','14674',jdecode('Standard+E'),jdecode(''),'/4582/14674.html','true',[],'','']
	],'',''],
	['PAGE','6620',jdecode('Bobtail-Kauf'),jdecode(''),'/6620/index.html','true',[ 
		['PAGE','4663',jdecode('Pflege'),jdecode(''),'/6620/4663.html','true',[],'',''],
		['PAGE','4690',jdecode('Erziehung-Haltung'),jdecode(''),'/6620/4690.html','true',[],'',''],
		['PAGE','4717',jdecode('Gesundheit+und+Futter'),jdecode(''),'/6620/4717.html','true',[],'',''],
		['PAGE','4798',jdecode('Ausstellung'),jdecode(''),'/6620/4798.html','true',[],'','']
	],'',''],
	['PAGE','439904',jdecode('Fotogalerie'),jdecode(''),'/439904/index.html','true',[ 
		['PAGE','444812',jdecode('Fotoalbum+2'),jdecode(''),'/439904/444812.html','true',[],'',''],
		['PAGE','373813',jdecode('Fotoalbum+1'),jdecode(''),'/439904/373813.html','true',[],'','']
	],'',''],
	['PAGE','173642',jdecode('In+Memoriam'),jdecode(''),'/173642.html','true',[],'',''],
	['PAGE','366241',jdecode('Tagebuch+Shorty'),jdecode(''),'/366241.html','true',[],'',''],
	['PAGE','4825',jdecode('Schmunzelecke'),jdecode(''),'/4825/index.html','true',[ 
		['PAGE','211641',jdecode('Bobtail-Geschichten'),jdecode(''),'/4825/211641.html','true',[],'','']
	],'',''],
	['PAGE','4879',jdecode('Links'),jdecode(''),'/4879.html','true',[],'',''],
	['PAGE','5028',jdecode('G%C3%A4stebuch'),jdecode(''),'/5028/index.html','true',[ 
		['PAGE','5029',jdecode('Eintr%C3%A4ge'),jdecode(''),'/5028/5029.html','false',[],'','']
	],'',''],
	['PAGE','12404',jdecode('Anfahrt'),jdecode(''),'/12404.html','true',[],'',''],
	['PAGE','4906',jdecode('Kontakt'),jdecode(''),'/4906/index.html','true',[ 
		['PAGE','10707',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/4906/10707.html','false',[],'','']
	],'',''],
	['PAGE','333994',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/333994.html','true',[],'','']];
var siteelementCount=42;
theSitetree.topTemplateName='Amaze';
theSitetree.paletteFamily='0A2447';
theSitetree.keyvisualId='2411';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='397';
theSitetree.graphicsetId='444';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='0A2447';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Amaze',
				paletteFamily: 	'0A2447',
				keyvisualId: 	'2411',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'397',
				graphicsetId: 	'444',
				contentColor: 	'FFFFFF',
				contentBGColor: '0A2447',
				a_color: 		'0A2447',
				b_color: 		'081B35',
				c_color: 		'3268E2',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '342367',
internalId:  '',
customField: '20101226-151306'
};
webappMappings['1002']=webappMappings['1002-5028ABW0X0INXX1V']={
webappId:    '1002',
documentId:  '5028',
internalId:  '5028ABW0X0INXX1V',
customField: 'icq=false'
};
webappMappings['1501']=webappMappings['1501-436638']={
webappId:    '1501',
documentId:  '4498',
internalId:  '436638',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4498',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '12404',
internalId:  'location',
customField: 'location'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '333994',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4498',
internalId:  '',
customField: '20110129-151635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '445670',
internalId:  '',
customField: '20100212-120209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '445326',
internalId:  '',
customField: '20091027-161239'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4555',
internalId:  '',
customField: '20101226-151429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232787',
internalId:  '',
customField: '20100703-101434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '434805',
internalId:  '',
customField: '20081207-074948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '441341',
internalId:  '',
customField: '20081215-132340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '444192',
internalId:  '',
customField: '20081215-133027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '443600',
internalId:  '',
customField: '20081206-174644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '321584',
internalId:  '',
customField: '20101226-151234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '433109',
internalId:  '',
customField: '20080911-065011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '247887',
internalId:  '',
customField: '20080923-134056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158317',
internalId:  '',
customField: '20080604-180033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '335574',
internalId:  '',
customField: '20071026-200253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '238887',
internalId:  '',
customField: '20040502-003117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '176442',
internalId:  '',
customField: '20060209-161145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24466',
internalId:  '',
customField: '20050508-205151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4609',
internalId:  '',
customField: '20080604-180252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4582',
internalId:  '',
customField: '20080604-180343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10403',
internalId:  '',
customField: '20030813-133722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14674',
internalId:  '',
customField: '20030813-133540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6620',
internalId:  '',
customField: '20080604-180640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4663',
internalId:  '',
customField: '20080604-172808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4690',
internalId:  '',
customField: '20040128-154513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4717',
internalId:  '',
customField: '20040128-154554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4798',
internalId:  '',
customField: '20080604-180749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '439904',
internalId:  '',
customField: '20090310-170237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '373813',
internalId:  '',
customField: '20080604-181055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '173642',
internalId:  '',
customField: '20080116-101813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '366241',
internalId:  '',
customField: '20080116-102345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4825',
internalId:  '',
customField: '20080116-102542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '211641',
internalId:  '',
customField: '20050123-213018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4879',
internalId:  '',
customField: '20100727-111351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5028',
internalId:  '',
customField: '20040315-141050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5029',
internalId:  '',
customField: '20030811-142456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12404',
internalId:  '',
customField: '20040128-160559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4906',
internalId:  '',
customField: '20030813-105954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10707',
internalId:  '',
customField: '20030812-183002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '333994',
internalId:  '',
customField: '20050404-214909'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '444812',
internalId:  '',
customField: '20090506-141847'
};
webappMappings['7008']=webappMappings['7008-4386']={
webappId:    '7008',
documentId:  '4906',
internalId:  '4386',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '446454',
internalId:  '',
customField: '20101019-153127'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXX1V';
var companyName   = 'www.bobtail.ch';
var htmlTitle	  = 'www.bobtail.ch';
var metaKeywords  = 'Bobtail%2C+Old+English+Sheepdogs+von+der+Zollgasse%2C+Hund%2C+Fotos%2C+Fotogalerie%2C+Bilder%2C+Old%2C+English%2C+Sheepdog%2C+OES%2C+dog%2C+pictures%2C+schweiz%2C+switzerland%2C+deutsch%2C+german%2C+Zollgasse%2C+Stutz%2C+Meinrad+und+Silvia%2C+Bobtailclub%2C+2543%2C+Lengnau%2C+Shorty%2C+++';
var metaContents  = 'Bobtail%2C+Bobtailpflege%2CWillkommen%2C+Wir+%EF%BF%BDber+uns%2C+unser+Heim%2CShow%2C+Unsere+H%EF%BF%BDndinnen%2C+Sweety%2C+Bobtailkauf%2C+Tagebuch+Shorty%2C+Schmunzelecke%2C+Bobtailgeschichte%2C+Ausstellung%2C+News%2C+Bobtail%2C+Bobtailclub%2C+Hund%2C+Fotos%2C+Fotogalerie%2C+Bilder%2C+Old%2C+English%2C+Sheepdog%2C+OES%2C+dog%2C+pictures%2C+schweiz%2C+switzerland%2C+deutsch%2C+german%2C+Zollgasse%2C+Stutz%2C+Meinrad+und+Silvia%2C+2543%2C+Lengnau%2C+';
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();
};

