/* [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','2101',jdecode('Home'),jdecode(''),'/2101.html','true',[],''],
	['PAGE','2152',jdecode('CPR+AED+Training'),jdecode(''),'/2152.html','true',[],''],
	['PAGE','5201',jdecode('AEDs+for+Construction'),jdecode(''),'/5201.html','true',[],''],
	['PAGE','8301',jdecode('ALF+-+Assisted+Living+Facility'),jdecode(''),'/8301.html','true',[],''],
	['PAGE','5801',jdecode('Physio+Control+Medtronic'),jdecode(''),'/5801.html','true',[],''],
	['PAGE','3601',jdecode('Why+us%3F'),jdecode(''),'/3601.html','true',[],''],
	['PAGE','2173',jdecode('Contact+Us'),jdecode(''),'/2173.html','true',[],'']];
var siteelementCount=7;
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:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2101',
internalId:  '',
customField: '20100427-070627'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2152',
internalId:  '',
customField: '20100904-125106'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '2173',
internalId:  '',
customField: '20091229-091352'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '2101',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '3601',
internalId:  '',
customField: '20100131-084738'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5201',
internalId:  '',
customField: '20100426-152448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20100904-122314'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8301',
internalId:  '',
customField: '20100917-051558'
};
var canonHostname = 'cm4all01.carrierzone.com';
var accountId     = 'APL330INZJEO';
var companyName   = 'The+CPR+School+-+Florida+AED+Sales+%26+AED+Supplies';
var htmlTitle	  = 'Florida+AED+Sales%3A+Retail+%26+Wholesale+AED+Automated+External+Defibrillator+Dealer%3A+AED+Accessories%2C+AED+Trainers%2C+AED+Electrode+Pads%2C+AED+Batteries%2C+AED+Cabinets%2C+Florida+CPR+AED+First+Aid+Training+Classes.++Florida%3A+AED+Sales%2C+AED+Service+and+AED+Safety+';
var metaKeywords  = 'aed%2C+AED%2C+defibrillator%2C+AED+Sales%2C+AED+Vendor%2C+store%2C+CPR%2C+Training%2C+AED%2C+Heart%2C+Health%2C+Safety%2C+OSHA%2C+automated+external+defibrillator%2C+sudden+cardiac+arrest%2C+Train%2C+Medical+Supply%2C+medical+catalog%2C+medical%2C+medical+sales%2C+AED+Sales%2C+catalog%2C+AED%2C+EMT%2C+Class%2C+Florida%2C+Health%2C+CPR+Instruction%2C+Risk%2C+Insurance%2C+Risk+Manager%2C+Risk+Management%2C+Cardiac%2C+Science%2C+Philips%2C+Zoll%2C+AED+Sales%2C+defibrillators%2Ccardiac+arrrest%2Cphysio+control%2C+medtronic%2Cdefibrillators%2Ccardiac+science%2C+powerheart%2Cheartstream%2C+philips%2C+zoll%2Caedplus%2CAED%2B%2Clifepak%2Cdifib%2Cunits%2Ccpr%2C+Defibtech%2C+Lifeline%2C+ZOLL+AED+Plus%2C+Powerheart+G3%2C+FirstSave+G3%2C+Florida%2C+aeds%2C+Automated+External+Defibrillator%2C+Automated+External+Defibrilator%2C+philips+onsite%2C+onsite%2C+home+aed%2C+home+aeds%2C+defibrilator%2C+school+aed%2C+defibrillator%2C+dephibulator+%2C+defibrillators%2C+defibrulator%2C+automatic+external+defibrillator%2C+automatic+external+defibrilator%2C+aed+cabinet%2C+aed+accessories+AED+%2C+Aed+%2C+aed+defibrilater+%2C+aed+manikins+%2C+aed+system+%2C+aed+trainer%2C+aed+trainer+system%2C+aed+training+aids+%2C+aeds+%2C+AEDs+%2C+automated+external+defibrilator%2C+automated+external+defibrilators+%2C+automated+external+defibrillator%2C+automated+external+defibrillators+%2C++automatic+external+defibrilator%2C+automatic+external+defibrillator+%2C+automatic+external+defibrilators%2C+automatic+external+defibrillators+%2C+cardiac+science+aed+%2C+cardiac+science+aeds+%2C+cardiac+science+defibrillator%2C++cardiac+science+defibrillators+%2C+cardiac+science+defibrillator%2C+defib+%2C+defibs+%2C+Defibrilator+%2C+Defibrilators+%2C+Defibrillator+%2C+Defibrillatosr%2C+discounted+aed+%2C+discounted+aeds+%2C+discounted+aeds+%2C+difubulator%2C+defibrillators+%2C+defibs+%2C+Defibtech+aed+%2C+Defibtech+aeds+%2C+Defibtech+defibrillator+%2C+Defibtech+defibrillators+%2C+Defibtech+defibrilators+%2C+Defibtech+defibrilators+%2C+home+aed%2C+Home+AED%2C+home+aed+defibrillator+%2C+home+aeds+defibrillator+%2C++home+aed+defibrillators%2C+lifepak+aed+%2C+lifepak+500%2C+lifepak12%2C+Philips+carry+case%2C+Philips+Child+Pads+Cartridge+%2C++Philips+Child+electrodes+Cartridge+%2C+Philips+Child+electrodes+%2C+Philips+infant+electrode+pads+%2C++Philips+Battery%2C+Philips+Adult+Cartridge+%2C+Philips+FR2+%2C+Philips+FR2%2B+%2C+Philips+FRx+%2C+Physio-control+medtronic+aed+%2C+medtronic+aed+%2C+medtronic+aeds%2C++Physio-control+aeds+%2C+portable+defibrilator+%2C+portable+defibrillators+%2C+portable+defibrillator+%2C+portable+defibrillators+%2C+Samaritan+aed+%2C+Heartsine+aed+%2C+Samaritan+aeds+%2C+Heartsine+Aeds+%2C++Samaritan+defibrillator+%2C+Samaritan+defibrilators+%2C+Samaritan+defibrilator+%2C+Samaritan+defibrillators+%2Czoll+aed+%2C+heart+sine%2C+heart+start+%2C+first+aid+aed+%2C+guidant+%2C+ecg+defibrillator+%2C+electronic+defibrillator+%2Celectronic+defibulator+%2C+fibrillator%2C+zoll+defibrillator%2C+automated+external+defibrillators+%2C++defibrillators%2C++defibrillators+aed+%2C++defibrillators+for+sale+%2C+defibrillators+in+public+places%2C++defibrillators+in+schools+%2C++defibrillators+in+the+workplace%2C+school+aeds+%2C+school+aed+%2C+business+aeds+%2C+aeds+business+%2C++aeds+church+%2C+church+aeds+%2C+aed+for+school+%2C+aeds+for+school+%2C+aeds+for+schools+%2C+aed+for+schools';
var metaContents  = 'Florida+AED+Defibrillator+for+home+use%2C+public+and+professional+use.++The+CPR+School+sells+AED%2C+AED+Accessories%2C+AED+Pads%2C+AED+batteries+and+AED+Supplies+for+Defibtech%2C+Cardiac+Science%2C+Medtronic+Physio+Contriol%2C+Philips%2C+ZOLL%2C+HEARTSINE+and+Welch+Allyn+AEDS.++Automatic+External+Defibrillators+Sales+and+Service.++The+CPR+School+provides+the+best+prices+and+service+on+AED+Defibrillators+in+Florida.++Florida+Residents+-+Contact+us+for+all+of+your+AED+Defibrillator+needs+';
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();
};

