/* [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','801',jdecode('Home'),jdecode(''),'/801.html','true',[],''],
	['PAGE','852',jdecode('About+Us'),jdecode(''),'/852/index.html','true',[ 
		['PAGE','66201',jdecode('Got+Fish%3F'),jdecode(''),'/852/66201.html','true',[],'']
	],''],
	['PAGE','894',jdecode('Got+Mold%3F'),jdecode(''),'/894/index.html','true',[ 
		['PAGE','936',jdecode('Mold+Removal'),jdecode(''),'/894/936.html','true',[],''],
		['PAGE','40901',jdecode('Mold+Prevention'),jdecode(''),'/894/40901.html','true',[],'']
	],''],
	['PAGE','63201',jdecode('DIY+Pollution+Solutions'),jdecode(''),'/63201/index.html','true',[ 
		['PAGE','10243',jdecode('Air+Purification'),jdecode(''),'/63201/10243.html','true',[],''],
		['PAGE','45101',jdecode('Electricity+Purification'),jdecode(''),'/63201/45101.html','true',[],''],
		['PAGE','10264',jdecode('Laundry+Purification'),jdecode(''),'/63201/10264.html','true',[],''],
		['PAGE','67901',jdecode('Vented+Moisture+Removal'),jdecode(''),'/63201/67901.html','true',[],''],
		['PAGE','10222',jdecode('Water+Purification'),jdecode(''),'/63201/10222.html','true',[],'']
	],''],
	['PAGE','978',jdecode('Offers'),jdecode(''),'/978.html','true',[],''],
	['PAGE','999',jdecode('Jobs'),jdecode(''),'/999.html','true',[],''],
	['PAGE','1020',jdecode('Contacts'),jdecode(''),'/1020/index.html','true',[ 
		['PAGE','37801',jdecode('Contacts+%28follow+up+page%29'),jdecode(''),'/1020/37801.html','false',[],'']
	],''],
	['PAGE','1083',jdecode('News'),jdecode(''),'/1083.html','true',[],''],
	['PAGE','11906',jdecode('Guestbook'),jdecode(''),'/11906/index.html','true',[ 
		['PAGE','11901',jdecode('Read+Guestbook'),jdecode(''),'/11906/11901.html','false',[],'']
	],''],
	['PAGE','61501',jdecode('Blog'),jdecode(''),'/61501.html','true',[],'']];
var siteelementCount=20;
theSitetree.topTemplateName='NewYork';
theSitetree.paletteFamily='FFCC33';
theSitetree.keyvisualId='994';
theSitetree.keyvisualName='dachdecker2.jpg';
theSitetree.fontsetId='167';
theSitetree.graphicsetId='199';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'NewYork',
				paletteFamily: 	'FFCC33',
				keyvisualId: 	'994',
				keyvisualName: 	'dachdecker2.jpg',
				fontsetId: 		'167',
				graphicsetId: 	'199',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'000066',
				b_color: 		'FFCC33',
				c_color: 		'000000',
				d_color: 		'406BC0',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '801',
internalId:  '',
customField: '20090610-153800'
};
webappMappings['1002']=webappMappings['1002-11906aaplu0ine6m2']={
webappId:    '1002',
documentId:  '11906',
internalId:  '11906aaplu0ine6m2',
customField: 'icq=false'
};
webappMappings['7008']=webappMappings['7008-410']={
webappId:    '7008',
documentId:  '1020',
internalId:  '410',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '999',
internalId:  '',
customField: '20090610-144903'
};
webappMappings['7008']=webappMappings['7008-409']={
webappId:    '7008',
documentId:  '894',
internalId:  '409',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66201',
internalId:  '',
customField: '20090610-144651'
};
webappMappings['7008']=webappMappings['7008-411']={
webappId:    '7008',
documentId:  '999',
internalId:  '411',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11906',
internalId:  '',
customField: '20061110-095219'
};
webappMappings['1501']=webappMappings['1501-3998518']={
webappId:    '1501',
documentId:  '801',
internalId:  '3998518',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '852',
internalId:  '',
customField: '20090610-144029'
};
webappMappings['7050']=webappMappings['7050-164']={
webappId:    '7050',
documentId:  '61501',
internalId:  '164',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61501',
internalId:  '',
customField: '20090610-143823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '894',
internalId:  '',
customField: '20081117-105742'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '936',
internalId:  '',
customField: '20080913-115410'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40901',
internalId:  '',
customField: '20080814-073332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '63201',
internalId:  '',
customField: '20080814-082301'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10243',
internalId:  '',
customField: '20080913-115628'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45101',
internalId:  '',
customField: '20080625-201457'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10264',
internalId:  '',
customField: '20080814-081902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '67901',
internalId:  '',
customField: '20081209-140551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10222',
internalId:  '',
customField: '20080814-081602'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '978',
internalId:  '',
customField: '20080814-073512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1020',
internalId:  '',
customField: '20081209-141015'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '37801',
internalId:  '',
customField: '20070605-082727'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1083',
internalId:  '',
customField: '20080624-211314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '11901',
internalId:  '',
customField: '20061110-095219'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'AAPLU0INE6M2';
var companyName   = 'Pure+Energy+Pro.+207-786-2864';
var htmlTitle	  = 'Pure+Energy+Pro+207-786-2864';
var metaKeywords  = 'abatement+technologies%2Cabout+air+pollution%2Cabout+pollution%2Cair%2Cair+and+water+pollution%2Cair+cleaner%2Cair+cleaners%2Cair+cleaning%2Cair+conditioning+contractors%2Cair+duct+cleaning%2Cair+filter%2Cair+filters%2Cair+filtration%2Cair+pollutants%2Cair+pollution%2Cair+pollution+and+health%2Cair+pollution+cause%2Cair+pollution+control%2Cair+pollution+control+equipment%2Cair+pollution+effect%2Cair+pollution+effects%2Cair+pollution+facts%2Cair+pollution+health%2Cair+pollution+information%2Cair+pollution+monitoring%2Cair+pollution+problems%2Cair+pollution+solution%2Cair+pollution+solutions%2Cair+pollution+statistics%2Cair+purification%2Cair+purification+system%2Cair+purifier%2Cair+purifier+mold%2Cair+purifier+ozone%2Cair+purifiers%2Cair+purifiers+mold%2Cair+purify%2Cair+quality%2Cair+quality+consultants%2Cair+quality+control%2Cair+quality+index%2Cair+quality+mold%2Cair+quality+monitoring%2Cair+quality+test%2Cair+quality+testers%2Cair+quality+testing%2Cair+sampling%2Cair+testing%2Carticle+pollution%2Casbestos%2Caspergillus+mold%2Cattic+mold%2Cattic+mold+remediation%2Cattic+mold+removal%2Cbasement+mold+removal%2Cblack+mold%2Cblack+mold+bathroom%2Cblack+mold+clean+up%2Cblack+mold+effects%2Cblack+mold+health+effects%2Cblack+mold+health+risks%2Cblack+mold+pictures%2Cblack+mold+remediation%2Cblack+mold+removal%2Cblack+mold+remove%2Cblack+mold+symptoms%2Cblack+mold+testing%2Cblack+mold+treatment%2Cblack+mould%2Cbuilding+inspections%2Ccarpet+mold%2Ccause+of+air+pollution%2Ccauses+air+pollution%2Ccauses+of+air+pollution%2Ccauses+of+pollution%2Ccertified+indoor+environmentalist%2Ccertified+mold+inspector%2Ccertified+mold+inspectors%2Ccertified+mold+remediation%2Ccertified+mold+remediator%2Cchemical+pollution%2Cclean+air%2Cclean+air+purifier%2Cclean+air+purifiers%2Cclean+black+mold%2Cclean+mold%2Ccleaning+black+mold%2Ccleaning+mold%2Ccost+of+mold+remediation%2Ccrawl+space%2Cdangers+of+black+mold%2Cdefinition+of+air+pollution%2Cdehumidifier%2Cdrywall+mold%2Cduct+cleaning%2Ceffects+of+air+pollution%2Ceffects+of+black+mold%2Ceffects+of+water+pollution%2Ceffects+pollution%2Celiminate+mold%2Cenvironmental+pollution%2Cepa+indoor+air%2Cfacts+about+air+pollution%2Cflooded+basement%2Cget+rid+of+mold%2Cgetting+rid+of+black+mold%2Chome++building+inspection%2Chome+air+quality%2Chome+air+quality+testing%2Chome+inspection%2Chome+inspections%2Chome+inspector%2Chome+inspectors%2Chome+mold%2Chome+mold+removal%2Chouse+inspections%2Chouse+mold%2Chouse+mold+inspection%2Chouse+mold+removal%2Chouse+mold+symptoms%2Chouse+molds%2Chousehold+black+mold%2Chousehold+mold%2Chow+to+clean+mold%2Chow+to+get+rid+of+black+mold%2Chow+to+get+rid+of+mold%2Chow+to+kill+black+mold%2Chow+to+kill+mold%2Chow+to+remove+black+mold%2Chow+to+remove+mold%2Chow+to+remove+mold+from+wood%2Cimprove+indoor+air+quality%2Cimproving+indoor+air+quality%2Cindoor+air%2Cindoor+air+cleaners%2Cindoor+air+control%2Cindoor+air+filter%2Cindoor+air+filters%2Cindoor+air+filtration%2Cindoor+air+health%2Cindoor+air+pollution%2Cindoor+air+purification%2Cindoor+air+purifier%2Cindoor+air+purifiers%2Cindoor+air+quality%2Cindoor+air+quality+mold%2Cindoor+air+quality+monitoring%2Cindoor+air+quality+solution%2Cindoor+air+quality+solutions%2Cindoor+air+quality+test%2Cindoor+air+quality+testing%2Cindoor+air+quality+testing+mold%2Cindoor+air+test%2Cindoor+air+testing%2Cindoor+air+treatment%2Cindoor+mold%2Cindoor+pollutants%2Cindoor+pollution%2Cindustrial+air+pollution%2Cindustrial+pollution%2Ckill+black+mold%2Ckill+mold%2Ckilling+black+mold%2Ckilling+mold%2Cmildew+and+mold%2Cmildew+removal%2Cmildew+smell%2Cmold%2Cmold+abatement%2Cmold+allergy%2Cmold+basement%2Cmold+basements%2Cmold+certification%2Cmold+clean+up%2Cmold+cleaner%2Cmold+cleanup%2Cmold+control%2Cmold+crawl+space%2Cmold+dangers%2Cmold+detection%2Cmold+detector%2Cmold+detectors%2Cmold+getting+rid+of%2Cmold+growth%2Cmold+health%2Cmold+health+effects%2Cmold+home+test%2Cmold+homes%2Cmold+houses%2Cmold+identification%2Cmold+illness%2Cmold+inspection%2Cmold+inspections%2Cmold+inspector%2Cmold+inspectors%2Cmold+insurance%2Cmold+killer%2Cmold+law%2Cmold+lawsuits%2Cmold+license%2Cmold+mildew%2Cmold+my+house%2Cmold+problem%2Cmold+problems%2Cmold+remediation%2Cmold+remediation+bleach%2Cmold+remediation+business%2Cmold+remediation+certification%2Cmold+remediation+chemicals%2Cmold+remediation+companies%2Cmold+remediation+cost%2Cmold+remediation+equipment%2Cmold+remediation+license%2Cmold+remediation+products%2Cmold+removal%2Cmold+removal+bleach%2Cmold+removal+cost%2Cmold+removal+products%2Cmold+remover%2Cmold+sick%2Cmold+smell%2Cmold+spores%2Cmold+test%2Cmold+test+kits%2Cmold+testing%2Cmold+testing+kits%2Cmold+the+home%2Cmold+the+house%2Cmold+toxicity%2Cmold+treatment%2Cmold+under+house%2Cmold+vs+mildew%2Cmold+walls%2Cmold+your+house%2Cmolds%2Cmould%2Cmould+removal%2Cnon+toxic+mold+removal%2Coffice+air+quality%2Cozone%2Cozone+air+pollution%2Cozone+generator%2Cozone+indoor+air%2Cpenicillium+mold%2Cpictures+of+black+mold%2Cpictures+of+mold%2Cpollutants%2Cpollution%2Cpollution+and+health%2Cpollution+causes%2Cpollution+data%2Cpollution+environment%2Cpollution+information%2Cpollution+problem%2Cpollution+problems%2Cpollution+solution%2Cpollution+solutions%2Cpollution+statistics%2Cpollution+water%2Cprevent+air+pollution%2Cradon%2Cradon+testing%2Creduce+air+pollution%2Cremove+mold%2Cremoving+black+mold%2Cremoving+mold%2Cremoving+mold+from+carpet%2Cremoving+mold+from+wood%2Csick+building%2Csick+buildings%2Csolution+to+air+pollution%2Csources+of+air+pollution%2Csources+of+pollution%2Cstop+mold%2Cstop+pollution%2Csymptoms+mold%2Csymptoms+of+black+mold%2Csymptoms+of+mold%2Csymptoms+of+toxic+mold%2Ctest+for+mold%2Ctesting+for+mold%2Ctoxic+black+mold%2Ctoxic+mold%2Ctoxic+mold+abatement%2Ctoxic+mold+inspection%2Ctoxic+mold+remediation%2Ctypes+mold%2Ctypes+of+air+pollution%2Ctypes+of+pollution%2Cwater+damage+mold%2Cwater+pollution+solutions%2Cways+to+stop+air+pollution%2Cwet+basement%2Cwhat+does+black+mold+look+like%2Cwhat+is+black+mold%2Cwhite+mold%2Cozone+machines%2Codor+control%2Cmold+removal+in+Maine%2Cmold+removal+in+maine%2Cmold+removal+Maine%2Cmold+removal+maine%2Cmold+removal+in+New+Hampshire%2Cmold+removal+in+new+hampshire%2Cmold+removal+New+Hampshire%2Cmold+removal+new+hampshire%2C';
var metaContents  = 'Mold%2C+Air%2C+surface+contamation%2C+Mold+Inspector%2C+Mold+Inspections%2C+Moisture+removal+systems%2C+duct+works%2C+Maine+Mold%2C+Water+damage%2C+Indoor+Pollution%2C+Mold+control%2C+Mold+removal%2C+Sanitization%2C+Jeremy+Allen%2C+Maine+Mold%2C+Mold+Guy%2C+Stop+Mold%2C+Kill+Mold%2C+remove+mold+forever%2C+nontoxic+mold%2C+toxic+mold%2C+green+technology%2C+NORMI%2C+non+toxic+solutions';
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();
};

