/* [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','2201',jdecode('Home'),jdecode(''),'/2201.html','true',[],'',''],
	['PAGE','8401',jdecode('Activities'),jdecode(''),'/8401.html','false',[],'',''],
	['PAGE','34732',jdecode('More+Photos+of+Palm+Coast'),jdecode(''),'/34732.html','true',[],'',''],
	['PAGE','52762',jdecode('Fun+Stuff'),jdecode(''),'/52762.html','true',[],'',''],
	['PAGE','2273',jdecode('Real+estate'),jdecode(''),'/2273.html','false',[],'',''],
	['PAGE','22585',jdecode('Buying'),jdecode(''),'/22585/index.html','true',[ 
		['PAGE','2294',jdecode('Residential'),jdecode(''),'/22585/2294.html','true',[],'',''],
		['PAGE','101235',jdecode('Commercial+Property'),jdecode(''),'/22585/101235.html','true',[],'',''],
		['PAGE','38660',jdecode('Lender+Owned+Properties'),jdecode(''),'/22585/38660.html','true',[],'',''],
		['PAGE','72471',jdecode('Vacant+Land%2F+Lots'),jdecode(''),'/22585/72471.html','true',[],'',''],
		['PAGE','2252',jdecode('Search+Listings'),jdecode(''),'/22585/2252.html','true',[],'','']
	],'',''],
	['PAGE','99735',jdecode('Pre-Qualify+'),jdecode(''),'/99735.html','true',[],'',''],
	['PAGE','2315',jdecode('Selling'),jdecode(''),'/2315/index.html','true',[ 
		['PAGE','2336',jdecode('Real+Estate'),jdecode(''),'/2315/2336.html','false',[],'','']
	],'',''],
	['PAGE','53762',jdecode('Renting'),jdecode(''),'/53762/index.html','true',[ 
		['PAGE','2357',jdecode('Bulow+Plantations'),jdecode(''),'/53762/2357.html','true',[],'',''],
		['PAGE','66371',jdecode('Daytona+Beach'),jdecode(''),'/53762/66371.html','false',[],'',''],
		['PAGE','61569',jdecode('Indian+Trails'),jdecode(''),'/53762/61569.html','false',[],'',''],
		['PAGE','98035',jdecode('Marina+Cove'),jdecode(''),'/53762/98035.html','true',[],'',''],
		['PAGE','60164',jdecode('Palm+Harbor'),jdecode(''),'/53762/60164.html','false',[],'',''],
		['PAGE','75271',jdecode('Plantation+Oaks'),jdecode(''),'/53762/75271.html','true',[],'',''],
		['PAGE','53962',jdecode('Pine+Lakes'),jdecode(''),'/53762/53962.html','false',[],'',''],
		['PAGE','2399',jdecode('Apartments'),jdecode(''),'/53762/2399.html','false',[],'',''],
		['PAGE','2420',jdecode('Holiday+residences'),jdecode(''),'/53762/2420.html','false',[],'',''],
		['PAGE','24218',jdecode('Recently+Listed+Rentals++'),jdecode(''),'/53762/24218.html','false',[],'','']
	],'',''],
	['PAGE','98735',jdecode('Commercial+Property+Rent'),jdecode(''),'/98735.html','true',[],'',''],
	['PAGE','92035',jdecode('Service'),jdecode(''),'/92035/index.html','true',[ 
		['PAGE','2441',jdecode('Property+Management+'),jdecode(''),'/92035/2441.html','true',[],'',''],
		['PAGE','18729',jdecode('Financing'),jdecode(''),'/92035/18729.html','true',[],'',''],
		['PAGE','92056',jdecode('Insurance'),jdecode(''),'/92035/92056.html','true',[],'',''],
		['PAGE','18750',jdecode('Financial+Calculators'),jdecode(''),'/92035/18750.html','true',[],'','']
	],'',''],
	['PAGE','2525',jdecode('Special+offers'),jdecode(''),'/2525.html','true',[],'',''],
	['PAGE','45160',jdecode('Links'),jdecode(''),'/45160.html','true',[],'',''],
	['PAGE','2630',jdecode('How+to+find+us'),jdecode(''),'/2630.html','true',[],'',''],
	['PAGE','2546',jdecode('Contact'),jdecode(''),'/2546/index.html','true',[ 
		['PAGE','5401',jdecode('Request+information'),jdecode(''),'/2546/5401.html','true',[],'','']
	],'',''],
	['PAGE','2588',jdecode('About+us'),jdecode(''),'/2588.html','true',[],'','']];
var siteelementCount=37;
theSitetree.topTemplateName='Easylife';
theSitetree.paletteFamily='FBF36C';
theSitetree.keyvisualId='9724';
theSitetree.keyvisualName='kv_9724.jpg';
theSitetree.fontsetId='11097';
theSitetree.graphicsetId='11869';
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: 			'Easylife',
				paletteFamily: 	'FBF36C',
				keyvisualId: 	'9724',
				keyvisualName: 	'kv_9724.jpg',
				fontsetId: 		'11097',
				graphicsetId: 	'11869',
				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:  '8401',
internalId:  '',
customField: '20090511-122924'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2201',
internalId:  '',
customField: '20090809-011747'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2201',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-4571638']={
webappId:    '1501',
documentId:  '2201',
internalId:  '4571638',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2252',
internalId:  '',
customField: '20100727-161926'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2273',
internalId:  '',
customField: '20090511-122702'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2294',
internalId:  '',
customField: '20100727-162749'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2315',
internalId:  '',
customField: '20100728-151036'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2336',
internalId:  '',
customField: '20090509-170122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2357',
internalId:  '',
customField: '20091025-115941'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18750',
internalId:  '',
customField: '20090610-163007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2399',
internalId:  '',
customField: '20090509-170122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2420',
internalId:  '',
customField: '20090509-170122'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2441',
internalId:  '',
customField: '20100102-120515'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92035',
internalId:  '',
customField: '20100102-184427'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98035',
internalId:  '',
customField: '20100626-144622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18729',
internalId:  '',
customField: '20090925-024108'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2525',
internalId:  '',
customField: '20100626-175252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2546',
internalId:  '',
customField: '20090521-130547'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5401',
internalId:  '',
customField: '20090706-231201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2588',
internalId:  '',
customField: '20090803-233220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22585',
internalId:  '',
customField: '20100727-162244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2630',
internalId:  '',
customField: '20090521-123500'
};
webappMappings['7008']=webappMappings['7008-3217']={
webappId:    '7008',
documentId:  '5401',
internalId:  '3217',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '24218',
internalId:  '',
customField: '20090710-215548'
};
webappMappings['2001']=webappMappings['2001-location']={
webappId:    '2001',
documentId:  '2630',
internalId:  'location',
customField: 'language:en;country:US;isIncluded:true;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34732',
internalId:  '',
customField: '20090717-012051'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '38660',
internalId:  '',
customField: '20090924-233558'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45160',
internalId:  '',
customField: '20100613-230316'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '52762',
internalId:  '',
customField: '20090809-032406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53762',
internalId:  '',
customField: '20100626-144739'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53962',
internalId:  '',
customField: '20090913-130221'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60164',
internalId:  '',
customField: '20091025-114526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '61569',
internalId:  '',
customField: '20090907-092401'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '66371',
internalId:  '',
customField: '20091025-221552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72471',
internalId:  '',
customField: '20100727-163047'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '75271',
internalId:  '',
customField: '20091026-151514'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '92056',
internalId:  '',
customField: '20100102-120334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '98735',
internalId:  '',
customField: '20100628-024803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '99735',
internalId:  '',
customField: '20100728-202647'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '101235',
internalId:  '',
customField: '20100727-162909'
};
var canonHostname = 'wsc-worker03.chi.us.siteprotect.com';
var accountId     = 'AHW050INL75M';
var companyName   = 'Nancy+%26+Tony+Petekiewicz+-+Sales%2C+Rentals%2C+Property+Management+';
var htmlTitle	  = 'Palm+Coast+-+Nancy+and+Anthony+Petekiewicz+Property+Management+and+Real+Estate+Sales';
var metaKeywords  = 'Beautiful+Palm+Coast%2C+Palmcoast%2C+Flagler+Beach%2C+Bunnell%2C+Real+Estate%2C+Property+Management%2C+Rental+Management%2C+55+and+older+community%2C+Homes%2C+2009+Tax+Credit%2C+Palm+Coast+Photos%2C+Anthony+Petekiewicz%2C+Nancy+Petekiewicz%2C+Rent+Properties%2C+Rental+Homes+Palm+Coast%2C+Weichert+Palm+Coast%2C++Mortgage%2C+Lenders+Palm+Coast%2C+New+Homes+Palm+Coast%2C+Builders+Palm+Coast%2C+Palm+Coast+Little+League%2C+Flagler+Real+Estate%2C+Flagler+Rentals%2C+Flagler+Properties%2C+Flagler+Homes%2C+Homes+Land+Palm+Coast%2C+Homes++Land+Palm+Coast%2C+Homes++Land+Flagler%2C+St+Augustine%2C+Daytona%2C+Bulow+Plantations++';
var metaContents  = 'Beautiful+Palm+Coast+-++Real+Estate%2C+Property+Management+-+explore+Beautiful+Palm+Coast+-+Rentals+-+2009+Tax+Credit+information+-+Bulow+Plantations+';
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();
};
