/* [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','1601',jdecode('Home'),jdecode(''), jdecode('%2F1601.html'), 'true',[],'',''],
	['PAGE','6222',jdecode('NEWS+16.01.12'),jdecode(''), jdecode('%2F6222.html'), 'true',[],'',''],
	['PAGE','38601',jdecode('Weiterbildungen'),jdecode(''), jdecode('%2F38601.html'), 'true',[],'',''],
	['PAGE','6201',jdecode('H%C3%BCndinnen'),jdecode(''), jdecode('%2F6201%2Findex.html'), 'true',[ 
		['PAGE','6701',jdecode('Mira'),jdecode(''), jdecode('%2F6201%2F6701.html'), 'true',[],'',''],
		['PAGE','6722',jdecode('Yaris'),jdecode(''), jdecode('%2F6201%2F6722.html'), 'true',[],'',''],
		['PAGE','6743',jdecode('Pany'),jdecode(''), jdecode('%2F6201%2F6743.html'), 'true',[],'',''],
		['PAGE','6764',jdecode('Siria'),jdecode(''), jdecode('%2F6201%2F6764.html'), 'true',[],'',''],
		['PAGE','160912',jdecode('Xenia'),jdecode(''), jdecode('%2F6201%2F160912.html'), 'true',[],'','']
	],'',''],
	['PAGE','152712',jdecode('Wurfplanung+Siria+%28Y%29'),jdecode(''), jdecode('%2F152712%2Findex.html'), 'true',[ 
		['PAGE','163012',jdecode('Siria+28+Tage'),jdecode(''), jdecode('%2F152712%2F163012.html'), 'true',[],'','']
	],'',''],
	['PAGE','88201',jdecode('Crufts+10.03.11'),jdecode(''), jdecode('%2F88201.html'), 'true',[],'',''],
	['PAGE','6264',jdecode('Nachzucht'),jdecode(''), jdecode('%2F6264.html'), 'true',[],'',''],
	['PAGE','6848',jdecode('A+-O+W%C3%BCrfe'),jdecode(''), jdecode('%2F6848.html'), 'true',[],'',''],
	['PAGE','9901',jdecode('P-+Wurf'),jdecode(''), jdecode('%2F9901.html'), 'true',[],'',''],
	['PAGE','6869',jdecode('Q-+Wurf'),jdecode(''), jdecode('%2F6869.html'), 'true',[],'',''],
	['PAGE','9922',jdecode('R-+Wurf'),jdecode(''), jdecode('%2F9922.html'), 'true',[],'',''],
	['PAGE','6890',jdecode('S-Wurf'),jdecode(''), jdecode('%2F6890.html'), 'true',[],'',''],
	['PAGE','6243',jdecode('T-+Wurf+'),jdecode(''), jdecode('%2F6243.html'), 'true',[],'',''],
	['PAGE','55201',jdecode('U-+Wurf+'),jdecode(''), jdecode('%2F55201.html'), 'true',[],'',''],
	['PAGE','55222',jdecode('V-+Wurf'),jdecode(''), jdecode('%2F55222.html'), 'true',[],'',''],
	['PAGE','97201',jdecode('W-Wurf'),jdecode(''), jdecode('%2F97201%2Findex.html'), 'true',[ 
		['PAGE','118501',jdecode('Pany+1+Woche'),jdecode(''), jdecode('%2F97201%2F118501.html'), 'true',[],'',''],
		['PAGE','121001',jdecode('Pany+2+Woche'),jdecode(''), jdecode('%2F97201%2F121001.html'), 'true',[],'',''],
		['PAGE','126212',jdecode('Pany+3+Woche'),jdecode(''), jdecode('%2F97201%2F126212.html'), 'true',[],'',''],
		['PAGE','130312',jdecode('Pany+4+Woche'),jdecode(''), jdecode('%2F97201%2F130312.html'), 'true',[],'',''],
		['PAGE','132712',jdecode('Pany+5+Woche'),jdecode(''), jdecode('%2F97201%2F132712.html'), 'true',[],'',''],
		['PAGE','139312',jdecode('Pany+6+Woche'),jdecode(''), jdecode('%2F97201%2F139312.html'), 'true',[],'',''],
		['PAGE','142933',jdecode('Pany+7+Woche'),jdecode(''), jdecode('%2F97201%2F142933.html'), 'true',[],'',''],
		['PAGE','145533',jdecode('Pany+8+Woche'),jdecode(''), jdecode('%2F97201%2F145533.html'), 'true',[],'',''],
		['PAGE','147912',jdecode('Pany+9+Woche'),jdecode(''), jdecode('%2F97201%2F147912.html'), 'true',[],'','']
	],'',''],
	['PAGE','87301',jdecode('X+-+Wurf+'),jdecode(''), jdecode('%2F87301%2Findex.html'), 'true',[ 
		['PAGE','129012',jdecode('Mira+1+Woche'),jdecode(''), jdecode('%2F87301%2F129012.html'), 'true',[],'',''],
		['PAGE','133712',jdecode('Mira+2+Woche'),jdecode(''), jdecode('%2F87301%2F133712.html'), 'true',[],'',''],
		['PAGE','140312',jdecode('Mira+3+Woche'),jdecode(''), jdecode('%2F87301%2F140312.html'), 'true',[],'',''],
		['PAGE','142912',jdecode('Mira+4+Woche'),jdecode(''), jdecode('%2F87301%2F142912.html'), 'true',[],'',''],
		['PAGE','145512',jdecode('Mira+5+Woche'),jdecode(''), jdecode('%2F87301%2F145512.html'), 'true',[],'',''],
		['PAGE','151412',jdecode('Mira+6+Woche'),jdecode(''), jdecode('%2F87301%2F151412.html'), 'true',[],'',''],
		['PAGE','155112',jdecode('Mira+7+Woche'),jdecode(''), jdecode('%2F87301%2F155112.html'), 'true',[],'',''],
		['PAGE','157412',jdecode('Mira+8+Woche'),jdecode(''), jdecode('%2F87301%2F157412.html'), 'true',[],'',''],
		['PAGE','159212',jdecode('Mira+9+Woche'),jdecode(''), jdecode('%2F87301%2F159212.html'), 'true',[],'','']
	],'',''],
	['PAGE','6785',jdecode('Senioren'),jdecode(''), jdecode('%2F6785%2Findex.html'), 'true',[ 
		['PAGE','38901',jdecode('Senioren+Treffen+2010'),jdecode(''), jdecode('%2F6785%2F38901.html'), 'true',[],'','']
	],'',''],
	['PAGE','89401',jdecode('spez.Geburtstage'),jdecode(''), jdecode('%2F89401.html'), 'true',[],'',''],
	['PAGE','21601',jdecode('Erinnerungen'),jdecode(''), jdecode('%2F21601%2Findex.html'), 'true',[ 
		['PAGE','100001',jdecode('Atos'),jdecode(''), jdecode('%2F21601%2F100001.html'), 'false',[],'','']
	],'',''],
	['PAGE','6285',jdecode('Welpen+-Treffen'),jdecode(''), jdecode('%2F6285%2Findex.html'), 'true',[ 
		['PAGE','92001',jdecode('R-Treffen+011'),jdecode(''), jdecode('%2F6285%2F92001.html'), 'true',[],'','']
	],'',''],
	['PAGE','6306',jdecode('Kontakt'),jdecode(''), jdecode('%2F6306.html'), 'true',[],'',''],
	['PAGE','6327',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F6327.html'), 'true',[],'',''],
	['PAGE','114001',jdecode('Foto+Galerie'),jdecode(''), jdecode('%2F114001.html'), 'true',[],'',''],
	['PAGE','6932',jdecode('Ihr+Weg+zu+uns'),jdecode(''), jdecode('%2F6932%2Findex.html'), 'true',[ 
		['PAGE','6953',jdecode('Lageplan'),jdecode(''), jdecode('%2F6932%2F6953.html'), 'true',[],'','']
	],'',''],
	['PAGE','6974',jdecode('Links'),jdecode(''), jdecode('%2F6974.html'), 'true',[],'','']];
var siteelementCount=54;
theSitetree.topTemplateName='Guest';
theSitetree.paletteFamily='42685A';
theSitetree.keyvisualId='11763';
theSitetree.keyvisualName='kv_11763.jpg';
theSitetree.fontsetId='33047';
theSitetree.graphicsetId='14029';
theSitetree.contentColor='003300';
theSitetree.contentBGColor='F2E6CF';
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: 			'Guest',
				paletteFamily: 	'42685A',
				keyvisualId: 	'11763',
				keyvisualName: 	'kv_11763.jpg',
				fontsetId: 		'33047',
				graphicsetId: 	'14029',
				contentColor: 	'003300',
				contentBGColor: 'F2E6CF',
				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:  '1601',
internalId:  '',
customField: '20120117-200756'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '130312',
internalId:  '-',
customField: '20111116-194825'
};
webappMappings['1002']=webappMappings['1002-6327abw0x0in2j61']={
webappId:    '1002',
documentId:  '6327',
internalId:  '6327abw0x0in2j61',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6201',
internalId:  '',
customField: '20100402-174121'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6222',
internalId:  '',
customField: '20120201-192209'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6243',
internalId:  '',
customField: '20100823-203242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6264',
internalId:  '',
customField: '20100105-000510'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6285',
internalId:  '',
customField: '20100109-212221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6306',
internalId:  '',
customField: '20100327-093742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6327',
internalId:  '',
customField: '20100108-172423'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '6932',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '6953',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6701',
internalId:  '',
customField: '20110305-115450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6722',
internalId:  '',
customField: '20100515-163057'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6743',
internalId:  '',
customField: '20110507-160924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6764',
internalId:  '',
customField: '20111016-184643'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6785',
internalId:  '',
customField: '20100114-094123'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21601',
internalId:  '',
customField: '20100110-155945'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1601',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6848',
internalId:  '',
customField: '20100104-215223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6869',
internalId:  '',
customField: '20100112-192428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6890',
internalId:  '',
customField: '20100812-181402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9922',
internalId:  '',
customField: '20100112-190901'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6932',
internalId:  '',
customField: '20100108-171854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6953',
internalId:  '',
customField: '20100108-193601'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6974',
internalId:  '',
customField: '20111230-102432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9901',
internalId:  '',
customField: '20110103-113608'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38601',
internalId:  '',
customField: '20111128-105428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38901',
internalId:  '',
customField: '20100315-122042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '100001',
internalId:  '',
customField: '20110518-102917'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55201',
internalId:  '',
customField: '20101226-123435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55222',
internalId:  '',
customField: '20111226-144902'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '121001',
internalId:  '-',
customField: '20111105-192840'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '126212',
internalId:  '-',
customField: '20111116-192451'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89401',
internalId:  '',
customField: '20110327-095317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92001',
internalId:  '',
customField: '20110404-191100'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '129012',
internalId:  '-',
customField: '20111116-195508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '114001',
internalId:  '',
customField: '20111212-192734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '118501',
internalId:  '',
customField: '20111226-171859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '97201',
internalId:  '',
customField: '20111226-144222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87301',
internalId:  '',
customField: '20111107-210556'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '88201',
internalId:  '',
customField: '20110312-180349'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '139312',
internalId:  '-',
customField: '20111209-181431'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '132712',
internalId:  '-',
customField: '20111203-091403'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '133712',
internalId:  '-',
customField: '20111203-093800'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '140312',
internalId:  '-',
customField: '20111209-180409'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '142912',
internalId:  '-',
customField: '20111216-182830'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '142933',
internalId:  '-',
customField: '20111216-184732'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '145512',
internalId:  '-',
customField: '20111216-190855'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '145533',
internalId:  '-',
customField: '20111218-121524'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '147912',
internalId:  '-',
customField: '20111218-125332'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '151412',
internalId:  '-',
customField: '20111223-184058'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '152712',
internalId:  '-',
customField: '20120101-135016'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '155112',
internalId:  '-',
customField: '20111230-101841'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '157412',
internalId:  '-',
customField: '20120104-212354'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '159212',
internalId:  '-',
customField: '20120108-101504'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '160912',
internalId:  '-',
customField: '20120123-075631'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '163012',
internalId:  '-',
customField: '20120201-192553'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0IN2J61';
var companyName   = 'Golden+Retriever+of+Goldenlove';
var htmlTitle	  = '';
var metaKeywords  = '';
var metaContents  = '';
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();
};

