/* [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','4519',jdecode('Home+'),jdecode(''),'/4519.html','true',[],'',''],
	['PAGE','255801',jdecode('News'),jdecode(''),'/255801.html','true',[],'',''],
	['PAGE','4603',jdecode('Azzaro'),jdecode(''),'/4603.html','true',[],'',''],
	['PAGE','5292',jdecode('Bayard'),jdecode(''),'/5292.html','true',[],'',''],
	['PAGE','291201',jdecode('Silver-Surfer'),jdecode(''),'/291201.html','true',[],'',''],
	['PAGE','370501',jdecode('Twiggy-Sunshine'),jdecode(''),'/370501.html','true',[],'',''],
	['PAGE','382801',jdecode('Lou-Lou'),jdecode(''),'/382801.html','true',[],'',''],
	['PAGE','268001',jdecode('Lara+Li'),jdecode(''),'/268001.html','true',[],'',''],
	['PAGE','402101',jdecode('My-Fee+Divina'),jdecode(''),'/402101.html','true',[],'',''],
	['PAGE','5211',jdecode('Alba'),jdecode(''),'/5211.html','true',[],'',''],
	['PAGE','268022',jdecode('Stella'),jdecode(''),'/268022.html','true',[],'',''],
	['PAGE','188801',jdecode('Marilyn'),jdecode(''),'/188801.html','true',[],'',''],
	['PAGE','209601',jdecode('Rhiana'),jdecode(''),'/209601.html','true',[],'',''],
	['PAGE','407101',jdecode('Kitten+'),jdecode(''),'/407101/index.html','true',[ 
		['PAGE','415301',jdecode('.'),jdecode(''),'/407101/415301.html','true',[],'',''],
		['PAGE','415322',jdecode('..'),jdecode(''),'/407101/415322.html','true',[],'',''],
		['PAGE','415343',jdecode('...'),jdecode(''),'/407101/415343.html','true',[],'',''],
		['PAGE','415701',jdecode('....'),jdecode(''),'/407101/415701.html','true',[],'',''],
		['PAGE','415722',jdecode('.....'),jdecode(''),'/407101/415722.html','true',[],'',''],
		['PAGE','415743',jdecode('.......'),jdecode(''),'/407101/415743.html','true',[],'',''],
		['PAGE','415764',jdecode('.......'),jdecode(''),'/407101/415764.html','true',[],'',''],
		['PAGE','415785',jdecode('........'),jdecode(''),'/407101/415785.html','true',[],'','']
	],'',''],
	['PAGE','123701',jdecode('Die+Farben%2FColourpoints'),jdecode(''),'/123701.html','true',[],'',''],
	['PAGE','58701',jdecode('Im+neuen+Zuhause'),jdecode(''),'/58701.html','true',[],'',''],
	['PAGE','147601',jdecode('Spiel+mit+mir...'),jdecode(''),'/147601/index.html','true',[ 
		['PAGE','4576',jdecode('Jill-Chanel%2FKastriert'),jdecode(''),'/147601/4576.html','true',[],'',''],
		['PAGE','5184',jdecode('Nuri+-+Alexia%2FKKastriert'),jdecode(''),'/147601/5184.html','true',[],'',''],
		['PAGE','31830',jdecode('Zahara%2FKastriert'),jdecode(''),'/147601/31830.html','true',[],'',''],
		['PAGE','241901',jdecode('Milaydie%2FK'),jdecode(''),'/147601/241901.html','true',[],'','']
	],'',''],
	['PAGE','5265',jdecode('Info'),jdecode(''),'/5265.html','true',[],'',''],
	['PAGE','59201',jdecode('Katzenzucht'),jdecode(''),'/59201.html','true',[],'',''],
	['PAGE','30730',jdecode('Katzenm%C3%B6belkreationen'),jdecode(''),'/30730.html','true',[],'',''],
	['PAGE','5238',jdecode('eig.+Bilder'),jdecode(''),'/5238.html','true',[],'',''],
	['PAGE','30757',jdecode('Kontakt'),jdecode(''),'/30757.html','true',[],'',''],
	['PAGE','115301',jdecode('Links'),jdecode(''),'/115301.html','true',[],'',''],
	['PAGE','53306',jdecode('G%C3%A4stebuch'),jdecode(''),'/53306/index.html','true',[ 
		['PAGE','53301',jdecode('Eintr%C3%A4ge'),jdecode(''),'/53306/53301.html','false',[],'',''],
		['PAGE','84901',jdecode('.'),jdecode(''),'/53306/84901.html','true',[],'',''],
		['PAGE','84922',jdecode('..'),jdecode(''),'/53306/84922.html','true',[],'',''],
		['PAGE','84943',jdecode('...'),jdecode(''),'/53306/84943.html','true',[],'',''],
		['PAGE','91901',jdecode('....'),jdecode(''),'/53306/91901.html','true',[],'','']
	],'','']];
var siteelementCount=41;
theSitetree.topTemplateName='Delta';
theSitetree.paletteFamily='080245';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10615';
theSitetree.graphicsetId='10811';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='080245';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Delta',
				paletteFamily: 	'080245',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10615',
				graphicsetId: 	'10811',
				contentColor: 	'FFFFFF',
				contentBGColor: '080245',
				a_color: 		'221785',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1002']=webappMappings['1002-53306abw0x0inxsvq']={
webappId:    '1002',
documentId:  '53306',
internalId:  '53306abw0x0inxsvq',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4519',
internalId:  '',
customField: '20100107-123832'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4519',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '255801',
internalId:  '',
customField: '20110614-150442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4603',
internalId:  '',
customField: '20080510-194723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5292',
internalId:  '',
customField: '20080408-203555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '291201',
internalId:  '',
customField: '20110414-133124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '370501',
internalId:  '',
customField: '20080920-151455'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '382801',
internalId:  '',
customField: '20080920-152217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '268001',
internalId:  '',
customField: '20090314-223406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '241901',
internalId:  '',
customField: '20080512-222039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '402101',
internalId:  '',
customField: '20100108-205724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5211',
internalId:  '',
customField: '20100107-213947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '268022',
internalId:  '',
customField: '20080616-105623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188801',
internalId:  '',
customField: '20100107-212706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '209601',
internalId:  '',
customField: '20090314-224326'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '407101',
internalId:  '',
customField: '20110615-115000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415301',
internalId:  '',
customField: '20110413-175201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415322',
internalId:  '',
customField: '20090613-093424'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415343',
internalId:  '',
customField: '20080914-215429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415701',
internalId:  '',
customField: '20110425-154233'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415722',
internalId:  '',
customField: '20090613-094317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415743',
internalId:  '',
customField: '20110425-154355'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415764',
internalId:  '',
customField: '20090613-095321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '415785',
internalId:  '',
customField: '20081116-230029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '123701',
internalId:  '',
customField: '20061112-111943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58701',
internalId:  '',
customField: '20110425-154025'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147601',
internalId:  '',
customField: '20061112-112001'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4576',
internalId:  '',
customField: '20080614-105734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5184',
internalId:  '',
customField: '20100107-124450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31830',
internalId:  '',
customField: '20070821-072905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5265',
internalId:  '',
customField: '20060827-225623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59201',
internalId:  '',
customField: '20070208-124141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30730',
internalId:  '',
customField: '20070209-234109'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5238',
internalId:  '',
customField: '20080518-174742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30757',
internalId:  '',
customField: '20090421-085644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115301',
internalId:  '',
customField: '20080802-214012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53306',
internalId:  '',
customField: '20060820-103009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53301',
internalId:  '',
customField: '20060820-103009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84901',
internalId:  '',
customField: '20091219-001139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84922',
internalId:  '',
customField: '20091219-001139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84943',
internalId:  '',
customField: '20091219-001139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91901',
internalId:  '',
customField: '20091219-001139'
};
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXSVQ';
var companyName   = 'British+Shorthair+%26+Scottish+Fold+++';
var htmlTitle	  = 'Zarvillle+++British+Shorthair';
var metaKeywords  = 'British+Shorthair';
var metaContents  = 'British+Shorthair+';
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();
};

