/* [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','5001',jdecode('Home'),jdecode(''),'/5001.html','true',[],'',''],
	['PAGE','14901',jdecode('Services'),jdecode(''),'/14901/index.html','true',[ 
		['PAGE','10801',jdecode('Custom+Sensor+Design'),jdecode(''),'/14901/10801.html','true',[],'',''],
		['PAGE','22301',jdecode('Fiber+Optic+Shape+Sensing'),jdecode(''),'/14901/22301.html','true',[],'',''],
		['PAGE','5901',jdecode('Structural+Testing'),jdecode(''),'/14901/5901.html','true',[],'',''],
		['PAGE','15685',jdecode('Health+Monitoring'),jdecode(''),'/14901/15685.html','true',[],'',''],
		['PAGE','10822',jdecode('Software+Development'),jdecode(''),'/14901/10822.html','true',[],'',''],
		['PAGE','15706',jdecode('LIBS+-+Spectroscopy'),jdecode(''),'/14901/15706.html','true',[],'',''],
		['PAGE','17501',jdecode('Fiber+Optic+Damage+Assessment+System+%28FODAS%29'),jdecode(''),'/14901/17501.html','false',[],'',''],
		['PAGE','17522',jdecode('Environmental+Monitoring+Vertical+Launch+Systems+Canisters+Using+Fiber+Optic+Sensors'),jdecode(''),'/14901/17522.html','false',[],'',''],
		['PAGE','17543',jdecode('Fiber+Optic+Measurement+of+Towed+Array+Shape'),jdecode(''),'/14901/17543.html','false',[],'',''],
		['PAGE','17564',jdecode('Ship+Structural+Health+Monitoring+Using+Fiber+Optic+Sensing'),jdecode(''),'/14901/17564.html','false',[],'',''],
		['PAGE','17585',jdecode('Composite+Pile+Structural+Health+Monitoring'),jdecode(''),'/14901/17585.html','false',[],'',''],
		['PAGE','17606',jdecode('Acoustic+Emission+Crack+Detection+using+Optical+Sensing'),jdecode(''),'/14901/17606.html','false',[],'',''],
		['PAGE','17627',jdecode('Distributed%2C+Embedded+Sensing%3A+Quasi-Static+Shape+Control+Wings'),jdecode(''),'/14901/17627.html','false',[],'',''],
		['PAGE','17648',jdecode('Smart+Tether'),jdecode(''),'/14901/17648.html','false',[],'',''],
		['PAGE','15601',jdecode('Submarine+Hydrostatic+Testing'),jdecode(''),'/14901/15601.html','false',[],'',''],
		['PAGE','15622',jdecode('Composite+Pile+Load+Measuring'),jdecode(''),'/14901/15622.html','false',[],'',''],
		['PAGE','15643',jdecode('R%2FV+Triton'),jdecode(''),'/14901/15643.html','false',[],'','']
	],'',''],
	['PAGE','5073',jdecode('Products'),jdecode(''),'/5073/index.html','true',[ 
		['PAGE','6001',jdecode('Instrumentation'),jdecode(''),'/5073/6001.html','true',[],'',''],
		['PAGE','6022',jdecode('Sensors'),jdecode(''),'/5073/6022.html','true',[],'','']
	],'',''],
	['PAGE','10843',jdecode('News'),jdecode(''),'/10843.html','true',[],'',''],
	['PAGE','20401',jdecode('Documents'),jdecode(''),'/20401.html','true',[],'',''],
	['PAGE','5094',jdecode('Publications'),jdecode(''),'/5094.html','true',[],'',''],
	['PAGE','27101',jdecode('Careers'),jdecode(''),'/27101.html','true',[],'',''],
	['PAGE','5115',jdecode('Contact'),jdecode(''),'/5115/index.html','true',[ 
		['PAGE','22801',jdecode('email+Aither'),jdecode(''),'/5115/22801.html','true',[],'','']
	],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Champagne';
theSitetree.paletteFamily='426388';
theSitetree.keyvisualId='11356';
theSitetree.keyvisualName='kv_11356.jpg';
theSitetree.fontsetId='31943';
theSitetree.graphicsetId='13786';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='426388';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Champagne',
				paletteFamily: 	'426388',
				keyvisualId: 	'11356',
				keyvisualName: 	'kv_11356.jpg',
				fontsetId: 		'31943',
				graphicsetId: 	'13786',
				contentColor: 	'000000',
				contentBGColor: '426388',
				a_color: 		'000000',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5001',
internalId:  '',
customField: '20091029-101239'
};
webappMappings['7008']=webappMappings['7008-11818']={
webappId:    '7008',
documentId:  '22801',
internalId:  '11818',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5073',
internalId:  '',
customField: '20091007-112538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5094',
internalId:  '',
customField: '20090902-155957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5115',
internalId:  '',
customField: '20091007-153325'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10801',
internalId:  '',
customField: '20091029-111015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20091007-142539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10843',
internalId:  '',
customField: '20100223-102724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6001',
internalId:  '',
customField: '20091007-113827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6022',
internalId:  '',
customField: '20091007-113953'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10822',
internalId:  '',
customField: '20091007-142743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14901',
internalId:  '',
customField: '20091029-104438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22301',
internalId:  '',
customField: '20091007-101924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20090910-123100'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15622',
internalId:  '',
customField: '20090910-125539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15643',
internalId:  '',
customField: '20090910-123922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15706',
internalId:  '',
customField: '20091007-142822'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17501',
internalId:  '',
customField: '20090910-131856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17522',
internalId:  '',
customField: '20090910-131856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17543',
internalId:  '',
customField: '20090910-131856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17564',
internalId:  '',
customField: '20090910-131856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17585',
internalId:  '',
customField: '20090910-131856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17606',
internalId:  '',
customField: '20090910-131856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17627',
internalId:  '',
customField: '20090910-131856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17648',
internalId:  '',
customField: '20090910-131856'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15685',
internalId:  '',
customField: '20090908-153132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20401',
internalId:  '',
customField: '20091006-133742'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22801',
internalId:  '',
customField: '20091007-112938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27101',
internalId:  '',
customField: '20100329-110244'
};
var canonHostname = 'diywk01.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHSR7';
var companyName   = 'Aither+Engineering%2C+Inc.';
var htmlTitle	  = 'Aither+Engineering';
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();
};
