/* [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','5301',jdecode('Home'),jdecode(''),'/5301.html','true',[],''],
	['PAGE','5352',jdecode('About+us'),jdecode(''),'/5352/index.html','true',[ 
		['PAGE','12801',jdecode('Auxiliary'),jdecode(''),'/5352/12801.html','true',[],''],
		['PAGE','8901',jdecode('Board+Members'),jdecode(''),'/5352/8901.html','true',[],''],
		['PAGE','16401',jdecode('Crossett+Weather'),jdecode(''),'/5352/16401.html','true',[],''],
		['PAGE','16601',jdecode('Driving+Directions'),jdecode(''),'/5352/16601.html','true',[],''],
		['PAGE','10601',jdecode('Privacy+Policy'),jdecode(''),'/5352/10601.html','true',[],'']
	],''],
	['PAGE','5373',jdecode('Services'),jdecode(''),'/5373/index.html','true',[ 
		['PAGE','13101',jdecode('Ashley+Health+Services'),jdecode(''),'/5373/13101.html','true',[],''],
		['PAGE','13122',jdecode('Ashley+Women%26%23x27%3Bs+Services'),jdecode(''),'/5373/13122.html','true',[],''],
		['PAGE','13143',jdecode('Diabetic+Clinic'),jdecode(''),'/5373/13143.html','true',[],''],
		['PAGE','13164',jdecode('Generations'),jdecode(''),'/5373/13164.html','true',[],''],
		['PAGE','13185',jdecode('Home+Health'),jdecode(''),'/5373/13185.html','true',[],''],
		['PAGE','13206',jdecode('Obstetrics+%2F+Gynecology'),jdecode(''),'/5373/13206.html','true',[],''],
		['PAGE','14601',jdecode('Occupational+Therapy'),jdecode(''),'/5373/14601.html','true',[],''],
		['PAGE','13311',jdecode('Physical+Therapy'),jdecode(''),'/5373/13311.html','true',[],''],
		['PAGE','13227',jdecode('Psychiatric+Services'),jdecode(''),'/5373/13227.html','true',[],''],
		['PAGE','13248',jdecode('Radiology'),jdecode(''),'/5373/13248.html','true',[],''],
		['PAGE','13269',jdecode('Sleep+Studies'),jdecode(''),'/5373/13269.html','true',[],''],
		['PAGE','13290',jdecode('Skilled+Nursing+Care+%28Swingbed%29'),jdecode(''),'/5373/13290.html','true',[],''],
		['PAGE','13332',jdecode('Wellness+Center'),jdecode(''),'/5373/13332.html','true',[],'']
	],''],
	['PAGE','5394',jdecode('Employment'),jdecode(''),'/5394/index.html','true',[ 
		['PAGE','18901',jdecode('Job+Application'),jdecode(''),'/5394/18901.html','true',[],'']
	],''],
	['PAGE','5415',jdecode('Financial+Services'),jdecode(''),'/5415.html','true',[],''],
	['PAGE','5436',jdecode('Medical+Staff'),jdecode(''),'/5436.html','true',[],''],
	['PAGE','5457',jdecode('What%26%23x27%3Bs+Happening'),jdecode(''),'/5457/index.html','true',[ 
		['PAGE','15201',jdecode('Star+Employee'),jdecode(''),'/5457/15201.html','true',[],''],
		['PAGE','15222',jdecode('Employee+of+the+Year'),jdecode(''),'/5457/15222.html','true',[],''],
		['PAGE','15243',jdecode('Nurse+of+the+Year'),jdecode(''),'/5457/15243.html','true',[],''],
		['PAGE','15264',jdecode('MASH+%26+CHAMPS'),jdecode(''),'/5457/15264.html','true',[],''],
		['PAGE','18401',jdecode('Mia+Rose+Memorial+Garden'),jdecode(''),'/5457/18401.html','true',[],'']
	],''],
	['PAGE','5478',jdecode('Contact+Us'),jdecode(''),'/5478.html','true',[],''],
	['PAGE','5499',jdecode('Web+Nursery'),jdecode(''),'/5499.html','true',[],'']];
var siteelementCount=33;
theSitetree.topTemplateName='Movement';
theSitetree.paletteFamily='3E6E72';
theSitetree.keyvisualId='1754';
theSitetree.keyvisualName='krankenhaus.jpg';
theSitetree.fontsetId='290';
theSitetree.graphicsetId='354';
theSitetree.contentColor='AEDEE2';
theSitetree.contentBGColor='3E6E72';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				name: 			'Movement',
				paletteFamily: 	'3E6E72',
				keyvisualId: 	'1754',
				keyvisualName: 	'krankenhaus.jpg',
				fontsetId: 		'290',
				graphicsetId: 	'354',
				contentColor: 	'AEDEE2',
				contentBGColor: '3E6E72',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				a_color: 		'3E6E72',
				b_color: 		'101C1D',
				c_color: 		'FFFFFF',
				d_color: 		'FFFFFF',
				e_color: 		'FFFFFF',
				f_color: 		'FFFFFF',
				hasCustomLogo: 	'true',
				contentFontFace:'Times New Roman, Times, serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20090717-144636'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '5301',
internalId:  '1006',
customField: '1006'
};
webappMappings['1501']=webappMappings['1501-13958695']={
webappId:    '1501',
documentId:  '5301',
internalId:  '13958695',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5352',
internalId:  '',
customField: '20090720-084903'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5373',
internalId:  '',
customField: '20090720-152551'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5394',
internalId:  '',
customField: '20090717-141042'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5415',
internalId:  '',
customField: '20090720-092905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5436',
internalId:  '',
customField: '20090717-101720'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5457',
internalId:  '',
customField: '20090720-092929'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5478',
internalId:  '',
customField: '20090717-143104'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5499',
internalId:  '',
customField: '20090717-114905'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '8901',
internalId:  '',
customField: '20090717-103553'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '10601',
internalId:  '',
customField: '20090717-114423'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '12801',
internalId:  '',
customField: '20090720-085414'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13122',
internalId:  '',
customField: '20090720-085946'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13143',
internalId:  '',
customField: '20090720-090016'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13164',
internalId:  '',
customField: '20090720-090037'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13185',
internalId:  '',
customField: '20090720-090137'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13206',
internalId:  '',
customField: '20090720-090224'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13227',
internalId:  '',
customField: '20090720-090313'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13248',
internalId:  '',
customField: '20090720-090334'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13269',
internalId:  '',
customField: '20090720-091548'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13290',
internalId:  '',
customField: '20090720-092002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13311',
internalId:  '',
customField: '20090720-092247'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '14601',
internalId:  '',
customField: '20090720-092132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13332',
internalId:  '',
customField: '20090720-092527'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15201',
internalId:  '',
customField: '20090720-093808'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15222',
internalId:  '',
customField: '20090720-094318'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15243',
internalId:  '',
customField: '20090720-094419'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15264',
internalId:  '',
customField: '20090720-154107'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '13101',
internalId:  '',
customField: '20090720-152506'
};
webappMappings['7080']=webappMappings['7080-339']={
webappId:    '7080',
documentId:  '16401',
internalId:  '339',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16401',
internalId:  '',
customField: '20090720-120823'
};
webappMappings['2002']=webappMappings['2002-routing']={
webappId:    '2002',
documentId:  '16601',
internalId:  'routing',
customField: 'en_US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '16601',
internalId:  '',
customField: '20090720-121406'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18401',
internalId:  '',
customField: '20090720-154611'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18901',
internalId:  '',
customField: '20090728-110204'
};
var canonHostname = 'diywk00.verio.stngva01.us.diy-servers.net';
var accountId     = 'AVFL30INHI01';
var companyName   = 'Ashley+County+Medical+Center';
var htmlTitle	  = 'Ashley+County+Medical+Center';
var metaKeywords  = '';
var metaContents  = '';
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();
};
