/* [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','14901',jdecode('Home'),jdecode(''),'/14901.html','true',[],''],
	['PAGE','14943',jdecode('Education+Services'),jdecode(''),'/14943/index.html','true',[ 
		['PAGE','14964',jdecode('Inhouse+Education'),jdecode(''),'/14943/14964.html','true',[],''],
		['PAGE','15601',jdecode('Skill+Offerings'),jdecode(''),'/14943/15601.html','true',[],''],
		['PAGE','19601',jdecode('Basic+ECG+Rhythms'),jdecode(''),'/14943/19601.html','false',[],''],
		['PAGE','19622',jdecode('Introduction+to+12+Lead+ECG+Interpretation'),jdecode(''),'/14943/19622.html','false',[],''],
		['PAGE','19664',jdecode('Fluids%2C+Electrolytes%2C+%26+All+That+Jazz%21'),jdecode(''),'/14943/19664.html','false',[],''],
		['PAGE','19643',jdecode('Lab+Interpretation'),jdecode(''),'/14943/19643.html','false',[],''],
		['PAGE','23443',jdecode('Bariatrics%3A++A+Different+Type+of+Patient'),jdecode(''),'/14943/23443.html','false',[],''],
		['PAGE','23422',jdecode('Comprehensive+Acute+Pain+Management'),jdecode(''),'/14943/23422.html','false',[],''],
		['PAGE','19685',jdecode('Critical+Situations+for+Non-Critical+Care+Personnel'),jdecode(''),'/14943/19685.html','false',[],''],
		['PAGE','23401',jdecode('Physical+Assessment+of+Patients+with+Complex+Problems'),jdecode(''),'/14943/23401.html','false',[],''],
		['PAGE','19706',jdecode('AHA+Advanced+Cardiac+Life+Support+%28ACLS%29'),jdecode(''),'/14943/19706.html','false',[],''],
		['PAGE','19727',jdecode('AHA+Pediatric+Advanced+Life+Support+%28PALS%29'),jdecode(''),'/14943/19727.html','false',[],''],
		['PAGE','19748',jdecode('AHA+Pediatric+Emergency+Assessment%2C+Resuscitation+and+Stabilization+%28PEARS%29'),jdecode(''),'/14943/19748.html','false',[],''],
		['PAGE','19769',jdecode('Beginning+Hemodynamics'),jdecode(''),'/14943/19769.html','false',[],''],
		['PAGE','19790',jdecode('Hemodynamics%3A++Beyond+the+Basics'),jdecode(''),'/14943/19790.html','false',[],''],
		['PAGE','19811',jdecode('Moderate+Sedation+for+Beginners'),jdecode(''),'/14943/19811.html','false',[],''],
		['PAGE','19832',jdecode('Moderate+Sedation+for+Experienced+Providers'),jdecode(''),'/14943/19832.html','false',[],''],
		['PAGE','14985',jdecode('Professional+Services'),jdecode(''),'/14943/14985.html','true',[],'']
	],''],
	['PAGE','15006',jdecode('Accrediation'),jdecode(''),'/15006/index.html','true',[ 
		['PAGE','28801',jdecode('Disclosures'),jdecode(''),'/15006/28801.html','true',[],'']
	],''],
	['PAGE','15111',jdecode('About+us'),jdecode(''),'/15111/index.html','true',[ 
		['PAGE','15132',jdecode('Our+Consultants'),jdecode(''),'/15111/15132.html','true',[],''],
		['PAGE','36222',jdecode('Our+Clients'),jdecode(''),'/15111/36222.html','true',[],''],
		['PAGE','36201',jdecode('Our+History'),jdecode(''),'/15111/36201.html','true',[],''],
		['PAGE','18901',jdecode('Our+Advocacy'),jdecode(''),'/15111/18901.html','true',[],''],
		['PAGE','15153',jdecode('Privacy+Policy'),jdecode(''),'/15111/15153.html','true',[],''],
		['PAGE','21401',jdecode('Terms+of+Use'),jdecode(''),'/15111/21401.html','true',[],''],
		['PAGE','15174',jdecode('Cancellations+'),jdecode(''),'/15111/15174.html','true',[],'']
	],''],
	['PAGE','15237',jdecode('Professional+Network'),jdecode(''),'/15237/index.html','true',[ 
		['PAGE','46301',jdecode('Events'),jdecode(''),'/15237/46301.html','true',[],''],
		['PAGE','46001',jdecode('Calendar'),jdecode(''),'/15237/46001.html','true',[],''],
		['PAGE','15258',jdecode('Surveys'),jdecode(''),'/15237/15258.html','false',[],''],
		['PAGE','20601',jdecode('Resources'),jdecode(''),'/15237/20601.html','true',[],'']
	],''],
	['PAGE','53301',jdecode('Education+Tools'),jdecode(''),'/53301.html','true',[],''],
	['PAGE','15195',jdecode('Contact+Us'),jdecode(''),'/15195/index.html','true',[ 
		['PAGE','39901',jdecode('Newsletters'),jdecode(''),'/15195/39901.html','true',[],'']
	],''],
	['PAGE','15279',jdecode('Links'),jdecode(''),'/15279.html','false',[],'']];
var siteelementCount=39;
theSitetree.topTemplateName='Profile';
theSitetree.paletteFamily='003399';
theSitetree.keyvisualId='1235';
theSitetree.keyvisualName='handschlag.jpg';
theSitetree.fontsetId='190';
theSitetree.graphicsetId='228';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Profile',
				paletteFamily: 	'003399',
				keyvisualId: 	'1235',
				keyvisualName: 	'handschlag.jpg',
				fontsetId: 		'190',
				graphicsetId: 	'228',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'003399',
				b_color: 		'000066',
				c_color: 		'000000',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36201',
internalId:  '',
customField: '20100305-185954'
};
webappMappings['7008']=webappMappings['7008-25949']={
webappId:    '7008',
documentId:  '15195',
internalId:  '25949',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46301',
internalId:  '',
customField: '20100513-234526'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14943',
internalId:  '',
customField: '20100423-165152'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14901',
internalId:  '',
customField: '20100513-135412'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '39901',
internalId:  '',
customField: '20100423-172846'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14964',
internalId:  '',
customField: '20100305-123624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15601',
internalId:  '',
customField: '20100308-181609'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36222',
internalId:  '',
customField: '20100305-191227'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14985',
internalId:  '',
customField: '20100304-083817'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15006',
internalId:  '',
customField: '20100423-172611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15111',
internalId:  '',
customField: '20100219-174931'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15132',
internalId:  '',
customField: '20100513-141143'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15153',
internalId:  '',
customField: '20100219-183416'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15174',
internalId:  '',
customField: '20100304-085107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15195',
internalId:  '',
customField: '20100423-172706'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15237',
internalId:  '',
customField: '20100513-234044'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15258',
internalId:  '',
customField: '20100304-085830'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15279',
internalId:  '',
customField: '20100304-090137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18901',
internalId:  '',
customField: '20100513-234640'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46001',
internalId:  '',
customField: '20100610-021704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20601',
internalId:  '',
customField: '20100219-173028'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21401',
internalId:  '',
customField: '20100219-184554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19601',
internalId:  '',
customField: '20100224-151347'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23422',
internalId:  '',
customField: '20100225-090838'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23443',
internalId:  '',
customField: '20100318-175517'
};
webappMappings['1501']=webappMappings['1501-27765297']={
webappId:    '1501',
documentId:  '14901',
internalId:  '27765297',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19622',
internalId:  '',
customField: '20100318-175433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19643',
internalId:  '',
customField: '20100528-193332'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19664',
internalId:  '',
customField: '20100318-175311'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19685',
internalId:  '',
customField: '20100318-175700'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '23401',
internalId:  '',
customField: '20100318-175634'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28801',
internalId:  '',
customField: '20100305-141238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19706',
internalId:  '',
customField: '20100303-182118'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19727',
internalId:  '',
customField: '20100308-183935'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19748',
internalId:  '',
customField: '20100308-190312'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19769',
internalId:  '',
customField: '20100304-073244'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19790',
internalId:  '',
customField: '20100304-074550'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19811',
internalId:  '',
customField: '20100304-075448'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19832',
internalId:  '',
customField: '20100304-080226'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '53301',
internalId:  '',
customField: '20100607-133904'
};
var canonHostname = 'cmworker03.yourhostingaccount.com';
var accountId     = 'AENDU0INLC2U';
var companyName   = 'Acute+Care+Education+Associates%2C+Inc.';
var htmlTitle	  = 'Nursing+Continuing+Education--Acute+Care+Education+Associates';
var metaKeywords  = 'inhouse+nursing+continuing+education%2C+nursing+continuing+education%2C+continuing+education+nursing%2C+nursing+staff+development%2C+staff+development%2C+contact+hours';
var metaContents  = 'Inhouse+nursing+continuing+education+and+professional+nursing+education+services.++';
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();
};
