/* [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','4901',jdecode('Home'),jdecode(''), jdecode('%2F4901.html'), 'true',[],'',''],
	['PAGE','17001',jdecode('Membership+Benefits'),jdecode(''), jdecode('%2F17001.html'), 'true',[],'',''],
	['PAGE','20301',jdecode('Membership+Application'),jdecode(''), jdecode('%2F20301.html'), 'true',[],'',''],
	['PAGE','4973',jdecode('Board+of+Directors'),jdecode(''), jdecode('%2F4973.html'), 'true',[],'',''],
	['PAGE','117747',jdecode('Contact+Us+%2F+Questions+'),jdecode(''), jdecode('%2F117747.html'), 'true',[],'',''],
	['PAGE','115647',jdecode('%22FSMD%22+Certification'),jdecode(''), jdecode('%2F115647%2Findex.html'), 'true',[ 
		['PAGE','8001',jdecode('FSMD+Rules+%2F+Application'),jdecode(''), jdecode('%2F115647%2F8001.html'), 'true',[],'',''],
		['PAGE','45401',jdecode('FSMD+Current+Designers'),jdecode(''), jdecode('%2F115647%2F45401.html'), 'true',[],'','']
	],'',''],
	['PAGE','5078',jdecode('Send+Flowers%2F+Member+List'),jdecode(''), jdecode('%2F5078.html'), 'true',[],'',''],
	['PAGE','4952',jdecode('Conventions+Upcoming'),jdecode(''), jdecode('%2F4952%2Findex.html'), 'true',[ 
		['PAGE','7401',jdecode('Annual+Convention+Meeting'),jdecode(''), jdecode('%2F4952%2F7401.html'), 'true',[],'',''],
		['PAGE','5015',jdecode('Mid-Season+Convention'),jdecode(''), jdecode('%2F4952%2F5015.html'), 'true',[],'',''],
		['PAGE','72801',jdecode('Vendor+Info'),jdecode(''), jdecode('%2F4952%2F72801.html'), 'true',[],'','']
	],'',''],
	['PAGE','4994',jdecode('Educational+Information'),jdecode(''), jdecode('%2F4994%2Findex.html'), 'true',[ 
		['PAGE','25601',jdecode('District+Programs'),jdecode(''), jdecode('%2F4994%2F25601.html'), 'true',[],'',''],
		['PAGE','17022',jdecode('FSFA+Scholarship'),jdecode(''), jdecode('%2F4994%2F17022.html'), 'true',[],'',''],
		['PAGE','45001',jdecode('AIFD+Scholarship'),jdecode(''), jdecode('%2F4994%2F45001.html'), 'true',[],'','']
	],'',''],
	['PAGE','17043',jdecode('Design+Competitions'),jdecode(''), jdecode('%2F17043%2Findex.html'), 'true',[ 
		['PAGE','51001',jdecode('FSMD+Design+Competition'),jdecode(''), jdecode('%2F17043%2F51001.html'), 'true',[],'',''],
		['PAGE','15701',jdecode('Sunshine+Cup'),jdecode(''), jdecode('%2F17043%2F15701.html'), 'true',[],'',''],
		['PAGE','15801',jdecode('Designer+of+the+Year'),jdecode(''), jdecode('%2F17043%2F15801.html'), 'true',[],'',''],
		['PAGE','30401',jdecode('Past+Winners+D.O.Y.'),jdecode(''), jdecode('%2F17043%2F30401.html'), 'true',[],'','']
	],'',''],
	['PAGE','76201',jdecode('Elements+%26+Principles'),jdecode(''), jdecode('%2F76201.html'), 'true',[],'',''],
	['PAGE','77201',jdecode('Design+Styles'),jdecode(''), jdecode('%2F77201.html'), 'true',[],'',''],
	['PAGE','76601',jdecode('Color+Wheel'),jdecode(''), jdecode('%2F76601.html'), 'true',[],'',''],
	['PAGE','22901',jdecode('Award+Past+Recipients'),jdecode(''), jdecode('%2F22901.html'), 'true',[],'',''],
	['PAGE','109847',jdecode('FSFA+Past+Presidents'),jdecode(''), jdecode('%2F109847.html'), 'true',[],'',''],
	['PAGE','68601',jdecode('Sunlighting+Mag+Online+'),jdecode(''), jdecode('%2F68601.html'), 'true',[],'',''],
	['PAGE','5099',jdecode('Sunlighting+Mag+Info'),jdecode(''), jdecode('%2F5099%2Findex.html'), 'true',[ 
		['PAGE','16501',jdecode('Advertising+Rates'),jdecode(''), jdecode('%2F5099%2F16501.html'), 'true',[],'',''],
		['PAGE','46601',jdecode('Convention+Advertising+Rates'),jdecode(''), jdecode('%2F5099%2F46601.html'), 'true',[],'','']
	],'',''],
	['PAGE','34701',jdecode('Floral+Pictures'),jdecode(''), jdecode('%2F34701%2Findex.html'), 'true',[ 
		['PAGE','35001',jdecode('Orlando+Convention+2008'),jdecode(''), jdecode('%2F34701%2F35001.html'), 'true',[],'',''],
		['PAGE','60201',jdecode('St.+Pete+Convention+2009'),jdecode(''), jdecode('%2F34701%2F60201.html'), 'true',[],'',''],
		['PAGE','80609',jdecode('Palm+Beach+Gardens+2010'),jdecode(''), jdecode('%2F34701%2F80609.html'), 'true',[],'',''],
		['PAGE','109447',jdecode('Jacksonville+Con.+2011'),jdecode(''), jdecode('%2F34701%2F109447.html'), 'true',[],'','']
	],'',''],
	['PAGE','21301',jdecode('Florist+Forums'),jdecode(''), jdecode('%2F21301.html'), 'true',[],'',''],
	['PAGE','17201',jdecode('Local+State+Associations'),jdecode(''), jdecode('%2F17201.html'), 'true',[],'',''],
	['PAGE','15301',jdecode('Links+for+Florists'),jdecode(''), jdecode('%2F15301.html'), 'true',[],'',''],
	['PAGE','20801',jdecode('Contact+Webmaster'),jdecode(''), jdecode('%2F20801.html'), 'true',[],'','']];
var siteelementCount=40;
theSitetree.topTemplateName='Elemental';
theSitetree.paletteFamily='4DC044';
theSitetree.keyvisualId='11601';
theSitetree.keyvisualName='kv_11601.jpg';
theSitetree.fontsetId='32921';
theSitetree.graphicsetId='13980';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'endurance',
  product: 'WSCSYSSSSLY0XRN4'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Elemental',
				paletteFamily: 	'4DC044',
				keyvisualId: 	'11601',
				keyvisualName: 	'kv_11601.jpg',
				fontsetId: 		'32921',
				graphicsetId: 	'13980',
				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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4901',
internalId:  '',
customField: '20111206-203815'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4952',
internalId:  '',
customField: '20111206-201300'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4973',
internalId:  '',
customField: '20110912-182418'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '4901',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4994',
internalId:  '',
customField: '20110912-192604'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5015',
internalId:  '',
customField: '20111206-203902'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8001',
internalId:  '',
customField: '20110723-172210'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '7401',
internalId:  '',
customField: '20110619-102551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5078',
internalId:  '',
customField: '20110730-005000'
};
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: '20110630-214932'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20110630-213037'
};
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: '20110329-193027'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17022',
internalId:  '',
customField: '20110620-231529'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17001',
internalId:  '',
customField: '20080911-211310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '17043',
internalId:  '',
customField: '20110912-192819'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15301',
internalId:  '',
customField: '20110815-225746'
};
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: '20110912-192335'
};
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: '20110619-103107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '68601',
internalId:  '',
customField: '20110808-220719'
};
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: '20110619-100240'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '25601',
internalId:  '',
customField: '20110723-172655'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30401',
internalId:  '',
customField: '20110620-232233'
};
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: '20110620-231312'
};
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: '20110630-213909'
};
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: '20110619-104959'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109447',
internalId:  '',
customField: '20110630-215102'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '109847',
internalId:  '',
customField: '20110623-202844'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '115647',
internalId:  '',
customField: '20110912-192657'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '117747',
internalId:  '',
customField: '20110912-192158'
};
var webAppHostname = 'cgiwsc.enhancedsitebuilder.com:80';
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();
};

