/* [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','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',[],''],
	['PAGE','48712',jdecode('Judy+Wahrenberger%26%23x27%3Bs+CV'),jdecode(''),'/48712.html','false',[],''],
	['PAGE','47312',jdecode('JoAnn+Pietro%26%23x27%3Bs+CV'),jdecode(''),'/47312.html','false',[],''],
	['PAGE','47354',jdecode('Maureen+Mahoney%26%23x27%3Bs+CV'),jdecode(''),'/47354.html','false',[],''],
	['PAGE','47396',jdecode('Cyndee+Allert%26%23x27%3Bs+CV'),jdecode(''),'/47396.html','false',[],'']];
var siteelementCount=17;
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 theTemplate={
				name: 			'Angkor',
				paletteFamily: 	'A5B351',
				keyvisualId: 	'6893',
				keyvisualName: 	'kv_6893.jpg',
				fontsetId: 		'11211',
				graphicsetId: 	'12031',
				contentColor: 	'657025',
				contentBGColor: 'C1CF70',
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				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: '20090828-112310'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28575',
internalId:  '',
customField: '20090828-112319'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48712',
internalId:  '',
customField: '20090828-112220'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28533',
internalId:  '',
customField: '20090828-112259'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40512',
internalId:  '',
customField: '20090827-120117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28433',
internalId:  '',
customField: '20090827-150234'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28617',
internalId:  '',
customField: '20090827-121655'
};
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: '20090827-123305'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '28659',
internalId:  '',
customField: '20090827-145953'
};
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:  '47354',
internalId:  '',
customField: '20090827-132710'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47312',
internalId:  '',
customField: '20090827-090858'
};
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'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47396',
internalId:  '',
customField: '20090827-090858'
};
var canonHostname = 'wsc-worker03.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';
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();
};
