/* [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','2338',jdecode('Home'),jdecode(''),'/2338.html','true',[],'',''],
	['PAGE','2359',jdecode('About+us'),jdecode(''),'/2359.html','true',[],'',''],
	['PAGE','2368',jdecode('Postcards'),jdecode(''),'/2368/index.html','true',[ 
		['PAGE','28497',jdecode('Airbus+A300'),jdecode(''),'/2368/28497.html','true',[],'',''],
		['PAGE','28506',jdecode('Airbus+A310'),jdecode(''),'/2368/28506.html','true',[],'',''],
		['PAGE','57101',jdecode('Airbus+A319'),jdecode(''),'/2368/57101.html','true',[],'',''],
		['PAGE','28515',jdecode('Airbus+A320'),jdecode(''),'/2368/28515.html','true',[],'',''],
		['PAGE','150023',jdecode('Airbus+A321'),jdecode(''),'/2368/150023.html','true',[],'',''],
		['PAGE','158686',jdecode('Airbus+A330'),jdecode(''),'/2368/158686.html','true',[],'',''],
		['PAGE','37055',jdecode('Airbus+A340'),jdecode(''),'/2368/37055.html','true',[],'',''],
		['PAGE','28721',jdecode('Antonov'),jdecode(''),'/2368/28721.html','true',[],'',''],
		['PAGE','28524',jdecode('ATR42+%26+ATR72'),jdecode(''),'/2368/28524.html','true',[],'',''],
		['PAGE','28730',jdecode('BAC+1-11'),jdecode(''),'/2368/28730.html','true',[],'',''],
		['PAGE','86210',jdecode('Beech'),jdecode(''),'/2368/86210.html','true',[],'',''],
		['PAGE','28739',jdecode('Boeing+707+%26+720'),jdecode(''),'/2368/28739.html','true',[],'',''],
		['PAGE','33662',jdecode('Boeing+717'),jdecode(''),'/2368/33662.html','true',[],'',''],
		['PAGE','29707',jdecode('Boeing+727'),jdecode(''),'/2368/29707.html','true',[],'',''],
		['PAGE','29774',jdecode('Boeing+737'),jdecode(''),'/2368/29774.html','true',[],'',''],
		['PAGE','29783',jdecode('Boeing+747'),jdecode(''),'/2368/29783.html','true',[],'',''],
		['PAGE','29792',jdecode('Boeing+757'),jdecode(''),'/2368/29792.html','true',[],'',''],
		['PAGE','29801',jdecode('Boeing+767'),jdecode(''),'/2368/29801.html','true',[],'',''],
		['PAGE','29810',jdecode('Boeing+777'),jdecode(''),'/2368/29810.html','true',[],'',''],
		['PAGE','29819',jdecode('British+Aerospace'),jdecode(''),'/2368/29819.html','true',[],'',''],
		['PAGE','29828',jdecode('Britten-Norman'),jdecode(''),'/2368/29828.html','true',[],'',''],
		['PAGE','29837',jdecode('Canadair'),jdecode(''),'/2368/29837.html','true',[],'',''],
		['PAGE','34106',jdecode('Concorde'),jdecode(''),'/2368/34106.html','true',[],'',''],
		['PAGE','29846',jdecode('Convair'),jdecode(''),'/2368/29846.html','true',[],'',''],
		['PAGE','29855',jdecode('De+Havilland'),jdecode(''),'/2368/29855.html','true',[],'',''],
		['PAGE','29864',jdecode('Douglas+DC-2%2FDC-3'),jdecode(''),'/2368/29864.html','true',[],'',''],
		['PAGE','29873',jdecode('Douglas+DC-4%2FDC-6%2FDC-7'),jdecode(''),'/2368/29873.html','true',[],'',''],
		['PAGE','29882',jdecode('Embraer'),jdecode(''),'/2368/29882.html','true',[],'',''],
		['PAGE','29891',jdecode('Fokker'),jdecode(''),'/2368/29891.html','true',[],'',''],
		['PAGE','29900',jdecode('Ilyushin'),jdecode(''),'/2368/29900.html','true',[],'',''],
		['PAGE','29909',jdecode('Lockheed'),jdecode(''),'/2368/29909.html','true',[],'',''],
		['PAGE','29918',jdecode('McDonnell+Douglas+DC-8'),jdecode(''),'/2368/29918.html','true',[],'',''],
		['PAGE','29927',jdecode('McDonnell+Douglas+DC-9%2FMD-80'),jdecode(''),'/2368/29927.html','true',[],'',''],
		['PAGE','29936',jdecode('McDonnell+Douglas+DC-10%2FMD11'),jdecode(''),'/2368/29936.html','true',[],'',''],
		['PAGE','29945',jdecode('Shorts'),jdecode(''),'/2368/29945.html','true',[],'',''],
		['PAGE','34878',jdecode('Sud+Caravelle'),jdecode(''),'/2368/34878.html','true',[],'',''],
		['PAGE','29954',jdecode('Tupolev'),jdecode(''),'/2368/29954.html','true',[],'',''],
		['PAGE','29963',jdecode('Vickers'),jdecode(''),'/2368/29963.html','true',[],'',''],
		['PAGE','86219',jdecode('Yakovlev'),jdecode(''),'/2368/86219.html','true',[],'',''],
		['PAGE','28748',jdecode('Other+Airliners'),jdecode(''),'/2368/28748.html','true',[],'',''],
		['PAGE','2386',jdecode('Airports'),jdecode(''),'/2368/2386.html','true',[],'',''],
		['PAGE','4058',jdecode('Military+Aircraft'),jdecode(''),'/2368/4058.html','true',[],'',''],
		['PAGE','4067',jdecode('Other+aviation+cards'),jdecode(''),'/2368/4067.html','true',[],'','']
	],'',''],
	['PAGE','2404',jdecode('Contact+us'),jdecode(''),'/2404.html','true',[],'','']];
var siteelementCount=47;
theSitetree.topTemplateName='Activate';
theSitetree.paletteFamily='1E3A6F';
theSitetree.keyvisualId='2026';
theSitetree.keyvisualName='blanko.jpg';
theSitetree.fontsetId='339';
theSitetree.graphicsetId='396';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='1E3A6F';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Activate',
				paletteFamily: 	'1E3A6F',
				keyvisualId: 	'2026',
				keyvisualName: 	'blanko.jpg',
				fontsetId: 		'339',
				graphicsetId: 	'396',
				contentColor: 	'FFFFFF',
				contentBGColor: '1E3A6F',
				a_color: 		'1E3A6F',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2338',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2338',
internalId:  '',
customField: '20100706-162942'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2368',
internalId:  '',
customField: '20070817-214622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29936',
internalId:  '',
customField: '20090726-135947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29882',
internalId:  '',
customField: '20090501-040440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29873',
internalId:  '',
customField: '20090614-100248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2359',
internalId:  '',
customField: '20090529-170604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28497',
internalId:  '',
customField: '20100322-054544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28506',
internalId:  '',
customField: '20100407-104349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57101',
internalId:  '',
customField: '20100227-035537'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28515',
internalId:  '',
customField: '20100324-064313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '150023',
internalId:  '',
customField: '20100301-144517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37055',
internalId:  '',
customField: '20100320-124335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28721',
internalId:  '',
customField: '20100321-061230'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28524',
internalId:  '',
customField: '20100326-164446'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28730',
internalId:  '',
customField: '20100702-173019'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86210',
internalId:  '',
customField: '20100323-054928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28739',
internalId:  '',
customField: '20100324-064452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33662',
internalId:  '',
customField: '20100316-071104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29707',
internalId:  '',
customField: '20100326-165509'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29774',
internalId:  '',
customField: '20100501-081041'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29783',
internalId:  '',
customField: '20100602-061611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29792',
internalId:  '',
customField: '20100621-181617'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29801',
internalId:  '',
customField: '20100626-104420'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29810',
internalId:  '',
customField: '20100628-184818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29819',
internalId:  '',
customField: '20100702-183904'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29828',
internalId:  '',
customField: '20100703-085232'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29837',
internalId:  '',
customField: '20100704-113730'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34106',
internalId:  '',
customField: '20100706-164052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29846',
internalId:  '',
customField: '20100706-175329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29855',
internalId:  '',
customField: '20090614-092228'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29864',
internalId:  '',
customField: '20100702-172520'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29891',
internalId:  '',
customField: '20090627-160845'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29900',
internalId:  '',
customField: '20090620-105806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29909',
internalId:  '',
customField: '20090624-125155'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29918',
internalId:  '',
customField: '20090505-094945'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29927',
internalId:  '',
customField: '20090726-135605'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29945',
internalId:  '',
customField: '20090516-133952'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34878',
internalId:  '',
customField: '20090505-095102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29954',
internalId:  '',
customField: '20090726-140526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29963',
internalId:  '',
customField: '20090630-050450'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '86219',
internalId:  '',
customField: '20090620-110220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28748',
internalId:  '',
customField: '20100705-045343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2386',
internalId:  '',
customField: '20100615-163818'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4058',
internalId:  '',
customField: '20100615-163549'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4067',
internalId:  '',
customField: '20090614-091649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2404',
internalId:  '',
customField: '20070520-144045'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '158686',
internalId:  '',
customField: '20100322-054150'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INXS8P';
var companyName   = 'AVIACARDS';
var htmlTitle	  = 'aviacards';
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();
};
