/* [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','4521',jdecode('home'),jdecode(''), jdecode('%2F4521.html'), 'true',[],'',''],
	['PAGE','73001',jdecode('skyjam+on+facebook'),jdecode(''), jdecode('%2F73001.html'), 'true',[],'',''],
	['PAGE','53971',jdecode('news'),jdecode(''), jdecode('%2F53971%2Findex.html'), 'true',[ 
		['PAGE','73301',jdecode('news+since+2011+on+Facebook'),jdecode(''), jdecode('%2F53971%2F73301.html'), 'true',[],'',''],
		['PAGE','70901',jdecode('-%3EAPX+2010+Annecy'),jdecode(''), jdecode('%2F53971%2F70901.html'), 'true',[],'',''],
		['PAGE','70922',jdecode('-%3EAero+Friedrichshafen+2010'),jdecode(''), jdecode('%2F53971%2F70922.html'), 'true',[],'',''],
		['PAGE','72001',jdecode('-%3ECertification+Czech+Republic+2009'),jdecode(''), jdecode('%2F53971%2F72001.html'), 'true',[],'',''],
		['PAGE','66201',jdecode('-%3EDMSV+certification+in+Germany+2009'),jdecode(''), jdecode('%2F53971%2F66201.html'), 'true',[],'',''],
		['PAGE','64601',jdecode('-%3EAbu+Dhabi+2009'),jdecode(''), jdecode('%2F53971%2F64601.html'), 'true',[],'',''],
		['PAGE','63188',jdecode('-%3EDMSV+certification+in+Germany+2008'),jdecode(''), jdecode('%2F53971%2F63188.html'), 'true',[],'',''],
		['PAGE','63414',jdecode('-%3EThermikmesse+2008'),jdecode(''), jdecode('%2F53971%2F63414.html'), 'true',[],'',''],
		['PAGE','63197',jdecode('-%3EFun+%26+Trend+Sports'),jdecode(''), jdecode('%2F53971%2F63197.html'), 'true',[],'',''],
		['PAGE','62652',jdecode('-%3EFreeflight+2008'),jdecode(''), jdecode('%2F53971%2F62652.html'), 'true',[],'',''],
		['PAGE','61879',jdecode('-%3Enoise+test+oaec%2Fdulv'),jdecode(''), jdecode('%2F53971%2F61879.html'), 'true',[],'',''],
		['PAGE','61132',jdecode('-%3Echampionship+Russia'),jdecode(''), jdecode('%2F53971%2F61132.html'), 'true',[],'',''],
		['PAGE','60995',jdecode('-%3EFestival+Hoch+Ybrig+2007'),jdecode(''), jdecode('%2F53971%2F60995.html'), 'true',[],'',''],
		['PAGE','58251',jdecode('-%3EJLC+2006'),jdecode(''), jdecode('%2F53971%2F58251.html'), 'true',[],'',''],
		['PAGE','55133',jdecode('-%3Edulv+test+wave+%26+creek'),jdecode(''), jdecode('%2F53971%2F55133.html'), 'true',[],'',''],
		['PAGE','53998',jdecode('-%3Epwc+brazil'),jdecode(''), jdecode('%2F53971%2F53998.html'), 'true',[],'',''],
		['PAGE','17601',jdecode('-%3Ecomo+to+castelluccio'),jdecode(''), jdecode('%2F53971%2F17601.html'), 'true',[],'',''],
		['PAGE','54025',jdecode('-%3Edulv+test+orca'),jdecode(''), jdecode('%2F53971%2F54025.html'), 'true',[],'',''],
		['PAGE','46214',jdecode('-%3E+first+ppg%2Fppw+flight+test+hungary'),jdecode(''), jdecode('%2F53971%2F46214.html'), 'true',[],'','']
	],'',''],
	['PAGE','45101',jdecode('gliders'),jdecode(''), jdecode('%2F45101%2Findex.html'), 'true',[ 
		['PAGE','58374',jdecode('++'),jdecode(''), jdecode('%2F45101%2F58374.html'), 'true',[],'',''],
		['PAGE','45128',jdecode('basic+intermediate'),jdecode(''), jdecode('%2F45101%2F45128.html'), 'true',[],'',''],
		['PAGE','45155',jdecode('high+intermediate'),jdecode(''), jdecode('%2F45101%2F45155.html'), 'true',[],'',''],
		['PAGE','45182',jdecode('performance'),jdecode(''), jdecode('%2F45101%2F45182.html'), 'true',[],'',''],
		['PAGE','45209',jdecode('competition'),jdecode(''), jdecode('%2F45101%2F45209.html'), 'true',[],'',''],
		['PAGE','45236',jdecode('tandem'),jdecode(''), jdecode('%2F45101%2F45236.html'), 'true',[],'',''],
		['PAGE','85201',jdecode('paramotor%2Fhigh+intermediate'),jdecode(''), jdecode('%2F45101%2F85201.html'), 'true',[],'',''],
		['PAGE','60595',jdecode('paramotor%2Ffreestyle'),jdecode(''), jdecode('%2F45101%2F60595.html'), 'true',[],'',''],
		['PAGE','45263',jdecode('paratrike'),jdecode(''), jdecode('%2F45101%2F45263.html'), 'true',[],'','']
	],'',''],
	['PAGE','23453',jdecode('accessories'),jdecode(''), jdecode('%2F23453%2Findex.html'), 'true',[ 
		['PAGE','23480',jdecode('harnesses'),jdecode(''), jdecode('%2F23453%2F23480.html'), 'true',[],'',''],
		['PAGE','23507',jdecode('reserves'),jdecode(''), jdecode('%2F23453%2F23507.html'), 'true',[],'','']
	],'',''],
	['PAGE','16101',jdecode('paramotor+%26+trike'),jdecode(''), jdecode('%2F16101%2Findex.html'), 'true',[ 
		['PAGE','51071',jdecode('videos+paramotor%2Ftrike'),jdecode(''), jdecode('%2F16101%2F51071.html'), 'true',[],'','']
	],'',''],
	['PAGE','62363',jdecode('skyjam+aircraft'),jdecode(''), jdecode('%2F62363.html'), 'true',[],'',''],
	['PAGE','88401',jdecode('heated+clothes'),jdecode(''), jdecode('%2F88401.html'), 'true',[],'',''],
	['PAGE','7701',jdecode('contact'),jdecode(''), jdecode('%2F7701%2Findex.html'), 'true',[ 
		['PAGE','7770',jdecode('contact+%28Folgeseite%29'),jdecode(''), jdecode('%2F7701%2F7770.html'), 'false',[],'','']
	],'',''],
	['PAGE','12701',jdecode('partner'),jdecode(''), jdecode('%2F12701%2Findex.html'), 'true',[ 
		['PAGE','46484',jdecode('International'),jdecode(''), jdecode('%2F12701%2F46484.html'), 'true',[],'',''],
		['PAGE','46511',jdecode('Switzerland'),jdecode(''), jdecode('%2F12701%2F46511.html'), 'true',[],'','']
	],'',''],
	['PAGE','60767',jdecode('school'),jdecode(''), jdecode('%2F60767%2Findex.html'), 'true',[ 
		['PAGE','6395',jdecode('++++'),jdecode(''), jdecode('%2F60767%2F6395.html'), 'true',[],'',''],
		['PAGE','59576',jdecode('++'),jdecode(''), jdecode('%2F60767%2F59576.html'), 'true',[],'',''],
		['PAGE','59265',jdecode('++'),jdecode(''), jdecode('%2F60767%2F59265.html'), 'true',[],'',''],
		['PAGE','58628',jdecode('++'),jdecode(''), jdecode('%2F60767%2F58628.html'), 'true',[],'',''],
		['PAGE','59849',jdecode('++'),jdecode(''), jdecode('%2F60767%2F59849.html'), 'true',[],'','']
	],'','']];
var siteelementCount=50;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10555';
theSitetree.graphicsetId='10892';
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: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10555',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4521',
internalId:  '1006',
customField: '1006'
};
webappMappings['7008']=webappMappings['7008-3335']={
webappId:    '7008',
documentId:  '7701',
internalId:  '3335',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '64601',
internalId:  '',
customField: '20090505-003525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4521',
internalId:  '',
customField: '20111007-202325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12701',
internalId:  '',
customField: '20111013-025103'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46484',
internalId:  '',
customField: '20111224-014836'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53971',
internalId:  '',
customField: '20111007-202450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63414',
internalId:  '',
customField: '20081211-003829'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63188',
internalId:  '',
customField: '20090505-005346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63197',
internalId:  '',
customField: '20080918-135913'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62652',
internalId:  '',
customField: '20080918-135217'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61879',
internalId:  '',
customField: '20071129-005301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61132',
internalId:  '',
customField: '20070327-115009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60995',
internalId:  '',
customField: '20070317-003230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58251',
internalId:  '',
customField: '20090503-185353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55133',
internalId:  '',
customField: '20061204-192250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53998',
internalId:  '',
customField: '20060412-145428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17601',
internalId:  '',
customField: '20071123-181255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46214',
internalId:  '',
customField: '20071128-010124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54025',
internalId:  '',
customField: '20060412-145837'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45101',
internalId:  '',
customField: '20111007-202529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58374',
internalId:  '',
customField: '20111013-024634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45128',
internalId:  '',
customField: '20111007-202600'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45155',
internalId:  '',
customField: '20111216-024434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45182',
internalId:  '',
customField: '20111007-202656'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45209',
internalId:  '',
customField: '20111018-204255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45236',
internalId:  '',
customField: '20111019-023521'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60595',
internalId:  '',
customField: '20111007-202814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45263',
internalId:  '',
customField: '20111019-021332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23453',
internalId:  '',
customField: '20111013-024745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23480',
internalId:  '',
customField: '20111013-024816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23507',
internalId:  '',
customField: '20111013-024851'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16101',
internalId:  '',
customField: '20111013-024926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51071',
internalId:  '',
customField: '20111013-024949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62363',
internalId:  '',
customField: '20111013-025017'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '85201',
internalId:  '-',
customField: '20111216-122634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7701',
internalId:  '',
customField: '20111013-025042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7770',
internalId:  '',
customField: '20050114-235041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46511',
internalId:  '',
customField: '20111013-025205'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60767',
internalId:  '',
customField: '20111013-025450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6395',
internalId:  '',
customField: '20050907-203427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59576',
internalId:  '',
customField: '20111006-014041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59265',
internalId:  '',
customField: '20110910-030907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '58628',
internalId:  '',
customField: '20111007-145752'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '59849',
internalId:  '',
customField: '20111018-192648'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66201',
internalId:  '',
customField: '20100313-010948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70922',
internalId:  '',
customField: '20100313-013604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '70901',
internalId:  '',
customField: '20110720-212703'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72001',
internalId:  '',
customField: '20100316-230701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73001',
internalId:  '',
customField: '20111007-202409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '73301',
internalId:  '',
customField: '20110720-223617'
};
webappMappings['1501']=webappMappings['1501-2417412']={
webappId:    '1501',
documentId:  '4521',
internalId:  '2417412',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '88401',
internalId:  '-',
customField: '20120119-005132'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0INXLYG';
var companyName   = '...+a+new+dimension+of+freedom%22';
var htmlTitle	  = 'Skyjam+Paragliders';
var metaKeywords  = 'Gleitschirmfliegen%2C+Gleitschirmhersteller%2C+skyjam%2C+Z%C3%BCrich%2C+zurich%2C+Ales+Hubacek%2C+R%C3%A4to+Vitins%2C+mcc+aviation%2C+Gleitschirmschule%2C+Gleitschirm%2C+Gleitschirmreisen%2C+Gleitschirmforum%2C+paramotor%2C+paratrike%2C+rucksackmotor%2C+airmaster%2C+profi-430%2C+profi-500%2C+gleitschimotor%2C+gleitschirmmotorfliegerei%2C+paratrikefliegerei';
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();
};

