/* [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','6450',jdecode('Home'),jdecode(''),'/6450.html','true',[],'',''],
	['PAGE','6501',jdecode('Company'),jdecode(''),'/6501.html','true',[],'',''],
	['PAGE','6522',jdecode('Services'),jdecode(''),'/6522/index.html','true',[ 
		['PAGE','8250',jdecode('Agri-business'),jdecode(''),'/6522/8250.html','true',[],'',''],
		['PAGE','6585',jdecode('Concrete'),jdecode(''),'/6522/6585.html','true',[],'',''],
		['PAGE','32472',jdecode('Dairy+Industry'),jdecode(''),'/6522/32472.html','true',[],'',''],
		['PAGE','32493',jdecode('Hop+Industry'),jdecode(''),'/6522/32493.html','true',[],'',''],
		['PAGE','6606',jdecode('Maintenance'),jdecode(''),'/6522/6606.html','true',[],'',''],
		['PAGE','6543',jdecode('Masonry+Buildings'),jdecode(''),'/6522/6543.html','true',[],'',''],
		['PAGE','6564',jdecode('Remodeling'),jdecode(''),'/6522/6564.html','true',[],'',''],
		['PAGE','30572',jdecode('Steel+Buildings'),jdecode(''),'/6522/30572.html','true',[],'','']
	],'',''],
	['PAGE','6627',jdecode('Contact+Us'),jdecode(''),'/6627.html','true',[],'',''],
	['PAGE','38772',jdecode('Careers'),jdecode(''),'/38772.html','true',[],'',''],
	['PAGE','53872',jdecode('News+Articles'),jdecode(''),'/53872.html','true',[],'',''],
	['PAGE','55572',jdecode('Newsletters'),jdecode(''),'/55572.html','true',[],'','']];
var siteelementCount=15;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='AC2323';
theSitetree.keyvisualId='1819';
theSitetree.keyvisualName='kv_dummy.jpg';
theSitetree.fontsetId='289';
theSitetree.graphicsetId='356';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='AC2323';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Movement',
				paletteFamily: 	'AC2323',
				keyvisualId: 	'1819',
				keyvisualName: 	'kv_dummy.jpg',
				fontsetId: 		'289',
				graphicsetId: 	'356',
				contentColor: 	'FFFFFF',
				contentBGColor: 'AC2323',
				a_color: 		'AC2323',
				b_color: 		'480F0F',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['7008']=webappMappings['7008-119']={
webappId:    '7008',
documentId:  '6627',
internalId:  '119',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6450',
internalId:  '',
customField: '20100728-170412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6501',
internalId:  '',
customField: '20100728-122429'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6522',
internalId:  '',
customField: '20100707-115113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6543',
internalId:  '',
customField: '20100707-120657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6564',
internalId:  '',
customField: '20100707-120712'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6585',
internalId:  '',
customField: '20100707-120523'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6606',
internalId:  '',
customField: '20100707-120640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6627',
internalId:  '',
customField: '20100728-173356'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '6450',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8250',
internalId:  '',
customField: '20100728-123432'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30572',
internalId:  '',
customField: '20100707-120729'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32472',
internalId:  '',
customField: '20100707-120610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32493',
internalId:  '',
customField: '20100707-120625'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38772',
internalId:  '',
customField: '20100629-174125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55572',
internalId:  '',
customField: '20100727-173008'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53872',
internalId:  '',
customField: '20100629-174148'
};
webappMappings['1501']=webappMappings['1501-2493049']={
webappId:    '1501',
documentId:  '6450',
internalId:  '2493049',
customField: '1501'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INVBC1';
var companyName   = 'Puterbaugh+Construction';
var htmlTitle	  = 'Puterbaugh+Construction';
var metaKeywords  = 'Construction%3B+General+construction%3B+concrete%3B+commercial%3B+industrial%3B+industry%3B+remodeling%3B+renovation%3B+concrete%3B+maintenance%3B+Grandview%3B+Washington%3B+98930%3B+carpentry%3B+estimates%3B+estimating%3B+free+proposals%3B+proposals%3B+budgets%3B+quality%3B+agricultural%3B+specialize%3B+company%3B+general+contractor%3B+subcontractor%3B+processing+plants%3B+Puterbaugh%3B+reputation%3B+partnership%3B+family-operated%3B+installation%3B+services%3B+Central+Washington+Homebuilders+Association%3B+National+Federation+of+Independent+Business%3B+Independent+Business+Association%3B+Grandview+chamber+of+commerce%3B+Yakima%2C+Tri-cities%3B+Prosser%3B+Benton+City%3B+Richland%3B+Mabton%3B+Sunnyside%3B+Outlook%3B+Pasco%3B+Kennewick%3B+Mesa%3B+Toppenish%3B+Zillah%3B+Ellensburg%3B+Mattawa%3B+Quinc%3B%2C+Moses+Lake%3B+Plymouth%3B+craftsman%3B+safety+management%3B+excellent+results%3B+on-time+completion%3B+furnish%3B+customer+service%3B+repair%3B+maintenance%3B+integrity%3B+dependability%3B+workmanship%3B+managed%3B+professional%3B+framed+construction%3B+pre-cast+concrete+buildings%3B+pre-engineered+steel+buildings%3B+masonry+buildings%3B+contractors%3B+carpenters%3B+cement+finishers%3B+laborers%3B+qualified%3B+management+team%3B+design%3B+completion%3B+cost-effectively%3B+rehabilitation%3B+dairies%3B+rotary+dairy+parlor%3B+milk+plants%3B+fruit++potato+processing+plants%3B+cold+storage%3B+agri-business+industries%3B+steel+buildings%3B+hop+industries%3B+hop+kiln%3B+farms%3B+orchards%3B+floor+systems%3B+insulated+freezer+foundations%3B+licensed+and+bonded%3B+customer+deadlines%3B+satisfaction%3B+windows%3B+doors%3B+exterior%3B+interior%3B+layout%3B+excavation%3B+saw+cutting%3B+demolition%3B+removal%3B+forming%3B+special+finishes%3B+footings%3B+foundations%3B+stem+walls%3B+retaining+walls%3B+tilt+up+panels%3B+floor+slabs%3B+area+paving%3B+tank+bases%3B+equipment+bases%3B+paving%3B+wood%3B+steel%3B+rebar%3B+roofing%3B+doors%3B+windows%3B+framing%3B+insulation%3B+drywall%3B+glazing%3B+painting%3B+tile%3B+brick%3B+storefronts%3B+resilient+floor%3B+gutters%3B+docks%3B+runways%3B+tank+containments%3B+referrals%3B+Oregon+registration%3B+Washington+registration%3B+insured%3B+water+proofing%3B+sealing%3B+patching%3B+programs%3B+cleaning%3B+joint+sealing%3B+crack+repairs%3B+specialized+sealants%3B+walkways%3B+caulking%3B+concrete+maintenance+program%3B+PUTERGC160C2%2C+143269%2C+PuterbaughConstruction%3B+pipe+supports%3B+';
var metaContents  = 'Value%2C+Experience+%26+Integrity+Built+Into+Every+Project.++Specializing+in+commercial+and+industrial+renovation+since+1955.';
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();
};
