/* [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','4596',jdecode('Home'),jdecode(''),'/4596.html','true',[],'',''],
	['PAGE','4653',jdecode('wir+%C3%BCber+uns'),jdecode(''),'/4653/index.html','true',[ 
		['PAGE','89990',jdecode('Kurt'),jdecode(''),'/4653/89990.html','true',[],'',''],
		['PAGE','90164',jdecode('Renate'),jdecode(''),'/4653/90164.html','true',[],'','']
	],'',''],
	['PAGE','128801',jdecode('unsere+Hunde'),jdecode(''),'/128801.html','true',[],'',''],
	['PAGE','86163',jdecode('Ausstellungserfolge'),jdecode(''),'/86163.html','true',[],'',''],
	['PAGE','4680',jdecode('der+Barbet'),jdecode(''),'/4680/index.html','true',[ 
		['PAGE','6610',jdecode('Charakteristik'),jdecode(''),'/4680/6610.html','true',[],'',''],
		['PAGE','5001',jdecode('Standard'),jdecode(''),'/4680/5001.html','true',[],'','']
	],'',''],
	['PAGE','134601',jdecode('Gesundheit'),jdecode(''),'/134601.html','true',[],'',''],
	['PAGE','9901',jdecode('Pflege+und+Schur'),jdecode(''),'/9901.html','true',[],'',''],
	['PAGE','89020',jdecode('Zucht+und+Aufzucht'),jdecode(''),'/89020.html','true',[],'',''],
	['PAGE','5028',jdecode('Zuchth%C3%BCndinnen'),jdecode(''),'/5028.html','true',[],'',''],
	['PAGE','160901',jdecode('unser+R%C3%BCde'),jdecode(''),'/160901.html','true',[],'',''],
	['PAGE','214101',jdecode('Wurfplanung+2010'),jdecode(''),'/214101.html','true',[],'',''],
	['PAGE','174901',jdecode('Tagebuch'),jdecode(''),'/174901.html','true',[],'',''],
	['PAGE','216601',jdecode('Videos'),jdecode(''),'/216601.html','true',[],'',''],
	['PAGE','88285',jdecode('Welpen+ziehen+aus'),jdecode(''),'/88285.html','true',[],'',''],
	['PAGE','5055',jdecode('von+Zulimos...'),jdecode(''),'/5055/index.html','true',[ 
		['PAGE','65410',jdecode('Arabelle'),jdecode(''),'/5055/65410.html','true',[],'','']
	],'',''],
	['PAGE','177201',jdecode('Regenbogenbr%C3%BCcke'),jdecode(''),'/177201.html','true',[],'',''],
	['PAGE','5082',jdecode('Impressionen'),jdecode(''),'/5082.html','true',[],'',''],
	['PAGE','55638',jdecode('Kontakt'),jdecode(''),'/55638/index.html','true',[ 
		['PAGE','56152',jdecode('Kontakt+%28Form+followup+page%29'),jdecode(''),'/55638/56152.html','false',[],'','']
	],'',''],
	['PAGE','55194',jdecode('Lageplan'),jdecode(''),'/55194.html','true',[],'',''],
	['PAGE','55911',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/55911.html','true',[],'',''],
	['PAGE','5163',jdecode('Links'),jdecode(''),'/5163.html','true',[],'',''],
	['PAGE','5702',jdecode('G%C3%A4stebuch'),jdecode(''),'/5702/index.html','true',[ 
		['PAGE','5703',jdecode('Eintr%C3%A4ge'),jdecode(''),'/5702/5703.html','false',[],'','']
	],'',''],
	['PAGE','88551',jdecode('Trouvaillen'),jdecode(''),'/88551.html','true',[],'',''],
	['PAGE','92904',jdecode('Zitate'),jdecode(''),'/92904.html','true',[],'',''],
	['PAGE','105201',jdecode('etwas+Humor'),jdecode(''),'/105201.html','true',[],'',''],
	['PAGE','183201',jdecode('News+aus+aller+Welt'),jdecode(''),'/183201.html','true',[],'',''],
	['PAGE','188801',jdecode('was+mich+ber%C3%BChrt'),jdecode(''),'/188801.html','true',[],'','']];
var siteelementCount=34;
theSitetree.topTemplateName='Ragtime';
theSitetree.paletteFamily='9BA8DA';
theSitetree.keyvisualId='3572';
theSitetree.keyvisualName='kv_3572.jpg';
theSitetree.fontsetId='10737';
theSitetree.graphicsetId='10850';
theSitetree.contentColor='646580';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Ragtime',
				paletteFamily: 	'9BA8DA',
				keyvisualId: 	'3572',
				keyvisualName: 	'kv_3572.jpg',
				fontsetId: 		'10737',
				graphicsetId: 	'10850',
				contentColor: 	'646580',
				contentBGColor: 'FFFFFF',
				a_color: 		'9BA8DA',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'8D8C8C',
				e_color: 		'7D87B0',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90164',
internalId:  '',
customField: '20100304-073813'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89990',
internalId:  '',
customField: '20100304-073716'
};
webappMappings['1002']=webappMappings['1002-5702ABW0X0INXX8E']={
webappId:    '1002',
documentId:  '5702',
internalId:  '5702ABW0X0INXX8E',
customField: 'icq=false'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '55911',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '55194',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['1009']=webappMappings['1009-6141550']={
webappId:    '1009',
documentId:  '56152',
internalId:  '6141550',
customField: 'isFollowupPage:true;documentId:55638;'
};
webappMappings['7008']=webappMappings['7008-149']={
webappId:    '7008',
documentId:  '55638',
internalId:  '149',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188801',
internalId:  '',
customField: '20100528-123527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4596',
internalId:  '',
customField: '20100731-155004'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4653',
internalId:  '',
customField: '20100731-154148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183201',
internalId:  '',
customField: '20100721-075244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128801',
internalId:  '',
customField: '20100613-174641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '214101',
internalId:  '',
customField: '20100530-105618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86163',
internalId:  '',
customField: '20100525-074422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4680',
internalId:  '',
customField: '20100201-112408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6610',
internalId:  '',
customField: '20090130-072444'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20060712-153345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134601',
internalId:  '',
customField: '20100612-195723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20090221-110110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89020',
internalId:  '',
customField: '20090527-110429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5028',
internalId:  '',
customField: '20100304-071548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160901',
internalId:  '',
customField: '20100614-075917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '216601',
internalId:  '',
customField: '20100613-174631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88285',
internalId:  '',
customField: '20100313-080926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '174901',
internalId:  '',
customField: '20091211-105338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5055',
internalId:  '',
customField: '20100327-143607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65410',
internalId:  '',
customField: '20060214-074433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5082',
internalId:  '',
customField: '20090608-081215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55638',
internalId:  '',
customField: '20051227-162312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56152',
internalId:  '',
customField: '20051227-114918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55194',
internalId:  '',
customField: '20051228-111644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55911',
internalId:  '',
customField: '20051227-114446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5163',
internalId:  '',
customField: '20100709-134622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5702',
internalId:  '',
customField: '20040708-123205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5703',
internalId:  '',
customField: '20040708-123205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88551',
internalId:  '',
customField: '20070807-201902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92904',
internalId:  '',
customField: '20100528-083312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105201',
internalId:  '',
customField: '20080806-100842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177201',
internalId:  '',
customField: '20100223-092141'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '4596',
internalId:  '1501',
customField: '1501'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXX8E';
var companyName   = 'Barbet+vom+Zulimo';
var htmlTitle	  = 'Barbet+vom+Zulimo';
var metaKeywords  = 'Barbet+vom+Zulimo+Z%EF%BF%BDchter+Zwinger+Zucht+Zuchtst%EF%BF%BDtte+Hund+Hunde+Wasserhund+chien+deau+water+dog+Rassehunde+Hunderasse+Biezwil+Solothurn+Schweiz+Frankreich+Bretagne+canailles+de+verbaux';
var metaContents  = 'Die+Zuchtst%EF%BF%BDtte+Barbet+vom+Zulimo+in+Biezwil%2FSolothurn+stellt+sich+vor.';
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();
};
