/* [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','5801',jdecode('Resolute+Home'),jdecode(''),'/5801/index.html','true',[ 
		['PAGE','42801',jdecode('Mission+Statement'),jdecode(''),'/5801/42801.html','true',[],'']
	],''],
	['PAGE','5873',jdecode('Individuals+%26+Families'),jdecode(''),'/5873/index.html','true',[ 
		['PAGE','5852',jdecode('The+Resolute+Difference'),jdecode(''),'/5873/5852.html','true',[],''],
		['PAGE','22001',jdecode('Fee+Schedule'),jdecode(''),'/5873/22001.html','true',[],''],
		['PAGE','5957',jdecode('FAQs'),jdecode(''),'/5873/5957.html','false',[],'']
	],''],
	['PAGE','5894',jdecode('Employer+Plans'),jdecode(''),'/5894/index.html','true',[ 
		['PAGE','44501',jdecode('Resolute+Tactics'),jdecode(''),'/5894/44501.html','true',[],''],
		['PAGE','43201',jdecode('Presenteeism'),jdecode(''),'/5894/43201.html','true',[],'']
	],''],
	['PAGE','30801',jdecode('Group+Associations'),jdecode(''),'/30801.html','true',[],''],
	['PAGE','5915',jdecode('Business+Consulting'),jdecode(''),'/5915.html','true',[],''],
	['PAGE','5978',jdecode('About+us'),jdecode(''),'/5978/index.html','true',[ 
		['PAGE','21801',jdecode('Our+team'),jdecode(''),'/5978/21801.html','true',[],'']
	],''],
	['PAGE','5999',jdecode('Contact+Us'),jdecode(''),'/5999.html','true',[],''],
	['PAGE','5936',jdecode('Careers'),jdecode(''),'/5936.html','false',[],''],
	['PAGE','32401',jdecode('Sitemap'),jdecode(''),'/32401.html','true',[],''],
	['PAGE','46301',jdecode('Thank+You+'),jdecode(''),'/46301.html','false',[],''],
	['PAGE','46322',jdecode('Cancellations'),jdecode(''),'/46322.html','false',[],'']];
var siteelementCount=18;
theSitetree.topTemplateName='Care';
theSitetree.paletteFamily='993333';
theSitetree.keyvisualId='218';
theSitetree.keyvisualName='mutter_tochter.jpg';
theSitetree.fontsetId='22';
theSitetree.graphicsetId='14';
theSitetree.contentColor='000066';
theSitetree.contentBGColor='FFFFFF';
var theTemplate={
				name: 			'Care',
				paletteFamily: 	'993333',
				keyvisualId: 	'218',
				keyvisualName: 	'mutter_tochter.jpg',
				fontsetId: 		'22',
				graphicsetId: 	'14',
				contentColor: 	'000066',
				contentBGColor: 'FFFFFF',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'993333',
				b_color: 		'FFFFCC',
				c_color: 		'000000',
				d_color: 		'6A8493',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'false',
				contentFontFace:'Verdana, Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5801',
internalId:  '',
customField: '20091101-164000'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5873',
internalId:  '',
customField: '20091103-152709'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5894',
internalId:  '',
customField: '20091027-220631'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5915',
internalId:  '',
customField: '20090616-104734'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5852',
internalId:  '',
customField: '20091027-172338'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5936',
internalId:  '',
customField: '20090614-232505'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5957',
internalId:  '',
customField: '20091027-155606'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5978',
internalId:  '',
customField: '20091027-141957'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5999',
internalId:  '',
customField: '20091027-143633'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5801',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '30801',
internalId:  '',
customField: '20091027-214409'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '22001',
internalId:  '',
customField: '20091103-153357'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21801',
internalId:  '',
customField: '20091027-143516'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '32401',
internalId:  '',
customField: '20091027-221552'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44501',
internalId:  '',
customField: '20091027-215554'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43201',
internalId:  '',
customField: '20091027-214224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42801',
internalId:  '',
customField: '20091027-222148'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46301',
internalId:  '',
customField: '20091103-100918'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '46322',
internalId:  '',
customField: '20091103-101803'
};
webappMappings['7005']=webappMappings['7005-469']={
webappId:    '7005',
documentId:  '46322',
internalId:  '469',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker01.chi.us.siteprotect.com';
var accountId     = 'AHW050INE93I';
var companyName   = 'RESOLUTE+Health+Care+Advisors';
var htmlTitle	  = 'Resolute+Health+Care+Advisors%3A+Health+Insurance+Claim+Assistance%2C+Personal+Representatives%2C+Claim+Operation+Consulting%2C';
var metaKeywords  = 'claims+assistance+professionals%2C+health+insurance+help%2C+Resolute+Health+Care%2C+resolute%2C+insurance+help%2C+help+with+bills%2C+medical+insurance+help%2C+insurance+advocate%2C++consumer+advocate%2C+claims+help%2C+medicare+help%2C++medicare+consulting%2C+health+care+advocate%2C+health+care+consultant%2C+resolute+health+care%2C+understand+medical+benefits%2C+medical+billing+advocate%2C+claims+advocate%2C+review+my+bills%2C+medical+bill+help%2C+resolute+az%2C+insurance+appeals%2C+personal+representative+';
var metaContents  = 'Resolute+Health+Care+Advisors+-+Claims+Assistance+Professionals.++Assisting+individuals+and+organizations+with+medical+benefits+review%2C+claims+assistance%2C+insurance+appeals%2C+and+business+operations.+Find+out+more+about+our+services+by+clicking+on+the+tab+above.';
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();
};
