/* [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','4901',jdecode('Home'),jdecode(''),'/4901.html','true',[],''],
	['PAGE','17001',jdecode('Membership+Benefits'),jdecode(''),'/17001.html','true',[],''],
	['PAGE','20301',jdecode('Membership+Application'),jdecode(''),'/20301.html','true',[],''],
	['PAGE','4952',jdecode('Conventions+Upcoming'),jdecode(''),'/4952/index.html','true',[ 
		['PAGE','7401',jdecode('Annual+Convention+Meeting'),jdecode(''),'/4952/7401.html','true',[],''],
		['PAGE','5015',jdecode('Mid-Season+Convention'),jdecode(''),'/4952/5015.html','true',[],''],
		['PAGE','72801',jdecode('Vendor+Info'),jdecode(''),'/4952/72801.html','true',[],'']
	],''],
	['PAGE','5078',jdecode('Send+Flowers%2F+Member+List'),jdecode(''),'/5078.html','true',[],''],
	['PAGE','4994',jdecode('Educational+Information'),jdecode(''),'/4994/index.html','true',[ 
		['PAGE','25601',jdecode('District+Programs'),jdecode(''),'/4994/25601.html','true',[],''],
		['PAGE','8001',jdecode('FSMD+Rules+%2F+Application'),jdecode(''),'/4994/8001.html','true',[],''],
		['PAGE','45401',jdecode('FSMD+Designers'),jdecode(''),'/4994/45401.html','true',[],''],
		['PAGE','17022',jdecode('FSFA+Scholarship'),jdecode(''),'/4994/17022.html','true',[],''],
		['PAGE','45001',jdecode('AIFD+Scholarship'),jdecode(''),'/4994/45001.html','true',[],'']
	],''],
	['PAGE','76201',jdecode('Elements+%26+Principles'),jdecode(''),'/76201.html','true',[],''],
	['PAGE','77201',jdecode('Design+Styles'),jdecode(''),'/77201.html','true',[],''],
	['PAGE','76601',jdecode('Color+Wheel'),jdecode(''),'/76601.html','true',[],''],
	['PAGE','17043',jdecode('Design+Competitions'),jdecode(''),'/17043/index.html','true',[ 
		['PAGE','51001',jdecode('FSMD+Design+Competition'),jdecode(''),'/17043/51001.html','true',[],''],
		['PAGE','15701',jdecode('Sunshine+Cup'),jdecode(''),'/17043/15701.html','true',[],''],
		['PAGE','15801',jdecode('Designer+of+the+Year'),jdecode(''),'/17043/15801.html','true',[],''],
		['PAGE','30401',jdecode('Past+Winners+D.O.Y.'),jdecode(''),'/17043/30401.html','true',[],'']
	],''],
	['PAGE','4973',jdecode('Board+of+Directors'),jdecode(''),'/4973.html','true',[],''],
	['PAGE','22901',jdecode('Award+Past+Recipients'),jdecode(''),'/22901.html','true',[],''],
	['PAGE','68601',jdecode('Sunlighting+Mag+Online+'),jdecode(''),'/68601.html','true',[],''],
	['PAGE','5099',jdecode('Sunlighting+Mag+Info'),jdecode(''),'/5099/index.html','true',[ 
		['PAGE','16501',jdecode('Advertising+Rates'),jdecode(''),'/5099/16501.html','true',[],''],
		['PAGE','46601',jdecode('Convention+Advertising+Rates'),jdecode(''),'/5099/46601.html','true',[],'']
	],''],
	['PAGE','34701',jdecode('Floral+Pictures'),jdecode(''),'/34701/index.html','true',[ 
		['PAGE','35001',jdecode('Orlando+Convention+2008'),jdecode(''),'/34701/35001.html','true',[],''],
		['PAGE','60201',jdecode('St.+Pete+Convention+2009'),jdecode(''),'/34701/60201.html','true',[],''],
		['PAGE','80609',jdecode('Palm+Beach+Gardens+2010'),jdecode(''),'/34701/80609.html','true',[],'']
	],''],
	['PAGE','21301',jdecode('Florist+Forums'),jdecode(''),'/21301.html','true',[],''],
	['PAGE','17201',jdecode('Local+State+Associations'),jdecode(''),'/17201.html','true',[],''],
	['PAGE','15301',jdecode('Links+for+Florists'),jdecode(''),'/15301.html','true',[],''],
	['PAGE','20801',jdecode('Contact+Webmaster'),jdecode(''),'/20801.html','true',[],'']];
var siteelementCount=36;
theSitetree.topTemplateName='Antigua';
theSitetree.paletteFamily='61926E';
theSitetree.keyvisualId='6907';
theSitetree.keyvisualName='kv_6907.jpg';
theSitetree.fontsetId='11214';
theSitetree.graphicsetId='12037';
theSitetree.contentColor='FFFFFF';
theSitetree.contentBGColor='80AF8C';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Antigua',
				paletteFamily: 	'61926E',
				keyvisualId: 	'6907',
				keyvisualName: 	'kv_6907.jpg',
				fontsetId: 		'11214',
				graphicsetId: 	'12037',
				contentColor: 	'FFFFFF',
				contentBGColor: '80AF8C',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20100712-214219'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4952',
internalId:  '',
customField: '20100712-213252'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4973',
internalId:  '',
customField: '20100712-220441'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4994',
internalId:  '',
customField: '20080619-121548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5015',
internalId:  '',
customField: '20100712-213615'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20080619-170704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20100707-125527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5078',
internalId:  '',
customField: '20100602-183135'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5099',
internalId:  '',
customField: '20080430-201908'
};
webappMappings['1501']=webappMappings['1501-7371763']={
webappId:    '1501',
documentId:  '4901',
internalId:  '7371763',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15801',
internalId:  '',
customField: '20100712-212407'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20100707-130707'
};
webappMappings['7008']=webappMappings['7008-3170']={
webappId:    '7008',
documentId:  '16501',
internalId:  '3170',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16501',
internalId:  '',
customField: '20100304-221339'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17201',
internalId:  '',
customField: '20080917-000156'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17022',
internalId:  '',
customField: '20091110-092438'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17001',
internalId:  '',
customField: '20080911-211310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17043',
internalId:  '',
customField: '20090629-135756'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20100124-191405'
};
webappMappings['7008']=webappMappings['7008-3446']={
webappId:    '7008',
documentId:  '20301',
internalId:  '3446',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20080619-171538'
};
webappMappings['7008']=webappMappings['7008-3449']={
webappId:    '7008',
documentId:  '20801',
internalId:  '3449',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20801',
internalId:  '',
customField: '20080902-201136'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '72801',
internalId:  '',
customField: '20100707-124550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68601',
internalId:  '',
customField: '20100712-212953'
};
webappMappings['1003']=webappMappings['1003-aendu0in2dzm119bbc08ad6']={
webappId:    '1003',
documentId:  '21301',
internalId:  'aendu0in2dzm119bbc08ad6',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21301',
internalId:  '',
customField: '20080505-211512'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22901',
internalId:  '',
customField: '20100707-115139'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25601',
internalId:  '',
customField: '20090716-140330'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30401',
internalId:  '',
customField: '20100712-212346'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45001',
internalId:  '',
customField: '20081112-144928'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34701',
internalId:  '',
customField: '20100707-124051'
};
webappMappings['7060']=webappMappings['7060-e20c8a7ca0840fd2914316c5c3340958']={
webappId:    '7060',
documentId:  '35001',
internalId:  'e20c8a7ca0840fd2914316c5c3340958',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35001',
internalId:  '',
customField: '20080902-204747'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '45401',
internalId:  '',
customField: '20100712-212148'
};
webappMappings['7008']=webappMappings['7008-11494']={
webappId:    '7008',
documentId:  '46601',
internalId:  '11494',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46601',
internalId:  '',
customField: '20100304-221145'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '51001',
internalId:  '',
customField: '20100707-131810'
};
webappMappings['7060']=webappMappings['7060-0920239d08a1983fb727a850253b05a0']={
webappId:    '7060',
documentId:  '60201',
internalId:  '0920239d08a1983fb727a850253b05a0',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '60201',
internalId:  '',
customField: '20090803-200336'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76601',
internalId:  '',
customField: '20100606-123629'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '76201',
internalId:  '',
customField: '20100606-120816'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '77201',
internalId:  '',
customField: '20100606-163541'
};
webappMappings['7060']=webappMappings['7060-835b1b614ec7a7493035031eff8b9b77']={
webappId:    '7060',
documentId:  '80609',
internalId:  '835b1b614ec7a7493035031eff8b9b77',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '80609',
internalId:  '',
customField: '20100707-124012'
};
var canonHostname = 'cmworker02.yourhostingaccount.com';
var accountId     = 'AENDU0IN2DZM';
var companyName   = 'Florida+State+Florists%27+Association';
var htmlTitle	  = 'Florida+State+Florist+Association+%28FSFA%29';
var metaKeywords  = 'Florida+State+Florist+Association%2C+Florida+State+Florists+Association%2C+Florida%2C+State%2C+Florist%2C+Association%2C+Education%2C+FSMD%2C+FSFA%2C+flowers%2C+Convention%2C+Flowers%2C+Florist+in+Florida';
var metaContents  = 'Florida+State+Florists+helping+other+Florists%2C+Educating+the+florist';
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();
};
