/* [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','501',jdecode('HOME'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','135512',jdecode('AKTUELL'),jdecode(''),'/135512.html','true',[],'',''],
	['PAGE','260012',jdecode('ARTILLERIEWERK+Furkels'),jdecode(''),'/260012.html','true',[],'',''],
	['PAGE','112401',jdecode('VERANSTALTUNG'),jdecode(''),'/112401.html','true',[],'',''],
	['PAGE','265612',jdecode('VOLLDAMPF+a.+Hauenstein%21'),jdecode(''),'/265612.html','true',[],'',''],
	['PAGE','6301',jdecode('LINKS'),jdecode(''),'/6301.html','true',[],'',''],
	['PAGE','594',jdecode('FOTOGRAPHIE'),jdecode(''),'/594.html','true',[],'',''],
	['PAGE','192612',jdecode('RADIO+RTR-1+Traumland'),jdecode(''),'/192612.html','true',[],'',''],
	['PAGE','310412',jdecode('RADIO+RTR-2+Powerstation'),jdecode(''),'/310412.html','true',[],'',''],
	['PAGE','129601',jdecode('AMATEURFUNK'),jdecode(''),'/129601/index.html','true',[ 
		['PAGE','112901',jdecode('Sprechfunk'),jdecode(''),'/129601/112901.html','true',[],'',''],
		['PAGE','112922',jdecode('CW-Empfang'),jdecode(''),'/129601/112922.html','true',[],'',''],
		['PAGE','115201',jdecode('RTTY-Fernschreiber'),jdecode(''),'/129601/115201.html','true',[],'',''],
		['PAGE','116622',jdecode('Datenfunk+%28Packet-Radio%29'),jdecode(''),'/129601/116622.html','true',[],'',''],
		['PAGE','112201',jdecode('QSL-Karte+%28Empfangsbet%C3%A4tigung%29'),jdecode(''),'/129601/112201.html','true',[],'',''],
		['PAGE','142512',jdecode('SSTV-Empfang'),jdecode(''),'/129601/142512.html','true',[],'',''],
		['PAGE','112964',jdecode('PSK-Empfang'),jdecode(''),'/129601/112964.html','true',[],'',''],
		['PAGE','147212',jdecode('AM-Stereo'),jdecode(''),'/129601/147212.html','true',[],'',''],
		['PAGE','185012',jdecode('Botschaftsfunk'),jdecode(''),'/129601/185012.html','true',[],'',''],
		['PAGE','615',jdecode('Funkbude-Ger%C3%A4te+HE9AJG'),jdecode(''),'/129601/615.html','true',[],'',''],
		['PAGE','141112',jdecode('2%2C4MHz+-Band'),jdecode(''),'/129601/141112.html','true',[],'','']
	],'',''],
	['PAGE','116601',jdecode('RUNDFUNK+Empfang'),jdecode(''),'/116601.html','true',[],'',''],
	['PAGE','119101',jdecode('DRM-Empfang'),jdecode(''),'/119101.html','true',[],'',''],
	['PAGE','166212',jdecode('DAB-Digitales+Radio'),jdecode(''),'/166212.html','true',[],'',''],
	['PAGE','194512',jdecode('PIRATENSENDER'),jdecode(''),'/194512.html','true',[],'',''],
	['PAGE','223112',jdecode('FREE+RADIO'),jdecode(''),'/223112.html','true',[],'',''],
	['PAGE','136812',jdecode('AGENTENFUNK'),jdecode(''),'/136812.html','true',[],'',''],
	['PAGE','213812',jdecode('%22ECHELON%22+System+ONYX++'),jdecode(''),'/213812.html','true',[],'',''],
	['PAGE','132612',jdecode('ZEITZEICHENSENDER'),jdecode(''),'/132612.html','true',[],'',''],
	['PAGE','182912',jdecode('SEEFUNK'),jdecode(''),'/182912.html','true',[],'',''],
	['PAGE','222212',jdecode('FEUERSCHIFF'),jdecode(''),'/222212.html','true',[],'',''],
	['PAGE','202112',jdecode('FLUGFUNK'),jdecode(''),'/202112/index.html','true',[ 
		['PAGE','203312',jdecode('Kommunikationsfunk'),jdecode(''),'/202112/203312.html','true',[],'',''],
		['PAGE','211012',jdecode('Flugnavigation'),jdecode(''),'/202112/211012.html','true',[],'',''],
		['PAGE','215512',jdecode('ACARS'),jdecode(''),'/202112/215512.html','true',[],'',''],
		['PAGE','219412',jdecode('Volmet'),jdecode(''),'/202112/219412.html','true',[],'',''],
		['PAGE','231012',jdecode('HFGCS+Milit%C3%A4r'),jdecode(''),'/202112/231012.html','true',[],'','']
	],'',''],
	['PAGE','91001',jdecode('FOTOS'),jdecode(''),'/91001.html','true',[],'',''],
	['PAGE','5801',jdecode('GARTEN'),jdecode(''),'/5801.html','true',[],'',''],
	['PAGE','37601',jdecode('DAMPFMASCHINEN'),jdecode(''),'/37601.html','true',[],'',''],
	['PAGE','41501',jdecode('SOUNDSTUDIO'),jdecode(''),'/41501.html','true',[],'',''],
	['PAGE','150012',jdecode('TONBAND+NAGRA'),jdecode(''),'/150012.html','true',[],'',''],
	['PAGE','180812',jdecode('TONBAND+SONY+TC-510-2+'),jdecode(''),'/180812.html','true',[],'',''],
	['PAGE','52601',jdecode('SATELLITEN+EMPFANG'),jdecode(''),'/52601.html','true',[],'',''],
	['PAGE','232912',jdecode('RETRO-TECHNICA'),jdecode(''),'/232912.html','true',[],'',''],
	['PAGE','38201',jdecode('HANDARBEIT+%2F+Elsbeth'),jdecode(''),'/38201/index.html','true',[ 
		['PAGE','7735',jdecode('Eintr%C3%A4ge'),jdecode(''),'/38201/7735.html','false',[],'','']
	],'',''],
	['PAGE','89501',jdecode('WANDERN+-++AUSFL%C3%9CGE'),jdecode(''),'/89501.html','true',[],'',''],
	['PAGE','64501',jdecode('WETTER+EMPFANG'),jdecode(''),'/64501.html','true',[],'',''],
	['PAGE','313512',jdecode('WEINBAU+Muttenz'),jdecode(''),'/313512.html','true',[],'',''],
	['PAGE','7740',jdecode('G%C3%84STEBUCH'),jdecode(''),'/7740.html','true',[],'','']];
var siteelementCount=51;
theSitetree.topTemplateName='Displace';
theSitetree.paletteFamily='2E2E2E';
theSitetree.keyvisualId='11075';
theSitetree.keyvisualName='kv_11075.jpg';
theSitetree.fontsetId='31958';
theSitetree.graphicsetId='13798';
theSitetree.contentColor='ED9E97';
theSitetree.contentBGColor='2E2E2E';
var localeDef={
  language: 'de',
  country: 'CH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Displace',
				paletteFamily: 	'2E2E2E',
				keyvisualId: 	'11075',
				keyvisualName: 	'kv_11075.jpg',
				fontsetId: 		'31958',
				graphicsetId: 	'13798',
				contentColor: 	'ED9E97',
				contentBGColor: '2E2E2E',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1002']=webappMappings['1002-7740abw0x0ine7kg']={
webappId:    '1002',
documentId:  '7740',
internalId:  '7740abw0x0ine7kg',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100207-115641'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '142512',
internalId:  '',
customField: '20100207-120426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6301',
internalId:  '',
customField: '20100825-210714'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '594',
internalId:  '',
customField: '20100501-234015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '615',
internalId:  '',
customField: '20100207-120742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20100904-220048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7740',
internalId:  '',
customField: '20090113-210718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7735',
internalId:  '',
customField: '20090113-210718'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37601',
internalId:  '',
customField: '20100306-143934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38201',
internalId:  '',
customField: '20100627-160017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '41501',
internalId:  '',
customField: '20100207-121119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52601',
internalId:  '',
customField: '20100207-121304'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64501',
internalId:  '',
customField: '20100725-212548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '89501',
internalId:  '',
customField: '20100801-125253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '91001',
internalId:  '',
customField: '20100103-235134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112401',
internalId:  '',
customField: '20100425-151103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112201',
internalId:  '',
customField: '20100315-232528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '132612',
internalId:  '',
customField: '20100207-120323'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112901',
internalId:  '',
customField: '20100826-000615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112922',
internalId:  '',
customField: '20100207-115921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '147212',
internalId:  '',
customField: '20100207-120537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '112964',
internalId:  '',
customField: '20100104-153353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '141112',
internalId:  '',
customField: '20100207-120831'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '136812',
internalId:  '',
customField: '20100214-225825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115201',
internalId:  '',
customField: '20100131-144554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116622',
internalId:  '',
customField: '20100101-022251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '116601',
internalId:  '',
customField: '20100306-115120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '119101',
internalId:  '',
customField: '20100101-185122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '129601',
internalId:  '',
customField: '20100207-115807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '135512',
internalId:  '',
customField: '20100503-204119'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150012',
internalId:  '',
customField: '20100707-000737'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '166212',
internalId:  '',
customField: '20100227-202524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '180812',
internalId:  '',
customField: '20100113-211515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '182912',
internalId:  '',
customField: '20100207-120634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '185012',
internalId:  '',
customField: '20100115-235238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '192612',
internalId:  '',
customField: '20100822-214327'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '194512',
internalId:  '',
customField: '20100730-232616'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '202112',
internalId:  '',
customField: '20100206-164056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '203312',
internalId:  '',
customField: '20100206-213754'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '211012',
internalId:  '',
customField: '20100206-221925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '213812',
internalId:  '',
customField: '20100209-211933'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '215512',
internalId:  '',
customField: '20100210-230300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '219412',
internalId:  '',
customField: '20100217-222122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '222212',
internalId:  '',
customField: '20100221-011528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '223112',
internalId:  '',
customField: '20100725-002153'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '231012',
internalId:  '',
customField: '20100225-234007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '232912',
internalId:  '',
customField: '20100306-203214'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '260012',
internalId:  '',
customField: '20100614-230050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '265612',
internalId:  '',
customField: '20100819-231205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '310412',
internalId:  '',
customField: '20100817-232402'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '313512',
internalId:  '',
customField: '20100829-193329'
};
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INE7KG';
var companyName   = 'Homepage+Roland+und+Elsbeth';
var htmlTitle	  = 'Roland+Bieri%3BHE9AJG%3BNAGRA%3BBacchus%2CKurzwellen%3BRundfunk%3BAmateurfunk%3BEisenbahn%3BGarten%3BRadio%2CAusfl%C3%BCge%2CWandern';
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();
};
