/* [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 POS_TARGET=8;
var theSitetree=[ 
	['PAGE','40512',jdecode('Home'),jdecode(''),'/40512.html','true',[],'',''],
	['PAGE','49912',jdecode('Attorney+Profiles'),jdecode(''),'/49912/index.html','true',[ 
		['PAGE','28533',jdecode('Judy+Wahrenberger'),jdecode(''),'/49912/28533.html','true',[],'',''],
		['PAGE','28554',jdecode('JoAnn+Pietro'),jdecode(''),'/49912/28554.html','true',[],'',''],
		['PAGE','28575',jdecode('Maureen+Mahoney'),jdecode(''),'/49912/28575.html','true',[],'',''],
		['PAGE','28433',jdecode('Cyndee+Allert'),jdecode(''),'/49912/28433.html','true',[],'','']
	],'',''],
	['PAGE','49312',jdecode('Literature'),jdecode(''),'/49312/index.html','true',[ 
		['PAGE','28638',jdecode('Articles'),jdecode(''),'/49312/28638.html','true',[],'',''],
		['PAGE','28412',jdecode('Publications'),jdecode(''),'/49312/28412.html','true',[],'',''],
		['PAGE','49112',jdecode('Lectures'),jdecode(''),'/49312/49112.html','true',[],'','']
	],'',''],
	['PAGE','28617',jdecode('Directions'),jdecode(''),'/28617.html','true',[],'',''],
	['PAGE','29412',jdecode('Contact+Us'),jdecode(''),'/29412.html','true',[],'',''],
	['PAGE','28659',jdecode('Interesting+links'),jdecode(''),'/28659.html','true',[],'','']];
var siteelementCount=13;
theSitetree.topTemplateName='Angkor';
theSitetree.paletteFamily='A5B351';
theSitetree.keyvisualId='6893';
theSitetree.keyvisualName='kv_6893.jpg';
theSitetree.fontsetId='11211';
theSitetree.graphicsetId='12031';
theSitetree.contentColor='657025';
theSitetree.contentBGColor='C1CF70';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Angkor',
				paletteFamily: 	'A5B351',
				keyvisualId: 	'6893',
				keyvisualName: 	'kv_6893.jpg',
				fontsetId: 		'11211',
				graphicsetId: 	'12031',
				contentColor: 	'657025',
				contentBGColor: 'C1CF70',
				a_color: 		'C1CF70',
				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:     'false'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28554',
internalId:  '',
customField: '20090903-113906'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28575',
internalId:  '',
customField: '20090903-114141'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28533',
internalId:  '',
customField: '20090903-111741'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40512',
internalId:  '',
customField: '20090903-113033'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28433',
internalId:  '',
customField: '20090921-140525'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28617',
internalId:  '',
customField: '20100601-104311'
};
webappMappings['7008']=webappMappings['7008-4619']={
webappId:    '7008',
documentId:  '29412',
internalId:  '4619',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28638',
internalId:  '',
customField: '20090826-113522'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28412',
internalId:  '',
customField: '20100601-103828'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28659',
internalId:  '',
customField: '20100601-104618'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29412',
internalId:  '',
customField: '20090826-110203'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '40512',
internalId:  '1006',
customField: '1006'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49112',
internalId:  '',
customField: '20090827-130158'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49312',
internalId:  '',
customField: '20090827-130146'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '49912',
internalId:  '',
customField: '20090827-133628'
};
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INLS17';
var companyName   = 'Wahrenberger+%26+Pietro%2C+LLP';
var htmlTitle	  = 'Wahrenberger+%26+Pietro';
var metaKeywords  = 'Wahrenberger%2C+Pietro%2C+Wahrenberger+and+Pietro%2C+Medical+Malpractice%2C+Lawyers%2C+Nurse%2C+Nursing%2C+Attorney%2C+Wahrenberger+%26+Pietro%2C+Wahrenberger+%26+Pietro%2C+LLP%2C+Medical%2C+Malpractice%2C+Board+of+Nursing%2C+';
var metaContents  = 'At+Wahrenberger++Pietro%2C+LLP+our+practice+is+dedicated+to+providing+complete+and+efficient+legal+service+to+health+care+professionals.+We+specialize+in+medical+malpractice+defense+and+health+care+law.';
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();
};
