/* [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('Training+Classes'),jdecode(''),'/1752.html','true',[],''],
	['PAGE','1773',jdecode('AED+Defibrillator+Sales'),jdecode(''),'/1773.html','true',[],''],
	['PAGE','4701',jdecode('Security+Guards'),jdecode(''),'/4701.html','true',[],''],
	['PAGE','1794',jdecode('Construction'),jdecode(''),'/1794.html','true',[],''],
	['PAGE','3801',jdecode('Why+The+CPR+School%3F'),jdecode(''),'/3801.html','true',[],'']];
var siteelementCount=6;
theSitetree.topTemplateName='Diamond';
theSitetree.paletteFamily='BFD4ED';
theSitetree.keyvisualId='6210';
theSitetree.keyvisualName='kv_6210.jpg';
theSitetree.fontsetId='11090';
theSitetree.graphicsetId='11865';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='BFD4ED';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Diamond',
				paletteFamily: 	'BFD4ED',
				keyvisualId: 	'6210',
				keyvisualName: 	'kv_6210.jpg',
				fontsetId: 		'11090',
				graphicsetId: 	'11865',
				contentColor: 	'000000',
				contentBGColor: 'BFD4ED',
				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:  '1701',
internalId:  '',
customField: '20100116-105622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1773',
internalId:  '',
customField: '20100119-094731'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '1701',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1752',
internalId:  '',
customField: '20100116-105440'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '1794',
internalId:  '',
customField: '20100116-105242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3801',
internalId:  '',
customField: '20100119-094645'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '4701',
internalId:  '',
customField: '20100211-173239'
};
var canonHostname = 'cm4all.aplus.net';
var accountId     = 'APL330INZJET';
var companyName   = 'CPR+BLS+AED+First+Aid+Safety+Certification+Classes';
var htmlTitle	  = 'FLORIDA+CPR+AED+FIRST+AID+TRAINING+CLASSES+-+American+Heart+Association+CPR+Certification+Classes+%40+Your+Business';
var metaKeywords  = 'FLORIDA%2C+CPR%2C+AED%2C+BLS%2C+FIRST+AID%2C+TRAINING%2C+CLASS%2C+american+heart%2C+american+heart+association%2C+red+cross%2C+cpr%2C+c.p.r.+chocking%2C+heart%2C+american%2C+red%2C+cross%2C+medical%2C+fire+rescue%2C+cpr+mask%2C+palm+beach%2C+martin%2C+st.+lucie%2C+broward%2C+instruction%2C+miami%2C+dade%2C+west+palm%2C+lauderdale%2C+teach%2C+teacher%2C+med%2C+EMT%2C+instruction%2C+heart%2C+attack%2C+bleed%2C+trauma%2C+ambulance%2C+hospital%2C+hurricanes%2C+FL%2C+South%2C+Jupiter%2C+Tequesta%2C+OSHA%2C+Rick%2C+Safety%2C+Risk+Manager%2C+hurricane%2C+cpr+training%2C+cpr%2C+school%2C+aed%2C+first+aid%2C+medic%2C+emt%2C+train%2C+instructor%2C+florida%2C+red+cross%2C+american+heart%2C+heart%2C+heart+attack%2C+cpr%2C+school%2C+college%2C+nursing%2C+med%2C+emt%2C+certification%2C+train%2C+construction%2C+osha%2C+class%2C+jupiter%2C+florida+palm+beach%2C+osha%2C+risk%2C+manager%2C+management%2C+training%2C+trainer%2C+class%2C+classes%2C+osha%2C+risk%2C+injury%2C+safety%2C+medtronics%2C+phillips%2C+defibtech%2C+zoll%2C+stroke%2C+choke%2C+medical%2C+course%2C+trainer%2C+cardiac%2C+cardiac+science%2C+physio%2C+First+Aid%2C+Instruction%2C+AED+Training%2C+AED+Sales%2C+FL%2C+Boat+Captain%2C+Coast+Guard%2C+dentist%2C+construction%2C+cpr+mask%2C+cpr%2C+Alachua+Altamonte+Springs+Anna+Maria+Apalachicola+Apopka+Arcadia+Archer+Atlantic+Beach+Atlantis+Auburndale+Aventura+Avon+Park+Bartow+Bay+Lake+Belleair+Beach+Belleair+Bluffs+Belle+Glade+Belle+Isle+Belleview+Blountstown+Boca+Raton+Bonifay+Bonita+Springs+Bowling+Green+Boynton+Beach+Bradenton+Bradenton+Beach+Bristol+Brooksville+Bunnell+Bushnell+Callaway+Cape+Canaveral+Cape+Coral+Carrabelle+Casselberry+Cedar+Key+Center+Hill+Chattahoochee+Chiefland+Chipley+Clearwater+Clermont+Clewiston+Cocoa+Cocoa+Beach+Coconut+Creek+Coleman+Cooper+City+Coral+Gables+Coral+Springs+Crescent+City+Crestview+Crystal+River+Cutler+Bay+Dade+City+Dania+Beach+Davenport+Daytona+Beach+Daytona+Beach+Shores+DeBary+Deerfield+Beach+De+Funiak+Springs+DeLand+Delray+Beach+Deltona+Destin+Doral+Dunedin+Dunnellon+Eagle+Lake+Edgewater+Edgewood+Eustis+Everglades+Fanning+Springs+Fellsmere+Fernandina+Beach+Flagler+Beach+Florida+City+Fort+Lauderdale+Fort+Meade+Fort+Myers+Fort+Pierce+Fort+Walton+Beach+Freeport+Frostproof+Fruitland+Park+Gainesville+Graceville+Greenacres+Green+Cove+Springs+Gretna+Groveland+Gulf+Breeze+Gulfport+Haines+City+Hallandale+Beach+Hampton+Hawthorne+Hialeah+Hialeah+Gardens+High+Springs+Holly+Hill+Hollywood+Holmes+Beach+Homestead+Indian+Harbour+Beach+Indian+Rocks+Beach+Inverness+Islandia+Jacksonville+Jacksonville+Beach+Jacob+City+Jasper+Key+Colony+Beach+Keystone+Heights+Key+West+Kissimmee+La+Belle+Lake+Alfred+Lake+Buena+Vista+Lake+Butler+Lake+City+Lake+Helen+Lakeland+Lake+Mary+Lake+Wales+Lake+Worth+Largo+Lauderdale+Lakes+Lauderhill+Laurel+Hill+Lawtey+Layton+Leesburg+Lighthouse+Point+Live+Oak+Longwood+Lynn+Haven+Macclenny+Madeira+Beach+Madison+Maitland+Marathon+Marco+Island+Margate+Marianna+Mary+Esther+Mascotte+Melbourne+Mexico+Beach+Miami+Miami+Beach+Miami+Gardens+Miami+Springs+Midway+Milton+Minneola+Miramar+Monticello+Moore+Haven+Mount+Dora+Mulberry+Naples+Neptune+Beach+Newberry+New+Port+Richey+New+Smyrna+Beach+Niceville+North+Bay+Village+North+Lauderdale+North+Miami+North+Miami+Beach+North+Port+Oak+Hill+Oakland+Oakland+Park+Ocala+Ocoee+Okeechobee+Oldsmar+Opa-locka+Orange+City+Orlando+Ormond+Beach+Oviedo+Pahokee+Palatka+Palm+Bay+Palm+Beach+Gardens+Palm+Coast+Palmetto+Panama+City+Panama+City+Beach+Parker+Parkland+Pembroke+Pines+Pensacola+Perry+Pinellas+Park+Plantation+Plant+City+Pompano+Beach+Port+Orange+Port+Richey+Port+St.+Joe+Port+St.+Lucie+Punta+Gorda+Quincy+Riviera+Beach+Rockledge+Safety+Harbor+St.+Augustine+St.+Augustine+Beach+St.+Cloud+St.+Marks+St.+Pete+Beach+St.+Petersburg+San+Antonio+Sanford+Sanibel+Sarasota+Satellite+Beach+Sebastian+Sebring+Seminole+Sopchoppy+South+Bay+South+Daytona+South+Miami+South+Pasadena+Springfield+Starke+Stuart+Sunny+Isles+Beach+Sunrise+Sweetwater+Tallahassee+Tamarac+Tampa+Tarpon+Springs+Tavares+Temple+Terrace+Titusville+Treasure+Island+Trenton+Umatilla+Valparaiso+Venice+Vernon+Vero+Beach+Waldo+Wauchula+Webster+Weeki+Wachee+West+Melbourne+West+Miami+Weston+West+Palm+Beach+West+Park+Wewahitchka+Wildwood+Williston+Wilton+Manors+Winter+Garden+Winter+Haven+Winter+Park+Winter+Springs++Zephyrhills';
var metaContents  = 'FLORIDA+-+CPR%2C+AED++FIRST+AID+TRAINING+CERTIFICATION+CLASSES.++American+Heart+Association+CPR+Certification+Training+courses+at+your+business+location.++AHA+BLS+HCP+CPR+First+Aid+Classes%2C+recertification+courses+at+your+Florida+office.++Expert+Safety+Instruction.';
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();
};

