/* [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','118701',jdecode('HOME'),jdecode(''), jdecode('%2F118701.html'), 'true',[],'',''],
	['PAGE','4521',jdecode('Aktuelles'),jdecode(''), jdecode('%2F4521.html'), 'true',[],'',''],
	['PAGE','187501',jdecode('Tageb%C3%BCcher'),jdecode(''), jdecode('%2F187501%2Findex.html'), 'true',[ 
		['PAGE','188001',jdecode('Barbet+Tagebuch'),jdecode(''), jdecode('%2F187501%2F188001.html'), 'true',[],'',''],
		['PAGE','187522',jdecode('Bruno+Richner'),jdecode(''), jdecode('%2F187501%2F187522.html'), 'true',[],'','']
	],'',''],
	['PAGE','4578',jdecode('%C3%9Cber+uns'),jdecode(''), jdecode('%2F4578%2Findex.html'), 'true',[ 
		['PAGE','41401',jdecode('Sylvie'),jdecode(''), jdecode('%2F4578%2F41401.html'), 'true',[],'',''],
		['PAGE','198501',jdecode('CADIZ+-+mein+Pferd'),jdecode(''), jdecode('%2F4578%2F198501.html'), 'true',[],'',''],
		['PAGE','21866',jdecode('Bruno'),jdecode(''), jdecode('%2F4578%2F21866.html'), 'true',[],'','']
	],'',''],
	['PAGE','4605',jdecode('Der+Barbet'),jdecode(''), jdecode('%2F4605.html'), 'true',[],'',''],
	['PAGE','91301',jdecode('Unsere+H%C3%BCndinnen'),jdecode(''), jdecode('%2F91301%2Findex.html'), 'true',[ 
		['PAGE','118501',jdecode('Cleo+vom+Zulimo'),jdecode(''), jdecode('%2F91301%2F118501.html'), 'true',[],'',''],
		['PAGE','118522',jdecode('Coco+de+la+Colline'),jdecode(''), jdecode('%2F91301%2F118522.html'), 'true',[],'','']
	],'',''],
	['PAGE','91322',jdecode('Unsere+R%C3%BCden'),jdecode(''), jdecode('%2F91322%2Findex.html'), 'true',[ 
		['PAGE','118543',jdecode('Andrus+z+Gorki'),jdecode(''), jdecode('%2F91322%2F118543.html'), 'true',[],'',''],
		['PAGE','138101',jdecode('Emotion+Etno'),jdecode(''), jdecode('%2F91322%2F138101.html'), 'true',[],'','']
	],'',''],
	['PAGE','14864',jdecode('Welpen+A-Wurf+2005'),jdecode(''), jdecode('%2F14864.html'), 'true',[],'',''],
	['PAGE','41901',jdecode('Welpen+B-Wurf+2008'),jdecode(''), jdecode('%2F41901.html'), 'true',[],'',''],
	['PAGE','74801',jdecode('Welpen+C-Wurf+2009'),jdecode(''), jdecode('%2F74801.html'), 'true',[],'',''],
	['PAGE','210401',jdecode('Welpen++D-Wurf+2011'),jdecode(''), jdecode('%2F210401%2Findex.html'), 'true',[ 
		['PAGE','211701',jdecode('Planung+D-Wurf'),jdecode(''), jdecode('%2F210401%2F211701.html'), 'true',[],'','']
	],'',''],
	['PAGE','141601',jdecode('Cleo%26%23x27%3Bs+...'),jdecode(''), jdecode('%2F141601.html'), 'true',[],'',''],
	['PAGE','142701',jdecode('Jahrestreffen+Fotos'),jdecode(''), jdecode('%2F142701%2Findex.html'), 'true',[ 
		['PAGE','15203',jdecode('Jahrestreffen+A-Wurf'),jdecode(''), jdecode('%2F142701%2F15203.html'), 'true',[],'',''],
		['PAGE','142722',jdecode('Jahrestreffen+B-Wurf'),jdecode(''), jdecode('%2F142701%2F142722.html'), 'true',[],'',''],
		['PAGE','142743',jdecode('Jahrestreffen+C-Wurf'),jdecode(''), jdecode('%2F142701%2F142743.html'), 'true',[],'','']
	],'',''],
	['PAGE','15703',jdecode('Aktuelles+Ausstellungen'),jdecode(''), jdecode('%2F15703.html'), 'true',[],'',''],
	['PAGE','15257',jdecode('Links'),jdecode(''), jdecode('%2F15257.html'), 'true',[],'',''],
	['PAGE','118585',jdecode('Kontakt'),jdecode(''), jdecode('%2F118585%2Findex.html'), 'true',[ 
		['PAGE','118564',jdecode('Der+Weg+zu+uns'),jdecode(''), jdecode('%2F118585%2F118564.html'), 'true',[],'','']
	],'',''],
	['PAGE','21848',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F21848%2Findex.html'), 'true',[ 
		['PAGE','21847',jdecode('Eintr%C3%A4ge'),jdecode(''), jdecode('%2F21848%2F21847.html'), 'false',[],'','']
	],'','']];
var siteelementCount=32;
theSitetree.topTemplateName='Finance';
theSitetree.paletteFamily='F3EBF5';
theSitetree.keyvisualId='2730';
theSitetree.keyvisualName='blume.jpg';
theSitetree.fontsetId='10411';
theSitetree.graphicsetId='10673';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Finance',
				paletteFamily: 	'F3EBF5',
				keyvisualId: 	'2730',
				keyvisualName: 	'blume.jpg',
				fontsetId: 		'10411',
				graphicsetId: 	'10673',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'F3EBF5',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '118701',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-21848abw0x0inxzsp']={
webappId:    '1002',
documentId:  '21848',
internalId:  '21848abw0x0inxzsp',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4521',
internalId:  '',
customField: '20111127-184800'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4578',
internalId:  '',
customField: '20110730-164514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21866',
internalId:  '',
customField: '20100505-173650'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41401',
internalId:  '',
customField: '20110914-165315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4605',
internalId:  '',
customField: '20101219-140517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14864',
internalId:  '',
customField: '20110915-204530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41901',
internalId:  '',
customField: '20111013-211426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15203',
internalId:  '',
customField: '20110730-181717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15703',
internalId:  '',
customField: '20110712-114742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91322',
internalId:  '',
customField: '20101213-171558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15257',
internalId:  '',
customField: '20110429-151938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21848',
internalId:  '',
customField: '20080407-174403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21847',
internalId:  '',
customField: '20080407-174403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '74801',
internalId:  '',
customField: '20111013-212412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91301',
internalId:  '',
customField: '20110308-205017'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '118564',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118701',
internalId:  '',
customField: '20111120-094139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118501',
internalId:  '',
customField: '20110915-204111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118522',
internalId:  '',
customField: '20110630-193131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118543',
internalId:  '',
customField: '20101108-194740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118585',
internalId:  '',
customField: '20100512-190543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118564',
internalId:  '',
customField: '20100512-190317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '138101',
internalId:  '',
customField: '20110630-172512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141601',
internalId:  '',
customField: '20110721-142437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142701',
internalId:  '',
customField: '20100914-120440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142722',
internalId:  '',
customField: '20111101-142332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142743',
internalId:  '',
customField: '20100915-200508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '187501',
internalId:  '',
customField: '20110702-095251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '187522',
internalId:  '',
customField: '20110704-180723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188001',
internalId:  '',
customField: '20110704-180658'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '198501',
internalId:  '',
customField: '20110823-161644'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '210401',
internalId:  '-',
customField: '20111117-155611'
};
webappMappings['1501']=webappMappings['1501-2627786']={
webappId:    '1501',
documentId:  '118701',
internalId:  '2627786',
customField: '1501'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXZSP';
var companyName   = 'Barbet+de+la++Colline+des+Violettes';
var htmlTitle	  = 'Barbet+de+la+Colline';
var metaKeywords  = 'Barbet%2CSchweiz%2CHundezucht%2CAttelwil%2CFranz%C3%B6sischer+Wasserhund%2C+Sylvia++Richner%2CBruno+Richner%2CTeufenthal%2Cbild%C3%96ffner';
var metaContents  = 'Hundezucht+der+Rasse+Barbet+%28Franz%C3%B6sischer+Wasserhund%29%2CMalerei%2CKunst%2Cbild%C3%96ffner';
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();
};

