/* [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','1401',jdecode('Home'),jdecode(''), jdecode('%2F1401.html'), 'true',[],'',''],
	['PAGE','113734',jdecode('News+Flash'),jdecode(''), jdecode('%2F113734.html'), 'true',[],'',''],
	['PAGE','3301',jdecode('Product'),jdecode(''), jdecode('%2F3301%2Findex.html'), 'true',[ 
		['PAGE','4901',jdecode('TOP+5+Reasons'),jdecode(''), jdecode('%2F3301%2F4901.html'), 'true',[],'',''],
		['PAGE','5001',jdecode('The+Core'),jdecode(''), jdecode('%2F3301%2F5001.html'), 'true',[],'',''],
		['PAGE','5022',jdecode('Core+Add-Ons'),jdecode(''), jdecode('%2F3301%2F5022.html'), 'true',[],'',''],
		['PAGE','5064',jdecode('Partner+Tools'),jdecode(''), jdecode('%2F3301%2F5064.html'), 'true',[],'',''],
		['PAGE','36001',jdecode('Editions'),jdecode(''), jdecode('%2F3301%2F36001.html'), 'true',[],'',''],
		['PAGE','78823',jdecode('Compliance+Overview'),jdecode(''), jdecode('%2F3301%2F78823.html'), 'false',[],'',''],
		['PAGE','27901',jdecode('HW+%26+SW+Requirements'),jdecode(''), jdecode('%2F3301%2F27901.html'), 'true',[],'',''],
		['PAGE','39922',jdecode('On-site+Training'),jdecode(''), jdecode('%2F3301%2F39922.html'), 'true',[],'','']
	],'',''],
	['PAGE','3443',jdecode('Online+Demo'),jdecode(''), jdecode('%2F3443%2Findex.html'), 'true',[ 
		['PAGE','34901',jdecode('Remote+Connection'),jdecode(''), jdecode('%2F3443%2F34901.html'), 'true',[],'','']
	],'',''],
	['PAGE','3501',jdecode('References'),jdecode(''), jdecode('%2F3501%2Findex.html'), 'true',[ 
		['PAGE','14601',jdecode('Basic+Edition'),jdecode(''), jdecode('%2F3501%2F14601.html'), 'true',[],'',''],
		['PAGE','14622',jdecode('Standard+Edition'),jdecode(''), jdecode('%2F3501%2F14622.html'), 'true',[],'',''],
		['PAGE','14643',jdecode('Corporate+Edition'),jdecode(''), jdecode('%2F3501%2F14643.html'), 'true',[],'',''],
		['PAGE','62812',jdecode('Testimonial+JetAlliance'),jdecode(''), jdecode('%2F3501%2F62812.html'), 'true',[],'',''],
		['PAGE','3543',jdecode('Testimonial+SignumAviation'),jdecode(''), jdecode('%2F3501%2F3543.html'), 'true',[],'','']
	],'',''],
	['PAGE','66323',jdecode('Partners'),jdecode(''), jdecode('%2F66323.html'), 'true',[],'',''],
	['PAGE','3706',jdecode('Contact'),jdecode(''), jdecode('%2F3706%2Findex.html'), 'true',[ 
		['PAGE','6001',jdecode('Location+Map'),jdecode(''), jdecode('%2F3706%2F6001.html'), 'true',[],'',''],
		['PAGE','3664',jdecode('How+to+find+us'),jdecode(''), jdecode('%2F3706%2F3664.html'), 'true',[],'','']
	],'',''],
	['PAGE','45401',jdecode('Blog'),jdecode(''), jdecode('%2F45401.html'), 'false',[],'',''],
	['PAGE','7601',jdecode('Forum'),jdecode(''), jdecode('%2F7601.html'), 'false',[],'',''],
	['PAGE','7622',jdecode('Voting'),jdecode(''), jdecode('%2F7622.html'), 'false',[],'',''],
	['PAGE','45422',jdecode('Guestbook'),jdecode(''), jdecode('%2F45422.html'), 'false',[],'',''],
	['PAGE','35201',jdecode('FAQ'),jdecode(''), jdecode('%2F35201.html'), 'false',[],'',''],
	['PAGE','46101',jdecode('Datenbank'),jdecode(''), jdecode('%2F46101.html'), 'false',[],'',''],
	['PAGE','46401',jdecode('Links'),jdecode(''), jdecode('%2F46401.html'), 'false',[],'',''],
	['PAGE','57312',jdecode('Events'),jdecode(''), jdecode('%2F57312.html'), 'true',[],'',''],
	['PAGE','78844',jdecode('Links'),jdecode(''), jdecode('%2F78844.html'), 'true',[],'',''],
	['PAGE','8301',jdecode('Search'),jdecode(''), jdecode('%2F8301.html'), 'true',[],'','']];
var siteelementCount=33;
theSitetree.topTemplateName='Displace';
theSitetree.paletteFamily='2C2C2C';
theSitetree.keyvisualId='11076';
theSitetree.keyvisualName='kv_11076.jpg';
theSitetree.fontsetId='31960';
theSitetree.graphicsetId='13797';
theSitetree.contentColor='FCFDFD';
theSitetree.contentBGColor='2C2C2C';
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: 			'Displace',
				paletteFamily: 	'2C2C2C',
				keyvisualId: 	'11076',
				keyvisualName: 	'kv_11076.jpg',
				fontsetId: 		'31960',
				graphicsetId: 	'13797',
				contentColor: 	'FCFDFD',
				contentBGColor: '2C2C2C',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1401',
internalId:  '',
customField: '20120104-170210'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1401',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27901',
internalId:  '',
customField: '20100328-174223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3501',
internalId:  '',
customField: '20100328-174322'
};
webappMappings['7008']=webappMappings['7008-8108']={
webappId:    '7008',
documentId:  '3443',
internalId:  '8108',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3301',
internalId:  '',
customField: '20110318-155242'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '3664',
internalId:  'routing',
customField: 'de_CH'
};
webappMappings['7050']=webappMappings['7050-1157']={
webappId:    '7050',
documentId:  '45401',
internalId:  '1157',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20100328-174055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14643',
internalId:  '',
customField: '20111230-141007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '62812',
internalId:  '',
customField: '20100328-174427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3443',
internalId:  '',
customField: '20100328-174254'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3664',
internalId:  '',
customField: '20100328-174550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3543',
internalId:  '',
customField: '20100328-174443'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3706',
internalId:  '',
customField: '20100328-174513'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20111230-140852'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14622',
internalId:  '',
customField: '20120104-170833'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20100328-174116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5022',
internalId:  '',
customField: '20110403-164031'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57312',
internalId:  '',
customField: '20110318-155335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5064',
internalId:  '',
customField: '20100328-174146'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '6001',
internalId:  'location',
customField: 'language:de;country:CH;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6001',
internalId:  '',
customField: '20100328-174536'
};
webappMappings['1003']=webappMappings['1003-abw330inetrm12517940782']={
webappId:    '1003',
documentId:  '7601',
internalId:  'abw330inetrm12517940782',
customField: 'de:CH'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7601',
internalId:  '',
customField: '20100328-174622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7622',
internalId:  '',
customField: '20100328-174645'
};
webappMappings['8002']=webappMappings['8002-search']={
webappId:    '8002',
documentId:  '8301',
internalId:  'search',
customField: 'language:de;country:CH;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20100328-174722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34901',
internalId:  '',
customField: '20101109-160631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35201',
internalId:  '',
customField: '20091124-194639'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36001',
internalId:  '',
customField: '20100328-174204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39922',
internalId:  '',
customField: '20100328-174240'
};
webappMappings['1002']=webappMappings['1002-45422abw330inetrm']={
webappId:    '1002',
documentId:  '45422',
internalId:  '45422abw330inetrm',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45401',
internalId:  '',
customField: '20091129-084115'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45422',
internalId:  '',
customField: '20091129-084116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66323',
internalId:  '',
customField: '20110705-175442'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46101',
internalId:  '',
customField: '20091130-171635'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46401',
internalId:  '',
customField: '20091130-184416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '113734',
internalId:  '',
customField: '20110412-124916'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78823',
internalId:  '',
customField: '20100129-185122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '78844',
internalId:  '',
customField: '20110217-163259'
};
var webAppHostname = 'cgi.hpt001.bluewin.ch:80';
var canonHostname = 'hptworkerdb01b.bluewin.ch';
var accountId     = 'ABW330INETRM';
var companyName   = 'BizFlight.NET+-+The+Business+Aviation+Software';
var htmlTitle	  = 'The+Business+Aviation+Software';
var metaKeywords  = 'Business+Avaition+Software%2C+Quoting%2C+Scheduling%2C+Crew+Rostering%2C+Pilots%2C+Cabin+Crew%2C+Flight+Time+Limitations%2C+Duty+Time+Control%2C+Emission+Trading+Scheme%2C';
var metaContents  = 'Business+Avaition+Software%2C+Fleet+Management%2C+Aircraft+Management%2C';
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();
};

