/* [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','4477',jdecode('Home'),jdecode(''), jdecode('%2F4477.html'), 'true',[],'',''],
	['PAGE','13351',jdecode('news'),jdecode(''), jdecode('%2F13351%2Findex.html'), 'true',[ 
		['PAGE','36901',jdecode('-%3EEAPR+certification+Germany+2010'),jdecode(''), jdecode('%2F13351%2F36901.html'), 'true',[],'',''],
		['PAGE','34122',jdecode('-%3EAPX+2010+Annecy'),jdecode(''), jdecode('%2F13351%2F34122.html'), 'true',[],'',''],
		['PAGE','34101',jdecode('-%3EAero+Friedrichshafen+2010'),jdecode(''), jdecode('%2F13351%2F34101.html'), 'true',[],'',''],
		['PAGE','33301',jdecode('-%3Enew+Profi-500R'),jdecode(''), jdecode('%2F13351%2F33301.html'), 'true',[],'',''],
		['PAGE','27201',jdecode('-%3Ea%C3%A9rial+mag+nr+64+%28ST-Electro%29'),jdecode(''), jdecode('%2F13351%2F27201.html'), 'true',[],'',''],
		['PAGE','34901',jdecode('-%3ECertifications+Czech+Republic+2009'),jdecode(''), jdecode('%2F13351%2F34901.html'), 'true',[],'',''],
		['PAGE','19022',jdecode('-%3EDMSV+certifications+Germany+2009'),jdecode(''), jdecode('%2F13351%2F19022.html'), 'true',[],'',''],
		['PAGE','19001',jdecode('-%3EAbu+Dhabi+2009'),jdecode(''), jdecode('%2F13351%2F19001.html'), 'true',[],'',''],
		['PAGE','13978',jdecode('-%3EDMSV+certifications+Germany+2008'),jdecode(''), jdecode('%2F13351%2F13978.html'), 'true',[],'',''],
		['PAGE','14563',jdecode('-%3EThermikmesse+2008'),jdecode(''), jdecode('%2F13351%2F14563.html'), 'true',[],'',''],
		['PAGE','13880',jdecode('-%3EFreeflight+2008'),jdecode(''), jdecode('%2F13351%2F13880.html'), 'true',[],'',''],
		['PAGE','13787',jdecode('-%3Enoise+test+in+Austria'),jdecode(''), jdecode('%2F13351%2F13787.html'), 'true',[],'',''],
		['PAGE','13360',jdecode('-%3Ecompetition+in+Russia+March+2007'),jdecode(''), jdecode('%2F13351%2F13360.html'), 'true',[],'',''],
		['PAGE','11653',jdecode('-%3Erecord+flight'),jdecode(''), jdecode('%2F13351%2F11653.html'), 'true',[],'','']
	],'',''],
	['PAGE','5879',jdecode('skyjam+aircraft'),jdecode(''), jdecode('%2F5879.html'), 'true',[],'',''],
	['PAGE','5906',jdecode('Airmaster+titanium+trikes'),jdecode(''), jdecode('%2F5906%2Findex.html'), 'true',[ 
		['PAGE','5933',jdecode('Profi-Series'),jdecode(''), jdecode('%2F5906%2F5933.html'), 'true',[],'',''],
		['PAGE','10853',jdecode('accessories'),jdecode(''), jdecode('%2F5906%2F10853.html'), 'true',[],'','']
	],'',''],
	['PAGE','13624',jdecode('Skyjam+paramotors'),jdecode(''), jdecode('%2F13624%2Findex.html'), 'true',[ 
		['PAGE','14170',jdecode('ST-100'),jdecode(''), jdecode('%2F13624%2F14170.html'), 'true',[],'',''],
		['PAGE','38801',jdecode('ST-185'),jdecode(''), jdecode('%2F13624%2F38801.html'), 'true',[],'',''],
		['PAGE','14179',jdecode('ST-200'),jdecode(''), jdecode('%2F13624%2F14179.html'), 'true',[],'','']
	],'',''],
	['PAGE','38601',jdecode('electric+aircrafts'),jdecode(''), jdecode('%2F38601%2Findex.html'), 'true',[ 
		['PAGE','22001',jdecode('ST-ELECTRO'),jdecode(''), jdecode('%2F38601%2F22001.html'), 'true',[],'',''],
		['PAGE','38622',jdecode('ST-ELECTRO%C2%B4R'),jdecode(''), jdecode('%2F38601%2F38622.html'), 'true',[],'','']
	],'',''],
	['PAGE','20601',jdecode('ST-FREESTYLE+paratrike'),jdecode(''), jdecode('%2F20601.html'), 'true',[],'',''],
	['PAGE','37301',jdecode('ST-FREESTYLE+hgtrike'),jdecode(''), jdecode('%2F37301.html'), 'true',[],'',''],
	['PAGE','7023',jdecode('gliders'),jdecode(''), jdecode('%2F7023.html'), 'true',[],'',''],
	['PAGE','7050',jdecode('school'),jdecode(''), jdecode('%2F7050.html'), 'true',[],'',''],
	['PAGE','41901',jdecode('heated+clothes'),jdecode(''), jdecode('%2F41901.html'), 'true',[],'',''],
	['PAGE','15001',jdecode('distributors'),jdecode(''), jdecode('%2F15001.html'), 'true',[],'',''],
	['PAGE','28501',jdecode('distributors+electro'),jdecode(''), jdecode('%2F28501.html'), 'true',[],'',''],
	['PAGE','7077',jdecode('contact'),jdecode(''), jdecode('%2F7077%2Findex.html'), 'true',[ 
		['PAGE','9716',jdecode('contact+%28Form+followup+page%29'),jdecode(''), jdecode('%2F7077%2F9716.html'), 'false',[],'','']
	],'','']];
var siteelementCount=36;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
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: 		'10461',
				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:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4477',
internalId:  '1006',
customField: '1006'
};
webappMappings['1009']=webappMappings['1009-6604355']={
webappId:    '1009',
documentId:  '9716',
internalId:  '6604355',
customField: 'isFollowupPage:true;documentId:7077;'
};
webappMappings['7008']=webappMappings['7008-1474']={
webappId:    '7008',
documentId:  '7077',
internalId:  '1474',
customField: 'language:de;country:CH;'
};
webappMappings['1501']=webappMappings['1501-3360121']={
webappId:    '1501',
documentId:  '4477',
internalId:  '3360121',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4477',
internalId:  '',
customField: '20100528-114419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7077',
internalId:  '',
customField: '20060511-175055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20111224-021034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13351',
internalId:  '',
customField: '20070326-223447'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14563',
internalId:  '',
customField: '20081211-005346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13978',
internalId:  '',
customField: '20090725-023350'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13880',
internalId:  '',
customField: '20080415-151257'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13787',
internalId:  '',
customField: '20071107-000857'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13360',
internalId:  '',
customField: '20070326-221125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11653',
internalId:  '',
customField: '20070321-011543'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5879',
internalId:  '',
customField: '20060511-181117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5906',
internalId:  '',
customField: '20060511-133717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5933',
internalId:  '',
customField: '20100806-022546'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10853',
internalId:  '',
customField: '20060512-131701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13624',
internalId:  '',
customField: '20080422-021026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14170',
internalId:  '',
customField: '20090725-020207'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14179',
internalId:  '',
customField: '20090725-020450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7023',
internalId:  '',
customField: '20090725-024136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7050',
internalId:  '',
customField: '20060512-134338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9716',
internalId:  '',
customField: '20060511-174645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19022',
internalId:  '',
customField: '20090725-014929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19001',
internalId:  '',
customField: '20090507-022129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20601',
internalId:  '',
customField: '20090725-015806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22001',
internalId:  '',
customField: '20100806-010106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27201',
internalId:  '',
customField: '20090812-011227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28501',
internalId:  '',
customField: '20111216-123120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33301',
internalId:  '',
customField: '20091215-150504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34122',
internalId:  '',
customField: '20100316-110553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34101',
internalId:  '',
customField: '20100316-111250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34901',
internalId:  '',
customField: '20100806-011256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36901',
internalId:  '',
customField: '20100806-022243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37301',
internalId:  '',
customField: '20100806-020303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38601',
internalId:  '',
customField: '20110513-020545'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38622',
internalId:  '',
customField: '20110224-225924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38801',
internalId:  '',
customField: '20110513-020240'
};
webappMappings['5000']=webappMappings['5000--']={
webappId:    '5000',
documentId:  '41901',
internalId:  '-',
customField: '20120110-083001'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01a.bluewin.ch';
var accountId     = 'ABW0X0IN21P5';
var companyName   = '...+a+new+dimension+of+flying%22';
var htmlTitle	  = 'Skyjam+Aircraft+-+Paramotor+%2F+Paratrikes+%2FParaplanes';
var metaKeywords  = 'Skyjam+Paragliders%2C+Paragliders%2C+Paraplanes%2C+Trikes%2C+Paratrikes%2C+Airmaster%2C+Skyjam%2C+Skyjam+Zurich+Paragliding%2C+Paramotor%2C+Flugschule%2C+Gleitschirmschule%2C+Fliegen%2C+Paramotorschule%2C+Motorschirm%2C+Motorschirmschulung';
var metaContents  = 'Skyjam+Paragliders%2C+Paragliders%2C+Paraplanes%2C+Trikes%2C+Paratrikes%2C+Airmaster%2C+Skyjam%2C+Skyjam+Zurich+Paragliding%2C+Paramotor%2C+Flugschule%2C+Gleitschirmschule%2C+Fliegen%2C+Paramotorschule%2C+Motorschirm%2C+Motorschirmschulung';
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();
};

