/* [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','6001',jdecode('Oak+Tree'),jdecode(''), jdecode('%2F6001.html'), 'false',[],'',''],
	['PAGE','8906',jdecode('Services'),jdecode(''), jdecode('%2F8906.html'), 'false',[],'',''],
	['PAGE','14962',jdecode('Environmental'),jdecode(''), jdecode('%2F14962.html'), 'false',[],'',''],
	['PAGE','9206',jdecode('Photo+Gallery'),jdecode(''), jdecode('%2F9206.html'), 'false',[],'',''],
	['PAGE','9006',jdecode('Resources'),jdecode(''), jdecode('%2F9006.html'), 'true',[],'',''],
	['PAGE','8706',jdecode('Contact'),jdecode(''), jdecode('%2F8706.html'), 'true',[],'',''],
	['PAGE','40560',jdecode('+*work+in+progress*'),jdecode(''), jdecode('%2F40560.html'), 'true',[],'','']];
var siteelementCount=7;
theSitetree.topTemplateName='Holz';
theSitetree.paletteFamily='FF7113';
theSitetree.keyvisualId='8817';
theSitetree.keyvisualName='KV_03.swf';
theSitetree.fontsetId='17181';
theSitetree.graphicsetId='12655';
theSitetree.contentColor='262626';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp19-dulles',
  product: 'WSCSYSSSSLYTCPII'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Holz',
				paletteFamily: 	'FF7113',
				keyvisualId: 	'8817',
				keyvisualName: 	'KV_03.swf',
				fontsetId: 		'17181',
				graphicsetId: 	'12655',
				contentColor: 	'262626',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'FF6600',
				d_color: 		'FFFFFF',
				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:  '6001',
internalId:  '',
customField: '20111020-125828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8706',
internalId:  '',
customField: '20090307-115024'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9006',
internalId:  '',
customField: '20100130-191842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8906',
internalId:  '',
customField: '20100203-111243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '9206',
internalId:  '',
customField: '20090917-194920'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '40560',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-d4980f895082b80bdc90e55fff8f540a']={
webappId:    '7060',
documentId:  '9206',
internalId:  'd4980f895082b80bdc90e55fff8f540a',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14962',
internalId:  '',
customField: '20111020-130358'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40560',
internalId:  '',
customField: '20111025-142321'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk02.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INP3JA';
var companyName   = 'Oak+Tree+Inc';
var htmlTitle	  = '';
var metaKeywords  = 'www.oaktreeinc.com%2C+oaktreeinc.com%2C+Oak+Tree+Inc%2C+oak+tree%2C+oaktree%2C+oaktree+incorporated%2C+willis%40oaktreeinc.com%2C+Green%2C+Building%2CConstruction%2Cservices%2CDesign+and+Building+for+a+Better+World%2Cremodeling%2Cgeneral+contractor%2CLEED%2C+MHIC%2C+USGBC%2C+home+improvement%2Cadditions%2Ckitchen%2C+bath%2C+basement%2C+environment%2Cenvironmental+restoration%2Cmaryland%2Cwashington+DC%2CDC%2CVA%2CMD%2Cbioremediation%2Cbiofilter%2Cphytoremediation%2Cmycoremediation%2Cstorm+water%2Csedimentation%2Cpollution%2Crun+off%2Crunoff%2Canacostia%2Cpotomac%2CChesapeake%2Cbay%2Crain+garden%2Crain+gardens%2Cbutterfly+garden%2Cbrownfield%2Cbio%2Cfilter%2Cwater+quality%2Cfungi%2Cmushrooms%2Cmycelium%2Cwillis+dehart%2Cwillis%2Cdehart%2Coaktree%2Coak%2Ctree%2CPrince+Georges%2CPG%2CPrince+Georges%2CMontgomery%2CUniversity+Park%2C20782%2Ccollege+park+md%2C+greenbelt+md%2C+hyattsville+md%2C+bethesda%2C+potomac%2C+greenbelt%2C+college+park%2C+green+businesses%2Cgreen+builder%2Chabitat%2Cnative+plant%2Cstreams%2Crivers%2CPCB%2CVOCs%2Cvolatile+organic+compounds%2Csediment+control%2Chandyman%2Chome+repair%2Chome+improvement%2Csolar%2Cwind%2Ccustom+cabinets%2Cbookcases%2Cdoor%2Cwindow%2Creplacement%2Cnew%2Cinsured%2Clicensed%2Cbonded%2Cgood%2Crecycle%2Creuse%2Creduce%2Cpainting%2Cwoodworking%2Ctrim%2Cbase%2Ccrown%2Celectrical%2Cplumbing%2Cfixtures%2Cappliances%2Cprotection%2Cadvocacy%2Cpermit%2Cpermitting%2Cbuilding+permit%2Csolar+power%2Cfences%2Cdecks%2Csustainable%2Caccredited+professionals%2Cprofessional%2Cenergy%2Cbuilding+alterations%2Cadditions%2Cdecks%2Cdecking%2Cinstaller%2Cinstallers%2Ctile%2Cstone%2Cmarble%2Cceramics%2Cbathrooms%2Ckitchen%2Ckitchen+remodel%2Cbathroom+remodel%2Cnew+kitchen%2Cnew+bathroom%2Cnew+construction%2Ccommercial%2Cbio+swale%2Cliving+space%2Cwork+space%2Cfaux+painting%2Csubcontractor%2Csub+contractor%2Csubcontracting%2Csub+contracting%2C+amicus%2C+stamets%2C+mycelium+running%2Cmushrooms%2Ccustom+woodwork%2C+cabinets%2C+cabinetry%2C+bookcases%2C+patio%2C+porch%2C+hardwood+floors%2C+solar+panel%2C+tile%2Cfreedom%2C+fresh%2C+stoked%2C+artist%2C+mural%2C+entry+doors%2C+door%2C+window%2C+flooring%2C+hardwood%2C+bookcase%2C+office%2C+consulting%2C+education%2C+consult%2C+teach%2C+';
var metaContents  = 'OakTree%2C+Inc%3A+Design+and+Building+for+a+Better+World+Providing+Complete+Construction+and+Remodeling+Services-Oak+Tree%2C+Inc+is+a+Prince+Georges+PG+MD+community+based+owner-operated+green+focused+business+founded+in+2001+to+bring+custom+design+and+the+craftsmanship+of+local+artisans+to+our+clientele+We+provide+solutions+and+real-life+applications+to+environmental+issues%2C+implementing+innovative+techniques+aimed+at+preserving+the+good+we+have+and+restoring+the+good+we+had20%2B+years+of+experience+at+the+intersection+of+environmental+stewardship+and+urban+living+Accredited+Professionals+with+strong+commitment+to+sustainable+building+design+Showing+strong+leadership+in+energy+and+environmental+design+principles+No+problem+just+solutions%2C+from+detailed+scientific+models%2C+to+simply+reusing+nails';
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();
};

