/* [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(''), jdecode('%2F5001.html'), 'true',[],'',''],
	['PAGE','10622',jdecode('++Philosopy+of+Partnering'),jdecode(''), jdecode('%2F10622.html'), 'true',[],'',''],
	['PAGE','5101',jdecode('About+us'),jdecode(''), jdecode('%2F5101%2Findex.html'), 'true',[ 
		['PAGE','10501',jdecode('Value+Enhancing+Services'),jdecode(''), jdecode('%2F5101%2F10501.html'), 'true',[],'',''],
		['PAGE','10422',jdecode('Sector+Focus'),jdecode(''), jdecode('%2F5101%2F10422.html'), 'true',[],'',''],
		['PAGE','10601',jdecode('Track+Record+of+Success'),jdecode(''), jdecode('%2F5101%2F10601.html'), 'true',[],'','']
	],'',''],
	['PAGE','5122',jdecode('Our+team'),jdecode(''), jdecode('%2F5122%2Findex.html'), 'true',[ 
		['PAGE','5401',jdecode('Partners'),jdecode(''), jdecode('%2F5122%2F5401.html'), 'true',[],'',''],
		['PAGE','5143',jdecode('Contact'),jdecode(''), jdecode('%2F5122%2F5143.html'), 'true',[],'','']
	],'',''],
	['PAGE','5164',jdecode('Our+Services'),jdecode(''), jdecode('%2F5164%2Findex.html'), 'true',[ 
		['PAGE','19701',jdecode('Consulting+%26+Research'),jdecode(''), jdecode('%2F5164%2F19701.html'), 'true',[],'',''],
		['PAGE','5185',jdecode('Corporate+Governance'),jdecode(''), jdecode('%2F5164%2F5185.html'), 'true',[],'',''],
		['PAGE','10443',jdecode('Global+Perspectives'),jdecode(''), jdecode('%2F5164%2F10443.html'), 'true',[],'','']
	],'',''],
	['PAGE','5422',jdecode('Case+Studies'),jdecode(''), jdecode('%2F5422%2Findex.html'), 'true',[ 
		['PAGE','5443',jdecode('Case+1'),jdecode(''), jdecode('%2F5422%2F5443.html'), 'true',[],'',''],
		['PAGE','5464',jdecode('Case+2'),jdecode(''), jdecode('%2F5422%2F5464.html'), 'true',[],'',''],
		['PAGE','5485',jdecode('Case+3'),jdecode(''), jdecode('%2F5422%2F5485.html'), 'true',[],'',''],
		['PAGE','10664',jdecode('Case+4'),jdecode(''), jdecode('%2F5422%2F10664.html'), 'true',[],'',''],
		['PAGE','10685',jdecode('Case+5'),jdecode(''), jdecode('%2F5422%2F10685.html'), 'true',[],'',''],
		['PAGE','14601',jdecode('Case+6'),jdecode(''), jdecode('%2F5422%2F14601.html'), 'true',[],'',''],
		['PAGE','14622',jdecode('Case+7'),jdecode(''), jdecode('%2F5422%2F14622.html'), 'true',[],'','']
	],'',''],
	['PAGE','5506',jdecode('+Events+and+Publications'),jdecode(''), jdecode('%2F5506%2Findex.html'), 'true',[ 
		['PAGE','10706',jdecode('OPTOmism'),jdecode(''), jdecode('%2F5506%2F10706.html'), 'true',[],'',''],
		['PAGE','10727',jdecode('Dual-Shoring'),jdecode(''), jdecode('%2F5506%2F10727.html'), 'true',[],'',''],
		['PAGE','12501',jdecode('DOE+Solar+Decathlon'),jdecode(''), jdecode('%2F5506%2F12501.html'), 'true',[],'',''],
		['PAGE','16301',jdecode('DOE+SSL+Roadmaps'),jdecode(''), jdecode('%2F5506%2F16301.html'), 'true',[],'',''],
		['PAGE','16322',jdecode('Next+Gen+Broadband'),jdecode(''), jdecode('%2F5506%2F16322.html'), 'true',[],'',''],
		['PAGE','16343',jdecode('Next+Gen+Security'),jdecode(''), jdecode('%2F5506%2F16343.html'), 'true',[],'',''],
		['PAGE','16364',jdecode('Sensor+Networking'),jdecode(''), jdecode('%2F5506%2F16364.html'), 'true',[],'','']
	],'',''],
	['PAGE','20601',jdecode('Northern+Lights++-+Blog'),jdecode(''), jdecode('%2F20601.html'), 'true',[],'','']];
var siteelementCount=30;
theSitetree.topTemplateName='Commander';
theSitetree.paletteFamily='2B25A2';
theSitetree.keyvisualId='2380';
theSitetree.keyvisualName='computerchips.jpg';
theSitetree.fontsetId='391';
theSitetree.graphicsetId='439';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='E0E0E0';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'optimum',
  product: 'WSCSYSSSSLYTC245'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Commander',
				paletteFamily: 	'2B25A2',
				keyvisualId: 	'2380',
				keyvisualName: 	'computerchips.jpg',
				fontsetId: 		'391',
				graphicsetId: 	'439',
				contentColor: 	'000000',
				contentBGColor: 'E0E0E0',
				a_color: 		'E0E0E0',
				b_color: 		'5762CA',
				c_color: 		'A1A4D2',
				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:  '5001',
internalId:  '',
customField: '20100108-095920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20100105-110943'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5443',
internalId:  '',
customField: '20100105-135353'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5122',
internalId:  '',
customField: '20100105-124300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5143',
internalId:  '',
customField: '20100105-145122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5464',
internalId:  '',
customField: '20100106-144036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5164',
internalId:  '',
customField: '20100105-104342'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10501',
internalId:  '',
customField: '20100107-070331'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5506',
internalId:  '',
customField: '20100104-181320'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10601',
internalId:  '',
customField: '20100105-131922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10422',
internalId:  '',
customField: '20100107-070529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10443',
internalId:  '',
customField: '20100107-071224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10622',
internalId:  '',
customField: '20100107-071631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5185',
internalId:  '',
customField: '20100107-071110'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20110919-100116'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5422',
internalId:  '',
customField: '20100106-143733'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5485',
internalId:  '',
customField: '20100105-140139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10664',
internalId:  '',
customField: '20100105-140102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10685',
internalId:  '',
customField: '20100105-135855'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20100105-135948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14622',
internalId:  '',
customField: '20100105-140037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16322',
internalId:  '',
customField: '20100108-100321'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10706',
internalId:  '',
customField: '20100401-144312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10727',
internalId:  '',
customField: '20100106-150434'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12501',
internalId:  '',
customField: '20100108-100157'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16343',
internalId:  '',
customField: '20100106-192253'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16364',
internalId:  '',
customField: '20100106-192850'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16301',
internalId:  '',
customField: '20100106-222348'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20601',
internalId:  '',
customField: '20110919-095907'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19701',
internalId:  '',
customField: '20110322-172704'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INZK1S';
var companyName   = 'LightWave+Advisors%2C+Inc.';
var htmlTitle	  = '';
var metaKeywords  = 'Dexheimer++Kyle++University+of+Mary+Washington++Harvard++Optics++Optical+communications++photonics++cleantec++cleantech+LED+Solid+State+Lighting++India+SSL+Solar+sensing+spectroscopy%0A%22University+of+Mary+Washington%22+%22Kyle+Dexheimer%22+%22Kyle+Haugen+Dexheimer%22%0Amarijuana+arrest+felony+arrested+distribution%0A%22optocal+communications%22%0A%22Cloud+Computing%22%0Asensors';
var metaContents  = 'Dexheimer%0A%22Kyle+Dexheimer%22%0A%22University+of+Mary+Washington%22%0ALightWave%0ASSL%0Asensing%0Aspectroscopy%0Aphotonics%0A%22optical+communications%22';
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();
};

