/* [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','4519',jdecode('Home'),jdecode(''),'/4519.html','true',[],'',''],
	['PAGE','81201',jdecode('News'),jdecode(''),'/81201.html','true',[],'',''],
	['PAGE','4801',jdecode('Queron+%C3%BCber+uns'),jdecode(''),'/4801.html','true',[],'',''],
	['PAGE','4828',jdecode('Queron'),jdecode(''),'/4828/index.html','true',[ 
		['PAGE','5955',jdecode('Stammbaum'),jdecode(''),'/4828/5955.html','true',[],'',''],
		['PAGE','21501',jdecode('Wurfabnahme-Protokoll'),jdecode(''),'/4828/21501.html','true',[],'',''],
		['PAGE','5928',jdecode('Wurftagebuch'),jdecode(''),'/4828/5928.html','true',[],'','']
	],'',''],
	['PAGE','133401',jdecode('Snoopy'),jdecode(''),'/133401.html','true',[],'',''],
	['PAGE','4909',jdecode('Hovi-Album'),jdecode(''),'/4909/index.html','true',[ 
		['PAGE','117101',jdecode('1.+-+8.+Woche'),jdecode(''),'/4909/117101.html','true',[],'',''],
		['PAGE','118901',jdecode('3.+Monat'),jdecode(''),'/4909/118901.html','true',[],'',''],
		['PAGE','118922',jdecode('4.+Monat'),jdecode(''),'/4909/118922.html','true',[],'',''],
		['PAGE','118943',jdecode('5.+Monat'),jdecode(''),'/4909/118943.html','true',[],'',''],
		['PAGE','118964',jdecode('6.+Monat'),jdecode(''),'/4909/118964.html','true',[],'',''],
		['PAGE','118985',jdecode('7.+Monat'),jdecode(''),'/4909/118985.html','true',[],'',''],
		['PAGE','119006',jdecode('8.+Monat'),jdecode(''),'/4909/119006.html','true',[],'',''],
		['PAGE','119027',jdecode('9.+Monat'),jdecode(''),'/4909/119027.html','true',[],'',''],
		['PAGE','119048',jdecode('10.+Monat'),jdecode(''),'/4909/119048.html','true',[],'',''],
		['PAGE','119069',jdecode('11.+Monat'),jdecode(''),'/4909/119069.html','true',[],'',''],
		['PAGE','119090',jdecode('12.+Monat'),jdecode(''),'/4909/119090.html','true',[],'',''],
		['PAGE','119111',jdecode('2.+Lebensjahr'),jdecode(''),'/4909/119111.html','true',[],'',''],
		['PAGE','119132',jdecode('3.+Lebensjahr'),jdecode(''),'/4909/119132.html','true',[],'',''],
		['PAGE','119153',jdecode('4.+Lebensjahr'),jdecode(''),'/4909/119153.html','true',[],'','']
	],'',''],
	['PAGE','38801',jdecode('K%C3%B6rergebnisse'),jdecode(''),'/38801/index.html','true',[ 
		['PAGE','39322',jdecode('Junghundbegutachtung'),jdecode(''),'/38801/39322.html','true',[],'',''],
		['PAGE','39343',jdecode('Jugendk%C3%B6rung'),jdecode(''),'/38801/39343.html','true',[],'','']
	],'',''],
	['PAGE','38822',jdecode('Ausstellungen'),jdecode(''),'/38822/index.html','true',[ 
		['PAGE','39364',jdecode('Tuttlingen+15.10.2006'),jdecode(''),'/38822/39364.html','true',[],'',''],
		['PAGE','69801',jdecode('Fribourg+10.2.2007'),jdecode(''),'/38822/69801.html','true',[],'','']
	],'',''],
	['PAGE','61301',jdecode('Erlebnisbuch'),jdecode(''),'/61301/index.html','true',[ 
		['PAGE','61701',jdecode('Hundeschlue'),jdecode(''),'/61301/61701.html','true',[],'',''],
		['PAGE','61722',jdecode('Ausstellungen'),jdecode(''),'/61301/61722.html','true',[],'',''],
		['PAGE','61743',jdecode('K%C3%B6rungen'),jdecode(''),'/61301/61743.html','true',[],'',''],
		['PAGE','61764',jdecode('Reisen'),jdecode(''),'/61301/61764.html','true',[],'','']
	],'',''],
	['PAGE','73701',jdecode('Lustiges'),jdecode(''),'/73701.html','true',[],'',''],
	['PAGE','74722',jdecode('In+Erinnerung'),jdecode(''),'/74722.html','true',[],'',''],
	['PAGE','46601',jdecode('Kontakt+%2F+Links'),jdecode(''),'/46601.html','true',[],'',''],
	['PAGE','7802',jdecode('G%C3%A4stebuch'),jdecode(''),'/7802/index.html','true',[ 
		['PAGE','7803',jdecode('Eintr%C3%A4ge'),jdecode(''),'/7802/7803.html','false',[],'','']
	],'','']];
var siteelementCount=39;
theSitetree.topTemplateName='Fotoalbum';
theSitetree.paletteFamily='C1E1EC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='354';
theSitetree.graphicsetId='405';
theSitetree.contentColor='0000A0';
theSitetree.contentBGColor='C1E1EC';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Fotoalbum',
				paletteFamily: 	'C1E1EC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'354',
				graphicsetId: 	'405',
				contentColor: 	'0000A0',
				contentBGColor: 'C1E1EC',
				a_color: 		'C1E1EC',
				b_color: 		'EBF8FD',
				c_color: 		'565F62',
				d_color: 		'5A6B71',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81201',
internalId:  '',
customField: '20090831-113133'
};
webappMappings['1002']=webappMappings['1002-7802ABW0X0INXSH3']={
webappId:    '1002',
documentId:  '7802',
internalId:  '7802ABW0X0INXSH3',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4519',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4519',
internalId:  '',
customField: '20090305-152507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4801',
internalId:  '',
customField: '20090513-075352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4828',
internalId:  '',
customField: '20090513-074242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21501',
internalId:  '',
customField: '20090303-184432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5955',
internalId:  '',
customField: '20090513-074411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5928',
internalId:  '',
customField: '20090513-074912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4909',
internalId:  '',
customField: '20090830-085913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119090',
internalId:  '',
customField: '20090318-063301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119027',
internalId:  '',
customField: '20090303-190127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119006',
internalId:  '',
customField: '20090303-190127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118985',
internalId:  '',
customField: '20090303-190127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118964',
internalId:  '',
customField: '20090303-190127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118943',
internalId:  '',
customField: '20090303-190127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118922',
internalId:  '',
customField: '20090303-190127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118901',
internalId:  '',
customField: '20090303-190127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119153',
internalId:  '',
customField: '20090831-113005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117101',
internalId:  '',
customField: '20090305-152212'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119111',
internalId:  '',
customField: '20090513-073803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119132',
internalId:  '',
customField: '20090830-085729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119048',
internalId:  '',
customField: '20090305-181610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119069',
internalId:  '',
customField: '20090513-073846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38801',
internalId:  '',
customField: '20061016-100119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39322',
internalId:  '',
customField: '20071130-083638'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39343',
internalId:  '',
customField: '20061217-133958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38822',
internalId:  '',
customField: '20070211-094756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39364',
internalId:  '',
customField: '20090303-184720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '69801',
internalId:  '',
customField: '20070212-072513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61301',
internalId:  '',
customField: '20090318-064249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61701',
internalId:  '',
customField: '20090318-064319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61722',
internalId:  '',
customField: '20070427-094205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61743',
internalId:  '',
customField: '20090318-065612'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61764',
internalId:  '',
customField: '20070427-100530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73701',
internalId:  '',
customField: '20090513-080456'
};
webappMappings['1501']=webappMappings['1501-402118']={
webappId:    '1501',
documentId:  '4519',
internalId:  '402118',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '133401',
internalId:  '',
customField: '20100720-101452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46601',
internalId:  '',
customField: '20090305-150607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7802',
internalId:  '',
customField: '20060306-081135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7803',
internalId:  '',
customField: '20060427-114323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74722',
internalId:  '',
customField: '20090513-075657'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXSH3';
var companyName   = 'Queron+vom+Quellenhof';
var htmlTitle	  = 'Hovawartr%C3%BCde+Queron+v.+Quellenhof';
var metaKeywords  = 'Hovawart%2C+Queron%2C+Schwarzmarken%2C+Quellenhof%2C+Hund%2C+';
var metaContents  = '';
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();
};
