/* [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','95',jdecode('Home'),jdecode(''),'/95.html','true',[],'',''],
	['PAGE','631',jdecode('About+Us'),jdecode(''),'/631/index.html','true',[ 
		['PAGE','640',jdecode('Our+Team'),jdecode(''),'/631/640.html','true',[],'','']
	],'',''],
	['PAGE','125',jdecode('Wire+Rope+%2F+Rigging'),jdecode(''),'/125/index.html','true',[ 
		['PAGE','981',jdecode('Cross+Sections'),jdecode(''),'/125/981.html','true',[],'',''],
		['PAGE','990',jdecode('Applications'),jdecode(''),'/125/990.html','true',[],'',''],
		['PAGE','999',jdecode('Sockets'),jdecode(''),'/125/999.html','true',[],'',''],
		['PAGE','1008',jdecode('Clips'),jdecode(''),'/125/1008.html','true',[],'',''],
		['PAGE','1017',jdecode('Slings'),jdecode(''),'/125/1017.html','true',[],'',''],
		['PAGE','1026',jdecode('Hooks'),jdecode(''),'/125/1026.html','true',[],'',''],
		['PAGE','1035',jdecode('Shackles'),jdecode(''),'/125/1035.html','true',[],'',''],
		['PAGE','1044',jdecode('Turnbuckles'),jdecode(''),'/125/1044.html','true',[],'','']
	],'',''],
	['PAGE','134',jdecode('Industrial'),jdecode(''),'/134/index.html','true',[ 
		['PAGE','1920',jdecode('Metal+Prices'),jdecode(''),'/134/1920.html','true',[],'','']
	],'',''],
	['PAGE','143',jdecode('Marine'),jdecode(''),'/143.html','true',[],'',''],
	['PAGE','152',jdecode('Surplus'),jdecode(''),'/152/index.html','true',[ 
		['PAGE','850',jdecode('Electrical+Contractor'),jdecode(''),'/152/850.html','true',[],'',''],
		['PAGE','859',jdecode('Plumbing+Contractor'),jdecode(''),'/152/859.html','true',[],'',''],
		['PAGE','868',jdecode('Welding+%26+Fab'),jdecode(''),'/152/868.html','true',[],'',''],
		['PAGE','877',jdecode('Industrial+Machinery'),jdecode(''),'/152/877.html','true',[],'',''],
		['PAGE','886',jdecode('Larry%26%23x27%3Bs+Screamin%26%23x27%3B+Deals'),jdecode(''),'/152/886.html','true',[],'',''],
		['PAGE','895',jdecode('Odds+%26+Ends'),jdecode(''),'/152/895.html','true',[],'','']
	],'',''],
	['PAGE','161',jdecode('Contact'),jdecode(''),'/161/index.html','true',[ 
		['PAGE','188',jdecode('Request+Info'),jdecode(''),'/161/188/index.html','true',[ 
			['PAGE','477',jdecode('Contact+Us+%28follow+up+page%29'),jdecode(''),'/161/188/477.html','false',[],'','']
		],'','']
	],'',''],
	['PAGE','618',jdecode('Directions'),jdecode(''),'/618/index.html','true',[ 
		['PAGE','1181',jdecode('How+to+find+us'),jdecode(''),'/618/1181.html','true',[],'',''],
		['PAGE','5221',jdecode('New+Facility'),jdecode(''),'/618/5221.html','true',[],'','']
	],'','']];
var siteelementCount=28;
theSitetree.topTemplateName='Industry';
theSitetree.paletteFamily='C5CC56';
theSitetree.keyvisualId='7457';
theSitetree.keyvisualName='kv_7457.jpg';
theSitetree.fontsetId='16539';
theSitetree.graphicsetId='12186';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='635B59';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Industry',
				paletteFamily: 	'C5CC56',
				keyvisualId: 	'7457',
				keyvisualName: 	'kv_7457.jpg',
				fontsetId: 		'16539',
				graphicsetId: 	'12186',
				contentColor: 	'FFFFFF',
				contentBGColor: '635B59',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '618',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:false;'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '1181',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '95',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '95',
internalId:  '',
customField: '20100402-163604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '134',
internalId:  '',
customField: '20060201-234522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1920',
internalId:  '',
customField: '20090113-144250'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '631',
internalId:  '',
customField: '20070306-005018'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '640',
internalId:  '',
customField: '20060201-233805'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '125',
internalId:  '',
customField: '20050715-171426'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '981',
internalId:  '',
customField: '20050715-103947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '990',
internalId:  '',
customField: '20050718-114012'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '999',
internalId:  '',
customField: '20050718-124539'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1008',
internalId:  '',
customField: '20050715-100610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1017',
internalId:  '',
customField: '20050715-100611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1026',
internalId:  '',
customField: '20050715-100611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1035',
internalId:  '',
customField: '20050715-100611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1044',
internalId:  '',
customField: '20050715-100611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '143',
internalId:  '',
customField: '20050714-144256'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '152',
internalId:  '',
customField: '20060201-231807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '850',
internalId:  '',
customField: '20060221-011134'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '859',
internalId:  '',
customField: '20050715-092033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '868',
internalId:  '',
customField: '20060201-210208'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '877',
internalId:  '',
customField: '20060201-210935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '886',
internalId:  '',
customField: '20050715-092033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '895',
internalId:  '',
customField: '20050715-092033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '161',
internalId:  '',
customField: '20070306-004302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '188',
internalId:  '',
customField: '20060821-212405'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '477',
internalId:  '',
customField: '20050714-152039'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '618',
internalId:  '',
customField: '20070306-004518'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1181',
internalId:  '',
customField: '20050715-123423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5221',
internalId:  '',
customField: '20070306-004855'
};
webappMappings['7008']=webappMappings['7008-8361']={
webappId:    '7008',
documentId:  '188',
internalId:  '8361',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INX3CJ';
var companyName   = 'Pacific+Industrial+Supply';
var htmlTitle	  = '';
var metaKeywords  = 'welding+platen+welder+mathey+beveler+dearman+clamp+wachs+trav+l+cutter+pipe+saw+ridgid+greenlee+conduit+bender+current+tools+tugger+puller+steel+iron+acorn+weldsale+sumner++ensley+rothenburger+jet+hossfeld+job+box+gardner+bender+milwaukee+hilman+scaffold+h++M++wire+rope+cable+bunnebo+skookum+ropemaster+wright+channellock+h.k.+porter+marine+boat+longline+seadog+cordage+maasdam+ladder+howard+stinson+cm+forge+angle+channel+bar+paint+hammer+staples+logging+valves+valve+camlock+cylinder+hose+pump+air+compressor+screw+caster+skookum+ropemaster+crab+gear+campbell+poly+tarp+iron+steel+aircraft+cable+wire+rope+rake+shovel+axe+chain+rigging+logging+block+material+handling+safty+buoys+fittings+abrasive+electrical+fastener+core+drill+woodworking+lathe+milling+truck+box+toolbox+tool+safety+fall+protection+wheel+barrow+hoist+winch+boat+hose+hydraulic+equipment+';
var metaContents  = 'welding+platen+welder+mathey+beveler+dearman+clamp+wachs+trav+l+cutter+pipe+saw+ridgid+greenlee+conduit+bender+current+tools+tugger+puller+steel+iron+acorn';
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();
};
