/* [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','4498',jdecode('Home'),jdecode(''), jdecode('%2F4498.html'), 'true',[],'',''],
	['PAGE','64201',jdecode('Aktuelles++++'),jdecode(''), jdecode('%2F64201.html'), 'true',[],'',''],
	['PAGE','64222',jdecode('%C3%BCber+uns+++++'),jdecode(''), jdecode('%2F64222%2Findex.html'), 'true',[ 
		['PAGE','19516',jdecode('unser+Zuhause'),jdecode(''), jdecode('%2F64222%2F19516.html'), 'true',[],'',''],
		['PAGE','65301',jdecode('%C3%BCber+meine+Person'),jdecode(''), jdecode('%2F64222%2F65301.html'), 'true',[],'',''],
		['PAGE','4582',jdecode('unsere+Bewohner'),jdecode(''), jdecode('%2F64222%2F4582.html'), 'true',[],'','']
	],'',''],
	['PAGE','45709',jdecode('Boomer+v+R%C3%B6sslihof++++'),jdecode(''), jdecode('%2F45709%2Findex.html'), 'true',[ 
		['PAGE','86301',jdecode('Stammbaum'),jdecode(''), jdecode('%2F45709%2F86301.html'), 'true',[],'',''],
		['PAGE','86322',jdecode('Zuchtzulassung'),jdecode(''), jdecode('%2F45709%2F86322.html'), 'true',[],'','']
	],'',''],
	['PAGE','47859',jdecode('H%C3%BCndinnen'),jdecode(''), jdecode('%2F47859%2Findex.html'), 'true',[ 
		['PAGE','47868',jdecode('Bendy+vom+R%C3%B6sslihof'),jdecode(''), jdecode('%2F47859%2F47868.html'), 'true',[],'',''],
		['PAGE','4609',jdecode('Luna+++%22Wanze%22+'),jdecode(''), jdecode('%2F47859%2F4609.html'), 'true',[],'','']
	],'',''],
	['PAGE','45788',jdecode('W%C3%BCrfe'),jdecode(''), jdecode('%2F45788%2Findex.html'), 'true',[ 
		['PAGE','81701',jdecode('aktueller+Wurf'),jdecode(''), jdecode('%2F45788%2F81701.html'), 'true',[],'',''],
		['PAGE','73301',jdecode('F-Wurf++11.7.2011'),jdecode(''), jdecode('%2F45788%2F73301.html'), 'true',[],'',''],
		['PAGE','47877',jdecode('E-Wurf++13.5.2009'),jdecode(''), jdecode('%2F45788%2F47877.html'), 'true',[],'',''],
		['PAGE','46865',jdecode('D-Wurf++19.9.2008'),jdecode(''), jdecode('%2F45788%2F46865.html'), 'true',[],'',''],
		['PAGE','46139',jdecode('C-Wurf++18.5.2007'),jdecode(''), jdecode('%2F45788%2F46139.html'), 'true',[],'',''],
		['PAGE','44388',jdecode('B-Wurf++23.7.2006'),jdecode(''), jdecode('%2F45788%2F44388.html'), 'true',[],'',''],
		['PAGE','4636',jdecode('A-Wurf++11.4.2004'),jdecode(''), jdecode('%2F45788%2F4636.html'), 'true',[],'','']
	],'',''],
	['PAGE','81722',jdecode('Nachzucht++++'),jdecode(''), jdecode('%2F81722%2Findex.html'), 'true',[ 
		['PAGE','81743',jdecode('Foxi+v.+R%C3%B6sslihof'),jdecode(''), jdecode('%2F81722%2F81743.html'), 'true',[],'',''],
		['PAGE','81764',jdecode('Funny+Girl+v.R%C3%B6sslihof'),jdecode(''), jdecode('%2F81722%2F81764.html'), 'true',[],'','']
	],'',''],
	['PAGE','59801',jdecode('Vermittlung'),jdecode(''), jdecode('%2F59801.html'), 'true',[],'',''],
	['PAGE','33516',jdecode('Fotogalerie+++++'),jdecode(''), jdecode('%2F33516.html'), 'true',[],'',''],
	['PAGE','39848',jdecode('Ivo+vom+R%C3%B6sslihof'),jdecode(''), jdecode('%2F39848.html'), 'true',[],'',''],
	['PAGE','4822',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F4822%2Findex.html'), 'true',[ 
		['PAGE','4823',jdecode('Eintr%C3%A4ge'),jdecode(''), jdecode('%2F4822%2F4823.html'), 'false',[],'','']
	],'',''],
	['PAGE','34116',jdecode('Links+++'),jdecode(''), jdecode('%2F34116.html'), 'true',[],'','']];
var siteelementCount=29;
theSitetree.topTemplateName='echo';
theSitetree.paletteFamily='7B4B70';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10623';
theSitetree.graphicsetId='10629';
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: 			'echo',
				paletteFamily: 	'7B4B70',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10623',
				graphicsetId: 	'10629',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19516',
internalId:  '',
customField: '20110204-094831'
};
webappMappings['1002']=webappMappings['1002-4822ABW0X0INX38H']={
webappId:    '1002',
documentId:  '4822',
internalId:  '4822ABW0X0INX38H',
customField: 'icq=false'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4498',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4498',
internalId:  '',
customField: '20120219-162655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4582',
internalId:  '',
customField: '20110204-131149'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4609',
internalId:  '',
customField: '20110204-131315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45788',
internalId:  '',
customField: '20111105-222005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4636',
internalId:  '',
customField: '20110204-140430'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44388',
internalId:  '',
customField: '20110204-140347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46139',
internalId:  '',
customField: '20110204-140156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46865',
internalId:  '',
customField: '20110404-125850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45709',
internalId:  '',
customField: '20111105-223934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33516',
internalId:  '',
customField: '20120219-163732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39848',
internalId:  '',
customField: '20110204-131545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4822',
internalId:  '',
customField: '20040330-221653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4823',
internalId:  '',
customField: '20040330-221653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34116',
internalId:  '',
customField: '20111105-224309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47877',
internalId:  '',
customField: '20110404-125552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47859',
internalId:  '',
customField: '20110710-153150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47868',
internalId:  '',
customField: '20111016-161854'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59801',
internalId:  '',
customField: '20110204-131447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64201',
internalId:  '',
customField: '20120219-163303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64222',
internalId:  '',
customField: '20111105-222607'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65301',
internalId:  '',
customField: '20110204-150956'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73301',
internalId:  '',
customField: '20111105-210410'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '81701',
internalId:  '-',
customField: '20111105-210321'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '81722',
internalId:  '-',
customField: '20111106-112005'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '81743',
internalId:  '-',
customField: '20111105-221219'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '81764',
internalId:  '-',
customField: '20111105-221245'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '86301',
internalId:  '-',
customField: '20111105-223230'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '86322',
internalId:  '-',
customField: '20111105-223835'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INX38H';
var companyName   = 'R%C3%B6sslihof';
var htmlTitle	  = 'Parson+Russell+Terrier+vom+R%C3%B6sslihof';
var metaKeywords  = 'jackrussell%2Cparson-russell%2Cparsonrussell%2Croesslihof%2Chundezucht%2C';
var metaContents  = 'SKG-Hundezucht+mit+goldenem+G%C3%BCtezeichen+von+Parson+Russell+Terriers.++Zuchtst%C3%A4tte+eingetragen+seit+1983.';
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();
};

