/* [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','149743',jdecode('Welcome'),jdecode(''),'/149743.html','true',[],'',''],
	['PAGE','4598',jdecode('Home'),jdecode(''),'/4598.html','true',[],'',''],
	['PAGE','23703',jdecode('News'),jdecode(''),'/23703.html','true',[],'',''],
	['PAGE','40161',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/40161.html','true',[],'',''],
	['PAGE','206701',jdecode('Dienstleistungen'),jdecode(''),'/206701/index.html','true',[ 
		['PAGE','207401',jdecode('Trimmen'),jdecode(''),'/206701/207401.html','true',[],'',''],
		['PAGE','207422',jdecode('Futter'),jdecode(''),'/206701/207422.html','true',[],'','']
	],'',''],
	['PAGE','40269',jdecode('Zucht'),jdecode(''),'/40269/index.html','true',[ 
		['PAGE','40242',jdecode('Rasse+Standard+'),jdecode(''),'/40269/40242.html','true',[],'','']
	],'',''],
	['PAGE','119466',jdecode('Aufzucht'),jdecode(''),'/119466.html','true',[],'',''],
	['PAGE','40350',jdecode('Welpen+%2F+W%C3%BCrfe'),jdecode(''),'/40350/index.html','true',[ 
		['PAGE','51328',jdecode('L+-+Wurf+10.09.2005'),jdecode(''),'/40350/51328.html','true',[],'',''],
		['PAGE','119574',jdecode('M+-+Wurf+20.01.2007'),jdecode(''),'/40350/119574.html','true',[],'',''],
		['PAGE','155813',jdecode('N-Wurf+23.02.2008'),jdecode(''),'/40350/155813.html','true',[],'',''],
		['PAGE','157519',jdecode('O-Wurf+02.07.2009'),jdecode(''),'/40350/157519.html','true',[],'','']
	],'',''],
	['PAGE','248912',jdecode('Wurfplanung'),jdecode(''),'/248912.html','true',[],'',''],
	['PAGE','119493',jdecode('H%C3%BCndinnen'),jdecode(''),'/119493/index.html','true',[ 
		['PAGE','40323',jdecode('Kayla'),jdecode(''),'/119493/40323.html','true',[],'',''],
		['PAGE','119520',jdecode('Lynn'),jdecode(''),'/119493/119520.html','true',[],'',''],
		['PAGE','162646',jdecode('No%C3%ABlle'),jdecode(''),'/119493/162646.html','true',[],'',''],
		['PAGE','209601',jdecode('Meryl'),jdecode(''),'/119493/209601.html','true',[],'',''],
		['PAGE','119547',jdecode('In+Memory'),jdecode(''),'/119493/119547.html','true',[],'','']
	],'',''],
	['PAGE','220001',jdecode('Deckr%C3%BCden+-+Stud+dogs'),jdecode(''),'/220001/index.html','true',[ 
		['PAGE','154518',jdecode('Myles'),jdecode(''),'/220001/154518.html','true',[],'',''],
		['PAGE','162637',jdecode('Nilas'),jdecode(''),'/220001/162637.html','true',[],'',''],
		['PAGE','228012',jdecode('Ike'),jdecode(''),'/220001/228012.html','true',[],'','']
	],'',''],
	['PAGE','144944',jdecode('Ausstellungen'),jdecode(''),'/144944/index.html','true',[ 
		['PAGE','144971',jdecode('Kayla'),jdecode(''),'/144944/144971.html','true',[],'',''],
		['PAGE','144998',jdecode('Lynn'),jdecode(''),'/144944/144998.html','true',[],'',''],
		['PAGE','166823',jdecode('Myles'),jdecode(''),'/144944/166823.html','true',[],'',''],
		['PAGE','166832',jdecode('No%C3%ABlle'),jdecode(''),'/144944/166832.html','true',[],'',''],
		['PAGE','154573',jdecode('Nilas'),jdecode(''),'/144944/154573.html','true',[],'',''],
		['PAGE','256012',jdecode('Ike'),jdecode(''),'/144944/256012.html','true',[],'',''],
		['PAGE','149480',jdecode('Fachausdr%C3%BCcke'),jdecode(''),'/144944/149480.html','true',[],'','']
	],'',''],
	['PAGE','152458',jdecode('Junior-Handling'),jdecode(''),'/152458.html','true',[],'',''],
	['PAGE','149875',jdecode('Ragdoll+Katzen'),jdecode(''),'/149875/index.html','true',[ 
		['PAGE','151162',jdecode('Timon'),jdecode(''),'/149875/151162.html','true',[],'',''],
		['PAGE','151171',jdecode('Sina'),jdecode(''),'/149875/151171.html','true',[],'',''],
		['PAGE','151180',jdecode('Kyros'),jdecode(''),'/149875/151180.html','true',[],'','']
	],'',''],
	['PAGE','40377',jdecode('Kontakt'),jdecode(''),'/40377/index.html','true',[ 
		['PAGE','53205',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''),'/40377/53205.html','false',[],'','']
	],'',''],
	['PAGE','119653',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/119653.html','true',[],'',''],
	['PAGE','119683',jdecode('Lageplan+'),jdecode(''),'/119683.html','true',[],'',''],
	['PAGE','23865',jdecode('Links'),jdecode(''),'/23865.html','true',[],'',''],
	['PAGE','164959',jdecode('Pin-Wand'),jdecode(''),'/164959.html','true',[],'',''],
	['PAGE','164555',jdecode('Ferien-Fotos'),jdecode(''),'/164555.html','true',[],'',''],
	['PAGE','51364',jdecode('G%C3%A4stebuch'),jdecode(''),'/51364/index.html','true',[ 
		['PAGE','51365',jdecode('Eintr%C3%A4ge'),jdecode(''),'/51364/51365.html','false',[],'','']
	],'',''],
	['PAGE','237612',jdecode('Marktplatz'),jdecode(''),'/237612.html','true',[],'','']];
var siteelementCount=49;
theSitetree.topTemplateName='Clean';
theSitetree.paletteFamily='5685B6';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33270';
theSitetree.graphicsetId='14151';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Clean',
				paletteFamily: 	'5685B6',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33270',
				graphicsetId: 	'14151',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'577A8C',
				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:  '149743',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20091025-140310'
};
webappMappings['1002']=webappMappings['1002-51364ABW0X0INXXA5']={
webappId:    '1002',
documentId:  '51364',
internalId:  '51364ABW0X0INXXA5',
customField: 'icq=false'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '119653',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '119683',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:false;'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '149743',
internalId:  '1501',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149743',
internalId:  '',
customField: '20100302-193504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207401',
internalId:  '',
customField: '20090516-202751'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206701',
internalId:  '',
customField: '20090330-184133'
};
webappMappings['1501']=webappMappings['1501-573566']={
webappId:    '1501',
documentId:  '149743',
internalId:  '573566',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119466',
internalId:  '',
customField: '20091122-084311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152458',
internalId:  '',
customField: '20090301-151844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23703',
internalId:  '',
customField: '20100301-130325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40161',
internalId:  '',
customField: '20091025-141756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40269',
internalId:  '',
customField: '20091025-144038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40350',
internalId:  '',
customField: '20090104-131732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51328',
internalId:  '',
customField: '20090627-102629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119574',
internalId:  '',
customField: '20090627-102804'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '155813',
internalId:  '',
customField: '20090627-102926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157519',
internalId:  '',
customField: '20091020-173744'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119493',
internalId:  '',
customField: '20090524-125819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40323',
internalId:  '',
customField: '20100307-141831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119520',
internalId:  '',
customField: '20100307-141855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162637',
internalId:  '',
customField: '20100307-171215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162646',
internalId:  '',
customField: '20100307-141919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154518',
internalId:  '',
customField: '20100307-141952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119547',
internalId:  '',
customField: '20060412-200731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144944',
internalId:  '',
customField: '20100307-155407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144971',
internalId:  '',
customField: '20100307-135935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144998',
internalId:  '',
customField: '20100307-163334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166823',
internalId:  '',
customField: '20100307-162640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166832',
internalId:  '',
customField: '20100307-162219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154573',
internalId:  '',
customField: '20100307-162201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149480',
internalId:  '',
customField: '20060902-184452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40242',
internalId:  '',
customField: '20091025-151338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149875',
internalId:  '',
customField: '20090524-164242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151162',
internalId:  '',
customField: '20090524-164556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151171',
internalId:  '',
customField: '20090414-183721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '151180',
internalId:  '',
customField: '20090414-184031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40377',
internalId:  '',
customField: '20090528-211009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53205',
internalId:  '',
customField: '20050306-174139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119653',
internalId:  '',
customField: '20080106-114300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119683',
internalId:  '',
customField: '20090728-154929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23865',
internalId:  '',
customField: '20090618-203835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164959',
internalId:  '',
customField: '20091228-153422'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164555',
internalId:  '',
customField: '20081006-202236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51364',
internalId:  '',
customField: '20050218-124031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51365',
internalId:  '',
customField: '20050218-124031'
};
webappMappings['7008']=webappMappings['7008-2731']={
webappId:    '7008',
documentId:  '40377',
internalId:  '2731',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207422',
internalId:  '',
customField: '20090330-193625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '209601',
internalId:  '',
customField: '20090524-123333'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '220001',
internalId:  '',
customField: '20090610-175649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228012',
internalId:  '',
customField: '20100307-170628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '237612',
internalId:  '',
customField: '20100301-124454'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '248912',
internalId:  '',
customField: '20091020-174200'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '256012',
internalId:  '',
customField: '20100307-140833'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXXA5';
var companyName   = 'GOLDEN++OLWYN+';
var htmlTitle	  = 'Golden+Olwyn+-+Golden+Retriever+Zucht+-+Valentina+R%C3%BCedi';
var metaKeywords  = 'Golden+Olwyn%2C+Golden+Retriever%2C+Hundezucht%2C+Welpen%2C+Valentina+R%C3%BCedi%2C+Marthalen%2C+SKG%2C+RCS%2C+Zuchtst%C3%A4tte%2CHunde';
var metaContents  = 'Golden+Olwyn+-+Golden+Retriever+Zucht%2C+Hunde%2C+Welpen%2C+Zuchtst%C3%A4tte%2C+Valentina+R%C3%BCedi%2C+Marthalen%2C+Zuchtst%C3%A4tte';
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();
};
