/* [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','5501',jdecode('Home'),jdecode(''),'/5501.html','true',[],'',''],
	['PAGE','5722',jdecode('Inspection+Services'),jdecode(''),'/5722.html','true',[],'',''],
	['PAGE','12101',jdecode('Radon+Gas'),jdecode(''),'/12101.html','true',[],'',''],
	['PAGE','12901',jdecode('Well+Water+Testing'),jdecode(''),'/12901.html','true',[],'',''],
	['PAGE','5764',jdecode('Move-In+Certified'),jdecode(''),'/5764.html','true',[],'',''],
	['PAGE','12401',jdecode('HUD+203K+Consultants'),jdecode(''),'/12401.html','true',[],'',''],
	['PAGE','5743',jdecode('Contact+Us'),jdecode(''),'/5743.html','true',[],'',''],
	['PAGE','10643',jdecode('Book+Inspection'),jdecode(''),'/10643.html','true',[],'',''],
	['PAGE','12122',jdecode('Inspection+Photos'),jdecode(''),'/12122.html','true',[],'',''],
	['PAGE','12922',jdecode('Training+and+Education'),jdecode(''),'/12922/index.html','true',[ 
		['PAGE','12622',jdecode('Pass+the+Exam+'),jdecode(''),'/12922/12622.html','true',[],'',''],
		['PAGE','12601',jdecode('Continuing+Education'),jdecode(''),'/12922/12601.html','true',[],'',''],
		['PAGE','46101',jdecode('Inspecting+the+Exterior'),jdecode(''),'/12922/46101.html','true',[],'',''],
		['PAGE','46122',jdecode('Advance+Res.+Electrical'),jdecode(''),'/12922/46122.html','true',[],'',''],
		['PAGE','46143',jdecode('Home+Inspector+Safety'),jdecode(''),'/12922/46143.html','true',[],'','']
	],'',''],
	['PAGE','5701',jdecode('About+us'),jdecode(''),'/5701.html','true',[],'',''],
	['PAGE','12943',jdecode('News'),jdecode(''),'/12943.html','true',[],'',''],
	['PAGE','15301',jdecode('Weather'),jdecode(''),'/15301.html','true',[],'',''],
	['PAGE','15801',jdecode('interNACHI'),jdecode(''),'/15801.html','true',[],'',''],
	['PAGE','22101',jdecode('What+we+inspect'),jdecode(''),'/22101.html','true',[],'',''],
	['PAGE','23001',jdecode('N.C.H.I.L.B.'),jdecode(''),'/23001.html','true',[],'',''],
	['PAGE','10601',jdecode('Links-Inspectors'),jdecode(''),'/10601/index.html','true',[ 
		['PAGE','30027',jdecode('Alabama'),jdecode(''),'/10601/30027.html','true',[],'',''],
		['PAGE','32401',jdecode('Florida'),jdecode(''),'/10601/32401.html','true',[],'',''],
		['PAGE','30048',jdecode('Georgia'),jdecode(''),'/10601/30048.html','true',[],'',''],
		['PAGE','29943',jdecode('New+Jersey'),jdecode(''),'/10601/29943.html','true',[],'',''],
		['PAGE','30006',jdecode('New+Mexico'),jdecode(''),'/10601/30006.html','true',[],'',''],
		['PAGE','29964',jdecode('New+York'),jdecode(''),'/10601/29964.html','true',[],'',''],
		['PAGE','29985',jdecode('Pennsylvania'),jdecode(''),'/10601/29985.html','true',[],'',''],
		['PAGE','29901',jdecode('South+Carolina'),jdecode(''),'/10601/29901.html','true',[],'',''],
		['PAGE','29922',jdecode('Virginia'),jdecode(''),'/10601/29922.html','true',[],'',''],
		['PAGE','32001',jdecode('Wyoming'),jdecode(''),'/10601/32001.html','true',[],'','']
	],'',''],
	['PAGE','30501',jdecode('Why+NACHI+Inspectors'),jdecode(''),'/30501.html','true',[],'',''],
	['PAGE','33001',jdecode('Inspections+Information'),jdecode(''),'/33001/index.html','true',[ 
		['PAGE','33301',jdecode('Aluminum+Wiring'),jdecode(''),'/33001/33301.html','true',[],'',''],
		['PAGE','33022',jdecode('Chinese+Drywall'),jdecode(''),'/33001/33022.html','true',[],'',''],
		['PAGE','33322',jdecode('Polybutylene+Piping'),jdecode(''),'/33001/33322.html','true',[],'','']
	],'',''],
	['PAGE','31301',jdecode('10+Questions+To+Ask+'),jdecode(''),'/31301.html','true',[],'',''],
	['PAGE','34001',jdecode('CANOREI'),jdecode(''),'/34001.html','true',[],'',''],
	['PAGE','35201',jdecode('blogg'),jdecode(''),'/35201.html','true',[],'',''],
	['PAGE','35222',jdecode('News'),jdecode(''),'/35222.html','true',[],'',''],
	['PAGE','36101',jdecode('Real+Estate+News'),jdecode(''),'/36101.html','true',[],'',''],
	['PAGE','36901',jdecode('Home+Maintenance'),jdecode(''),'/36901.html','true',[],'',''],
	['PAGE','43501',jdecode('10+ways+to+save+energy'),jdecode(''),'/43501.html','true',[],'',''],
	['PAGE','45401',jdecode('Mortgage+Companies'),jdecode(''),'/45401.html','true',[],'','']];
var siteelementCount=45;
theSitetree.topTemplateName='Sportive';
theSitetree.paletteFamily='FADE8A';
theSitetree.keyvisualId='2657';
theSitetree.keyvisualName='architekt.jpg';
theSitetree.fontsetId='220';
theSitetree.graphicsetId='261';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FADE8A';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Sportive',
				paletteFamily: 	'FADE8A',
				keyvisualId: 	'2657',
				keyvisualName: 	'architekt.jpg',
				fontsetId: 		'220',
				graphicsetId: 	'261',
				contentColor: 	'000000',
				contentBGColor: 'FADE8A',
				a_color: 		'FADE8A',
				b_color: 		'D0B976',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5501',
internalId:  '',
customField: '20100521-065314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5701',
internalId:  '',
customField: '20091110-180659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5722',
internalId:  '',
customField: '20100124-140738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5743',
internalId:  '',
customField: '20091110-163211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5764',
internalId:  '',
customField: '20091110-161113'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10643',
internalId:  '',
customField: '20091025-101134'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5501',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43501',
internalId:  '',
customField: '20100301-182504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15801',
internalId:  '',
customField: '20100109-181642'
};
webappMappings['7008']=webappMappings['7008-5286']={
webappId:    '7008',
documentId:  '10643',
internalId:  '5286',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10601',
internalId:  '',
customField: '20100201-195547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20100109-181747'
};
webappMappings['7060']=webappMappings['7060-e34dc84d8ecda5423afbc55bfd040919']={
webappId:    '7060',
documentId:  '12122',
internalId:  'e34dc84d8ecda5423afbc55bfd040919',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12101',
internalId:  '',
customField: '20100117-080344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12122',
internalId:  '',
customField: '20091025-124428'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12401',
internalId:  '',
customField: '20091025-130707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12601',
internalId:  '',
customField: '20091025-174722'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12622',
internalId:  '',
customField: '20091025-174433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12922',
internalId:  '',
customField: '20100419-082929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12943',
internalId:  '',
customField: '20100117-093047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12901',
internalId:  '',
customField: '20091025-182234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22101',
internalId:  '',
customField: '20091109-192948'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23001',
internalId:  '',
customField: '20091126-195807'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29943',
internalId:  '',
customField: '20091110-185838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29901',
internalId:  '',
customField: '20091110-185838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29922',
internalId:  '',
customField: '20091110-185838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29964',
internalId:  '',
customField: '20091110-185838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29985',
internalId:  '',
customField: '20091126-200749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30006',
internalId:  '',
customField: '20091110-185838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30027',
internalId:  '',
customField: '20091110-185838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30048',
internalId:  '',
customField: '20091202-095126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30501',
internalId:  '',
customField: '20091115-190532'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31301',
internalId:  '',
customField: '20091126-194922'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32001',
internalId:  '',
customField: '20091126-200318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32401',
internalId:  '',
customField: '20091202-095243'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33001',
internalId:  '',
customField: '20091128-191308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33022',
internalId:  '',
customField: '20091128-182717'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33322',
internalId:  '',
customField: '20091128-193437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '33301',
internalId:  '',
customField: '20091128-192921'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34001',
internalId:  '',
customField: '20091128-203312'
};
webappMappings['1003']=webappMappings['1003-ahw050inecyg125a8a2b6a5']={
webappId:    '1003',
documentId:  '35201',
internalId:  'ahw050inecyg125a8a2b6a5',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35222',
internalId:  '',
customField: '20091219-143053'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35201',
internalId:  '',
customField: '20100117-091259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36101',
internalId:  '',
customField: '20100109-183925'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36901',
internalId:  '',
customField: '20100109-182637'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45401',
internalId:  '',
customField: '20100419-075344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46101',
internalId:  '',
customField: '20100419-085352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46122',
internalId:  '',
customField: '20100419-085352'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46143',
internalId:  '',
customField: '20100419-085352'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INECYG';
var companyName   = 'The+Washington+Group++';
var htmlTitle	  = 'Piedmont+Area+of+North+Carolina+-Greensboro+High+Point+Winston-Salem+Reidsville+Jamestown+Summerfield+Oak+Ridge+Burlington+Kernersville+Residential+and+Commercial+Inspections';
var metaKeywords  = 'Home+inspection%2C203K+HUD+Consultants%2C+commercial+inspections%2Cresidential+Home+Inspections%2C+Veteran+Administration+Compliance+Inspections%2C+home+inspector%5D%5Bhome+inspectors%5D%5Binspection%5D%5Bchimney+inspection%5D%5Broof+inspection%5D%5Bstructural+inspection%5D%5Bfha+inspection%5D%5Bresidential+inspection%5D%5Bradon+inspection%5D%5Bcertified+home+inspector%5D%5Bhomeinspection%5D%5Bplumbing+inspection%5D%5Bfind+home+inspector%5D%5Bhouse+inspection%5D%5Btermite+inspection%5D%5Bbuilding+inspection%5D%5Binspections%5D%5Bmold+inspection%5D%5Bhome+inpection%5D%5Bhomepro+inspection%5D%5Bhomeowner+inspection%5D%5Bfind+a+home+inspector%5D%5Bhome+building+inspector%5D%5Bcertified+inspection%5D%5Broof+inspections%5D%5Bfha+inspections%5D%5Bhome+insurance+inspector%5D%5Bresidential+home+inspector%5D%5Bcertified+home+inspectors%5D%5Belectrical+inspection%5D%5Bpest+inspection%5D%5Bhome+inspector+software%5D%5Binspection+checklist%5D%5Bcondo+inspection%5D%5Bradon+inspections%5D%5Bhouse+inspections%5D%5Bnew+house+inspection%5D%5Bhouse+inspection+checklist%5D%5Bhome+inspector+certification%5D%5Bbuilding+inspection+service%5D%5Bhome+checklist%5D%5Binspection+company%5D%5Binspection+software%5D%5Bfoundation+inspection%5D%5Bnew+home+inspector%5D%5Binspection+companies%5D%5Bamerican+society+of+home+inspectors%5D%5Binspection+service%5D%5Bhome+inspection%5D%5Blicensed+home+inspector%5D%5Broof+inspector%5D%5Bresidential+building+inspection%5D';
var metaContents  = 'Greensboro+home+inspection%2C+high+point+home+inspections%2C+Guilford+county+home+inspections%2C+Rockingham+County+inspections%2C+Eden+Home+Inspections%2C+Reidsville+Home+Inspections%2C+caswell+County+inspections%2C+Burlington+Home+Inspections%2C+Alamance+County++Home+Inspections%2C+Winston-Salem++Home+Inspections%2C+Kernersville++Home+Inspections%2C+Forsyth+County+Home+Inspections.+Piedmont++Home+Inspections%2C+Central+North+Carolina++Home+Inspections%2C+Kernersville+home+inspections%2C+';
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();
};
