/* [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','1701',jdecode('Home'),jdecode(''),'/1701.html','true',[],''],
	['PAGE','1752',jdecode('Life+Insurance'),jdecode(''),'/1752.html','true',[],''],
	['PAGE','2801',jdecode('HSA+Health+Savings'),jdecode(''),'/2801.html','true',[],''],
	['PAGE','1773',jdecode('Contact+Us'),jdecode(''),'/1773.html','true',[],'']];
var siteelementCount=4;
theSitetree.topTemplateName='Diamond';
theSitetree.paletteFamily='C5E8B1';
theSitetree.keyvisualId='6210';
theSitetree.keyvisualName='kv_6210.jpg';
theSitetree.fontsetId='11090';
theSitetree.graphicsetId='11864';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='C5E8B1';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Diamond',
				paletteFamily: 	'C5E8B1',
				keyvisualId: 	'6210',
				keyvisualName: 	'kv_6210.jpg',
				fontsetId: 		'11090',
				graphicsetId: 	'11864',
				contentColor: 	'000000',
				contentBGColor: 'C5E8B1',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1701',
internalId:  '',
customField: '20100126-100056'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1752',
internalId:  '',
customField: '20100126-094618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1773',
internalId:  '',
customField: '20100108-134554'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2801',
internalId:  '',
customField: '20100126-094336'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'APL330INZJL6';
var companyName   = 'Florida+Health+Insurance+Rate+Quotes+%7C+FL+Health+Insurance+Agent';
var htmlTitle	  = 'Florida+Health+and+Life+Insurance+Rate+Quotes+%7C+Talk+to+a+Live+Florida+Insurance+Agent';
var metaKeywords  = 'florida+health+insurance%2C+jupiter%2C+west+palm+beach%2C+FL%2C+health+insurance+in+florida%2C+central+florida+health+insurance%2C+florida+health+insurance+quote%2C+florida+health+insurance+instant+quote%2C+florida+health+care+insurance%2C+individual+health+insurance+plan%2C+health+insurance+for+individual%2C+health+insurance+individual%2C+individual+health+insurance+company%2C+affordable+individual+health+insurance%2C+group+health+insurance%2C+healthplan+administrators%2C+agent%2C+broker%2C+small+group+health+insurance%2C+group+health+insurance+quote%2C+group+health+insurance+plan%2C+group+health+insurance+solution%2C+group+health+insurance+florida%2C+uninsurable%2C+florida+medical+insurance%2C+medical+insurance+in+florida%2C+central+florida+medical+insurance%2C+small+business+health+insurance%2C+health+insurance+for+small+business%2C+business+health+insurance%2C+small+business+group+health+insurance%2C+health+insurance+for+small+business+owner%2C+small+business+health+insurance+plan%2C+florida+insurance+company%2C+florida+health+insurance+company%2C+insurance+company+in+florida%2C+health+insurance+company+in+florida%2C+florida+health+insurance+quote%2C+florida+individual+health+insurance%2C+florida+small+business+insurance%2C+florida+group+health+insurance%2C+health+quote%2C+free+quotes%2C+kid+care%2C+life+insurance%2C+term+insurance%2C+provider+networks%2C+self-funded+and+flexible+funded+group+plans%2C+florida+major+medical+insurance%2Cflorida+life+and+health+insurance%2C+florida+health+and+life+insurance%2C+florida+humana%2C+MSA%2C+florida+medical+savings+accounts%2C+HMO%2C+PPO%2C+temporary+health+insurance%2C+short+term+health+insurance%2C+international+health+insurance%2C+Medicare+supplements%2C+Medigap%2C+international+medical+insurance%2C+international+travel+insurance%2C+small+business+health+insurance+plan%2C+international+insurance%2C+international+health+insurance+company%2C+aetna%2C+major+medical%2C+health+insurance%2C+medical+insurance%2C+health+savings+accounts%2C+HSA%2C+aetna%2C+golden+rule+insurance%2C+united+healthcare%2C+health+plan+administrators%2C+beechstreet%2C+BCBS%2C+United+HealthCare%2C+Alachua%2C+Baker%2C+Bay%2C+Bradford%2C+Brevard%2C+Broward%2C+Calhoun%2C+Charlotte%2C+Citrus%2C+Clay%2C+Collier%2C+Columbia%2C+Dade%2C+De+Soto+Dixie%2C+Duval%2C+Escambia%2C+Flagler%2C+Franklin%2C+Gadsden%2C+Gilchrist%2C+Glades%2C+Gulf%2C+Hamilton%2C+Hardee%2C+Hendry%2C+Hernando%2C+Highlands%2C+Hillsborough%2C+Holmes%2C+Indian%2C+River%2C+Jackson%2C+Jefferson%2C+Lafayette%2C+Lake%2C+Lee%2C+Leon%2C+Levy%2C+Liberty%2C+Madison%2C+Manatee%2C+Marion%2C+Martin%2C+Monroe%2C+Nassau%2C+Okaloosa%2C+Okeechobee%2C+Orange%2C+Osceola%2C+Palm+Beach%2C+Pasco%2C+Pinellas%2C+Polk%2C+Putnam%2C+St.+Johns%2C+St.+Lucie%2C+Santa+Rosa%2C+Sarasota%2C+Seminole%2C+Sumter%2C+Suwannee%2C+Taylor%2C+Union%2C+Volusia%2C+Wakulla%2C+Walton%2C+Washington.broward+county+fl+insurance+agency%2C+miami+insurance+agent%2C+florida+condo+insurance%2C+florida+individual+health+insurance%2C+dade+county+fl+insurance+agency%2C+south+florida+group+insurance+agency%2C+florida+group+health+insurance%2C+florida+family+health+insurance%2C+florida+group+life+insurance%2C+florida+employee+benefits+health+insurance%2C+broward+county+florida+insurance+agent%2C+florida+family+life+insurance%2C+palm+beach+county+florida+insurance+agent%2C++florida+individual+life+insurance%2C+southeast+florida+business+insurance+agency%2C+florida+employee+benefit+life+insurance%2C+florida+disability+insurance%2C+group+health+insurance+florida%2C+family+health+insurance+florida%2C+miami+family+health+insurance';
var metaContents  = 'Florida+Health+Insurance++Life+Insurance+Quotes.++Individual%2C+Family+and+Group+Health+Insurance%2C+Compare++Online+Insurance+Quotes%2C++Affordable+Medical+Plans+and+Rates%2C+HSA+Plans%2C+Temporary+Health+Insurance+and+Term+Life+Insurance.++Aetna%2C+Cigna%2C+Humana%2C+United+Health+Care%2C+ING%2C+Prudential+and+more.++Florida+Group%2C+family+and+individual+health+and+life+insurance+coverage.';
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();
};
