/* [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','4598',jdecode('Home'),jdecode(''), jdecode('%2F4598.html'), 'true',[],'',''],
	['PAGE','149743',jdecode('Welcome'),jdecode(''), jdecode('%2F149743.html'), 'true',[],'',''],
	['PAGE','23703',jdecode('News'),jdecode(''), jdecode('%2F23703.html'), 'true',[],'',''],
	['PAGE','40161',jdecode('Wir+%C3%BCber+uns'),jdecode(''), jdecode('%2F40161.html'), 'true',[],'',''],
	['PAGE','206701',jdecode('Dienstleistungen'),jdecode(''), jdecode('%2F206701%2Findex.html'), 'true',[ 
		['PAGE','207401',jdecode('Trimmen'),jdecode(''), jdecode('%2F206701%2F207401.html'), 'true',[],'',''],
		['PAGE','310412',jdecode('Ringtraining'),jdecode(''), jdecode('%2F206701%2F310412.html'), 'true',[],'',''],
		['PAGE','207422',jdecode('Futter'),jdecode(''), jdecode('%2F206701%2F207422.html'), 'true',[],'','']
	],'',''],
	['PAGE','40269',jdecode('Zucht'),jdecode(''), jdecode('%2F40269%2Findex.html'), 'true',[ 
		['PAGE','40242',jdecode('Rasse+Standard+'),jdecode(''), jdecode('%2F40269%2F40242.html'), 'true',[],'','']
	],'',''],
	['PAGE','119466',jdecode('Aufzucht'),jdecode(''), jdecode('%2F119466.html'), 'true',[],'',''],
	['PAGE','40350',jdecode('Welpen+%2F+W%C3%BCrfe'),jdecode(''), jdecode('%2F40350%2Findex.html'), 'true',[ 
		['PAGE','51328',jdecode('L+-+Wurf+10.09.2005'),jdecode(''), jdecode('%2F40350%2F51328.html'), 'true',[],'',''],
		['PAGE','119574',jdecode('M+-+Wurf+20.01.2007'),jdecode(''), jdecode('%2F40350%2F119574.html'), 'true',[],'',''],
		['PAGE','155813',jdecode('N-Wurf+23.02.2008'),jdecode(''), jdecode('%2F40350%2F155813.html'), 'true',[],'',''],
		['PAGE','157519',jdecode('O-Wurf+02.07.2009'),jdecode(''), jdecode('%2F40350%2F157519.html'), 'true',[],'',''],
		['PAGE','248912',jdecode('P-Wurf+28.02.2011'),jdecode(''), jdecode('%2F40350%2F248912.html'), 'true',[],'','']
	],'',''],
	['PAGE','321412',jdecode('Wurfplanung'),jdecode(''), jdecode('%2F321412.html'), 'true',[],'',''],
	['PAGE','119493',jdecode('H%C3%BCndinnen'),jdecode(''), jdecode('%2F119493%2Findex.html'), 'true',[ 
		['PAGE','346112',jdecode('Sanya'),jdecode(''), jdecode('%2F119493%2F346112.html'), 'true',[],'',''],
		['PAGE','40323',jdecode('Kayla'),jdecode(''), jdecode('%2F119493%2F40323.html'), 'true',[],'',''],
		['PAGE','119520',jdecode('Lynn'),jdecode(''), jdecode('%2F119493%2F119520.html'), 'true',[],'',''],
		['PAGE','162646',jdecode('No%C3%ABlle'),jdecode(''), jdecode('%2F119493%2F162646.html'), 'true',[],'',''],
		['PAGE','119547',jdecode('In+Memory'),jdecode(''), jdecode('%2F119493%2F119547.html'), 'true',[],'','']
	],'',''],
	['PAGE','220001',jdecode('R%C3%BCden'),jdecode(''), jdecode('%2F220001%2Findex.html'), 'true',[ 
		['PAGE','162637',jdecode('Nilas'),jdecode(''), jdecode('%2F220001%2F162637.html'), 'true',[],'',''],
		['PAGE','228012',jdecode('Ike'),jdecode(''), jdecode('%2F220001%2F228012.html'), 'true',[],'','']
	],'',''],
	['PAGE','144944',jdecode('Ausstellungen'),jdecode(''), jdecode('%2F144944%2Findex.html'), 'true',[ 
		['PAGE','345412',jdecode('Sanya'),jdecode(''), jdecode('%2F144944%2F345412.html'), 'true',[],'',''],
		['PAGE','144971',jdecode('Kayla'),jdecode(''), jdecode('%2F144944%2F144971.html'), 'true',[],'',''],
		['PAGE','144998',jdecode('Lynn'),jdecode(''), jdecode('%2F144944%2F144998.html'), 'true',[],'',''],
		['PAGE','166832',jdecode('No%C3%ABlle'),jdecode(''), jdecode('%2F144944%2F166832.html'), 'true',[],'',''],
		['PAGE','154573',jdecode('Nilas'),jdecode(''), jdecode('%2F144944%2F154573.html'), 'true',[],'',''],
		['PAGE','256012',jdecode('Ike'),jdecode(''), jdecode('%2F144944%2F256012.html'), 'true',[],'',''],
		['PAGE','149480',jdecode('Fachausdr%C3%BCcke'),jdecode(''), jdecode('%2F144944%2F149480.html'), 'true',[],'','']
	],'',''],
	['PAGE','152458',jdecode('Junior-Handling'),jdecode(''), jdecode('%2F152458.html'), 'true',[],'',''],
	['PAGE','149875',jdecode('Ragdoll+Katzen'),jdecode(''), jdecode('%2F149875%2Findex.html'), 'true',[ 
		['PAGE','151162',jdecode('Timon'),jdecode(''), jdecode('%2F149875%2F151162.html'), 'true',[],'',''],
		['PAGE','151171',jdecode('Sina'),jdecode(''), jdecode('%2F149875%2F151171.html'), 'true',[],'',''],
		['PAGE','151180',jdecode('Kyros'),jdecode(''), jdecode('%2F149875%2F151180.html'), 'true',[],'','']
	],'',''],
	['PAGE','40377',jdecode('Kontakt'),jdecode(''), jdecode('%2F40377%2Findex.html'), 'true',[ 
		['PAGE','53205',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''), jdecode('%2F40377%2F53205.html'), 'false',[],'','']
	],'',''],
	['PAGE','119653',jdecode('Ihr+Weg+zu+uns'),jdecode(''), jdecode('%2F119653.html'), 'true',[],'',''],
	['PAGE','119683',jdecode('Lageplan+'),jdecode(''), jdecode('%2F119683.html'), 'true',[],'',''],
	['PAGE','23865',jdecode('Links'),jdecode(''), jdecode('%2F23865.html'), 'true',[],'',''],
	['PAGE','164959',jdecode('Pin-Wand'),jdecode(''), jdecode('%2F164959.html'), 'true',[],'',''],
	['PAGE','164555',jdecode('Ferien-Fotos'),jdecode(''), jdecode('%2F164555.html'), 'true',[],'',''],
	['PAGE','237612',jdecode('Marktplatz'),jdecode(''), jdecode('%2F237612.html'), 'true',[],'',''],
	['PAGE','341312',jdecode('Maturaarbeit'),jdecode(''), jdecode('%2F341312.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 prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MX'
};
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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20120129-173705'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '345412',
internalId:  '',
customField: '20110703-085316'
};
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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149743',
internalId:  '',
customField: '20111221-123543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '207401',
internalId:  '',
customField: '20100813-095652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '206701',
internalId:  '',
customField: '20100919-113820'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1501']={
webappId:    '1501',
documentId:  '4598',
internalId:  '1501',
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: '20120120-121639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40161',
internalId:  '',
customField: '20111231-163900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40269',
internalId:  '',
customField: '20091025-144038'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40350',
internalId:  '',
customField: '20100813-154812'
};
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: '20100813-113712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40323',
internalId:  '',
customField: '20100821-181545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119520',
internalId:  '',
customField: '20110701-202303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162637',
internalId:  '',
customField: '20111212-123155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162646',
internalId:  '',
customField: '20110701-202322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '346112',
internalId:  '',
customField: '20110702-181502'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119547',
internalId:  '',
customField: '20060412-200731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144944',
internalId:  '',
customField: '20100307-184546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144971',
internalId:  '',
customField: '20100307-135935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '144998',
internalId:  '',
customField: '20101213-190931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166832',
internalId:  '',
customField: '20110701-213856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '154573',
internalId:  '',
customField: '20110701-213306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '149480',
internalId:  '',
customField: '20060902-184452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40242',
internalId:  '',
customField: '20100813-151826'
};
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: '20100813-151846'
};
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: '20110602-142618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23865',
internalId:  '',
customField: '20110320-112945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164959',
internalId:  '',
customField: '20120101-125711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '164555',
internalId:  '',
customField: '20081006-202236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '321412',
internalId:  '',
customField: '20120129-175153'
};
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:  '310412',
internalId:  '',
customField: '20101121-124205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '220001',
internalId:  '',
customField: '20111212-123120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '228012',
internalId:  '',
customField: '20100821-182235'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '237612',
internalId:  '',
customField: '20111103-123230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '248912',
internalId:  '',
customField: '20110613-095530'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '256012',
internalId:  '',
customField: '20100811-124101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '341312',
internalId:  '',
customField: '20110522-201627'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
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();
};

