/* [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 theSitetree=[ 
	['PAGE','401',jdecode('Home'),jdecode(''),'/401.html','true',[],''],
	['PAGE','452',jdecode('Our+History'),jdecode(''),'/452/index.html','true',[ 
		['PAGE','473',jdecode('Meet+our+Staff'),jdecode(''),'/452/473.html','true',[],''],
		['PAGE','18601',jdecode('In+Memorandum'),jdecode(''),'/452/18601.html','true',[],'']
	],''],
	['PAGE','494',jdecode('Search+for+Product'),jdecode(''),'/494/index.html','true',[ 
		['PAGE','6447',jdecode('Bar+Supports'),jdecode(''),'/494/6447.html','true',[],''],
		['PAGE','6552',jdecode('Blankets'),jdecode(''),'/494/6552.html','true',[],''],
		['PAGE','6468',jdecode('Bridge+Deck'),jdecode(''),'/494/6468.html','true',[],''],
		['PAGE','6489',jdecode('Cementious'),jdecode(''),'/494/6489.html','true',[],''],
		['PAGE','6531',jdecode('Chemicals'),jdecode(''),'/494/6531.html','true',[],''],
		['PAGE','21101',jdecode('Construction+Tube'),jdecode(''),'/494/21101.html','true',[],''],
		['PAGE','6510',jdecode('Decorative+Conc.'),jdecode(''),'/494/6510.html','true',[],''],
		['PAGE','21122',jdecode('Erosion+Control'),jdecode(''),'/494/21122.html','true',[],''],
		['PAGE','21143',jdecode('Forming'),jdecode(''),'/494/21143.html','true',[],''],
		['PAGE','21164',jdecode('Geogrids'),jdecode(''),'/494/21164.html','true',[],''],
		['PAGE','21185',jdecode('Geotextiles'),jdecode(''),'/494/21185.html','true',[],''],
		['PAGE','21206',jdecode('Hand+Tools+%26+Misc.'),jdecode(''),'/494/21206.html','true',[],''],
		['PAGE','21227',jdecode('Insulation'),jdecode(''),'/494/21227.html','true',[],''],
		['PAGE','21248',jdecode('Paving'),jdecode(''),'/494/21248.html','true',[],''],
		['PAGE','21269',jdecode('Poly'),jdecode(''),'/494/21269.html','true',[],''],
		['PAGE','21290',jdecode('Power+Tools+%26+Equip.'),jdecode(''),'/494/21290.html','true',[],''],
		['PAGE','21311',jdecode('Rentals'),jdecode(''),'/494/21311.html','true',[],''],
		['PAGE','21332',jdecode('Safety'),jdecode(''),'/494/21332.html','true',[],''],
		['PAGE','21353',jdecode('Tilt+Up'),jdecode(''),'/494/21353.html','true',[],''],
		['PAGE','21374',jdecode('Vapor+Barrier'),jdecode(''),'/494/21374.html','true',[],''],
		['PAGE','21395',jdecode('Waterproofing'),jdecode(''),'/494/21395.html','true',[],''],
		['PAGE','5901',jdecode('A'),jdecode(''),'/494/5901.html','true',[],''],
		['PAGE','5922',jdecode('B'),jdecode(''),'/494/5922.html','true',[],''],
		['PAGE','5943',jdecode('C'),jdecode(''),'/494/5943.html','true',[],''],
		['PAGE','5964',jdecode('D'),jdecode(''),'/494/5964.html','true',[],''],
		['PAGE','5985',jdecode('E'),jdecode(''),'/494/5985.html','true',[],''],
		['PAGE','6006',jdecode('F'),jdecode(''),'/494/6006.html','true',[],''],
		['PAGE','6027',jdecode('G'),jdecode(''),'/494/6027.html','true',[],''],
		['PAGE','6048',jdecode('H'),jdecode(''),'/494/6048.html','true',[],''],
		['PAGE','6069',jdecode('I'),jdecode(''),'/494/6069.html','true',[],''],
		['PAGE','6090',jdecode('J'),jdecode(''),'/494/6090.html','true',[],''],
		['PAGE','6111',jdecode('K'),jdecode(''),'/494/6111.html','true',[],''],
		['PAGE','6132',jdecode('L'),jdecode(''),'/494/6132.html','true',[],''],
		['PAGE','6153',jdecode('M'),jdecode(''),'/494/6153.html','true',[],''],
		['PAGE','6174',jdecode('N'),jdecode(''),'/494/6174.html','true',[],''],
		['PAGE','6195',jdecode('O'),jdecode(''),'/494/6195.html','true',[],''],
		['PAGE','6216',jdecode('P'),jdecode(''),'/494/6216.html','true',[],''],
		['PAGE','6237',jdecode('Q'),jdecode(''),'/494/6237.html','true',[],''],
		['PAGE','6258',jdecode('R'),jdecode(''),'/494/6258.html','true',[],''],
		['PAGE','6279',jdecode('S'),jdecode(''),'/494/6279.html','true',[],''],
		['PAGE','6300',jdecode('T'),jdecode(''),'/494/6300.html','true',[],''],
		['PAGE','6321',jdecode('U'),jdecode(''),'/494/6321.html','true',[],''],
		['PAGE','6342',jdecode('V'),jdecode(''),'/494/6342.html','true',[],''],
		['PAGE','6363',jdecode('W'),jdecode(''),'/494/6363.html','true',[],''],
		['PAGE','6384',jdecode('X'),jdecode(''),'/494/6384.html','true',[],''],
		['PAGE','6405',jdecode('Y'),jdecode(''),'/494/6405.html','true',[],''],
		['PAGE','6426',jdecode('Z'),jdecode(''),'/494/6426.html','true',[],'']
	],''],
	['PAGE','557',jdecode('Contact'),jdecode(''),'/557.html','true',[],''],
	['PAGE','4101',jdecode('Current+Specials'),jdecode(''),'/4101.html','true',[],''],
	['PAGE','26201',jdecode('Distressed+Inventory'),jdecode(''),'/26201.html','true',[],''],
	['PAGE','2301',jdecode('Map'),jdecode(''),'/2301.html','true',[],''],
	['PAGE','15401',jdecode('Sign+Our+Guestbook'),jdecode(''),'/15401.html','true',[],''],
	['PAGE','15901',jdecode('Tulsa+Weather'),jdecode(''),'/15901.html','true',[],''],
	['PAGE','4122',jdecode('Upcoming+Events'),jdecode(''),'/4122.html','true',[],'']];
var siteelementCount=59;
theSitetree.topTemplateName='Cube';
theSitetree.paletteFamily='154186';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10354';
theSitetree.graphicsetId='10488';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Cube',
				paletteFamily: 	'154186',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10354',
				graphicsetId: 	'10488',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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: '20090715-133922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4122',
internalId:  '',
customField: '20100419-144632'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '452',
internalId:  '',
customField: '20070823-111419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '473',
internalId:  '',
customField: '20100622-125129'
};
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: '20081105-090538'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4101',
internalId:  '',
customField: '20090424-131331'
};
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 canonHostname = 'cmworker02.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+contractrors+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();
};
