/* [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(''), jdecode('%2F501.html'), 'true',[],'',''],
	['PAGE','552',jdecode('About+us'),jdecode(''), jdecode('%2F552%2Findex.html'), 'true',[ 
		['PAGE','15743',jdecode('Irwin+Silverman%2C+MD'),jdecode(''), jdecode('%2F552%2F15743.html'), 'true',[],'',''],
		['PAGE','15701',jdecode('Micah+J.+Eimer%2C+MD'),jdecode(''), jdecode('%2F552%2F15701.html'), 'true',[],'',''],
		['PAGE','20301',jdecode('Alan+Zunamon%2C+MD'),jdecode(''), jdecode('%2F552%2F20301.html'), 'true',[],'',''],
		['PAGE','34439',jdecode('Michael+Waligora%2C+MD'),jdecode(''), jdecode('%2F552%2F34439.html'), 'true',[],'',''],
		['PAGE','34448',jdecode('Richard+Stagl%2C+MD'),jdecode(''), jdecode('%2F552%2F34448.html'), 'true',[],'',''],
		['PAGE','34536',jdecode('Tim+McDonough%2C+MD'),jdecode(''), jdecode('%2F552%2F34536.html'), 'true',[],'',''],
		['PAGE','34746',jdecode('Jason+Robin%2C+MD'),jdecode(''), jdecode('%2F552%2F34746.html'), 'true',[],'',''],
		['PAGE','36391',jdecode('Joseph+Messer%2C+MD'),jdecode(''), jdecode('%2F552%2F36391.html'), 'true',[],'','']
	],'',''],
	['PAGE','40123',jdecode('Patient+Care+Plans'),jdecode(''), jdecode('%2F40123%2Findex.html'), 'true',[ 
		['PAGE','42423',jdecode('CAGE+Lifestyle'),jdecode(''), jdecode('%2F40123%2F42423.html'), 'true',[],'',''],
		['PAGE','42444',jdecode('Patient+Education+Forum'),jdecode(''), jdecode('%2F40123%2F42444.html'), 'true',[],'',''],
		['PAGE','48223',jdecode('Cooking+With+CAGE'),jdecode(''), jdecode('%2F40123%2F48223.html'), 'true',[],'',''],
		['PAGE','43223',jdecode('Atrial+Fibrillation+'),jdecode(''), jdecode('%2F40123%2F43223.html'), 'true',[],'',''],
		['PAGE','47023',jdecode('Lifestyle+Changes'),jdecode(''), jdecode('%2F40123%2F47023.html'), 'true',[],'',''],
		['PAGE','47423',jdecode('Sleep+Apnea'),jdecode(''), jdecode('%2F40123%2F47423.html'), 'true',[],'','']
	],'',''],
	['PAGE','35102',jdecode('Testing+Instructions'),jdecode(''), jdecode('%2F35102%2Findex.html'), 'true',[ 
		['PAGE','35111',jdecode('Nuclear+Stress'),jdecode(''), jdecode('%2F35102%2F35111.html'), 'true',[],'',''],
		['PAGE','35120',jdecode('Echo+Stress'),jdecode(''), jdecode('%2F35102%2F35120.html'), 'true',[],'',''],
		['PAGE','35129',jdecode('MUGA'),jdecode(''), jdecode('%2F35102%2F35129.html'), 'true',[],'','']
	],'',''],
	['PAGE','657',jdecode('Testing'),jdecode(''), jdecode('%2F657.html'), 'true',[],'',''],
	['PAGE','741',jdecode('Healthy+Living'),jdecode(''), jdecode('%2F741%2Findex.html'), 'true',[ 
		['PAGE','44023',jdecode('Health+Partners'),jdecode(''), jdecode('%2F741%2F44023.html'), 'true',[],'','']
	],'',''],
	['PAGE','5301',jdecode('Insurance+Information'),jdecode(''), jdecode('%2F5301.html'), 'true',[],'',''],
	['PAGE','36770',jdecode('Download+Forms'),jdecode(''), jdecode('%2F36770.html'), 'true',[],'',''],
	['PAGE','762',jdecode('Interesting+Links'),jdecode(''), jdecode('%2F762.html'), 'true',[],'',''],
	['PAGE','21901',jdecode('CAGE+in+the+Community'),jdecode(''), jdecode('%2F21901%2Findex.html'), 'true',[ 
		['PAGE','36980',jdecode('Park+Center+Health+Fair+2010'),jdecode(''), jdecode('%2F21901%2F36980.html'), 'true',[],'',''],
		['PAGE','36585',jdecode('Heart+Walk+2009'),jdecode(''), jdecode('%2F21901%2F36585.html'), 'true',[],'',''],
		['PAGE','40207',jdecode('CAGE+at+the+Glenview+Triathalon'),jdecode(''), jdecode('%2F21901%2F40207.html'), 'true',[],'',''],
		['PAGE','40228',jdecode('CAGE+Halloween+5K+2010'),jdecode(''), jdecode('%2F21901%2F40228.html'), 'true',[],'','']
	],'',''],
	['PAGE','36601',jdecode('CAGE+Communications'),jdecode(''), jdecode('%2F36601.html'), 'true',[],'',''],
	['PAGE','783',jdecode('Contact+Us'),jdecode(''), jdecode('%2F783%2Findex.html'), 'true',[ 
		['PAGE','18701',jdecode('Send+Us+an+E-Mail'),jdecode(''), jdecode('%2F783%2F18701%2Findex.html'), 'true',[ 
			['PAGE','19101',jdecode('Send+Us+an+E-Mail+%28follow+up+page%29'),jdecode(''), jdecode('%2F783%2F18701%2F19101.html'), 'false',[],'','']
		],'','']
	],'','']];
var siteelementCount=36;
theSitetree.topTemplateName='Alpha';
theSitetree.paletteFamily='555454';
theSitetree.keyvisualId='-1';
theSitetree.keyvisualName='keyv.jpg';
theSitetree.fontsetId='10461';
theSitetree.graphicsetId='10892';
theSitetree.contentColor='000000';
theSitetree.contentBGColor='FFFFFF';
var localeDef={
  language: 'en',
  country: 'US'
};
var prodDef={
  wl_name: 'valueweb',
  product: 'WSCSYSSSSLYTCR7V'
};
var theTemplate={
				hasFlashNavigation: 'false',
				hasFlashLogo: 	'false',
				hasFlashCompanyname: 'false',
				hasFlashElements: 'false',
				hasCompanyname: 'false',
				name: 			'Alpha',
				paletteFamily: 	'555454',
				keyvisualId: 	'-1',
				keyvisualName: 	'keyv.jpg',
				fontsetId: 		'10461',
				graphicsetId: 	'10892',
				contentColor: 	'000000',
				contentBGColor: 'FFFFFF',
				a_color: 		'000000',
				b_color: 		'000000',
				c_color: 		'000000',
				d_color: 		'555454',
				e_color: 		'555454',
				f_color: 		'555454',
				hasCustomLogo: 	'true',
				contentFontFace:'Arial, Helvetica, sans-serif',
				contentFontSize:'12',
				useFavicon:     'true'
			  };
var webappMappings = {};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36601',
internalId:  '',
customField: '20110102-152803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '43223',
internalId:  '',
customField: '20110226-115131'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '501',
internalId:  '',
customField: '20111205-122610'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42423',
internalId:  '',
customField: '20110609-092547'
};
webappMappings['7008']=webappMappings['7008-8523']={
webappId:    '7008',
documentId:  '18701',
internalId:  '8523',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '42444',
internalId:  '',
customField: '20111205-110927'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40123',
internalId:  '',
customField: '20111205-122002'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15743',
internalId:  '',
customField: '20101110-150017'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '552',
internalId:  '',
customField: '20101110-151335'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '15701',
internalId:  '',
customField: '20101110-150112'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '20301',
internalId:  '',
customField: '20110204-193642'
};
webappMappings['7060']=webappMappings['7060-17f9552ae6f0ad325db74d223e8526e2']={
webappId:    '7060',
documentId:  '40228',
internalId:  '17f9552ae6f0ad325db74d223e8526e2',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40207',
internalId:  '',
customField: '20110102-135803'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '657',
internalId:  '',
customField: '20070202-230132'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '741',
internalId:  '',
customField: '20110419-210827'
};
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: '20111205-111914'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36980',
internalId:  '',
customField: '20100226-184622'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '783',
internalId:  '',
customField: '20111005-084557'
};
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: '20101110-150223'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34448',
internalId:  '',
customField: '20101110-150251'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34536',
internalId:  '',
customField: '20101110-150736'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '34746',
internalId:  '',
customField: '20101110-150811'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '40228',
internalId:  '',
customField: '20110102-135533'
};
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: '20101110-150840'
};
webappMappings['1003']=webappMappings['1003-ahw050ineaqd1240c10886b']={
webappId:    '1003',
documentId:  '36601',
internalId:  'ahw050ineaqd1240c10886b',
customField: 'en:US'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36585',
internalId:  '',
customField: '20110102-135835'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '48223',
internalId:  '',
customField: '20111205-113011'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '36770',
internalId:  '',
customField: '20111205-111456'
};
webappMappings['7060']=webappMappings['7060-f51ff4f9e1a1c20349fcc2eb7440bcb6']={
webappId:    '7060',
documentId:  '36980',
internalId:  'f51ff4f9e1a1c20349fcc2eb7440bcb6',
customField: 'language:en;country:US;'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '44023',
internalId:  '',
customField: '20120126-114302'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47023',
internalId:  '',
customField: '20111205-105404'
};
webappMappings['5000']=webappMappings['5000-']={
webappId:    '5000',
documentId:  '47423',
internalId:  '',
customField: '20111205-110813'
};
var webAppHostname = 'cgi-wsc.chi.us.siteprotect.com:80';
var canonHostname = 'wsc-worker04.chi.us.siteprotect.com';
var accountId     = 'AHW050INEAQD';
var companyName   = 'Cardiovascular+Associates';
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%2C+concierge';
var metaContents  = 'We+are+a+private+practice+of+eight+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();
};

