/* [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','2001',jdecode('Home'),jdecode(''),'/2001.html','true',[],''],
	['PAGE','2220',jdecode('Service'),jdecode(''),'/2220.html','true',[],''],
	['PAGE','21501',jdecode('Pre+Season+Special'),jdecode(''),'/21501.html','true',[],''],
	['PAGE','30801',jdecode('Free+Home+Energy+Tests'),jdecode(''),'/30801.html','true',[],''],
	['PAGE','2367',jdecode('Systems'),jdecode(''),'/2367/index.html','true',[ 
		['PAGE','2388',jdecode('Split+Systems'),jdecode(''),'/2367/2388.html','true',[],''],
		['PAGE','2409',jdecode('Hybrid+Systems'),jdecode(''),'/2367/2409.html','true',[],''],
		['PAGE','2430',jdecode('Packaged+Systems'),jdecode(''),'/2367/2430.html','true',[],'']
	],''],
	['PAGE','2073',jdecode('MrGeoThermal'),jdecode(''),'/2073/index.html','true',[ 
		['PAGE','6801',jdecode('GeoThermal'),jdecode(''),'/2073/6801.html','true',[],''],
		['PAGE','6822',jdecode('A%2FC+and+Heat+Pumps'),jdecode(''),'/2073/6822.html','true',[],''],
		['PAGE','16201',jdecode('Fan+Coils'),jdecode(''),'/2073/16201.html','true',[],''],
		['PAGE','2094',jdecode('Furnaces'),jdecode(''),'/2073/2094.html','true',[],''],
		['PAGE','16501',jdecode('Thermostats+and+Controls'),jdecode(''),'/2073/16501.html','true',[],''],
		['PAGE','16522',jdecode('Air+Quality+Solutions'),jdecode(''),'/2073/16522.html','true',[],'']
	],''],
	['PAGE','23201',jdecode('MrGeoThermal+Links'),jdecode(''),'/23201.html','true',[],''],
	['PAGE','2262',jdecode('GeoThermal+CaseStudies'),jdecode(''),'/2262.html','true',[],''],
	['PAGE','27101',jdecode('Additional+Utility+Savings'),jdecode(''),'/27101.html','true',[],''],
	['PAGE','2283',jdecode('Contact'),jdecode(''),'/2283/index.html','true',[ 
		['PAGE','12801',jdecode('Contact+%28follow+up+page%29'),jdecode(''),'/2283/12801.html','false',[],''],
		['PAGE','2304',jdecode('About+us'),jdecode(''),'/2283/2304.html','true',[],'']
	],'']];
var siteelementCount=21;
theSitetree.topTemplateName='Concise';
theSitetree.paletteFamily='FDE333';
theSitetree.keyvisualId='7267';
theSitetree.keyvisualName='kv_7267.jpg';
theSitetree.fontsetId='16439';
theSitetree.graphicsetId='12142';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Concise',
				paletteFamily: 	'FDE333',
				keyvisualId: 	'7267',
				keyvisualName: 	'kv_7267.jpg',
				fontsetId: 		'16439',
				graphicsetId: 	'12142',
				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: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1001']=webappMappings['1001-ahw050in2fmtd45c3925b7b3eebc']={
webappId:    '1001',
documentId:  '2283',
internalId:  'ahw050in2fmtd45c3925b7b3eebc',
customField: ''
};
webappMappings['1001']=webappMappings['1001-ahw050in2fmtd45c3925b7b3eebc']={
webappId:    '1001',
documentId:  '12801',
internalId:  'ahw050in2fmtd45c3925b7b3eebc',
customField: 'followUp'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2001',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2001',
internalId:  '',
customField: '20090228-091346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21501',
internalId:  '',
customField: '20090228-115046'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2220',
internalId:  '',
customField: '20081231-140649'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2283',
internalId:  '',
customField: '20071230-141309'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30801',
internalId:  '',
customField: '20081231-141322'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2367',
internalId:  '',
customField: '20071230-132427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2073',
internalId:  '',
customField: '20090222-222631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23201',
internalId:  '',
customField: '20070427-095400'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2304',
internalId:  '',
customField: '20071230-135403'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2388',
internalId:  '',
customField: '20071230-164504'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2409',
internalId:  '',
customField: '20071230-164433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2430',
internalId:  '',
customField: '20071230-164647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6801',
internalId:  '',
customField: '20090228-095652'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6822',
internalId:  '',
customField: '20071230-133918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16201',
internalId:  '',
customField: '20071230-134034'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2094',
internalId:  '',
customField: '20071230-134156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16501',
internalId:  '',
customField: '20071230-134259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16522',
internalId:  '',
customField: '20071230-134452'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2262',
internalId:  '',
customField: '20070427-100237'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '27101',
internalId:  '',
customField: '20070506-171126'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12801',
internalId:  '',
customField: '20061104-124625'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050IN2FMT';
var companyName   = 'Quality+Home+Services+LLC+++%28757%29+647-7867';
var htmlTitle	  = 'Quality+Home+Services%2C+LLC';
var metaKeywords  = 'Air+Conditioner%2C+Air+to+Air+Heat+Pump%2C+Boiler+%28Natural+Gas+and+Oil%29%2C+Apollo+Water+Heater+%28Hydronic%29%2C+Gas+Furnace%2C+Oil+Furnace%2C+Water+to+Air+Heat+Pump+-+Geothermal+Closed+Loop++Geothermal+Open+Well+including+Anti-Freeze+%28Glycol%29%2C+Circulator+Pumps+and+Water+Pumps+%28Jet+Pump+and+Submersible%29%2C+Pressure+Tanks%2C+Pressure+Switches%2C+Purging%2C+Return+Wells+and+Solenoids.mana%2C+American+Standard%2C+Aprilaire%2C+Arcoaire%2C+Armstrong%2C+Bryant%2C+Burnham%2C+Carrier%2C+Climatemaster%2C+Climatrol%2C+Coleman%2C+Columbia%2C+Comfortmaker%2C+Dencor%2C+Ducane%2C+Dunham-Bush%2C+Evcon%2C+Fedders%2C+Flojet%2C+Flotec%2C+Florida+Heat+Pump+%28FHP%29%2C+Friedrich%2C+General+Electric%2C+Gibson%2C+Goodman%2C+Goulds%2C+Grundfos%2C+Hart+and+Cooley%2C+Heil%2C+Honeywell%2C+Hunter%2C+Hydro+Delta%2C+HydroHeat%2C+HydroTemp%2C+Intertherm%2C+Janitrol%2C+Johnson%2C+Kenmore%2C+Lennox%2C+MegaTek%2C+Miller%2C+Modine%2C+Nordyne%2C+Payne%2C+Peerless%2C+Pensar%2C+Rheem%2C+Rinnai%2C+Ruud%2C+Sears%2C+Square-D%2C+Sta-Rite%2C+Trane%2C+Water+Furnace%2C+Wayne%2C+Weil+McLain%2C+Westinghouse%2C+White+Rodgers%2C+Williams%2C+and+York.24+Hour+Emergency+Heating+%2F+Air+Conditioning+Service+for+Chesapeake%2C+Gloucester%2C+Hampton%2C+Newport+News%2C+Norfolk%2C+Poquoson%2C+Portsmouth%2C+Suffolk%2C+Virginia+Beach+and+Williamsburg.+For+renewable+energy+tax+credit%2C+we+travel+100+mile+radius+from+Va+Beach%2C+VA+on+Geothermal+Systems+Install++Service.Geothermal+Systems+now+qualify+for+Green+Technology+-+Federal+Tax+Credits.Geothermal%2C+Closed+Loops%2C+Pumps+and+Wells%2C+Heat+Pumps%2C+Air+Conditioning%2C+Green+Building%2C+Norfolk%2C+Va+Beach%2C+Chesapeake%2C+Suffolk%2C+Portsmouth%2C+Gas+Furnace%2C+Furnace%2C+Climate+Master%2C+Climatemaster%2C+Water+Furnace%2C+Carrier%2C+Janitrol%2C+Bryant%2C+Rheem%2C+Furnace%2C+Trane%2C+Boiler%2C+Heating%2C++Central+System%2C+Emergency+Service%2C+Freon%2C+Geo+Loop%2C+Water+Pump%2C+Water+Tank%2C+Well%2C+Pump%2C+American+Standard%2C+Arcoaire%2C+Bryant%2C+Carrier%2C+Goodman%2C+Heil%2C+Lennox%2C+Lenox%2C+Janitrol%2C+Rheem%2C+Ruud%2C+Trane%2C+Waterfurnace+Water+Furnace%2C+Climatemaster%2C+Climate+Master%2C+FHP%2C+Florida+Heat+Pump%2C+Genisis%2C+Genesis%2C+Tranquility+27%2C+tranquility27%2C+Chesapeake%2C+Hampton%2C+Newport+News%2C+Norfolk%2C+Portsmouth%2C+Suffolk%2C+Va+Beach%2C+Virginia+Beach%2C+Williamsburg%2C+Boiler%2C+Furnace%2C+Heat+Pump%2C+Geothermal%2C+GeoThermal%2C+Geo+Thermal%2C+Closed+Loop%2C+Water+to+Air%2C+Open+Well%2C+Water+Pump%2C+IGSHPA%2C+Green%2C+environmentally+friendly%2C+Heat+Fusion%2C+Air+to+Air%2C+Air+Distribution+System%2C+Air+Duct+System%2C+Humidifier%2C+Electronic+Air+Cleaner%2C+Air+Quality%2C+Air+Filter%2C+Oil+Boiler%2C+Gas+Boiler%2C+Gas+Furnace%2C+Oil+Furnace%2C+Air+Handler%2C+Zoning%2C+Thermostat%2C+thermistat%2C+thermastat%2C+tstat%2C+well+driller%2C+water+well%2C+infinity%2C+honeywell%2C+white%2C+rogers%2C+rodgers%2C+service%2C+call%2C+24+hrs%2C+emergency%2C+emergency+service%2C+hvac%2C+heating%2C+cooling%2C+contractor%2C+no+heat%2C+air+conditioing%2C+air+conditioning%2C+ac%2C+a%2Fc%2C+a+c%2C+need+heat';
var metaContents  = 'Free+Emergency+Heating+Air+Conditioning+24+Hour+Service+Call+%28with+repair%29%2C+Geothermal+Experts%2C+Furnace%2C+Heat+Pump%2C+Boiler%2C+Chesapeake%2C+Gloucester%2C+Hampton%2C+Newport+News%2C+Norfolk%2C+Poquoson%2C+Portsmouth%2C+Suffolk%2C+Williamsburg%2C+Virginia+Beach';
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();
};
