/* [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','2801',jdecode('Home'),jdecode(''),'/2801.html','true',[],''],
	['PAGE','3101',jdecode('About+us'),jdecode(''),'/3101/index.html','true',[ 
		['PAGE','6601',jdecode('The+team'),jdecode(''),'/3101/6601.html','true',[],'']
	],''],
	['PAGE','3185',jdecode('Offers'),jdecode(''),'/3185.html','true',[],''],
	['PAGE','3227',jdecode('Contact'),jdecode(''),'/3227/index.html','true',[ 
		['PAGE','3248',jdecode('How+to+find+us'),jdecode(''),'/3227/3248.html','true',[],'']
	],''],
	['PAGE','15001',jdecode('Products'),jdecode(''),'/15001/index.html','true',[ 
		['PAGE','15022',jdecode('First+Product'),jdecode(''),'/15001/15022.html','true',[],''],
		['PAGE','15043',jdecode('Second+Product'),jdecode(''),'/15001/15043.html','true',[],''],
		['PAGE','15064',jdecode('Third+Product'),jdecode(''),'/15001/15064.html','true',[],'']
	],''],
	['PAGE','21201',jdecode('Pest+Identification'),jdecode(''),'/21201.html','true',[],''],
	['PAGE','25962',jdecode('Recent+Clients'),jdecode(''),'/25962.html','true',[],'']];
var siteelementCount=12;
theSitetree.topTemplateName='Global';
theSitetree.paletteFamily='006600';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='85';
theSitetree.graphicsetId='104';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Global',
				paletteFamily: 	'006600',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'85',
				graphicsetId: 	'104',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'176B03',
				b_color: 		'669900',
				c_color: 		'000000',
				d_color: 		'E0EEE3',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2801',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1104897']={
webappId:    '1501',
documentId:  '2801',
internalId:  '1104897',
customField: '1501'
};
webappMappings['7060']=webappMappings['7060-ae515c9248a06ac13b248978a7d4062d']={
webappId:    '7060',
documentId:  '21201',
internalId:  'ae515c9248a06ac13b248978a7d4062d',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2801',
internalId:  '',
customField: '20100115-104058'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3101',
internalId:  '',
customField: '20100115-095840'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '6601',
internalId:  '',
customField: '20091211-081928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3185',
internalId:  '',
customField: '20091211-081941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3227',
internalId:  '',
customField: '20091211-082101'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3248',
internalId:  '',
customField: '20091210-102236'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15001',
internalId:  '',
customField: '20071114-091130'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15022',
internalId:  '',
customField: '20071017-095613'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15043',
internalId:  '',
customField: '20091211-082158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15064',
internalId:  '',
customField: '20091211-082211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21201',
internalId:  '',
customField: '20091210-101111'
};
webappMappings['7060']=webappMappings['7060-25441be12baad683f5f316c1f2acdee1']={
webappId:    '7060',
documentId:  '25962',
internalId:  '25441be12baad683f5f316c1f2acdee1',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25962',
internalId:  '',
customField: '20100115-105226'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INETJX';
var companyName   = 'DENNIS+THE+MENNIS+PEST+EXPERTS++';
var htmlTitle	  = 'Pest+Control+Services';
var metaKeywords  = 'Dennis+the+Mennis%2C+Dennis+the+Mennis+Pest+Control%2C+Dennis+the+Menace%2CPests%2C+ants%2C+termites%2C+bees%2C+wasps%2C+hornets%2C+bats%2C+raccoons%2C+squirrels%2C+skunks%2C+pest+control+mice%2C+pest+control+rats%2C+pest+control+ants%2C+rodent+control%2C+rodents%2C+mice%2C+rats%2C+mouse+pest+control%2C+pest+control+squirrels%2C+squirrel+control%2C+bugs%2C+bug+pest+control%2C+spiders%2C+pest+control+spiders%2C+pest+control+bees%2C+pest+control+wasps%2C+termite+control%2C+termites%2C+termite+inspection%2C+termite+inspections%2C+insects%2C+insect+control%2C+bird+control%2C+pigeon+control%2C+exterminator%2C+pest+exterminators%2C+exterminators%2C+roaches%2C+cockroaches%2C+fleas%2C+flea+control%2C+ticks%2C+flies%2C+moths%2C+Boston%2C+East+Boston%2C+Allston%2C+Brighton%2C+South+Boston%2C+Roxbury%2C+Jamaica+Plain%2C+Dorchester%2C+Mattapan%2C+West+Roxbury%2C+Roslindale%2C+Hyde+Park%2C+Acton%2C+Amesbury%2C+Andover%2C+Arlington%2C+Bedford%2C+Belmont%2C+Beverly%2C+Billerica%2C+Boxborough%2C+Boxboro%2C+Boxford%2C+Braintree%2C+Brookline%2C+Burlington%2C+Cambridge%2C+Canton%2C+Carlisle%2C+Chelmsford%2C+Chelsea%2C+Concord%2C+Danvers%2C+Dedham%2C+Dracut%2C+Dunstable%2C+Essex%2C+Everett%2C+Foxborough%2C+Foxboro%2C+Framingham%2C+Georgetown%2C+Gloucester%2C+Groton%2C+Groveland%2C+Hamilton%2C+Haverhill%2C+Ipswich%2C+Lawrence%2C+Lexington%2C+Lincoln%2C+Littleton%2C+Lowell%2C+Lynn%2C+Lynnfield%2C+Malden%2C+Manchester+by+the+Sea%2C+Marblehead%2C+Maynard%2C+Medford%2C+Melrose%2C+Merrimac%2C+Methuen%2C+Middleton%2C+Nahant%2C+Milton%2C+Natick%2C+Needham%2C+Newbury%2C+Newburyport%2C+Newton%2C+North+Andover%2C+North+Reading%2C+Norwood%2C+Peabody%2C+Quincy%2C+Randolph%2C+Reading%2C+Revere%2C+Rockport%2C+Rowley%2C+Salem%2C+Salisbury%2C+Saugus%2C+Sharon%2C+Somerville%2C+Stoneham%2C+Swampscott%2C+Tewksbury%2C+Topsfield%2C+Tyngsborough%2C+Tyngsboro%2C+Wakefield%2C+Waltham%2C+Watertown%2C+Wayland%2C+Wellesley%2C+Wenham%2C+West+Newbury%2C+Westford%2C+Weston%2C+Westwood%2C+Wilmington%2C+Winchester%2C+Winthrop%2C+Woburn%2C+Waban%2C+Newtonville%2C+Chestnut+Hill%2C+pest+control+boston%2C+pest+control+east+boston%2C+pest+control+allston%2C+pest+control+brighton%2C+pest+control+south+boston%2C+pest+control+roxbury%2C+pest+control+jamaica+plain%2Cpest+control+dorchester%2C+pest+control+mattapan%2C+pest+control+west+roxbury%2C+pest+control+roslindale%2Cpest+control+hyde+park%2Cpest+control+acton%2C+pest+control+amesbury%2C+pest+control+andover%2C+pest+control+arlington%2C+pest+control+bedford%2C+pest+control+belmont%2C+pest+control+beverly%2C+pest+control+billerica%2C+pest+control+boxborough%2C+pest+control+boxboro%2C+pest+control+boxford%2C+pest+control+braintree%2C+pest+control+brookline%2C+pest+control+burlington%2C+pest+control+cambridge%2C+pest+control+canton%2C+pest+control+carlisle%2C+pest+control+chelmsford%2C+pest+control+chelsea%2C+pest+control+concord%2C+pest+control+danvers%2C+pest+control+dedham%2C+pest+control+dracut%2C+pest+control+dunstable%2C+pest+control+essex%2C+pest+control+everett%2C+pest+control+foxborough%2C+pest+control+foxboro%2C+pest+control+framingham%2C+pest+control+georgetown%2C+pest+control+gloucester%2C+pest+control+groton%2C+pest+control+groveland%2C+pest+control+hamilton%2C+pest+control+haverhill%2C+pest+control+ipswich%2C+pest+control+lawrence%2C+pest+control+lexington%2C+pest+control+lincoln%2C+pest+control+littleton%2C+pest+control+lowell%2C+pest+control+lynn%2C+pest+control+lynnfield%2C+pest+control+malden%2C+pest+control+manchester+by+the+sea%2C+pest+control+marblehead%2C+pest+control+maynard%2C+pest+control+medford%2C+pest+control+melrose%2C+pest+control+merrimac%2C+pest+control+methuen%2C+pest+control+middleton%2C+pest+control+nahant%2C+pest+control+milton%2C+pest+control+natick%2C+pest+control+needham%2C+pest+control+newbury%2C+pest+control+newburyport%2C+pest+control+newton%2C+pest+control+north+andover%2C+pest+control+north+reading%2C+pest+control+norwood%2C+pest+control+peabody%2C+pest+control+quincy%2C+pest+control+randolph%2C+pest+control+reading%2C+pest+control+revere%2C+pest+control+rockport%2C+pest+control+rowley%2C+pest+control+salem%2C+pest+control+salisbury%2C+pest+control+saugus%2C+pest+control+sharon%2C+pest+control+somerville%2C+pest+control+stoneham%2C+pest+control+swampscott%2C+pest+control+tewksbury%2C+pest+control+topsfield%2C+pest+control+tyngsborough%2C+pest+control+tyngsboro%2C+pest+control+wakefield%2C+pest+control+waltham%2C+pest+control+watertown%2C+pest+control+wayland%2C+pest+control+wellesley%2C+pest+control+wenham%2C+pest+control+west+newbury%2C+pest+control+westford%2C+pest+control+weston%2C+pest+control+westwood%2C+pest+control+wilmington%2C+pest+control+winchester%2C+pest+control+winthrop%2C+pest+control+woburn%2C+pest+control+waban%2C+pest+control+newtonville%2C+pest+control+chestnut+hill+';
var metaContents  = 'Dennis+the+Mennis%2C+Dennis+the+Mennis+Pest+Control%2C+Dennis+the+Menace%2CPests%2C+ants%2C+termites%2C+bees%2C+wasps%2C+hornets%2C+bats%2C+raccoons%2C+squirrels%2C+skunks%2C+pest+control+mice%2C+pest+control+rats%2C+pest+control+ants%2C+rodent+control%2C+rodents%2C+mice%2C+rats%2C+mouse+pest+control%2C+pest+control+squirrels%2C+squirrel+control%2C+bugs%2C+bug+pest+control%2C+spiders%2C+pest+control+spiders%2C+pest+control+bees%2C+pest+control+wasps%2C+termite+control%2C+termites%2C+termite+inspection%2C+termite+inspections%2C+insects%2C+insect+control%2C+bird+control%2C+pigeon+control%2C+exterminator%2C+pest+exterminators%2C+exterminators%2C+roaches%2C+cockroaches%2C+fleas%2C+flea+control%2C+ticks%2C+flies%2C+moths%2C+Boston%2C+East+Boston%2C+Allston%2C+Brighton%2C+South+Boston%2C+Roxbury%2C+Jamaica+Plain%2C+Dorchester%2C+Mattapan%2C+West+Roxbury%2C+Roslindale%2C+Hyde+Park%2C+Acton%2C+Amesbury%2C+Andover%2C+Arlington%2C+Bedford%2C+Belmont%2C+Beverly%2C+Billerica%2C+Boxborough%2C+Boxboro%2C+Boxford%2C+Braintree%2C+Brookline%2C+Burlington%2C+Cambridge%2C+Canton%2C+Carlisle%2C+Chelmsford%2C+Chelsea%2C+Concord%2C+Danvers%2C+Dedham%2C+Dracut%2C+Dunstable%2C+Essex%2C+Everett%2C+Foxborough%2C+Foxboro%2C+Framingham%2C+Georgetown%2C+Gloucester%2C+Groton%2C+Groveland%2C+Hamilton%2C+Haverhill%2C+Ipswich%2C+Lawrence%2C+Lexington%2C+Lincoln%2C+Littleton%2C+Lowell%2C+Lynn%2C+Lynnfield%2C+Malden%2C+Manchester+by+the+Sea%2C+Marblehead%2C+Maynard%2C+Medford%2C+Melrose%2C+Merrimac%2C+Methuen%2C+Middleton%2C+Nahant%2C+Milton%2C+Natick%2C+Needham%2C+Newbury%2C+Newburyport%2C+Newton%2C+North+Andover%2C+North+Reading%2C+Norwood%2C+Peabody%2C+Quincy%2C+Randolph%2C+Reading%2C+Revere%2C+Rockport%2C+Rowley%2C+Salem%2C+Salisbury%2C+Saugus%2C+Sharon%2C+Somerville%2C+Stoneham%2C+Swampscott%2C+Tewksbury%2C+Topsfield%2C+Tyngsborough%2C+Tyngsboro%2C+Wakefield%2C+Waltham%2C+Watertown%2C+Wayland%2C+Wellesley%2C+Wenham%2C+West+Newbury%2C+Westford%2C+Weston%2C+Westwood%2C+Wilmington%2C+Winchester%2C+Winthrop%2C+Woburn%2C+Waban%2C+Newtonville%2C+Chestnut+Hill%2C+pest+control+boston%2C+pest+control+east+boston%2C+pest+control+allston%2C+pest+control+brighton%2C+pest+control+south+boston%2C+pest+control+roxbury%2C+pest+control+jamaica+plain%2Cpest+control+dorchester%2C+pest+control+mattapan%2C+pest+control+west+roxbury%2C+pest+control+roslindale%2Cpest+control+hyde+park%2Cpest+control+acton%2C+pest+control+amesbury%2C+pest+control+andover%2C+pest+control+arlington%2C+pest+control+bedford%2C+pest+control+belmont%2C+pest+control+beverly%2C+pest+control+billerica%2C+pest+control+boxborough%2C+pest+control+boxboro%2C+pest+control+boxford%2C+pest+control+braintree%2C+pest+control+brookline%2C+pest+control+burlington%2C+pest+control+cambridge%2C+pest+control+canton%2C+pest+control+carlisle%2C+pest+control+chelmsford%2C+pest+control+chelsea%2C+pest+control+concord%2C+pest+control+danvers%2C+pest+control+dedham%2C+pest+control+dracut%2C+pest+control+dunstable%2C+pest+control+essex%2C+pest+control+everett%2C+pest+control+foxborough%2C+pest+control+foxboro%2C+pest+control+framingham%2C+pest+control+georgetown%2C+pest+control+gloucester%2C+pest+control+groton%2C+pest+control+groveland%2C+pest+control+hamilton%2C+pest+control+haverhill%2C+pest+control+ipswich%2C+pest+control+lawrence%2C+pest+control+lexington%2C+pest+control+lincoln%2C+pest+control+littleton%2C+pest+control+lowell%2C+pest+control+lynn%2C+pest+control+lynnfield%2C+pest+control+malden%2C+pest+control+manchester+by+the+sea%2C+pest+control+marblehead%2C+pest+control+maynard%2C+pest+control+medford%2C+pest+control+melrose%2C+pest+control+merrimac%2C+pest+control+methuen%2C+pest+control+middleton%2C+pest+control+nahant%2C+pest+control+milton%2C+pest+control+natick%2C+pest+control+needham%2C+pest+control+newbury%2C+pest+control+newburyport%2C+pest+control+newton%2C+pest+control+north+andover%2C+pest+control+north+reading%2C+pest+control+norwood%2C+pest+control+peabody%2C+pest+control+quincy%2C+pest+control+randolph%2C+pest+control+reading%2C+pest+control+revere%2C+pest+control+rockport%2C+pest+control+rowley%2C+pest+control+salem%2C+pest+control+salisbury%2C+pest+control+saugus%2C+pest+control+sharon%2C+pest+control+somerville%2C+pest+control+stoneham%2C+pest+control+swampscott%2C+pest+control+tewksbury%2C+pest+control+topsfield%2C+pest+control+tyngsborough%2C+pest+control+tyngsboro%2C+pest+control+wakefield%2C+pest+control+waltham%2C+pest+control+watertown%2C+pest+control+wayland%2C+pest+control+wellesley%2C+pest+control+wenham%2C+pest+control+west+newbury%2C+pest+control+westford%2C+pest+control+weston%2C+pest+control+westwood%2C+pest+control+wilmington%2C+pest+control+winchester%2C+pest+control+winthrop%2C+pest+control+woburn%2C+pest+control+waban%2C+pest+control+newtonville%2C+pest+control+chestnut+hill+';
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();
};
