/* [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','3452',jdecode('Home'),jdecode(''),'/3452.html','true',[],'',''],
	['PAGE','46201',jdecode('A+message+from+Councilman+Vince+Gardina'),jdecode(''),'/46201.html','false',[],'',''],
	['PAGE','18401',jdecode('E-News+%26+E-Alerts'),jdecode(''),'/18401.html','true',[],'',''],
	['PAGE','57022',jdecode('E-News'),jdecode(''),'/57022.html','false',[],'',''],
	['PAGE','51401',jdecode('Curbside+Letter'),jdecode(''),'/51401.html','false',[],'',''],
	['PAGE','48001',jdecode('Zoning+Issue+5-042'),jdecode(''),'/48001.html','false',[],'',''],
	['PAGE','36501',jdecode('Community+Chat'),jdecode(''),'/36501.html','false',[],'',''],
	['PAGE','18601',jdecode('Meet+your+HOA+Board'),jdecode(''),'/18601.html','true',[],'',''],
	['PAGE','35801',jdecode('Get+Involved%21'),jdecode(''),'/35801.html','false',[],'',''],
	['PAGE','18801',jdecode('HOA+Meeting+Minutes'),jdecode(''),'/18801.html','true',[],'',''],
	['PAGE','30301',jdecode('2011+Budget'),jdecode(''),'/30301.html','true',[],'',''],
	['PAGE','55301',jdecode('Why+the+increase%3F'),jdecode(''),'/55301.html','false',[],'',''],
	['PAGE','35101',jdecode('Perry+Hall+History'),jdecode(''),'/35101.html','true',[],'',''],
	['PAGE','57001',jdecode('Local+Weather'),jdecode(''),'/57001.html','true',[],'',''],
	['PAGE','19401',jdecode('FAQs'),jdecode(''),'/19401/index.html','true',[ 
		['PAGE','19601',jdecode('What+is+the+HOA%3F'),jdecode(''),'/19401/19601.html','true',[],'',''],
		['PAGE','29701',jdecode('What+is+the+Master+Assn%3F'),jdecode(''),'/19401/29701.html','true',[],'',''],
		['PAGE','19801',jdecode('Who+is+MRA%3F'),jdecode(''),'/19401/19801.html','true',[],'',''],
		['PAGE','20001',jdecode('Lawn+Care+Tips'),jdecode(''),'/19401/20001.html','true',[],'',''],
		['PAGE','20401',jdecode('Architectural+Committee'),jdecode(''),'/19401/20401.html','true',[],'',''],
		['PAGE','21101',jdecode('Lot+Alteration+Application'),jdecode(''),'/19401/21101.html','true',[],'',''],
		['PAGE','49301',jdecode('Baltimore+Cnty+Zoning+Regs'),jdecode(''),'/19401/49301.html','true',[],'',''],
		['PAGE','43201',jdecode('Yard+Sales'),jdecode(''),'/19401/43201.html','true',[],'',''],
		['PAGE','43901',jdecode('Motorcycles%2F+Scooters'),jdecode(''),'/19401/43901.html','true',[],'',''],
		['PAGE','47001',jdecode('%22Sidewalk+Trees%22'),jdecode(''),'/19401/47001.html','false',[],'','']
	],'',''],
	['PAGE','20601',jdecode('HOA+Bylaws%2F+CC%26Rs'),jdecode(''),'/20601/index.html','true',[ 
		['PAGE','24190',jdecode('Additions+%26+Alterations'),jdecode(''),'/20601/24190.html','true',[],'',''],
		['PAGE','24001',jdecode('Auto%2C+Boat+%26+RV+Requirements'),jdecode(''),'/20601/24001.html','true',[],'',''],
		['PAGE','23201',jdecode('Awnings%2C+Decks+%26+Grills'),jdecode(''),'/20601/23201.html','true',[],'',''],
		['PAGE','23801',jdecode('Chimneys%2C+Flues+%26+Vents'),jdecode(''),'/20601/23801.html','true',[],'',''],
		['PAGE','22101',jdecode('Dog+Houses+%26+Dog+Runs'),jdecode(''),'/20601/22101.html','true',[],'',''],
		['PAGE','23701',jdecode('Exterior+Lighting+%26+Objects'),jdecode(''),'/20601/23701.html','true',[],'',''],
		['PAGE','21901',jdecode('Fencing+%26+Walls'),jdecode(''),'/20601/21901.html','true',[],'',''],
		['PAGE','54301',jdecode('Fining+Schedule'),jdecode(''),'/20601/54301.html','true',[],'',''],
		['PAGE','22701',jdecode('Flags+%26+Signs'),jdecode(''),'/20601/22701.html','true',[],'',''],
		['PAGE','24064',jdecode('Home+Businesses'),jdecode(''),'/20601/24064.html','true',[],'',''],
		['PAGE','20901',jdecode('Lot+Maintenance'),jdecode(''),'/20601/20901.html','true',[],'',''],
		['PAGE','24106',jdecode('Loudspeakers+%26+Other+Noise'),jdecode(''),'/20601/24106.html','true',[],'',''],
		['PAGE','21501',jdecode('Trees%2C+Shrubs+%26+Screens'),jdecode(''),'/20601/21501.html','true',[],'',''],
		['PAGE','22501',jdecode('Mailboxes'),jdecode(''),'/20601/22501.html','true',[],'',''],
		['PAGE','23001',jdecode('Paint%2C+Siding+%26+Gutters'),jdecode(''),'/20601/23001.html','true',[],'',''],
		['PAGE','24022',jdecode('Parking+%26+Speed+Limits'),jdecode(''),'/20601/24022.html','true',[],'',''],
		['PAGE','23501',jdecode('Patios%2C+Sidewalks+%26+Driveways'),jdecode(''),'/20601/23501.html','true',[],'',''],
		['PAGE','24043',jdecode('Pets+%26+Other+Animals'),jdecode(''),'/20601/24043.html','true',[],'',''],
		['PAGE','24127',jdecode('Rental+of+Lots'),jdecode(''),'/20601/24127.html','true',[],'',''],
		['PAGE','24148',jdecode('Right+of+Entry+to+Lots'),jdecode(''),'/20601/24148.html','true',[],'',''],
		['PAGE','24085',jdecode('Satelite+Dishes+%26+Antennas'),jdecode(''),'/20601/24085.html','true',[],'',''],
		['PAGE','22301',jdecode('Sheds+%26+Other+Structures'),jdecode(''),'/20601/22301.html','true',[],'',''],
		['PAGE','23401',jdecode('Storm+Doors'),jdecode(''),'/20601/23401.html','true',[],'',''],
		['PAGE','21701',jdecode('Swimming+Pools+%26+Hot+Tubs'),jdecode(''),'/20601/21701.html','true',[],'',''],
		['PAGE','22801',jdecode('Trash+%26+Recycling'),jdecode(''),'/20601/22801.html','true',[],'','']
	],'',''],
	['PAGE','24169',jdecode('Contact+Us'),jdecode(''),'/24169.html','true',[],'',''],
	['PAGE','56101',jdecode('Tell+us+what+you+think%21'),jdecode(''),'/56101.html','false',[],'','']];
var siteelementCount=53;
theSitetree.topTemplateName='Sportfan2';
theSitetree.paletteFamily='D4E8AB';
theSitetree.keyvisualId='10139';
theSitetree.keyvisualName='kv_10139.jpg';
theSitetree.fontsetId='21087';
theSitetree.graphicsetId='13184';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Sportfan2',
				paletteFamily: 	'D4E8AB',
				keyvisualId: 	'10139',
				keyvisualName: 	'kv_10139.jpg',
				fontsetId: 		'21087',
				graphicsetId: 	'13184',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				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['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20100615-110731'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3452',
internalId:  '',
customField: '20110410-154314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18801',
internalId:  '',
customField: '20110410-155035'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19401',
internalId:  '',
customField: '20100322-174939'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20110410-144517'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18601',
internalId:  '',
customField: '20110410-161308'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19801',
internalId:  '',
customField: '20100322-181125'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20001',
internalId:  '',
customField: '20080805-153238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20401',
internalId:  '',
customField: '20080716-183439'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20601',
internalId:  '',
customField: '20101023-154614'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20901',
internalId:  '',
customField: '20081220-145127'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21101',
internalId:  '',
customField: '20100405-144724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35101',
internalId:  '',
customField: '20080608-183745'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21501',
internalId:  '',
customField: '20080801-121748'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21701',
internalId:  '',
customField: '20080801-122111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21901',
internalId:  '',
customField: '20080801-122132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22101',
internalId:  '',
customField: '20080801-122159'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22301',
internalId:  '',
customField: '20080801-120415'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22501',
internalId:  '',
customField: '20080729-094129'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22701',
internalId:  '',
customField: '20080801-120329'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22801',
internalId:  '',
customField: '20080801-115951'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23001',
internalId:  '',
customField: '20080801-122255'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23201',
internalId:  '',
customField: '20080801-122317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23401',
internalId:  '',
customField: '20080801-122343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23501',
internalId:  '',
customField: '20080805-153334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23701',
internalId:  '',
customField: '20080801-120508'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23801',
internalId:  '',
customField: '20080801-122419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24169',
internalId:  '',
customField: '20100322-180406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24148',
internalId:  '',
customField: '20080801-122841'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24127',
internalId:  '',
customField: '20080801-122810'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24106',
internalId:  '',
customField: '20080801-115757'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24085',
internalId:  '',
customField: '20080801-122749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24064',
internalId:  '',
customField: '20080801-122723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24001',
internalId:  '',
customField: '20080801-122437'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24022',
internalId:  '',
customField: '20080801-122701'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24043',
internalId:  '',
customField: '20080801-120246'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24190',
internalId:  '',
customField: '20080609-093419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29701',
internalId:  '',
customField: '20081221-200814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30301',
internalId:  '',
customField: '20110410-140111'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35801',
internalId:  '',
customField: '20080608-191809'
};
webappMappings['7050']=webappMappings['7050-2801']={
webappId:    '7050',
documentId:  '36501',
internalId:  '2801',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36501',
internalId:  '',
customField: '20080608-200501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43201',
internalId:  '',
customField: '20080729-095659'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43901',
internalId:  '',
customField: '20080729-102421'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46201',
internalId:  '',
customField: '20080809-194554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47001',
internalId:  '',
customField: '20080805-153120'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48001',
internalId:  '',
customField: '20080809-200216'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49301',
internalId:  '',
customField: '20080809-204344'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51401',
internalId:  '',
customField: '20080822-093145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '54301',
internalId:  '',
customField: '20081218-212555'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '55301',
internalId:  '',
customField: '20081220-183827'
};
webappMappings['7008']=webappMappings['7008-11646']={
webappId:    '7008',
documentId:  '56101',
internalId:  '11646',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '56101',
internalId:  '',
customField: '20081221-000443'
};
webappMappings['7080']=webappMappings['7080-351']={
webappId:    '7080',
documentId:  '57001',
internalId:  '351',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-11656']={
webappId:    '7008',
documentId:  '57022',
internalId:  '11656',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57001',
internalId:  '',
customField: '20081221-133723'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '57022',
internalId:  '',
customField: '20081221-131334'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN26NZ';
var companyName   = 'The+Meadows+at+Perry+Hall+Farms+HOA+';
var htmlTitle	  = 'The+Meados+HOA+at+Perry+Hall+Farms';
var metaKeywords  = '';
var metaContents  = '';
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();
};

