/* [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','4598',jdecode('Home'),jdecode(''), jdecode('%2F4598.html'), 'true',[],'',''],
	['PAGE','22413',jdecode('Wir+%C3%BCber+uns'),jdecode(''), jdecode('%2F22413%2Findex.html'), 'true',[ 
		['PAGE','22440',jdecode('Unsere+Haustiere'),jdecode(''), jdecode('%2F22413%2F22440.html'), 'true',[],'','']
	],'',''],
	['PAGE','221412',jdecode('%22alte+Hundefotos%22'),jdecode(''), jdecode('%2F221412.html'), 'true',[],'',''],
	['PAGE','21228',jdecode('unsere+Hunde'),jdecode(''), jdecode('%2F21228.html'), 'true',[],'',''],
	['PAGE','14418',jdecode('Eigenschaften'),jdecode(''), jdecode('%2F14418.html'), 'true',[],'',''],
	['PAGE','9551',jdecode('Diverses'),jdecode(''), jdecode('%2F9551.html'), 'true',[],'',''],
	['PAGE','334712',jdecode('R%C3%BCckblick+2011'),jdecode(''), jdecode('%2F334712%2Findex.html'), 'true',[ 
		['PAGE','288412',jdecode('R%C3%BCckblick+2010'),jdecode(''), jdecode('%2F334712%2F288412.html'), 'true',[],'',''],
		['PAGE','210212',jdecode('R%C3%BCckblick+2009'),jdecode(''), jdecode('%2F334712%2F210212.html'), 'true',[],'',''],
		['PAGE','161912',jdecode('R%C3%BCckblick+2008'),jdecode(''), jdecode('%2F334712%2F161912.html'), 'true',[],'',''],
		['PAGE','92701',jdecode('R%C3%BCckblick+2007'),jdecode(''), jdecode('%2F334712%2F92701.html'), 'true',[],'',''],
		['PAGE','9578',jdecode('R%C3%BCckblick+2006'),jdecode(''), jdecode('%2F334712%2F9578.html'), 'true',[],'','']
	],'',''],
	['PAGE','299812',jdecode('Bilder+10%2F11'),jdecode(''), jdecode('%2F299812%2Findex.html'), 'true',[ 
		['PAGE','211812',jdecode('Bilder+09'),jdecode(''), jdecode('%2F299812%2F211812.html'), 'true',[],'',''],
		['PAGE','12013',jdecode('Bilder+06-08'),jdecode(''), jdecode('%2F299812%2F12013.html'), 'true',[],'',''],
		['PAGE','15316',jdecode('Baxter+'),jdecode(''), jdecode('%2F299812%2F15316.html'), 'true',[],'',''],
		['PAGE','42923',jdecode('Sisu+bis+8+Mt.'),jdecode(''), jdecode('%2F299812%2F42923.html'), 'true',[],'',''],
		['PAGE','107212',jdecode('Sisu+ab+8+Mt.'),jdecode(''), jdecode('%2F299812%2F107212.html'), 'true',[],'',''],
		['PAGE','65001',jdecode('Sassi%2FJack'),jdecode(''), jdecode('%2F299812%2F65001.html'), 'true',[],'',''],
		['PAGE','153312',jdecode('Zubi'),jdecode(''), jdecode('%2F299812%2F153312.html'), 'true',[],'',''],
		['PAGE','202712',jdecode('Lisi'),jdecode(''), jdecode('%2F299812%2F202712.html'), 'true',[],'',''],
		['PAGE','16613',jdecode('Diverse+Bilder'),jdecode(''), jdecode('%2F299812%2F16613.html'), 'true',[],'','']
	],'',''],
	['PAGE','19126',jdecode('In+Gedenken'),jdecode(''), jdecode('%2F19126.html'), 'true',[],'',''],
	['PAGE','22815',jdecode('HIG'),jdecode(''), jdecode('%2F22815%2Findex.html'), 'true',[ 
		['PAGE','22842',jdecode('%C3%9Cbungen'),jdecode(''), jdecode('%2F22815%2F22842.html'), 'true',[],'',''],
		['PAGE','176212',jdecode('Mitglieder'),jdecode(''), jdecode('%2F22815%2F176212.html'), 'true',[],'',''],
		['PAGE','22869',jdecode('Bilder+%2F+Diverses'),jdecode(''), jdecode('%2F22815%2F22869.html'), 'true',[],'',''],
		['PAGE','254112',jdecode('Hunde'),jdecode(''), jdecode('%2F22815%2F254112.html'), 'true',[],'',''],
		['PAGE','234912',jdecode('Besuch+bei+Claudio'),jdecode(''), jdecode('%2F22815%2F234912.html'), 'true',[],'',''],
		['PAGE','268712',jdecode('St+Anton+Cup+09'),jdecode(''), jdecode('%2F22815%2F268712.html'), 'true',[],'',''],
		['PAGE','268733',jdecode('Bulliplauschtag+09'),jdecode(''), jdecode('%2F22815%2F268733.html'), 'true',[],'',''],
		['PAGE','315812',jdecode('St.+Anton+Cup+2010'),jdecode(''), jdecode('%2F22815%2F315812.html'), 'true',[],'',''],
		['PAGE','22896',jdecode('Weg+zu+uns'),jdecode(''), jdecode('%2F22815%2F22896.html'), 'true',[],'',''],
		['PAGE','107233',jdecode('Abschied'),jdecode(''), jdecode('%2F22815%2F107233.html'), 'true',[],'','']
	],'',''],
	['PAGE','34105',jdecode('HIG+%2F+Sponsoren'),jdecode(''), jdecode('%2F34105.html'), 'true',[],'',''],
	['PAGE','13965',jdecode('Links'),jdecode(''), jdecode('%2F13965.html'), 'true',[],'',''],
	['PAGE','10202',jdecode('G%C3%A4stebuch'),jdecode(''), jdecode('%2F10202%2Findex.html'), 'true',[ 
		['PAGE','10203',jdecode('Eintr%C3%A4ge'),jdecode(''), jdecode('%2F10202%2F10203.html'), 'false',[],'','']
	],'','']];
var siteelementCount=39;
theSitetree.topTemplateName='Akropolis';
theSitetree.paletteFamily='A4A4AC';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10344';
theSitetree.graphicsetId='10451';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='A4A4AC';
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: 			'Akropolis',
				paletteFamily: 	'A4A4AC',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10344',
				graphicsetId: 	'10451',
				contentColor: 	'FFFFFF',
				contentBGColor: 'A4A4AC',
				a_color: 		'A4A4AC',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '221412',
internalId:  '',
customField: '20091014-115758'
};
webappMappings['1002']=webappMappings['1002-10202ABW0X0INXSOK']={
webappId:    '1002',
documentId:  '10202',
internalId:  '10202ABW0X0INXSOK',
customField: 'icq=true'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22440',
internalId:  '',
customField: '20110102-090940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22413',
internalId:  '',
customField: '20100715-100147'
};
webappMappings['1501']=webappMappings['1501-31386']={
webappId:    '1501',
documentId:  '4598',
internalId:  '31386',
customField: '1501'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4598',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4598',
internalId:  '',
customField: '20111002-173321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21228',
internalId:  '',
customField: '20100926-140859'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14418',
internalId:  '',
customField: '20110102-092848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9551',
internalId:  '',
customField: '20090726-095846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '210212',
internalId:  '',
customField: '20091228-134337'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161912',
internalId:  '',
customField: '20081228-101752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92701',
internalId:  '',
customField: '20071230-103518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9578',
internalId:  '',
customField: '20090315-095432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '211812',
internalId:  '',
customField: '20091101-102640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12013',
internalId:  '',
customField: '20090110-110159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15316',
internalId:  '',
customField: '20070115-155324'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42923',
internalId:  '',
customField: '20090405-093329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107212',
internalId:  '',
customField: '20110102-092535'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65001',
internalId:  '',
customField: '20091101-103246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '153312',
internalId:  '',
customField: '20091101-102817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202712',
internalId:  '',
customField: '20110102-092715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16613',
internalId:  '',
customField: '20091101-103739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19126',
internalId:  '',
customField: '20111101-083147'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22815',
internalId:  '',
customField: '20110911-093220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22842',
internalId:  '',
customField: '20111127-103110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '176212',
internalId:  '',
customField: '20110731-141014'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22869',
internalId:  '',
customField: '20110911-093315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22896',
internalId:  '',
customField: '20090708-102504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '107233',
internalId:  '',
customField: '20100502-095646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34105',
internalId:  '',
customField: '20090726-095550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13965',
internalId:  '',
customField: '20100825-140647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10202',
internalId:  '',
customField: '20060113-210731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10203',
internalId:  '',
customField: '20060113-210731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '234912',
internalId:  '',
customField: '20090607-133711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '254112',
internalId:  '',
customField: '20091011-093830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '334712',
internalId:  '',
customField: '20111127-102158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '268712',
internalId:  '',
customField: '20091014-110435'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '268733',
internalId:  '',
customField: '20091014-133323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '288412',
internalId:  '',
customField: '20101227-172955'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '299812',
internalId:  '',
customField: '20111127-102507'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '315812',
internalId:  '',
customField: '20100914-152842'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXSOK';
var companyName   = 'sajaba';
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();
};

