/* [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','2522',jdecode('Home+'),jdecode(''), jdecode('%2F2522.html'), 'true',[],'',''],
	['PAGE','4201',jdecode('About+the+Park'),jdecode(''), jdecode('%2F4201%2Findex.html'), 'true',[ 
		['PAGE','4222',jdecode('+History'),jdecode(''), jdecode('%2F4201%2F4222.html'), 'true',[],'',''],
		['PAGE','10801',jdecode('Articles+of+Incorporation'),jdecode(''), jdecode('%2F4201%2F10801.html'), 'true',[],'',''],
		['PAGE','4243',jdecode('By-Laws'),jdecode(''), jdecode('%2F4201%2F4243.html'), 'true',[],'',''],
		['PAGE','12301',jdecode('Committees+of+the+Board'),jdecode(''), jdecode('%2F4201%2F12301.html'), 'true',[],'',''],
		['PAGE','12322',jdecode('Committee+Charters'),jdecode(''), jdecode('%2F4201%2F12322.html'), 'true',[],'',''],
		['PAGE','4264',jdecode('Regulations'),jdecode(''), jdecode('%2F4201%2F4264.html'), 'true',[],'',''],
		['PAGE','12343',jdecode('Rules+of+Order'),jdecode(''), jdecode('%2F4201%2F12343.html'), 'true',[],'',''],
		['PAGE','12364',jdecode('Tropical+Isles+Co-op'),jdecode(''), jdecode('%2F4201%2F12364.html'), 'true',[],'','']
	],'',''],
	['PAGE','14701',jdecode('Meeting+Notices'),jdecode(''), jdecode('%2F14701.html'), 'true',[],'',''],
	['PAGE','4369',jdecode('News+and+Events'),jdecode(''), jdecode('%2F4369%2Findex.html'), 'true',[ 
		['PAGE','4390',jdecode('Calendar+of+Events'),jdecode(''), jdecode('%2F4369%2F4390.html'), 'true',[],'',''],
		['PAGE','4411',jdecode('Tropical+Tales+News'),jdecode(''), jdecode('%2F4369%2F4411.html'), 'true',[],'','']
	],'',''],
	['PAGE','2573',jdecode('Photo+Gallery'),jdecode(''), jdecode('%2F2573.html'), 'true',[],'',''],
	['PAGE','2594',jdecode('Links'),jdecode(''), jdecode('%2F2594.html'), 'true',[],'',''],
	['PAGE','2615',jdecode('Contact'),jdecode(''), jdecode('%2F2615.html'), 'true',[],'',''],
	['PAGE','2501',jdecode('TIUC'),jdecode(''), jdecode('%2F2501.html'), 'true',[],'',''],
	['PAGE','2636',jdecode('Sales'),jdecode(''), jdecode('%2F2636.html'), 'true',[],'',''],
	['PAGE','39012',jdecode('2010+HURRICANE+PREPAREDNESS'),jdecode(''), jdecode('%2F39012.html'), 'true',[],'',''],
	['PAGE','40712',jdecode('TELEPHONE+NUMBERS%2FCONTACTS'),jdecode(''), jdecode('%2F40712.html'), 'true',[],'','']];
var siteelementCount=21;
theSitetree.topTemplateName='Tendril';
theSitetree.paletteFamily='D9F4D5';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='33093';
theSitetree.graphicsetId='14058';
theSitetree.contentColor='3B8030';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'grp35-attweb',
  product: 'WSCSYSSSSLY0X9RC'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Tendril',
				paletteFamily: 	'D9F4D5',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'33093',
				graphicsetId: 	'14058',
				contentColor: 	'3B8030',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'000000',
				e_color: 		'000000',
				f_color: 		'000000',
				hasCustomLogo: 	'false',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2615',
internalId:  '',
customField: '20110922-130245'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2522',
internalId:  '',
customField: '20111226-113418'
};
webappMappings['7060']=webappMappings['7060-5f18c68e82eb225e8e2f904b765eda30']={
webappId:    '7060',
documentId:  '2573',
internalId:  '5f18c68e82eb225e8e2f904b765eda30',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2573',
internalId:  '',
customField: '20110922-144048'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4201',
internalId:  '',
customField: '20100201-121920'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2636',
internalId:  '',
customField: '20091001-115359'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14701',
internalId:  '',
customField: '20111226-105910'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4411',
internalId:  '',
customField: '20110922-143842'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4390',
internalId:  '',
customField: '20111226-113213'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4369',
internalId:  '',
customField: '20111226-112724'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2594',
internalId:  '',
customField: '20100201-130512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10801',
internalId:  '',
customField: '20091001-155835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4243',
internalId:  '',
customField: '20110228-101552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4264',
internalId:  '',
customField: '20100201-122145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4222',
internalId:  '',
customField: '20100816-100009'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39012',
internalId:  '',
customField: '20100629-120707'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12301',
internalId:  '',
customField: '20091001-154823'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12322',
internalId:  '',
customField: '20091001-160528'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12343',
internalId:  '',
customField: '20091001-155419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12364',
internalId:  '',
customField: '20091001-164341'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2501',
internalId:  '',
customField: '20110523-090518'
};
webappMappings['1501']=webappMappings['1501-14409555']={
webappId:    '1501',
documentId:  '2522',
internalId:  '14409555',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40712',
internalId:  '',
customField: '20110518-142846'
};
var webAppHostname = 'diycgi.cluster.stngva01.us.diy-servers.net:80';
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHEM0';
var companyName   = 'TROPICAL+ISLES+MOBILE+HOME+PARK';
var htmlTitle	  = '';
var metaKeywords  = 'Mobile+Home+Parks+in+Florida%0D%0AMobile+Home+Communities+in+Florida%0D%0AFlorida+Retirement+Communities%0D%0AMobile+Home+Adult+Communities+in+Florida%0D%0AMobile+Home+Parks+in+Fort+Pierce%2C+Florida%0D%0ATreasure+Coast+Mobile+Home+Parks%0D%0A55%2B+Mobile+Home+Parks+in+Florida';
var metaContents  = 'Mobile+Home+Parks+in+Florida%0D%0AMobile+Home+Communities+in+Florida%0D%0AFlorida+Retirement+Communities%0D%0AMobile+Home+Adult+Communities+in+Florida%0D%0AMobile+Home+Parks+in+Fort+Pierce%2C+Florida%0D%0ATreasure+Coast+Mobile+Home+Parks%0D%0A55%2B+Mobile+Home+Parks+in+Florida';
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();
};

