/* [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','1801',jdecode('Home'),jdecode(''), jdecode('%2F1801%2Findex.html'), 'true',[ 
		['PAGE','1852',jdecode('About+Us'),jdecode(''), jdecode('%2F1801%2F1852.html'), 'true',[],'',''],
		['PAGE','25934',jdecode('Our+Mission'),jdecode(''), jdecode('%2F1801%2F25934.html'), 'true',[],'',''],
		['PAGE','5101',jdecode('Our+Team'),jdecode(''), jdecode('%2F1801%2F5101.html'), 'true',[],'',''],
		['PAGE','51267',jdecode('Employees+Only'),jdecode(''), jdecode('%2F1801%2F51267.html'), 'false',[],'','']
	],'',''],
	['PAGE','55989',jdecode('Tour'),jdecode(''), jdecode('%2F55989.html'), 'true',[],'',''],
	['PAGE','8201',jdecode('Gallery+I'),jdecode(''), jdecode('%2F8201%2Findex.html'), 'true',[ 
		['PAGE','26186',jdecode('Educational'),jdecode(''), jdecode('%2F8201%2F26186.html'), 'true',[],'',''],
		['PAGE','25976',jdecode('Restaurants'),jdecode(''), jdecode('%2F8201%2F25976.html'), 'true',[],'',''],
		['PAGE','25997',jdecode('Clubs'),jdecode(''), jdecode('%2F8201%2F25997.html'), 'true',[],'',''],
		['PAGE','26018',jdecode('Entertainment'),jdecode(''), jdecode('%2F8201%2F26018.html'), 'true',[],'',''],
		['PAGE','26039',jdecode('Retail+Spaces'),jdecode(''), jdecode('%2F8201%2F26039.html'), 'true',[],'',''],
		['PAGE','26060',jdecode('Dealerships'),jdecode(''), jdecode('%2F8201%2F26060.html'), 'true',[],'',''],
		['PAGE','26102',jdecode('Organizations'),jdecode(''), jdecode('%2F8201%2F26102.html'), 'true',[],'',''],
		['PAGE','25955',jdecode('Churches'),jdecode(''), jdecode('%2F8201%2F25955.html'), 'true',[],'',''],
		['PAGE','26123',jdecode('Fitness+Centers'),jdecode(''), jdecode('%2F8201%2F26123.html'), 'true',[],'','']
	],'',''],
	['PAGE','26144',jdecode('Gallery+II'),jdecode(''), jdecode('%2F26144%2Findex.html'), 'true',[ 
		['PAGE','26081',jdecode('Legal'),jdecode(''), jdecode('%2F26144%2F26081.html'), 'true',[],'',''],
		['PAGE','26165',jdecode('Financial+'),jdecode(''), jdecode('%2F26144%2F26165.html'), 'true',[],'',''],
		['PAGE','26207',jdecode('Corporate'),jdecode(''), jdecode('%2F26144%2F26207.html'), 'true',[],'',''],
		['PAGE','26249',jdecode('Medical'),jdecode(''), jdecode('%2F26144%2F26249.html'), 'true',[],'',''],
		['PAGE','46445',jdecode('Hotels'),jdecode(''), jdecode('%2F26144%2F46445.html'), 'true',[],'',''],
		['PAGE','46466',jdecode('Residential+'),jdecode(''), jdecode('%2F26144%2F46466.html'), 'true',[],'',''],
		['PAGE','26270',jdecode('Solid+Surface'),jdecode(''), jdecode('%2F26144%2F26270.html'), 'true',[],'',''],
		['PAGE','65800',jdecode('3form'),jdecode(''), jdecode('%2F26144%2F65800.html'), 'true',[],'','']
	],'',''],
	['PAGE','26312',jdecode('Beyond+Wood'),jdecode(''), jdecode('%2F26312%2Findex.html'), 'true',[ 
		['PAGE','56010',jdecode('Trade+Partners'),jdecode(''), jdecode('%2F26312%2F56010.html'), 'true',[],'',''],
		['PAGE','8001',jdecode('Our+Vendors'),jdecode(''), jdecode('%2F26312%2F8001.html'), 'true',[],'',''],
		['PAGE','56031',jdecode('Specialty+Gallery'),jdecode(''), jdecode('%2F26312%2F56031.html'), 'true',[],'','']
	],'',''],
	['PAGE','10822',jdecode('Multi-Family+Gallery'),jdecode(''), jdecode('%2F10822%2Findex.html'), 'true',[ 
		['PAGE','11001',jdecode('Overview'),jdecode(''), jdecode('%2F10822%2F11001.html'), 'true',[],'',''],
		['PAGE','11022',jdecode('Care+%26+Warranty'),jdecode(''), jdecode('%2F10822%2F11022.html'), 'true',[],'',''],
		['PAGE','8306',jdecode('Our+Product'),jdecode(''), jdecode('%2F10822%2F8306.html'), 'true',[],'',''],
		['PAGE','52267',jdecode('Gallery'),jdecode(''), jdecode('%2F10822%2F52267.html'), 'true',[],'','']
	],'',''],
	['PAGE','26291',jdecode('SAW+Installation'),jdecode(''), jdecode('%2F26291.html'), 'true',[],'',''],
	['PAGE','1894',jdecode('Contact+Us'),jdecode(''), jdecode('%2F1894.html'), 'true',[],'','']];
var siteelementCount=36;
theSitetree.topTemplateName='Holz';
theSitetree.paletteFamily='FF7112';
theSitetree.keyvisualId='8817';
theSitetree.keyvisualName='KV_03.swf';
theSitetree.fontsetId='17186';
theSitetree.graphicsetId='12654';
theSitetree.contentColor='E4A180';
theSitetree.contentBGColor='262626';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'true',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'true',
				hasCompanyname: 'false',
				name: 			'Holz',
				paletteFamily: 	'FF7112',
				keyvisualId: 	'8817',
				keyvisualName: 	'KV_03.swf',
				fontsetId: 		'17186',
				graphicsetId: 	'12654',
				contentColor: 	'E4A180',
				contentBGColor: '262626',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'FF6600',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1801',
internalId:  '',
customField: '20110615-125934'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1852',
internalId:  '',
customField: '20110619-170150'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46445',
internalId:  '',
customField: '20110616-134531'
};
webappMappings['7008']=webappMappings['7008-20071']={
webappId:    '7008',
documentId:  '1894',
internalId:  '20071',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1894',
internalId:  '',
customField: '20110613-012508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5101',
internalId:  '',
customField: '20110628-174921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26123',
internalId:  '',
customField: '20110616-125624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26207',
internalId:  '',
customField: '20110616-132544'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26165',
internalId:  '',
customField: '20110616-125922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25955',
internalId:  '',
customField: '20110616-123222'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52267',
internalId:  '',
customField: '20110619-145213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51267',
internalId:  '',
customField: '20110613-001159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55989',
internalId:  '',
customField: '20110627-140659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56010',
internalId:  '',
customField: '20110627-163627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56031',
internalId:  '',
customField: '20110613-171026'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11001',
internalId:  '',
customField: '20110616-011903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11022',
internalId:  '',
customField: '20110616-012204'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46466',
internalId:  '',
customField: '20110616-134919'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10822',
internalId:  '',
customField: '20110619-173218'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8201',
internalId:  '',
customField: '20110613-002334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26270',
internalId:  '',
customField: '20110620-013203'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20110615-150559'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26144',
internalId:  '',
customField: '20110613-101246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8306',
internalId:  '',
customField: '20110619-144912'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26291',
internalId:  '',
customField: '20110619-170735'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26312',
internalId:  '',
customField: '20110620-002349'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '65800',
internalId:  '',
customField: '20110619-170005'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26249',
internalId:  '',
customField: '20110616-132958'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25934',
internalId:  '',
customField: '20110613-002052'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25976',
internalId:  '',
customField: '20110616-124044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25997',
internalId:  '',
customField: '20110616-124306'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26186',
internalId:  '',
customField: '20110616-131921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26018',
internalId:  '',
customField: '20110616-124524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26039',
internalId:  '',
customField: '20110616-124849'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26060',
internalId:  '',
customField: '20110616-125301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26081',
internalId:  '',
customField: '20110616-130931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26102',
internalId:  '',
customField: '20110616-125454'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHL7Z';
var companyName   = 'Southeastern+Architectural+Woodworks';
var htmlTitle	  = 'Southeastern+Architectural+Woodworks+Brandon%2C+MS';
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();
};

