/* [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','4518',jdecode('Home'),jdecode(''),'/4518.html','true',[],'',''],
	['PAGE','415229',jdecode('Aktuell'),jdecode(''),'/415229.html','true',[],'',''],
	['PAGE','440529',jdecode('Winter+steht+vor+der+T%C3%BCr'),jdecode(''),'/440529.html','true',[],'',''],
	['PAGE','392001',jdecode('Wir+suchen+einen+Platz'),jdecode(''),'/392001.html','true',[],'',''],
	['PAGE','456929',jdecode('Ferienpl%C3%A4tze'),jdecode(''),'/456929.html','true',[],'',''],
	['PAGE','429129',jdecode('Impressionen'),jdecode(''),'/429129.html','true',[],'',''],
	['PAGE','137701',jdecode('Online-Shop'),jdecode(''),'/137701.html','true',[],'',''],
	['PAGE','241301',jdecode('So+fing+alles+an...'),jdecode(''),'/241301.html','true',[],'',''],
	['PAGE','281501',jdecode('Texte+zum+Nachdenken'),jdecode(''),'/281501.html','true',[],'',''],
	['PAGE','282101',jdecode('Meeri+K%C3%B6rpersprache'),jdecode(''),'/282101.html','true',[],'',''],
	['PAGE','35038',jdecode('Rassen'),jdecode(''),'/35038/index.html','true',[ 
		['PAGE','35065',jdecode('Kurzhaarrassen'),jdecode(''),'/35038/35065.html','true',[],'',''],
		['PAGE','35092',jdecode('Langhaarrassen'),jdecode(''),'/35038/35092.html','true',[],'',''],
		['PAGE','38330',jdecode('Hausmeerschwein'),jdecode(''),'/35038/38330.html','true',[],'','']
	],'',''],
	['PAGE','35173',jdecode('Verhalten'),jdecode(''),'/35173/index.html','true',[ 
		['PAGE','35200',jdecode('Bock+Gruppe'),jdecode(''),'/35173/35200.html','true',[],'',''],
		['PAGE','35227',jdecode('Bock+und+Weibchen'),jdecode(''),'/35173/35227.html','true',[],'',''],
		['PAGE','40786',jdecode('Integration'),jdecode(''),'/35173/40786.html','true',[],'','']
	],'',''],
	['PAGE','342201',jdecode('Eigenbau+Ideen'),jdecode(''),'/342201.html','true',[],'',''],
	['PAGE','9015',jdecode('Haltung'),jdecode(''),'/9015/index.html','true',[ 
		['PAGE','12003',jdecode('Artgerecht'),jdecode(''),'/9015/12003.html','true',[],'',''],
		['PAGE','13352',jdecode('Nahrung'),jdecode(''),'/9015/13352.html','true',[],'',''],
		['PAGE','12325',jdecode('Aussenhaltung'),jdecode(''),'/9015/12325.html','true',[],'',''],
		['PAGE','12352',jdecode('Innenhaltung'),jdecode(''),'/9015/12352.html','true',[],'',''],
		['PAGE','12406',jdecode('Kosten'),jdecode(''),'/9015/12406.html','true',[],'',''],
		['PAGE','13589',jdecode('Kauf'),jdecode(''),'/9015/13589.html','true',[],'','']
	],'',''],
	['PAGE','209901',jdecode('K%C3%A4fige'),jdecode(''),'/209901.html','true',[],'',''],
	['PAGE','9042',jdecode('Gehegebau'),jdecode(''),'/9042/index.html','true',[ 
		['PAGE','12433',jdecode('Aussenhaltung'),jdecode(''),'/9042/12433.html','true',[],'',''],
		['PAGE','12460',jdecode('Innenhaltung'),jdecode(''),'/9042/12460.html','true',[],'','']
	],'',''],
	['PAGE','33342',jdecode('Krankheiten'),jdecode(''),'/33342.html','true',[],'',''],
	['PAGE','52820',jdecode('Ihre+Fragen'),jdecode(''),'/52820.html','true',[],'',''],
	['PAGE','9150',jdecode('Kontakt'),jdecode(''),'/9150.html','true',[],'',''],
	['PAGE','9529',jdecode('G%C3%A4stebuch'),jdecode(''),'/9529/index.html','true',[ 
		['PAGE','9530',jdecode('Eintr%C3%A4ge'),jdecode(''),'/9529/9530.html','false',[],'','']
	],'',''],
	['PAGE','9177',jdecode('Links'),jdecode(''),'/9177.html','true',[],'','']];
var siteelementCount=36;
theSitetree.topTemplateName='Intense';
theSitetree.paletteFamily='66956C';
theSitetree.keyvisualId='3496';
theSitetree.keyvisualName='kv_3496.jpg';
theSitetree.fontsetId='10654';
theSitetree.graphicsetId='10800';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='B3D0B7';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Intense',
				paletteFamily: 	'66956C',
				keyvisualId: 	'3496',
				keyvisualName: 	'kv_3496.jpg',
				fontsetId: 		'10654',
				graphicsetId: 	'10800',
				contentColor: 	'000000',
				contentBGColor: 'B3D0B7',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'AD401A',
				e_color: 		'727171',
				f_color: 		'3F3F3F',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '440529',
internalId:  '',
customField: '20091113-205648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '137701',
internalId:  '',
customField: '20100109-193940'
};
webappMappings['1002']=webappMappings['1002-9529ABW0X0INXS8V']={
webappId:    '1002',
documentId:  '9529',
internalId:  '9529ABW0X0INXS8V',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4518',
internalId:  '1006',
customField: '1006'
};
webappMappings['1003']=webappMappings['1003-abw0x0inxs8v117509ffdcf']={
webappId:    '1003',
documentId:  '52820',
internalId:  'abw0x0inxs8v117509ffdcf',
customField: 'de:CH:'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '241301',
internalId:  '',
customField: '20080910-215659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9177',
internalId:  '',
customField: '20090911-221808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415229',
internalId:  '',
customField: '20100109-194417'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4518',
internalId:  '',
customField: '20100109-194555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '392001',
internalId:  '',
customField: '20091216-202155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '429129',
internalId:  '',
customField: '20090901-110150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '281501',
internalId:  '',
customField: '20090911-220929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '282101',
internalId:  '',
customField: '20071029-153957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35038',
internalId:  '',
customField: '20060304-220445'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35065',
internalId:  '',
customField: '20091102-195014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35092',
internalId:  '',
customField: '20091102-195132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38330',
internalId:  '',
customField: '20091102-195108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35173',
internalId:  '',
customField: '20071106-103555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35200',
internalId:  '',
customField: '20071106-103856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35227',
internalId:  '',
customField: '20060805-161345'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40786',
internalId:  '',
customField: '20060314-113734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '342201',
internalId:  '',
customField: '20091011-164132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9015',
internalId:  '',
customField: '20081003-115037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12003',
internalId:  '',
customField: '20051206-103312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13352',
internalId:  '',
customField: '20060128-192419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12325',
internalId:  '',
customField: '20071017-150159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12352',
internalId:  '',
customField: '20060805-162311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12406',
internalId:  '',
customField: '20051206-100421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13589',
internalId:  '',
customField: '20051207-114900'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '209901',
internalId:  '',
customField: '20091102-195853'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9042',
internalId:  '',
customField: '20081003-111617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12433',
internalId:  '',
customField: '20091102-195719'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12460',
internalId:  '',
customField: '20091102-195827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33342',
internalId:  '',
customField: '20061102-204151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52820',
internalId:  '',
customField: '20080910-152450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9150',
internalId:  '',
customField: '20091227-163942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9529',
internalId:  '',
customField: '20060128-192847'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9530',
internalId:  '',
customField: '20051123-180541'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '456929',
internalId:  '',
customField: '20090925-214216'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXS8V';
var companyName   = 'Fellherren+Meerschweinchen';
var htmlTitle	  = 'Meerschweincheninfo';
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();
};
