/* [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','4429',jdecode('Home'),jdecode(''),'/4429.html','true',[],'',''],
	['PAGE','184001',jdecode('Neuigkeiten+2010'),jdecode(''),'/184001/index.html','true',[ 
		['PAGE','142101',jdecode('2009'),jdecode(''),'/184001/142101.html','true',[],'',''],
		['PAGE','108461',jdecode('2008'),jdecode(''),'/184001/108461.html','true',[],'',''],
		['PAGE','103916',jdecode('2007'),jdecode(''),'/184001/103916.html','true',[],'',''],
		['PAGE','81665',jdecode('2006'),jdecode(''),'/184001/81665.html','true',[],'',''],
		['PAGE','64185',jdecode('2005'),jdecode(''),'/184001/64185.html','true',[],'',''],
		['PAGE','20803',jdecode('2004'),jdecode(''),'/184001/20803.html','true',[],'','']
	],'',''],
	['PAGE','4486',jdecode('Rassenportrait'),jdecode(''),'/4486.html','true',[],'',''],
	['PAGE','4540',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/4540.html','true',[],'',''],
	['PAGE','16539',jdecode('Unsere+Curlies'),jdecode(''),'/16539/index.html','true',[ 
		['PAGE','16566',jdecode('Ch.+Engadin+Star%26%23x27%3Bs+Alinghi'),jdecode(''),'/16539/16566.html','true',[],'',''],
		['PAGE','41375',jdecode('Ch.+Anatnaq+Arthur+%22Salo%22'),jdecode(''),'/16539/41375.html','true',[],'',''],
		['PAGE','101742',jdecode('JCh.Caballus+Yummy+%22Naira%22'),jdecode(''),'/16539/101742.html','true',[],'',''],
		['PAGE','106845',jdecode('Anatnaq+Chester'),jdecode(''),'/16539/106845.html','true',[],'',''],
		['PAGE','152901',jdecode('Engadin+Star%26%23x27%3Bs+Dream+%22Duscha%22'),jdecode(''),'/16539/152901.html','true',[],'',''],
		['PAGE','160101',jdecode('Engadin+Star%26%23x27%3Bs+Ginger'),jdecode(''),'/16539/160101.html','true',[],'','']
	],'',''],
	['PAGE','18079',jdecode('Welpen'),jdecode(''),'/18079/index.html','true',[ 
		['PAGE','4567',jdecode('Wurf+Planung'),jdecode(''),'/18079/4567.html','true',[],'',''],
		['PAGE','4594',jdecode('A-Wurf%2C+24.03.2003'),jdecode(''),'/18079/4594.html','true',[],'',''],
		['PAGE','19643',jdecode('B-Wurf%2C+06.05.2004'),jdecode(''),'/18079/19643.html','true',[],'',''],
		['PAGE','70073',jdecode('C-Wurf%2C+13.03.2006'),jdecode(''),'/18079/70073.html','true',[],'',''],
		['PAGE','92165',jdecode('D-Wurf%2C+05-06.10.2006'),jdecode(''),'/18079/92165.html','true',[],'',''],
		['PAGE','103089',jdecode('E-Wurf%2C+29.05.2007'),jdecode(''),'/18079/103089.html','true',[],'',''],
		['PAGE','107161',jdecode('F-Wurf%2C+17.03.2008'),jdecode(''),'/18079/107161.html','true',[],'',''],
		['PAGE','117401',jdecode('G-Wurf%2C+01.05.2009'),jdecode(''),'/18079/117401.html','true',[],'',''],
		['PAGE','198301',jdecode('H-Wurf%2C+ca+15.08.2010'),jdecode(''),'/18079/198301.html','true',[],'',''],
		['PAGE','160122',jdecode('I-Wurf%2C+2011'),jdecode(''),'/18079/160122.html','true',[],'','']
	],'',''],
	['PAGE','51578',jdecode('Nachzucht+'),jdecode(''),'/51578/index.html','true',[ 
		['PAGE','51978',jdecode('A-Wurf'),jdecode(''),'/51578/51978.html','true',[],'',''],
		['PAGE','54765',jdecode('B-Wurf'),jdecode(''),'/51578/54765.html','true',[],'',''],
		['PAGE','92192',jdecode('C-Wurf'),jdecode(''),'/51578/92192.html','true',[],'',''],
		['PAGE','103943',jdecode('D-Wurf'),jdecode(''),'/51578/103943.html','true',[],'',''],
		['PAGE','107307',jdecode('E-Wurf'),jdecode(''),'/51578/107307.html','true',[],'',''],
		['PAGE','121401',jdecode('F-Wurf'),jdecode(''),'/51578/121401.html','true',[],'',''],
		['PAGE','160143',jdecode('G-Wurf'),jdecode(''),'/51578/160143.html','true',[],'','']
	],'',''],
	['PAGE','105280',jdecode('Wir+gratulieren'),jdecode(''),'/105280.html','true',[],'',''],
	['PAGE','134401',jdecode('Fotos+unserer+Hunde'),jdecode(''),'/134401.html','true',[],'',''],
	['PAGE','45578',jdecode('Unsere+andern+Tiere'),jdecode(''),'/45578/index.html','true',[ 
		['PAGE','45659',jdecode('Dream'),jdecode(''),'/45578/45659.html','true',[],'',''],
		['PAGE','127701',jdecode('Jadu'),jdecode(''),'/45578/127701.html','true',[],'',''],
		['PAGE','45686',jdecode('Joy'),jdecode(''),'/45578/45686.html','true',[],'','']
	],'',''],
	['PAGE','61165',jdecode('In+Memoria'),jdecode(''),'/61165/index.html','true',[ 
		['PAGE','4513',jdecode('Ch.+Hillary+Curl+v.+Britho'),jdecode(''),'/61165/4513.html','true',[],'',''],
		['PAGE','45632',jdecode('Musta'),jdecode(''),'/61165/45632.html','true',[],'',''],
		['PAGE','45605',jdecode('Ukea'),jdecode(''),'/61165/45605.html','true',[],'',''],
		['PAGE','54792',jdecode('Kimba%2C+Yvan%2C+Juscha'),jdecode(''),'/61165/54792.html','true',[],'','']
	],'',''],
	['PAGE','41402',jdecode('Seminare%2FCurly+Treffen'),jdecode(''),'/41402/index.html','true',[ 
		['PAGE','164901',jdecode('Seminar+August+09'),jdecode(''),'/41402/164901.html','true',[],'','']
	],'',''],
	['PAGE','4621',jdecode('Kontakt'),jdecode(''),'/4621.html','true',[],'',''],
	['PAGE','41476',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/41476.html','true',[],'',''],
	['PAGE','99141',jdecode('Anfahrt'),jdecode(''),'/99141.html','true',[],'',''],
	['PAGE','4648',jdecode('Links'),jdecode(''),'/4648.html','true',[],'',''],
	['PAGE','81697',jdecode('G%C3%A4stebuch'),jdecode(''),'/81697/index.html','true',[ 
		['PAGE','81698',jdecode('Eintr%C3%A4ge'),jdecode(''),'/81697/81698.html','false',[],'','']
	],'',''],
	['PAGE','108884',jdecode('Begriffe+%22Hundewelt%22'),jdecode(''),'/108884.html','true',[],'','']];
var siteelementCount=56;
theSitetree.topTemplateName='Deepcolor';
theSitetree.paletteFamily='5583CB';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10349';
theSitetree.graphicsetId='10469';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='154186';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Deepcolor',
				paletteFamily: 	'5583CB',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10349',
				graphicsetId: 	'10469',
				contentColor: 	'000000',
				contentBGColor: '154186',
				a_color: 		'5583CB',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4429',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142101',
internalId:  '',
customField: '20100303-211153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108461',
internalId:  '',
customField: '20081229-204720'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '41476',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['1002']=webappMappings['1002-81697ABW0X0INX2DI']={
webappId:    '1002',
documentId:  '81697',
internalId:  '81697ABW0X0INX2DI',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4429',
internalId:  '',
customField: '20100712-232218'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '99141',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16539',
internalId:  '',
customField: '20091025-212422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41375',
internalId:  '',
customField: '20100513-203158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16566',
internalId:  '',
customField: '20100621-185734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134401',
internalId:  '',
customField: '20100712-231856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103916',
internalId:  '',
customField: '20081208-095448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81665',
internalId:  '',
customField: '20061224-164932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64185',
internalId:  '',
customField: '20051224-182451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20803',
internalId:  '',
customField: '20041230-163523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4486',
internalId:  '',
customField: '20070101-195411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4540',
internalId:  '',
customField: '20100210-132948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4513',
internalId:  '',
customField: '20090611-222451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101742',
internalId:  '',
customField: '20090601-213806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '106845',
internalId:  '',
customField: '20090327-195411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18079',
internalId:  '',
customField: '20090502-184151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4567',
internalId:  '',
customField: '20100617-193930'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4594',
internalId:  '',
customField: '20031223-090027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19643',
internalId:  '',
customField: '20060715-204714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70073',
internalId:  '',
customField: '20070530-193728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92165',
internalId:  '',
customField: '20061219-220646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103089',
internalId:  '',
customField: '20080318-095620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107161',
internalId:  '',
customField: '20080527-221505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117401',
internalId:  '',
customField: '20090726-212249'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51578',
internalId:  '',
customField: '20090726-212422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51978',
internalId:  '',
customField: '20071123-092734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54765',
internalId:  '',
customField: '20091017-090121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92192',
internalId:  '',
customField: '20080511-175653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '103943',
internalId:  '',
customField: '20091017-085933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107307',
internalId:  '',
customField: '20090516-221203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121401',
internalId:  '',
customField: '20090428-214814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '105280',
internalId:  '',
customField: '20100531-204747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45578',
internalId:  '',
customField: '20080730-121103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45659',
internalId:  '',
customField: '20080730-110701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127701',
internalId:  '',
customField: '20091018-211617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45686',
internalId:  '',
customField: '20040824-184057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61165',
internalId:  '',
customField: '20080730-121352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45632',
internalId:  '',
customField: '20070722-210935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45605',
internalId:  '',
customField: '20041207-112542'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54792',
internalId:  '',
customField: '20041207-113036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41402',
internalId:  '',
customField: '20090906-204708'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4621',
internalId:  '',
customField: '20051224-182618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41476',
internalId:  '',
customField: '20060715-205609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99141',
internalId:  '',
customField: '20060715-205552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4648',
internalId:  '',
customField: '20100617-201037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81697',
internalId:  '',
customField: '20060103-144728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '81698',
internalId:  '',
customField: '20060103-144728'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '108884',
internalId:  '',
customField: '20080402-153319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160122',
internalId:  '',
customField: '20100617-193951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152901',
internalId:  '',
customField: '20100416-123926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160101',
internalId:  '',
customField: '20100621-185954'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '160143',
internalId:  '',
customField: '20100617-193903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164901',
internalId:  '',
customField: '20090906-204501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '198301',
internalId:  '',
customField: '20100711-213333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '184001',
internalId:  '',
customField: '20100712-232119'
};
webappMappings['1501']=webappMappings['1501-1121367']={
webappId:    '1501',
documentId:  '4429',
internalId:  '1121367',
customField: '1501'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INX2DI';
var companyName   = 'ENGADIN+STAR%27S+CURLY+COATED+RETRIEVER';
var htmlTitle	  = 'Engadin+Stars.+Curly+Coated+Retriever.+Curlies.+Hundezucht.+Welpen.+Champion.+Hunde.+Zucht.';
var metaKeywords  = 'HundHundezuchtRetrieverCurly+Coated+RetrieverCrulyWelpen';
var metaContents  = 'HundezuchtCurly+Coated+RetrieverWelpen';
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();
};
