/* [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','2501',jdecode('Home'),jdecode(''),'/2501.html','true',[],''],
	['PAGE','2552',jdecode('About+CFL+'),jdecode(''),'/2552.html','true',[],''],
	['PAGE','2573',jdecode('Florida+Friendly+Tips'),jdecode(''),'/2573/index.html','true',[ 
		['PAGE','2594',jdecode('Gardening+Forum+'),jdecode(''),'/2573/2594.html','true',[],''],
		['PAGE','2615',jdecode('Our+Mission'),jdecode(''),'/2573/2615.html','true',[],'']
	],''],
	['PAGE','2657',jdecode('The+Landscape+Blog+'),jdecode(''),'/2657.html','true',[],''],
	['PAGE','2678',jdecode('Services'),jdecode(''),'/2678.html','true',[],''],
	['PAGE','2762',jdecode('Project+Portfolio'),jdecode(''),'/2762.html','true',[],''],
	['PAGE','2783',jdecode('Winter+Springs+T.C.T.P.'),jdecode(''),'/2783.html','true',[],''],
	['PAGE','2804',jdecode('Eason+Park+Model+Center'),jdecode(''),'/2804.html','false',[],''],
	['PAGE','2825',jdecode('Landscape+Packages'),jdecode(''),'/2825.html','false',[],''],
	['PAGE','2846',jdecode('Specials'),jdecode(''),'/2846.html','false',[],''],
	['PAGE','2867',jdecode('Contact+CFL'),jdecode(''),'/2867.html','true',[],''],
	['PAGE','2888',jdecode('FAQ'),jdecode(''),'/2888.html','true',[],''],
	['PAGE','2909',jdecode('LINKS'),jdecode(''),'/2909.html','false',[],''],
	['PAGE','14701',jdecode('email+contact'),jdecode(''),'/14701.html','false',[],'']];
var siteelementCount=16;
theSitetree.topTemplateName='Meadow';
theSitetree.paletteFamily='0000BB';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10473';
theSitetree.graphicsetId='10949';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='9FD796';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Meadow',
				paletteFamily: 	'0000BB',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10473',
				graphicsetId: 	'10949',
				contentColor: 	'000000',
				contentBGColor: '9FD796',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'6EC262',
				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['1003']=webappMappings['1003-awh030in27go11f7f8b3bb7']={
webappId:    '1003',
documentId:  '2594',
internalId:  'awh030in27go11f7f8b3bb7',
customField: 'en:US'
};
webappMappings['7050']=webappMappings['7050-55']={
webappId:    '7050',
documentId:  '2657',
internalId:  '55',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-dd658e69287c192bea7afee9eafc8e8a']={
webappId:    '7060',
documentId:  '2762',
internalId:  'dd658e69287c192bea7afee9eafc8e8a',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-8d8981817798d95868f1cdfbdf4914d2']={
webappId:    '7060',
documentId:  '2783',
internalId:  '8d8981817798d95868f1cdfbdf4914d2',
customField: 'language:en;country:US;'
};
webappMappings['7060']=webappMappings['7060-ae28f46287125a1efb1edd6b2b00bef3']={
webappId:    '7060',
documentId:  '2804',
internalId:  'ae28f46287125a1efb1edd6b2b00bef3',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2501',
internalId:  '',
customField: '20090901-111007'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2552',
internalId:  '',
customField: '20090217-082816'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2501',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-1889104']={
webappId:    '1501',
documentId:  '2501',
internalId:  '1889104',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2573',
internalId:  '',
customField: '20090217-082317'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2594',
internalId:  '',
customField: '20090216-101340'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2657',
internalId:  '',
customField: '20090216-101536'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2615',
internalId:  '',
customField: '20090216-103227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2762',
internalId:  '',
customField: '20090311-081931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2867',
internalId:  '',
customField: '20091020-090644'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2678',
internalId:  '',
customField: '20090311-090000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2783',
internalId:  '',
customField: '20090303-064203'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2888',
internalId:  '',
customField: '20090303-073832'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2804',
internalId:  '',
customField: '20090216-074407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2825',
internalId:  '',
customField: '20090216-074407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2846',
internalId:  '',
customField: '20090216-074407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2909',
internalId:  '',
customField: '20090216-074407'
};
webappMappings['7008']=webappMappings['7008-375']={
webappId:    '7008',
documentId:  '14701',
internalId:  '375',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14701',
internalId:  '',
customField: '20090316-065720'
};
var canonHostname = 'cm4all01.west-datacenter.net';
var accountId     = 'AWH030IN27GO';
var companyName   = '%22Growing+relationships+and+beautiful+landscapes%22';
var htmlTitle	  = '';
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();
};
