/* [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','501',jdecode('Home'),jdecode(''),'/501.html','true',[],'',''],
	['PAGE','552',jdecode('About+us'),jdecode(''),'/552/index.html','true',[ 
		['PAGE','15743',jdecode('Irwin+Silverman%2C+MD'),jdecode(''),'/552/15743.html','true',[],'',''],
		['PAGE','15701',jdecode('Micah+J.+Eimer%2C+MD'),jdecode(''),'/552/15701.html','true',[],'',''],
		['PAGE','20301',jdecode('Alan+Zunamon%2C+MD'),jdecode(''),'/552/20301.html','true',[],'',''],
		['PAGE','34439',jdecode('Michael+Waligora%2C+MD'),jdecode(''),'/552/34439.html','true',[],'',''],
		['PAGE','34448',jdecode('Richard+Stagl%2C+MD'),jdecode(''),'/552/34448.html','true',[],'',''],
		['PAGE','34536',jdecode('Tim+McDonough%2C+MD'),jdecode(''),'/552/34536.html','true',[],'',''],
		['PAGE','34746',jdecode('Jason+Robin%2C+MD'),jdecode(''),'/552/34746.html','true',[],'',''],
		['PAGE','36391',jdecode('Joseph+Messer%2C+MD'),jdecode(''),'/552/36391.html','true',[],'',''],
		['PAGE','31001',jdecode('Jill+Bass%2C+Office+Manager'),jdecode(''),'/552/31001.html','true',[],'',''],
		['PAGE','31022',jdecode('Skip+Felten%2C+Echo+Tech'),jdecode(''),'/552/31022.html','true',[],'',''],
		['PAGE','34830',jdecode('Michele+Stejskal%2C+Nuc+Tech'),jdecode(''),'/552/34830.html','true',[],'',''],
		['PAGE','31043',jdecode('Sheri+Marshall%2C+Nurse'),jdecode(''),'/552/31043.html','true',[],'','']
	],'',''],
	['PAGE','657',jdecode('Testing'),jdecode(''),'/657.html','true',[],'',''],
	['PAGE','35102',jdecode('Testing+Instructions'),jdecode(''),'/35102/index.html','true',[ 
		['PAGE','35111',jdecode('Nuclear+Stress'),jdecode(''),'/35102/35111.html','true',[],'',''],
		['PAGE','35120',jdecode('Echo+Stress'),jdecode(''),'/35102/35120.html','true',[],'',''],
		['PAGE','35129',jdecode('MUGA'),jdecode(''),'/35102/35129.html','true',[],'','']
	],'',''],
	['PAGE','741',jdecode('Healthy+Living'),jdecode(''),'/741.html','true',[],'',''],
	['PAGE','5301',jdecode('Insurance+Information'),jdecode(''),'/5301.html','true',[],'',''],
	['PAGE','36770',jdecode('Download+Forms'),jdecode(''),'/36770.html','true',[],'',''],
	['PAGE','762',jdecode('Interesting+Links'),jdecode(''),'/762.html','true',[],'',''],
	['PAGE','21901',jdecode('CAGE+in+the+Community'),jdecode(''),'/21901/index.html','true',[ 
		['PAGE','29101',jdecode('Cooking+With+Cage'),jdecode(''),'/21901/29101.html','true',[],'',''],
		['PAGE','36980',jdecode('Park+Center+Health+Fair+2010'),jdecode(''),'/21901/36980.html','true',[],'',''],
		['PAGE','36585',jdecode('Heart+Walk+2009'),jdecode(''),'/21901/36585.html','true',[],'','']
	],'',''],
	['PAGE','36601',jdecode('CAGE+Communications'),jdecode(''),'/36601.html','true',[],'',''],
	['PAGE','783',jdecode('Contact+Us'),jdecode(''),'/783/index.html','true',[ 
		['PAGE','18701',jdecode('Send+Us+an+E-Mail'),jdecode(''),'/783/18701/index.html','true',[ 
			['PAGE','19101',jdecode('Send+Us+an+E-Mail+%28follow+up+page%29'),jdecode(''),'/783/18701/19101.html','false',[],'','']
		],'','']
	],'','']];
var siteelementCount=31;
theSitetree.topTemplateName='Aeskulap';
theSitetree.paletteFamily='C00405';
theSitetree.keyvisualId='2494';
theSitetree.keyvisualName='arzt.jpg';
theSitetree.fontsetId='433';
theSitetree.graphicsetId='487';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Aeskulap',
				paletteFamily: 	'C00405',
				keyvisualId: 	'2494',
				keyvisualName: 	'arzt.jpg',
				fontsetId: 		'433',
				graphicsetId: 	'487',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'FFFFFF',
				b_color: 		'FFFFFF',
				c_color: 		'FFFFFF',
				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:  '36601',
internalId:  '',
customField: '20091007-145704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20100423-153007'
};
webappMappings['1006']=webappMappings['1006-1006']={
webappId:    '1006',
documentId:  '501',
internalId:  '1006',
customField: '1006'
};
webappMappings['7060']=webappMappings['7060-85ab1005158e436a35c7c62ce615d5e4']={
webappId:    '7060',
documentId:  '29101',
internalId:  '85ab1005158e436a35c7c62ce615d5e4',
customField: 'language:en;country:US;'
};
webappMappings['7008']=webappMappings['7008-8523']={
webappId:    '7008',
documentId:  '18701',
internalId:  '8523',
customField: 'language:en;country:US;'
};
webappMappings['1501']=webappMappings['1501-966510']={
webappId:    '1501',
documentId:  '501',
internalId:  '966510',
customField: '1501'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15743',
internalId:  '',
customField: '20090710-154030'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20100308-111231'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20100423-152418'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20081204-085732'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31001',
internalId:  '',
customField: '20080507-202947'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31022',
internalId:  '',
customField: '20090710-152806'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '31043',
internalId:  '',
customField: '20080507-203242'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20070202-230132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '741',
internalId:  '',
customField: '20100423-174622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '5301',
internalId:  '',
customField: '20070206-215533'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '762',
internalId:  '',
customField: '20091028-111303'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '21901',
internalId:  '',
customField: '20100423-175624'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '29101',
internalId:  '',
customField: '20100423-153433'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36980',
internalId:  '',
customField: '20100226-184622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '783',
internalId:  '',
customField: '20090719-210540'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '18701',
internalId:  '',
customField: '20100102-132524'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '19101',
internalId:  '',
customField: '20070202-230814'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34439',
internalId:  '',
customField: '20081204-090029'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34448',
internalId:  '',
customField: '20081204-090117'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34536',
internalId:  '',
customField: '20090930-115238'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34746',
internalId:  '',
customField: '20100423-152343'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34830',
internalId:  '',
customField: '20091103-132704'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35102',
internalId:  '',
customField: '20090717-170211'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35111',
internalId:  '',
customField: '20090719-211201'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35120',
internalId:  '',
customField: '20090719-212711'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '35129',
internalId:  '',
customField: '20090719-212743'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36391',
internalId:  '',
customField: '20090901-214747'
};
webappMappings['1003']=webappMappings['1003-ahw050ineaqd1240c10886b']={
webappId:    '1003',
documentId:  '36601',
internalId:  'ahw050ineaqd1240c10886b',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36585',
internalId:  '',
customField: '20090930-120740'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36770',
internalId:  '',
customField: '20091103-115924'
};
webappMappings['7060']=webappMappings['7060-f51ff4f9e1a1c20349fcc2eb7440bcb6']={
webappId:    '7060',
documentId:  '36980',
internalId:  'f51ff4f9e1a1c20349fcc2eb7440bcb6',
customField: 'language:en;country:US;'
};
var canonHostname = 'wsc-worker02.chi.us.siteprotect.com';
var accountId     = 'AHW050INEAQD';
var companyName   = 'Cardiovascular+Associates+of+GB+and+EV';
var htmlTitle	  = 'Cardiovascular+Associates+of+Glenbrook+and+Evanston';
var metaKeywords  = 'Cardiology++Stress+Test++Nuclear+Stress+Test++Cholesterol++Carotid++Heart+Attack++Stent+Echocardiogram+Echo+Echocardiography+Cardiologist+LDL+HDL+MI+Myocardial+Infarction+Heart+Failure+Valve+Cardiomyopathy+Plaque+Glenview+Evanston+Cardiologist+ENH+Glenbrook+High+Blood+Pressure%2C+hypertension%2C+pacemaker%2C+micah+eimer%2C+michael+waligora%2C+richard+stagl%2C+alan+zunamon%2C+irwin+silverman%2C+tim+mcdonough%2C+Joseph+Messer';
var metaContents  = 'We+are+a+private+practice+of+seven+cardiologists+with+a+broad+range+of+expertise+including+cardiac+and+vascular+ultrasound%2C+stress+testing%2C+nuclear+cardiology%2C+cholesterol+and+blood+pressure+management+and+interventional+cardiology.';
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();
};
