/* [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','4555',jdecode('Home'),jdecode(''),'/4555.html','true',[],'',''],
	['PAGE','39302',jdecode('News'),jdecode(''),'/39302.html','true',[],'',''],
	['PAGE','90586',jdecode('Katzen+%2F+Cats'),jdecode(''),'/90586/index.html','true',[ 
		['PAGE','167701',jdecode('RUFFEN'),jdecode(''),'/90586/167701.html','true',[],'',''],
		['PAGE','41611',jdecode('KIRA'),jdecode(''),'/90586/41611.html','true',[],'',''],
		['PAGE','101245',jdecode('NAPIRAI'),jdecode(''),'/90586/101245.html','true',[],'',''],
		['PAGE','127684',jdecode('PENELOPE'),jdecode(''),'/90586/127684.html','true',[],'',''],
		['PAGE','157301',jdecode('ROSA+TEA'),jdecode(''),'/90586/157301.html','true',[],'',''],
		['PAGE','165201',jdecode('MINNIE'),jdecode(''),'/90586/165201.html','true',[],'',''],
		['PAGE','183001',jdecode('SIOUXX'),jdecode(''),'/90586/183001.html','true',[],'',''],
		['PAGE','187301',jdecode('SAVANNAH'),jdecode(''),'/90586/187301.html','true',[],'',''],
		['PAGE','187801',jdecode('SHEENA'),jdecode(''),'/90586/187801.html','true',[],'','']
	],'',''],
	['PAGE','129549',jdecode('Babys+2010'),jdecode(''),'/129549/index.html','true',[ 
		['PAGE','191201',jdecode('Naadli%26%23x27%3Bs+Babys'),jdecode(''),'/129549/191201.html','true',[],'','']
	],'',''],
	['PAGE','180601',jdecode('Rajani%26%23x27%3Bs'),jdecode(''),'/180601/index.html','true',[ 
		['PAGE','181701',jdecode('Katzen'),jdecode(''),'/180601/181701.html','true',[],'','']
	],'',''],
	['PAGE','181722',jdecode('Pl%C3%A4ne+2010'),jdecode(''),'/181722.html','true',[],'',''],
	['PAGE','17210',jdecode('Ausstellungsresultate'),jdecode(''),'/17210.html','true',[],'',''],
	['PAGE','123922',jdecode('Impressionen'),jdecode(''),'/123922/index.html','true',[ 
		['PAGE','188701',jdecode('Impressionen+2010'),jdecode(''),'/123922/188701.html','true',[],'',''],
		['PAGE','162701',jdecode('Impressionen+2009'),jdecode(''),'/123922/162701.html','true',[],'',''],
		['PAGE','130561',jdecode('Babys+Sommer+2008'),jdecode(''),'/123922/130561.html','true',[],'',''],
		['PAGE','127518',jdecode('Impressionen+2008'),jdecode(''),'/123922/127518.html','true',[],'',''],
		['PAGE','123931',jdecode('Impressionen+2007'),jdecode(''),'/123922/123931.html','true',[],'',''],
		['PAGE','121240',jdecode('Impressionen++2006'),jdecode(''),'/123922/121240.html','true',[],'','']
	],'',''],
	['PAGE','130175',jdecode('Kastraten+%2FNeuters'),jdecode(''),'/130175/index.html','true',[ 
		['PAGE','123521',jdecode('NOAH'),jdecode(''),'/130175/123521.html','true',[],'','']
	],'',''],
	['PAGE','130184',jdecode('In+Memoriam'),jdecode(''),'/130184/index.html','true',[ 
		['PAGE','123539',jdecode('ZAP'),jdecode(''),'/130184/123539.html','true',[],'',''],
		['PAGE','121525',jdecode('BAYLEE'),jdecode(''),'/130184/121525.html','true',[],'','']
	],'',''],
	['PAGE','17183',jdecode('Kittens+Fotogalerie'),jdecode(''),'/17183.html','true',[],'',''],
	['PAGE','87140',jdecode('Mehr+...+more+...'),jdecode(''),'/87140/index.html','true',[ 
		['PAGE','80504',jdecode('Fotos'),jdecode(''),'/87140/80504.html','true',[],'',''],
		['PAGE','19055',jdecode('Stories'),jdecode(''),'/87140/19055.html','true',[],'',''],
		['PAGE','63087',jdecode('Hunde'),jdecode(''),'/87140/63087.html','true',[],'',''],
		['PAGE','70302',jdecode('Hunde+Fotos'),jdecode(''),'/87140/70302.html','true',[],'',''],
		['PAGE','96221',jdecode('Links'),jdecode(''),'/87140/96221.html','true',[],'','']
	],'',''],
	['PAGE','17318',jdecode('Kontakt'),jdecode(''),'/17318/index.html','true',[ 
		['PAGE','4612',jdecode('Wir+%C3%BCber+uns'),jdecode(''),'/17318/4612.html','true',[],'',''],
		['PAGE','40561',jdecode('Ihr+Weg+zu+uns'),jdecode(''),'/17318/40561.html','true',[],'','']
	],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Comedy';
theSitetree.paletteFamily='4871C0';
theSitetree.keyvisualId='2804';
theSitetree.keyvisualName='blume.jpg';
theSitetree.fontsetId='10601';
theSitetree.graphicsetId='10722';
theSitetree.contentColor='EBEFF8';
theSitetree.contentBGColor='698BCB';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Comedy',
				paletteFamily: 	'4871C0',
				keyvisualId: 	'2804',
				keyvisualName: 	'blume.jpg',
				fontsetId: 		'10601',
				graphicsetId: 	'10722',
				contentColor: 	'EBEFF8',
				contentBGColor: '698BCB',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'36599C',
				e_color: 		'36599C',
				f_color: 		'36599C',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4555',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4555',
internalId:  '',
customField: '20100816-130411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129549',
internalId:  '',
customField: '20100816-130513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39302',
internalId:  '',
customField: '20100816-125213'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '40561',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '181722',
internalId:  '',
customField: '20100706-002354'
};
webappMappings['1501']=webappMappings['1501-2062994']={
webappId:    '1501',
documentId:  '4555',
internalId:  '2062994',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '90586',
internalId:  '',
customField: '20100505-121002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '191201',
internalId:  '',
customField: '20100816-130620'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188701',
internalId:  '',
customField: '20100505-125711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41611',
internalId:  '',
customField: '20090825-205533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101245',
internalId:  '',
customField: '20081008-001535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '187301',
internalId:  '',
customField: '20100505-121703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127684',
internalId:  '',
customField: '20100126-201110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '157301',
internalId:  '',
customField: '20100505-130228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123922',
internalId:  '',
customField: '20100505-124933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130561',
internalId:  '',
customField: '20080812-151924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '127518',
internalId:  '',
customField: '20081123-180843'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123931',
internalId:  '',
customField: '20080131-223706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121240',
internalId:  '',
customField: '20080131-223851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130175',
internalId:  '',
customField: '20100204-013604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123521',
internalId:  '',
customField: '20100126-191837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '187801',
internalId:  '',
customField: '20100505-121551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '130184',
internalId:  '',
customField: '20080802-220214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123539',
internalId:  '',
customField: '20100126-191858'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '121525',
internalId:  '',
customField: '20070521-235208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17183',
internalId:  '',
customField: '20080316-141903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '87140',
internalId:  '',
customField: '20081217-181713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80504',
internalId:  '',
customField: '20061208-220532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19055',
internalId:  '',
customField: '20040719-105815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17210',
internalId:  '',
customField: '20100505-124619'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63087',
internalId:  '',
customField: '20050809-233854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70302',
internalId:  '',
customField: '20050821-171210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '96221',
internalId:  '',
customField: '20100204-013759'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17318',
internalId:  '',
customField: '20060327-233346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4612',
internalId:  '',
customField: '20060912-231947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40561',
internalId:  '',
customField: '20041219-235215'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '181701',
internalId:  '',
customField: '20100113-234357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '180601',
internalId:  '',
customField: '20100113-231919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '162701',
internalId:  '',
customField: '20090826-201615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '165201',
internalId:  '',
customField: '20090825-210408'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '167701',
internalId:  '',
customField: '20100505-130154'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '183001',
internalId:  '',
customField: '20100505-121803'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXVKF';
var companyName   = 'Naima%27s+Norwegische+Waldkatzen';
var htmlTitle	  = 'Naimas+Norwegische+Waldkatzen';
var metaKeywords  = 'Norwegische+Waldkatzen%2C+Norsk+Skogkatt%2C+Rassekatzen%2C+Norvegesi+della+foresta%2C+Naimas%2C+Blue+Tanis%2C+Titrans%2C+Stang+ar+Voud%2C+Rassekatze%2C+norweger%2C+norv%C3%A9giens';
var metaContents  = 'Norwegische+Waldkatzenzucht+seit+1985+Norsk+skogkatt+since+1985';
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();
};
