/* [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','401',jdecode('Home'),jdecode(''), jdecode('%2F401.html'), 'true',[],'',''],
	['PAGE','452',jdecode('Our+History'),jdecode(''), jdecode('%2F452%2Findex.html'), 'true',[ 
		['PAGE','473',jdecode('Meet+our+Staff'),jdecode(''), jdecode('%2F452%2F473.html'), 'true',[],'',''],
		['PAGE','18601',jdecode('In+Memorandum'),jdecode(''), jdecode('%2F452%2F18601.html'), 'true',[],'','']
	],'',''],
	['PAGE','494',jdecode('Search+for+Product'),jdecode(''), jdecode('%2F494%2Findex.html'), 'false',[ 
		['PAGE','6447',jdecode('Bar+Supports'),jdecode(''), jdecode('%2F494%2F6447.html'), 'true',[],'',''],
		['PAGE','6552',jdecode('Blankets'),jdecode(''), jdecode('%2F494%2F6552.html'), 'true',[],'',''],
		['PAGE','6468',jdecode('Bridge+Deck'),jdecode(''), jdecode('%2F494%2F6468.html'), 'true',[],'',''],
		['PAGE','6489',jdecode('Cementious'),jdecode(''), jdecode('%2F494%2F6489.html'), 'true',[],'',''],
		['PAGE','6531',jdecode('Chemicals'),jdecode(''), jdecode('%2F494%2F6531.html'), 'true',[],'',''],
		['PAGE','21101',jdecode('Construction+Tube'),jdecode(''), jdecode('%2F494%2F21101.html'), 'true',[],'',''],
		['PAGE','6510',jdecode('Decorative+Conc.'),jdecode(''), jdecode('%2F494%2F6510.html'), 'true',[],'',''],
		['PAGE','21122',jdecode('Erosion+Control'),jdecode(''), jdecode('%2F494%2F21122.html'), 'true',[],'',''],
		['PAGE','21143',jdecode('Forming'),jdecode(''), jdecode('%2F494%2F21143.html'), 'true',[],'',''],
		['PAGE','21164',jdecode('Geogrids'),jdecode(''), jdecode('%2F494%2F21164.html'), 'true',[],'',''],
		['PAGE','21185',jdecode('Geotextiles'),jdecode(''), jdecode('%2F494%2F21185.html'), 'true',[],'',''],
		['PAGE','21206',jdecode('Hand+Tools+%26+Misc.'),jdecode(''), jdecode('%2F494%2F21206.html'), 'true',[],'',''],
		['PAGE','21227',jdecode('Insulation'),jdecode(''), jdecode('%2F494%2F21227.html'), 'true',[],'',''],
		['PAGE','21248',jdecode('Paving'),jdecode(''), jdecode('%2F494%2F21248.html'), 'true',[],'',''],
		['PAGE','21269',jdecode('Poly'),jdecode(''), jdecode('%2F494%2F21269.html'), 'true',[],'',''],
		['PAGE','21290',jdecode('Power+Tools+%26+Equip.'),jdecode(''), jdecode('%2F494%2F21290.html'), 'true',[],'',''],
		['PAGE','21311',jdecode('Rentals'),jdecode(''), jdecode('%2F494%2F21311.html'), 'true',[],'',''],
		['PAGE','21332',jdecode('Safety'),jdecode(''), jdecode('%2F494%2F21332.html'), 'true',[],'',''],
		['PAGE','21353',jdecode('Tilt+Up'),jdecode(''), jdecode('%2F494%2F21353.html'), 'true',[],'',''],
		['PAGE','21374',jdecode('Vapor+Barrier'),jdecode(''), jdecode('%2F494%2F21374.html'), 'true',[],'',''],
		['PAGE','21395',jdecode('Waterproofing'),jdecode(''), jdecode('%2F494%2F21395.html'), 'true',[],'',''],
		['PAGE','5901',jdecode('A'),jdecode(''), jdecode('%2F494%2F5901.html'), 'true',[],'',''],
		['PAGE','5922',jdecode('B'),jdecode(''), jdecode('%2F494%2F5922.html'), 'true',[],'',''],
		['PAGE','5943',jdecode('C'),jdecode(''), jdecode('%2F494%2F5943.html'), 'true',[],'',''],
		['PAGE','5964',jdecode('D'),jdecode(''), jdecode('%2F494%2F5964.html'), 'true',[],'',''],
		['PAGE','5985',jdecode('E'),jdecode(''), jdecode('%2F494%2F5985.html'), 'true',[],'',''],
		['PAGE','6006',jdecode('F'),jdecode(''), jdecode('%2F494%2F6006.html'), 'true',[],'',''],
		['PAGE','6027',jdecode('G'),jdecode(''), jdecode('%2F494%2F6027.html'), 'true',[],'',''],
		['PAGE','6048',jdecode('H'),jdecode(''), jdecode('%2F494%2F6048.html'), 'true',[],'',''],
		['PAGE','6069',jdecode('I'),jdecode(''), jdecode('%2F494%2F6069.html'), 'true',[],'',''],
		['PAGE','6090',jdecode('J'),jdecode(''), jdecode('%2F494%2F6090.html'), 'true',[],'',''],
		['PAGE','6111',jdecode('K'),jdecode(''), jdecode('%2F494%2F6111.html'), 'true',[],'',''],
		['PAGE','6132',jdecode('L'),jdecode(''), jdecode('%2F494%2F6132.html'), 'true',[],'',''],
		['PAGE','6153',jdecode('M'),jdecode(''), jdecode('%2F494%2F6153.html'), 'true',[],'',''],
		['PAGE','6174',jdecode('N'),jdecode(''), jdecode('%2F494%2F6174.html'), 'true',[],'',''],
		['PAGE','6195',jdecode('O'),jdecode(''), jdecode('%2F494%2F6195.html'), 'true',[],'',''],
		['PAGE','6216',jdecode('P'),jdecode(''), jdecode('%2F494%2F6216.html'), 'true',[],'',''],
		['PAGE','6237',jdecode('Q'),jdecode(''), jdecode('%2F494%2F6237.html'), 'true',[],'',''],
		['PAGE','6258',jdecode('R'),jdecode(''), jdecode('%2F494%2F6258.html'), 'true',[],'',''],
		['PAGE','6279',jdecode('S'),jdecode(''), jdecode('%2F494%2F6279.html'), 'true',[],'',''],
		['PAGE','6300',jdecode('T'),jdecode(''), jdecode('%2F494%2F6300.html'), 'true',[],'',''],
		['PAGE','6321',jdecode('U'),jdecode(''), jdecode('%2F494%2F6321.html'), 'true',[],'',''],
		['PAGE','6342',jdecode('V'),jdecode(''), jdecode('%2F494%2F6342.html'), 'true',[],'',''],
		['PAGE','6363',jdecode('W'),jdecode(''), jdecode('%2F494%2F6363.html'), 'true',[],'',''],
		['PAGE','6384',jdecode('X'),jdecode(''), jdecode('%2F494%2F6384.html'), 'true',[],'',''],
		['PAGE','6405',jdecode('Y'),jdecode(''), jdecode('%2F494%2F6405.html'), 'true',[],'',''],
		['PAGE','6426',jdecode('Z'),jdecode(''), jdecode('%2F494%2F6426.html'), 'true',[],'','']
	],'',''],
	['PAGE','557',jdecode('Contact'),jdecode(''), jdecode('%2F557.html'), 'true',[],'',''],
	['PAGE','4101',jdecode('Current+Specials'),jdecode(''), jdecode('%2F4101.html'), 'false',[],'',''],
	['PAGE','26201',jdecode('Distressed+Inventory'),jdecode(''), jdecode('%2F26201.html'), 'false',[],'',''],
	['PAGE','2301',jdecode('Map'),jdecode(''), jdecode('%2F2301.html'), 'true',[],'',''],
	['PAGE','15401',jdecode('Sign+Our+Guestbook'),jdecode(''), jdecode('%2F15401.html'), 'true',[],'',''],
	['PAGE','15901',jdecode('Tulsa+Weather'),jdecode(''), jdecode('%2F15901.html'), 'true',[],'',''],
	['PAGE','4122',jdecode('Upcoming+Events'),jdecode(''), jdecode('%2F4122.html'), 'true',[],'','']];
var siteelementCount=59;
theSitetree.topTemplateName='Displace';
theSitetree.paletteFamily='2E2E2E';
theSitetree.keyvisualId='11075';
theSitetree.keyvisualName='kv_11075.jpg';
theSitetree.fontsetId='31958';
theSitetree.graphicsetId='13798';
theSitetree.contentColor='D8D8D5';
theSitetree.contentBGColor='2E2E2E';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'bluedomino',
  product: 'WSCSYSSSSLY0XRN4'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Displace',
				paletteFamily: 	'2E2E2E',
				keyvisualId: 	'11075',
				keyvisualName: 	'kv_11075.jpg',
				fontsetId: 		'31958',
				graphicsetId: 	'13798',
				contentColor: 	'D8D8D5',
				contentBGColor: '2E2E2E',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '401',
internalId:  '1006',
customField: '1006'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '2301',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '401',
internalId:  '',
customField: '20110927-094832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4122',
internalId:  '',
customField: '20110919-121501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20110208-105940'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20110707-163827'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '494',
internalId:  '',
customField: '20090408-101322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '26201',
internalId:  '',
customField: '20090826-131801'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5901',
internalId:  '',
customField: '20070824-104032'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5922',
internalId:  '',
customField: '20070824-104413'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5943',
internalId:  '',
customField: '20070824-113407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5964',
internalId:  '',
customField: '20070824-113653'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5985',
internalId:  '',
customField: '20070824-115206'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6006',
internalId:  '',
customField: '20070827-060949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6027',
internalId:  '',
customField: '20070827-062516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6048',
internalId:  '',
customField: '20070827-123142'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6069',
internalId:  '',
customField: '20070827-123330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6090',
internalId:  '',
customField: '20070827-123604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6111',
internalId:  '',
customField: '20070827-124344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6132',
internalId:  '',
customField: '20081028-100159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6153',
internalId:  '',
customField: '20080124-173938'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6174',
internalId:  '',
customField: '20070828-035903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6195',
internalId:  '',
customField: '20070828-040043'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6216',
internalId:  '',
customField: '20070828-040729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6237',
internalId:  '',
customField: '20090407-163835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6258',
internalId:  '',
customField: '20090407-163807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6279',
internalId:  '',
customField: '20080702-145315'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6300',
internalId:  '',
customField: '20090407-163715'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6321',
internalId:  '',
customField: '20090407-163644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6342',
internalId:  '',
customField: '20090407-163614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6363',
internalId:  '',
customField: '20090407-163532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6384',
internalId:  '',
customField: '20090407-163426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6405',
internalId:  '',
customField: '20090407-162825'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6426',
internalId:  '',
customField: '20090407-162750'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6447',
internalId:  '',
customField: '20090407-151102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6468',
internalId:  '',
customField: '20090407-151623'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6489',
internalId:  '',
customField: '20090407-152550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6510',
internalId:  '',
customField: '20090407-161531'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6531',
internalId:  '',
customField: '20090407-153604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6552',
internalId:  '',
customField: '20090409-123526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '557',
internalId:  '',
customField: '20081105-084055'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20110707-151606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4101',
internalId:  '',
customField: '20110420-093248'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2301',
internalId:  '',
customField: '20081105-084941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21101',
internalId:  '',
customField: '20090407-161118'
};
webappMappings['1002']=webappMappings['1002-15401aendu0inxxxr']={
webappId:    '1002',
documentId:  '15401',
internalId:  '15401aendu0inxxxr',
customField: 'icq=false'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15401',
internalId:  '',
customField: '20081028-111559'
};
webappMappings['7080']=webappMappings['7080-305']={
webappId:    '7080',
documentId:  '15901',
internalId:  '305',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15901',
internalId:  '',
customField: '20081105-085437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21122',
internalId:  '',
customField: '20090409-123936'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21143',
internalId:  '',
customField: '20090409-124307'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21164',
internalId:  '',
customField: '20090409-124456'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21185',
internalId:  '',
customField: '20090409-124949'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21206',
internalId:  '',
customField: '20090409-125506'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21227',
internalId:  '',
customField: '20090409-130124'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21248',
internalId:  '',
customField: '20090409-131713'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21269',
internalId:  '',
customField: '20090409-133536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21290',
internalId:  '',
customField: '20090413-180042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21311',
internalId:  '',
customField: '20090407-164500'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21332',
internalId:  '',
customField: '20090407-164610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21353',
internalId:  '',
customField: '20090407-164646'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21374',
internalId:  '',
customField: '20090407-164721'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21395',
internalId:  '',
customField: '20090407-164754'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INXXXR';
var companyName   = 'Maxwell+Supply+of+Tulsa';
var htmlTitle	  = 'Maxwell+Supply+of+Tulsa';
var metaKeywords  = '';
var metaContents  = 'Maxwell+Supply+of+Tulsa+contractors+supply';
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();
};

