/* [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','249701',jdecode('Home'),jdecode(''), jdecode('%2F249701.html'), 'true',[],'',''],
	['PAGE','4596',jdecode('Aktuelles'),jdecode(''), jdecode('%2F4596%2Findex.html'), 'true',[ 
		['PAGE','174901',jdecode('Tagebuch'),jdecode(''), jdecode('%2F4596%2F174901.html'), 'true',[],'',''],
		['PAGE','183201',jdecode('News+aus+aller+Welt'),jdecode(''), jdecode('%2F4596%2F183201.html'), 'true',[],'','']
	],'',''],
	['PAGE','246401',jdecode('der+Barbet'),jdecode(''), jdecode('%2F246401%2Findex.html'), 'true',[ 
		['PAGE','4680',jdecode('Geschichte'),jdecode(''), jdecode('%2F246401%2F4680.html'), 'true',[],'',''],
		['PAGE','6610',jdecode('Charakteristik'),jdecode(''), jdecode('%2F246401%2F6610.html'), 'true',[],'',''],
		['PAGE','5001',jdecode('Standard'),jdecode(''), jdecode('%2F246401%2F5001.html'), 'true',[],'',''],
		['PAGE','134601',jdecode('Gesundheit'),jdecode(''), jdecode('%2F246401%2F134601.html'), 'true',[],'',''],
		['PAGE','256401',jdecode('Pflege'),jdecode(''), jdecode('%2F246401%2F256401.html'), 'true',[],'',''],
		['PAGE','9901',jdecode('Schur'),jdecode(''), jdecode('%2F246401%2F9901.html'), 'true',[],'','']
	],'',''],
	['PAGE','4653',jdecode('wir+%C3%BCber+uns'),jdecode(''), jdecode('%2F4653%2Findex.html'), 'true',[ 
		['PAGE','89990',jdecode('Kurt'),jdecode(''), jdecode('%2F4653%2F89990.html'), 'true',[],'',''],
		['PAGE','90164',jdecode('Renate'),jdecode(''), jdecode('%2F4653%2F90164.html'), 'true',[],'',''],
		['PAGE','236501',jdecode('wie+alles+begann'),jdecode(''), jdecode('%2F4653%2F236501.html'), 'true',[],'',''],
		['PAGE','240501',jdecode('und+heute%3F'),jdecode(''), jdecode('%2F4653%2F240501.html'), 'true',[],'','']
	],'',''],
	['PAGE','128801',jdecode('unsere+Hunde'),jdecode(''), jdecode('%2F128801%2Findex.html'), 'true',[ 
		['PAGE','5028',jdecode('Zuchth%C3%BCndinnen'),jdecode(''), jdecode('%2F128801%2F5028.html'), 'true',[],'',''],
		['PAGE','86163',jdecode('Ausstellungserfolge'),jdecode(''), jdecode('%2F128801%2F86163.html'), 'true',[],'',''],
		['PAGE','5082',jdecode('Impressionen'),jdecode(''), jdecode('%2F128801%2F5082.html'), 'true',[],'',''],
		['PAGE','177201',jdecode('Regenbogenbr%C3%BCcke'),jdecode(''), jdecode('%2F128801%2F177201.html'), 'true',[],'','']
	],'',''],
	['PAGE','89020',jdecode('Zucht+und+Aufzucht'),jdecode(''), jdecode('%2F89020%2Findex.html'), 'true',[ 
		['PAGE','276701',jdecode('A-Wurf+1998'),jdecode(''), jdecode('%2F89020%2F276701.html'), 'true',[],'',''],
		['PAGE','65410',jdecode('Arabelle'),jdecode(''), jdecode('%2F89020%2F65410.html'), 'true',[],'',''],
		['PAGE','276722',jdecode('B-Wurf+2001'),jdecode(''), jdecode('%2F89020%2F276722.html'), 'true',[],'',''],
		['PAGE','276743',jdecode('C-Wurf+2002'),jdecode(''), jdecode('%2F89020%2F276743.html'), 'true',[],'',''],
		['PAGE','88285',jdecode('D-Wurf+2004'),jdecode(''), jdecode('%2F89020%2F88285.html'), 'true',[],'',''],
		['PAGE','276785',jdecode('E-Wurf+2006'),jdecode(''), jdecode('%2F89020%2F276785.html'), 'true',[],'',''],
		['PAGE','276806',jdecode('F-Wurf+2007'),jdecode(''), jdecode('%2F89020%2F276806.html'), 'true',[],'',''],
		['PAGE','276827',jdecode('G-Wurf+2007'),jdecode(''), jdecode('%2F89020%2F276827.html'), 'true',[],'',''],
		['PAGE','276848',jdecode('H-Wurf+2008'),jdecode(''), jdecode('%2F89020%2F276848.html'), 'true',[],'',''],
		['PAGE','276869',jdecode('I-Wurf+2009'),jdecode(''), jdecode('%2F89020%2F276869.html'), 'true',[],'',''],
		['PAGE','276890',jdecode('J-Wurf+2009'),jdecode(''), jdecode('%2F89020%2F276890.html'), 'true',[],'',''],
		['PAGE','276911',jdecode('K-Wurf+2011'),jdecode(''), jdecode('%2F89020%2F276911.html'), 'true',[],'',''],
		['PAGE','5055',jdecode('...und+werden+gross'),jdecode(''), jdecode('%2F89020%2F5055.html'), 'true',[],'','']
	],'',''],
	['PAGE','214101',jdecode('Wurfplanung+2012'),jdecode(''), jdecode('%2F214101.html'), 'true',[],'',''],
	['PAGE','216601',jdecode('Videos'),jdecode(''), jdecode('%2F216601.html'), 'true',[],'',''],
	['PAGE','88551',jdecode('Trouvaillen'),jdecode(''), jdecode('%2F88551.html'), 'true',[],'',''],
	['PAGE','55638',jdecode('Kontakt'),jdecode(''), jdecode('%2F55638%2Findex.html'), 'true',[ 
		['PAGE','56152',jdecode('Kontakt+%28Form+followup+page%29'),jdecode(''), jdecode('%2F55638%2F56152.html'), 'false',[],'',''],
		['PAGE','55194',jdecode('Lageplan'),jdecode(''), jdecode('%2F55638%2F55194.html'), 'true',[],'',''],
		['PAGE','55911',jdecode('Ihr+Weg+zu+uns'),jdecode(''), jdecode('%2F55638%2F55911.html'), 'true',[],'','']
	],'',''],
	['PAGE','5163',jdecode('Links'),jdecode(''), jdecode('%2F5163.html'), 'true',[],'',''],
	['PAGE','5702',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F5702%2Findex.html'), 'true',[ 
		['PAGE','5703',jdecode('Eintr%C3%A4ge'),jdecode(''), jdecode('%2F5702%2F5703.html'), 'false',[],'','']
	],'','']];
var siteelementCount=45;
theSitetree.topTemplateName='Groove';
theSitetree.paletteFamily='E1CEA1';
theSitetree.keyvisualId='6007';
theSitetree.keyvisualName='kv_6007.jpg';
theSitetree.fontsetId='11123';
theSitetree.graphicsetId='11920';
theSitetree.contentColor='5F5F60';
theSitetree.contentBGColor='E4E4E6';
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: 			'Groove',
				paletteFamily: 	'E1CEA1',
				keyvisualId: 	'6007',
				keyvisualName: 	'kv_6007.jpg',
				fontsetId: 		'11123',
				graphicsetId: 	'11920',
				contentColor: 	'5F5F60',
				contentBGColor: 'E4E4E6',
				a_color: 		'000000',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90164',
internalId:  '',
customField: '20101023-153337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89990',
internalId:  '',
customField: '20101011-071751'
};
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:  '4596',
internalId:  '',
customField: '20110724-202743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4653',
internalId:  '',
customField: '20101023-152735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183201',
internalId:  '',
customField: '20110508-160156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '128801',
internalId:  '',
customField: '20110227-145908'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '214101',
internalId:  '',
customField: '20110705-092351'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86163',
internalId:  '',
customField: '20110705-091451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4680',
internalId:  '',
customField: '20101122-141437'
};
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: '20110312-083317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20090221-110110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89020',
internalId:  '',
customField: '20110218-091812'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5028',
internalId:  '',
customField: '20100304-071548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '256401',
internalId:  '',
customField: '20110301-221007'
};
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: '20101122-083719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65410',
internalId:  '',
customField: '20060214-074433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '276890',
internalId:  '',
customField: '20110728-212652'
};
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: '20110202-200424'
};
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:  '276848',
internalId:  '',
customField: '20110728-212652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '236501',
internalId:  '',
customField: '20101106-173229'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '177201',
internalId:  '',
customField: '20100223-092141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '249701',
internalId:  '',
customField: '20110725-203236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '240501',
internalId:  '',
customField: '20101109-071616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '276911',
internalId:  '',
customField: '20110728-212652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '246401',
internalId:  '',
customField: '20101122-141855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '276869',
internalId:  '',
customField: '20110728-212652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '276701',
internalId:  '',
customField: '20110728-212652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '276722',
internalId:  '',
customField: '20110728-212652'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXX8E';
var companyName   = 'Barbet+vom+Zulimo+-+Hundezucht+mit+Verantwortung';
var htmlTitle	  = 'Barbet+vom+Zulimo';
var metaKeywords  = 'Barbet%2C+vom+Zulimo%2C+french+waterdog%2C+french+water+dog%2C+franz%C3%B6sischer+Wasserhund%2C+chien+d+eau+fran%C3%A7ais%2C+old+bloodlines%2C+Poppenspaler%2C+Barbochos%2C+authentic+Barbet%2C+Zuechter%2C+Zwinger%2C+Zucht%2C+Zuchtstaette%2C+Hund%2C+Hunde%2C+Rassehunde%2C+Hunderasse%2C+Biezwil%2C+Solothurn%2C+Schweiz';
var metaContents  = 'Die+Zuchtstaette+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();
};

