/* [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','4558',jdecode('HOME'),jdecode(''), jdecode('%2F4558.html'), 'true',[],'',''],
	['PAGE','586231',jdecode('Lama+Mini-Scale'),jdecode(''), jdecode('%2F586231.html'), 'true',[],'',''],
	['PAGE','530631',jdecode('Lama+3%2C4m+VIDEOS'),jdecode(''), jdecode('%2F530631.html'), 'true',[],'',''],
	['PAGE','515801',jdecode('Lama+3%2C4m+Flugfotos'),jdecode(''), jdecode('%2F515801.html'), 'true',[],'',''],
	['PAGE','484701',jdecode('Lama+3%2C4m+Aufbau'),jdecode(''), jdecode('%2F484701.html'), 'true',[],'',''],
	['PAGE','580531',jdecode('Videos+FLUGTAGE'),jdecode(''), jdecode('%2F580531.html'), 'true',[],'',''],
	['PAGE','517801',jdecode('Fotos+FLUGTAGE'),jdecode(''), jdecode('%2F517801%2Findex.html'), 'true',[ 
		['PAGE','594031',jdecode('CCCC+2011'),jdecode(''), jdecode('%2F517801%2F594031.html'), 'true',[],'',''],
		['PAGE','581231',jdecode('Scale+Dulliken+2011'),jdecode(''), jdecode('%2F517801%2F581231.html'), 'true',[],'',''],
		['PAGE','576431',jdecode('Heli+Challenge+2011'),jdecode(''), jdecode('%2F517801%2F576431.html'), 'true',[],'',''],
		['PAGE','574431',jdecode('Air-Hoi+2011'),jdecode(''), jdecode('%2F517801%2F574431.html'), 'true',[],'',''],
		['PAGE','560531',jdecode('Heliplausch+SZ%2FUR'),jdecode(''), jdecode('%2F517801%2F560531.html'), 'true',[],'',''],
		['PAGE','534031',jdecode('Scale+Dulliken+2010'),jdecode(''), jdecode('%2F517801%2F534031.html'), 'true',[],'',''],
		['PAGE','525631',jdecode('A.L.K+Flugtage+2010'),jdecode(''), jdecode('%2F517801%2F525631.html'), 'true',[],'',''],
		['PAGE','517822',jdecode('8.+Ostschw.+Helitreff'),jdecode(''), jdecode('%2F517801%2F517822.html'), 'true',[],'',''],
		['PAGE','472801',jdecode('2.+SCALE-TREFFEN'),jdecode(''), jdecode('%2F517801%2F472801.html'), 'true',[],'',''],
		['PAGE','362970',jdecode('1.+SCALE-TREFFEN'),jdecode(''), jdecode('%2F517801%2F362970.html'), 'true',[],'','']
	],'',''],
	['PAGE','328018',jdecode('EC145+Baubericht'),jdecode(''), jdecode('%2F328018.html'), 'true',[],'',''],
	['PAGE','420501',jdecode('Fotos+EC145'),jdecode(''), jdecode('%2F420501.html'), 'true',[],'',''],
	['PAGE','284529',jdecode('VIDEOS+EC145'),jdecode(''), jdecode('%2F284529.html'), 'true',[],'',''],
	['PAGE','75110',jdecode('Lama+1%3A6+Baubericht'),jdecode(''), jdecode('%2F75110.html'), 'true',[],'',''],
	['PAGE','281565',jdecode('Fotoalbum+Lama'),jdecode(''), jdecode('%2F281565.html'), 'true',[],'',''],
	['PAGE','362594',jdecode('VIDEO+LAMA'),jdecode(''), jdecode('%2F362594.html'), 'true',[],'',''],
	['PAGE','554531',jdecode('T-REX+550+E+3G'),jdecode(''), jdecode('%2F554531.html'), 'true',[],'',''],
	['PAGE','558631',jdecode('Videos+T-REX+550+E'),jdecode(''), jdecode('%2F558631.html'), 'true',[],'',''],
	['PAGE','75137',jdecode('LINKS'),jdecode(''), jdecode('%2F75137.html'), 'true',[],'',''],
	['PAGE','256058',jdecode('Termine'),jdecode(''), jdecode('%2F256058.html'), 'true',[],'',''],
	['PAGE','300897',jdecode('Verkauf'),jdecode(''), jdecode('%2F300897.html'), 'true',[],'',''],
	['PAGE','570531',jdecode('Rosental+2011'),jdecode(''), jdecode('%2F570531.html'), 'true',[],'',''],
	['PAGE','557131',jdecode('Rotor-Live+2011'),jdecode(''), jdecode('%2F557131.html'), 'true',[],'',''],
	['PAGE','571431',jdecode('Flugzone.ch'),jdecode(''), jdecode('%2F571431.html'), 'true',[],'',''],
	['PAGE','432201',jdecode('FOREN'),jdecode(''), jdecode('%2F432201.html'), 'true',[],'',''],
	['PAGE','75164',jdecode('Kontakt'),jdecode(''), jdecode('%2F75164%2Findex.html'), 'true',[ 
		['PAGE','84412',jdecode('Kontakt+%28Folgeseite%29'),jdecode(''), jdecode('%2F75164%2F84412.html'), 'false',[],'','']
	],'','']];
var siteelementCount=34;
theSitetree.topTemplateName='Delta';
theSitetree.paletteFamily='450202';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10440';
theSitetree.graphicsetId='10810';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='450202';
var localeDef={
  language: 'de',
  country: 'CH'
};
var prodDef={
  wl_name: 'bluewin',
  product: 'WSCBLUSSSLYTC2MH'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Delta',
				paletteFamily: 	'450202',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10440',
				graphicsetId: 	'10810',
				contentColor: 	'FFFFFF',
				contentBGColor: '450202',
				a_color: 		'910F0F',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4558',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '472801',
internalId:  '',
customField: '20100920-222816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4558',
internalId:  '',
customField: '20120107-115012'
};
webappMappings['4001']=webappMappings['4001-NF3E_S5uV_UdOA']={
webappId:    '4001',
documentId:  '300897',
internalId:  'NF3E_S5uV_UdOA',
customField: 'language:de;country:CH;'
};
webappMappings['7060']=webappMappings['7060-c814af73e77ee04a56898ff3f91f5942']={
webappId:    '7060',
documentId:  '534031',
internalId:  'c814af73e77ee04a56898ff3f91f5942',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '362970',
internalId:  '',
customField: '20090928-212005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '530631',
internalId:  '',
customField: '20111008-144500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '362594',
internalId:  '',
customField: '20081115-203848'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '328018',
internalId:  '',
customField: '20100912-155203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '420501',
internalId:  '',
customField: '20110201-163743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '574431',
internalId:  '',
customField: '20110710-213154'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '594031',
internalId:  '-',
customField: '20111220-201050'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75110',
internalId:  '',
customField: '20081115-200943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '581231',
internalId:  '',
customField: '20110925-114321'
};
webappMappings['7008']=webappMappings['7008-2837']={
webappId:    '7008',
documentId:  '75164',
internalId:  '2837',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75137',
internalId:  '',
customField: '20110728-220626'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '300897',
internalId:  '',
customField: '20101015-231413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '256058',
internalId:  '',
customField: '20111220-202544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '484701',
internalId:  '',
customField: '20101011-121305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '515801',
internalId:  '',
customField: '20120107-120241'
};
webappMappings['1501']=webappMappings['1501-1516754']={
webappId:    '1501',
documentId:  '4558',
internalId:  '1516754',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '284529',
internalId:  '',
customField: '20110531-224411'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '281565',
internalId:  '',
customField: '20090522-221742'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '586231',
internalId:  '-',
customField: '20111220-193312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '517801',
internalId:  '',
customField: '20110925-101830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '432201',
internalId:  '',
customField: '20090808-154810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '534031',
internalId:  '',
customField: '20110925-102138'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '517822',
internalId:  '',
customField: '20100709-225946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '525631',
internalId:  '',
customField: '20100804-101916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75164',
internalId:  '',
customField: '20080624-233124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '84412',
internalId:  '',
customField: '20030801-153151'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '580531',
internalId:  '',
customField: '20110925-111749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '576431',
internalId:  '',
customField: '20110710-212931'
};
webappMappings['7060']=webappMappings['7060-9912876d9ac44f7b913687aa9b8f7a3b']={
webappId:    '7060',
documentId:  '554531',
internalId:  '9912876d9ac44f7b913687aa9b8f7a3b',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '554531',
internalId:  '',
customField: '20110411-194846'
};
webappMappings['7060']=webappMappings['7060-4fd4c341980c153ab82eb1806712b661']={
webappId:    '7060',
documentId:  '557131',
internalId:  '4fd4c341980c153ab82eb1806712b661',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557131',
internalId:  '',
customField: '20110313-191801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '558631',
internalId:  '',
customField: '20110822-205959'
};
webappMappings['7060']=webappMappings['7060-972317d3270d871aa2583861917bbf77']={
webappId:    '7060',
documentId:  '515801',
internalId:  '972317d3270d871aa2583861917bbf77',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '571431',
internalId:  '',
customField: '20110605-174616'
};
webappMappings['7060']=webappMappings['7060-9f4cf14301c5cefdb7aa2ff83b65a264']={
webappId:    '7060',
documentId:  '560531',
internalId:  '9f4cf14301c5cefdb7aa2ff83b65a264',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '560531',
internalId:  '',
customField: '20110508-204333'
};
webappMappings['7060']=webappMappings['7060-915e5605006fb2b09b26cec0f58f0a45']={
webappId:    '7060',
documentId:  '570531',
internalId:  '915e5605006fb2b09b26cec0f58f0a45',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '570531',
internalId:  '',
customField: '20110605-174552'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW0X0INXEJB';
var companyName   = 'IG+Modellsport+Sisikon';
var htmlTitle	  = 'Modellsport+Sisikon';
var metaKeywords  = 'Big-Lama%3B+S%C3%B6llner-Lama%3B+S%C3%B6llner+Lama%3B+Lama+von+Martin+S%C3%B6llner%3B+Large-Scale+Lama+mit+3%2C4m+Rotor%3B+Lama+SA315B+mit+3%2C4m+Rotor+und+Turbine+Jakadofsky+PRO+5000%3B+Jakadofsky+PRO+5000%3B+Lama+mit+Turbinenantrieb%3B+EC+145+mit+PHT3%3B+Semi-Scale+Modell+EC+145+Rega%2C+Massstab+1%3A5%2C6%3B+EC+145+Rega+mit+Turbine+im+Massstab+1%3A5%2C6%3B+EC+145+Rega+mit+Turbine%3B+eflight.ch%3B+e-helishop.ch%3B+rc-lipo%3B+Alouette+%2F+Lama+SA315B+mit+Elektro-Antrieb%3B+Elektro-Helikopter%3B+Wasserflugzeuge%3B+Flugboote%3B+PHT3%3B+JetCat+PHT3%3B+Elektro-Lama%3B+Lama+im+Massstab+1%3A6%3B+Lama+SA315B+im+Massstab+1%3A6%3B+Lama+mit+Elektroantrieb%3B+JetCat%3B+ThunderPower%3B+Lama%3B+OF-Mehrblattkopf%3B+OF+3-Blattkopf%3B+T-Rex+550+E+3G+Flybarless-System%3B+T-REX+550%3B+T-REX+550+E%3B+3G+Flybarless-System%3B';
var metaContents  = 'Modellsport+mit+elektrisch+betriebenen+Modellen+wie+Helikopter%2C+Flugzeuge%2C+und+Wasserflugzeuge%2C+Modellhubschrauber+mit+Turbinenantrieb%2C+Modellhelis+mit+Turbine%2C+Schn%C3%A4ppchen-Shop.';
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();
};

