	var khca_linkPreloadedImgs   = null;		// Global reference an array of link images
	var khca_titleTextDiv        = null;		// Global reference to the title text div
    var khca_curMenuChoice       = null;		// Global reference to the current link menu choice
	
	var khca_personPreloadedImgs = null;		// Global reference an array of person images
	var khca_personImgDiv        = null;		// Global reference to the person img div
	var khca_personNameDiv       = null;		// Global reference to the person name div
	var khca_pracDetailsDiv      = null;		// Global reference to the practitioner details div
	var khca_pracEduDiv          = null;		// Global reference to the practitioner's education details
	var khca_pracCertDiv         = null;		// Global reference to the practitioner's certification details
	var khca_pracAssocDiv        = null;		// Global reference to the practitioner's association details
	var khca_pracExpDiv          = null;		// Global reference to the practitioner's experience details
	var khca_pracProfDiv         = null;		// Global reference to the professional activities
	
	var khca_staffDetailsDiv     = null;		// Global reference to the staff details div
	
	
    function load(menuChoice) {
	  
	  khca_titleTextDiv   = document.getElementById('titleTextDiv');
	  
	  khca_personImgDiv   = document.getElementById('pracImgDiv');
	  khca_personNameDiv  = document.getElementById('personNameDiv');
	  khca_pracDetailsDiv = document.getElementById('pracDetailsDiv');

      khca_pracEduDiv     = document.getElementById('pracEdu');
	  khca_pracCertDiv    = document.getElementById('pracCert');
	  khca_pracAssocDiv   = document.getElementById('pracAssoc');
	  khca_pracExpDiv     = document.getElementById('pracExp');
	  khca_pracProfDiv    = document.getElementById('pracProf');

	  khca_staffDetailsDiv = document.getElementById('staffDetailsDiv');
	  
	  var imgs = new Array();
	  imgs[0]  = 'images/link-main-mouseover.png';
	  imgs[1]  = 'images/link-main-mouseout.png';
	  imgs[2]  = 'images/link-appt-mouseover.png';
	  imgs[3]  = 'images/link-appt-mouseout.png';
	  imgs[4]  = 'images/link-prac-mouseover.png';
	  imgs[5]  = 'images/link-prac-mouseout.png';
	  imgs[6]  = 'images/link-bill-mouseover.png';
	  imgs[7]  = 'images/link-bill-mouseout.png';
	  
	  khca_linkPreloadedImgs = new Array();
	  khca_preloadImages(imgs,khca_linkPreloadedImgs);
	  
	  if(document.images){
	    khca_curMenuChoice = menuChoice;
		khca_setMenuChoice(menuChoice);
	  }
	  
	  var personImgs = new Array();
	  personImgs[0] = 'images/practitioner-pb.jpg';
	  personImgs[1] = 'images/practitioner-jb.jpg';
	  personImgs[2] = 'images/practitioner-ed.jpg';
	  personImgs[3] = 'images/practitioner-wpw.jpg';
	  personImgs[4] = 'images/person-am.jpg';
	  personImgs[5] = 'images/person-je.jpg';
	  personImgs[6] = 'images/person-kh.jpg';
	  personImgs[7] = 'images/person-ld.jpg';
	  
  	  khca_personPreloadedImgs = new Array();
	  khca_preloadImages(personImgs,khca_personPreloadedImgs);
	  
	  khca_setPerson('wpw');
    }


	function khca_preloadImages(imgSrc, imgArray) {
		
		for(var i = 0; i < imgSrc.length; i++){
			imgArray[i]     = document.createElement('img');
			imgArray[i].src = imgSrc[i];
		}
	}


	function khca_setMenuChoice(menuChoice){
		if(document.images) {
			switch(khca_curMenuChoice){
				case "linkMain":
					document.images[khca_curMenuChoice].src = khca_linkPreloadedImgs[1].src;
					break;
				case "linkAppt":
					document.images[khca_curMenuChoice].src = khca_linkPreloadedImgs[3].src;
					break;
				case "linkPrac":
					document.images[khca_curMenuChoice].src = khca_linkPreloadedImgs[5].src;
					break;
				case "linkBill":
					document.images[khca_curMenuChoice].src = khca_linkPreloadedImgs[7].src;
					break;
				default:
					break;
			} 
			
			khca_curMenuChoice = menuChoice;
			
			switch(khca_curMenuChoice){
				case "linkMain":
					document.images[khca_curMenuChoice].src = khca_linkPreloadedImgs[0].src;
					khca_titleTextDiv.innerHTML = 'General information:<br />&nbsp;&nbsp;contact, hours, location';
					break;
				case "linkAppt":
					document.images[khca_curMenuChoice].src = khca_linkPreloadedImgs[2].src;
					khca_titleTextDiv.innerHTML = 'How to make an appointment';
					break;
				case "linkPrac":
					document.images[khca_curMenuChoice].src = khca_linkPreloadedImgs[4].src;
					khca_titleTextDiv.innerHTML = 'Meet our practitioners<br />' +
						'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;and office staff';
					break;
				case "linkBill":
					document.images[khca_curMenuChoice].src = khca_linkPreloadedImgs[6].src;
					khca_titleTextDiv.innerHTML = 'Billing and insurance information';
					break;
				default:
					break;
			}
		}
	}
	
	
	function khca_setPerson(person){
	
		if(document.images) {
			switch(person){
				case "pb":
					khca_staffDetailsDiv.style.display = 'none';
					khca_pracDetailsDiv.style.display  = 'block';
					document.images["personImg"].src = khca_personPreloadedImgs[0].src;
					khca_personNameDiv.innerHTML = '<strong>Patsy Ballard, R.N.</strong>';
				    khca_pracEduDiv.innerHTML    = '';
	  				khca_pracCertDiv.innerHTML   = '';
	  				khca_pracAssocDiv.innerHTML  = '';
				  	khca_pracExpDiv.innerHTML    = '';
	  				khca_pracProfDiv.innerHTML   = '';
					break;
				case "jb":
					khca_staffDetailsDiv.style.display = 'none';
					khca_pracDetailsDiv.style.display  = 'block';
					document.images["personImg"].src    = khca_personPreloadedImgs[1].src;
					khca_personNameDiv.innerHTML        = '<strong>James Broderick, D.P.M.</strong>';
					khca_personNameDiv.style.visibility = 'hidden';
					khca_personNameDiv.style.visibility = 'visible';
					khca_pracEduDiv.innerHTML           = 'Doctor of Podiatric Medicine<br>'                              +
					                                      'Ohio College of Podiatric Medicine, 1988<br><br>'              +
													      'B.Sc. Biology, 1983<br>'                                       +
													      'Springfield College, Springfield, MA';
					khca_pracEduDiv.style.visibility    = 'hidden';
					khca_pracEduDiv.style.visibility    = 'visible';
					khca_pracCertDiv.innerHTML          = 'Diplomate, American Board of Podiatric Surgery';
					khca_pracCertDiv.style.visibility   = 'hidden';
					khca_pracCertDiv.style.visibility   = 'visible';
	  				khca_pracAssocDiv.innerHTML      =
												'<table width="340" border="0" cellspacing="0" cellpadding="4">'          +
												'<tr><td align="center" valign="top" width="22">-</td>'                   +
                                                '<td>Diplomate<br>American Board of Podiatric Surgery</td></tr>'          +
                                                '<tr><td align="center" valign="top">-</td>'                              +
                                                '<td>Fellow<br>American College of Foot and Ankle Surgery</td></tr>'      +
												'<tr><td align="center" valign="top">-</td>'                              +
												'<td>American Podiatric Medical Association</td></tr>'                    +
												'<tr><td align="center" valign="top">-</td>'                              +
												'<td>Southern Tier Division<br>NYS Podiatric Medical Association</td></tr>' +
												'<tr><td align="center" valign="top">-</td>'                              +
												'<td>Representative to NYSPMA House of Delegates</td></tr>'               +
												'</table>';				
			        khca_pracAssocDiv.style.visibility = 'hidden';
			        khca_pracAssocDiv.style.visibility = 'visible';
				  	khca_pracExpDiv.innerHTML        =
'<table width="340" border="0" cellspacing="0" cellpadding="4">' +
'<tr><td width="22" valign="top"><div align="center">-</div></td>'                                                                 +
'<td width="318">Podiatry Private Practice, 1989 - Present<br />Penn Yan, NY and Canandaigua, NY</td></tr>'                        +
'<tr><td valign="top"><div align="center">-</div></td>'                                                                            +
'<td>Medical Staff, Current<br />Soldiers and Sailors Memorial Hospital, Penn Yan, NY</td></tr>'                                   +
'<tr><td valign="top"><div align="center">-</div></td>'                                                                            +
'<td>Consulting, Current<br />Cayuga Medical Center, Ithaca, NY</td></tr>'                                                         +
'<tr><td valign="top"><div align="center">-</div></td>'                                                                            +
'<td>Podiatric Medicine and Surgery Residency, 1988 - 1989<br />VA Medical Center, East Orange, NJ</td></tr>'                      +
'</table>';
					khca_pracExpDiv.style.visibility = 'hidden';
					khca_pracExpDiv.style.visibility = 'visible';
	  				khca_pracProfDiv.innerHTML = 
'<table width="340" border="0" cellspacing="0" cellpadding="0">'                                   +
'<tr><td colspan="2">Publications and Lectures:</td></tr>'                                         +
'<tr><td valign="top" width="15">-</td>'                                                           +
'<td width="318">Hypothyroidism - Systemic and Local Diagnostic Signs and Symptoms. '              +
'Journal of Current Podiatric Medicine, March, 1989.</td></tr>'                                    +
'<tr><td valign="top">-</td>'                                                                      +
'<td>Classification and Comrehensive Treatment Reference Index of Leg and Foot Ulcers, '           +
'Journal of Current Podiatric Medicine, June, 1990.</td></tr>'                                     +
'<tr><td valign="top">-</td><td>Diabetic Footcare (lecture)</td></tr>'                             +
'<tr><td valign="top">-</td><td>Antifungal Options for Treating Onychomycosis (lecture)</td></tr>' +
'<tr><td valign="top">-</td><td>Footcare and Multiple Sclerosis (lecture)</td></tr>'               +
'</table>'
					khca_pracProfDiv.style.visibility = 'hidden';
					khca_pracProfDiv.style.visibility = 'visible';
					break;
				case "ed":
					khca_staffDetailsDiv.style.display = 'none';
					khca_pracDetailsDiv.style.display  = 'block';
					document.images["personImg"].src = khca_personPreloadedImgs[2].src;
					khca_personNameDiv.innerHTML     = '<strong>Eleanor Dewitt, M.D.</strong>';
					khca_pracEduDiv.innerHTML        = 
					'Senior Resident in Internal Medicine, 1981-1983<br>'                 +
                    'University of Rochester Associated Hospitals Program<br><br>'        +
					'Internship in Internal Medicine, 1980-1981<br>'                      +
					'University of Rochester Associated Hospitals Program<br><br>'        +
					'Doctor of Medicine, 1976-1980<br>'                                   +
					'Duke University School of Medicine, Durham , North Carolina<br><br>' +
					'B.A. Biology, Phi Beta Kappa<br>'                                    +
					'College of Wooster, Wooster, Ohio';
					khca_pracEduDiv.style.visibility = 'hidden';
					khca_pracEduDiv.style.visibility = 'visible';
	  				khca_pracCertDiv.innerHTML       = 
					'Board Certification in Internal Medicine, 1997<br>'                +
					'American Board of Medicin<br><br>'                                 +
					'Diplomate National Board of Medical Examiners, 1981<br><br>'       +
					'Honors:<br>'                                                       +
					'American Women&rsquo;s Medical Association Achievement<br>' +
					'Citation for work done on a Cherokee Indian Reservation.<br><br>'  +
					'Independent Study Honors, College of Wooster<br>';
					khca_pracCertDiv.style.visibility = 'hidden';
					khca_pracCertDiv.style.visibility = 'visible';
	  				khca_pracAssocDiv.innerHTML      = 
					'Attending Physician, 1987 - Present<br>Soldiers & Sailors Memorial Hospital';
				  	khca_pracExpDiv.innerHTML        = 'Private Practice of Internal Medicine, 1987 - Present.';
					khca_pracExpDiv.style.visibility = 'hidden';
					khca_pracExpDiv.style.visibility = 'visible';
	  				khca_pracProfDiv.innerHTML       =  'Board Member, 1998 - Present<br>'               +
														'Finger Lakes Regional Health Systems <br><br>'  +
														'Board Member, 1996 - 1997<br>'                  +
														'Soldiers & Sailors Memorial Hospital<br><br>'   +
														'Health Officer, Present<br>'                    +
														'Penn Yan Village';
					khca_pracProfDiv.style.visibility = 'hidden';
					khca_pracProfDiv.style.visibility = 'visible';
					break;
				case "wpw":
					khca_staffDetailsDiv.style.display = 'none';
					khca_pracDetailsDiv.style.display  = 'block';
					document.images["personImg"].src = khca_personPreloadedImgs[3].src;
					khca_personNameDiv.innerHTML     = '<strong>William P. Welbourne, M.D.</strong>';
					khca_pracEduDiv.innerHTML        = 
					'<table width="340" border="0" cellspacing="0" cellpadding="1">'                     +
					'<tr><td valign="top" width="15">-</td>'                                             +
					'<td valign="top" width="325">Senior Resident in Internal Medicine 1975-1976<br />'  +
					'University of Rochester Associated Hospitals Program</td></tr>'                     +
					'<tr><td valign="top">-</td><td valign="top">Fellowship, 1974-1975<br />'            +
					'University of Rochester Dept. of Community Medicine</td></tr>'                      +
					'<tr><td valign="top">-</td>'                                                        +
					'<td valign="top">Residency in Internal Medicine 1972-1974<br />'                    +
					'University of Rochester Strong Memorial Hospital</td></tr>'                         +
					'<tr><td valign="top">-</td><td valign="top">Doctor of Medicine, 1972<br />'         +
					'Pritzker School of Medicine, University of Chicago</td></tr>'                       +
					'<tr><td valign="top">-</td><td valign="top">B.A. Biology and Chemistry, 1968<br />' +
					'Wright State University, Dayton, Ohio</td></tr></table>';
					khca_pracEduDiv.style.visibility = 'hidden';
					khca_pracEduDiv.style.visibility = 'visible';
	  				khca_pracCertDiv.innerHTML   = 
					'Board Certification in Internal Medicine, 1976<br>'  +
					'American Board of Internal Medicine<br><br>'         +
					'Diplomate National Board of Medical Examiners, 1973';
					khca_pracCertDiv.style.visibility = 'hidden';
					khca_pracCertDiv.style.visibility = 'visible';
	  				khca_pracAssocDiv.innerHTML  = 
					'Attending Physician, 1977 - Present<br>'                      +
					'Soldiers & Sailors Memorial Hospital<br><br>'                 +
					'Clinical Assistant Professor of Medicine, 1977 - Present<br>' +
					'University of Rochester School of Medicine<br><br>'           +
					'American College of Physician Executives, 1996 - Present<br>' +
					'American Society of Internal Medicine, 1977 - Present<br>'    +
					'Courtesy Attending Staff, 1977 - Present<br>'                 +
					'Rochester General Hospital';
					khca_pracAssocDiv.style.visibility = 'hidden';
					khca_pracAssocDiv.style.visibility = 'visible';
				  	khca_pracExpDiv.innerHTML    = 
					'<table width="340" border="0" cellspacing="0" cellpadding="0">'                        +
					'<tr><td valign="top" width="15">-</td>'                                                +
					'<td valign="top" width="325">President and Founding Physician, 1977 - Present<br />'   +
					'Keuka Health Care Associates, P.C.</td></tr><tr><td valign="top">-</td>'               +
					'<td valign="top">Associate Medical Director, 1996 - Present<br />'                     +
					'Medical Director, Intensive Care Unit, 1980 - 1996<br />'                              +
					'Medical Director, Respiratory Care Services, 1980 - Present<br />'                     +
					'Medical Director, Cardiac Rehabilitation Program, 1994<br />'                          +
					'Soldiers &amp; Sailors Memorial Hospital</td></tr>'                                    +
					'<tr><td valign="top">-</td><td valign="top">Vice President, 1979 -1984<br />'          +
					'PCD Software Systems, Inc., Penn Yan, NY</td></tr><tr><td valign="top">-</td>'         +
					'<td valign="top">HMO Medical Staff and Attending Physician, 1976-1977<br />' +
					'Rochester General Hospital</td></tr></table>';
					khca_pracExpDiv.style.visibility = 'hidden';
					khca_pracExpDiv.style.visibility = 'visible';
	  				khca_pracProfDiv.innerHTML   = 
					'<table width="340" border="0" cellspacing="0" cellpadding="0">'                   +
					'<tr><td valign="top" width="15">-</td>'                                           +
					'<td valign="top" width="325">Board Member, 1996 - Present<br />'                  +
					'Physician&rsquo;s IPA, Finger Lakes Area, NY</td></tr>'                                +
					'<tr><td valign="top">-</td><td valign="top">Board Chairman, 1995 - Present<br />' +
					'Finger Lakes Physicians for Community Health</td></tr>'                           +
					'<tr><td valign="top">-</td>'                                                      +
					'<td valign="top">Hospital Networking Steering Committee, 1996 -   1997<br />'     +
					'Geneva Regional Health Systems, S &amp; S Memorial   Hospital</td></tr>'          +
					'<tr><td valign="top">-</td>'                                                      +
					'<td valign="top">Represented S &amp; S Memorial Hospital, 1994 - 1996<br />'      +
					'Finger Lakes Hospital Task Force on Networking</td></tr>'                         +
					'<tr><td valign="top">-</td>'                                                      +
					'<td valign="top">Medical Staff President, 1983, 1987-1989, 1994-1996<br />'       +
					'Soldiers and Sailors Memorial Hospital</td></tr></table>';
					khca_pracProfDiv.style.visibility = 'hidden';
					khca_pracProfDiv.style.visibility = 'visible';
					break;
				case "am":
					khca_staffDetailsDiv.style.display = 'block';
					khca_pracDetailsDiv.style.display  = 'none';
					document.images["personImg"].src = khca_personPreloadedImgs[4].src;
					khca_personNameDiv.innerHTML     = '<strong>Alice MacKercher</strong>';
					khca_staffDetailsDiv.innerHTML =
					'&nbsp;&nbsp;&nbsp;Alice MacKerchar is responsible for outpatient and office billing. '     +
					'She is the pleasant woman who calculates your office charges, fills '    +
					'out laboratory requisitions, schedules routine outpatient testing '      +
					'(pulmonary function tests, echocardiograms, electrocardiograms, '        +
					'laboratory bloodwork, etc.), and is responsible for worker\'s '          +
					'compensation billing, HMO co-payments and insurance. She helps '         +
					'patients with Medicare and Medicaid billing, deductables calculation, '  +
					'and other aspects of patient health care finance.<br><br>'               +
					'&nbsp;&nbsp;&nbsp;Alice has been with Keuka Health Care Associates since 1988. '           +
					'If you have a question about outpatient billing, just ask Alice!';
					break;
				case "je":
					khca_staffDetailsDiv.style.display = 'block';
					khca_pracDetailsDiv.style.display  = 'none';
					document.images["personImg"].src = khca_personPreloadedImgs[5].src;
					khca_personNameDiv.innerHTML     = '<strong>Joanna Eveland</strong>';
					khca_staffDetailsDiv.innerHTML = 
					'&nbsp;&nbsp;&nbsp;Joanna Eveland is our medical office assistant. She greets ' +
					'patients in the waiting room and escorts them to our exam rooms. '             +
					'Her job is to take a patient&rsquo;s vital signs, get their most recent '            +
					'lab or consultation reports assembled for the doctor, and to ask '             +
					'patients to highlight their major concerns for the current office '            +
					'visit. She is trained to do a variety of professional tasks such '             +
					'as doing electrocardiograms (EKG&rsquo;s), blood sugar tests, collecting '           +
					'and testing urine samples, and assisting in preparation of slides '            +
					'for PAP tests before they are sent to the pathologist.<br><br>'                +
					'&nbsp;&nbsp;&nbsp;In addition, she is assists the office staff by doing filing, ' +
					'copying charts, and transporting patients who need to be taken to '               +
					'or from the hospital lab or X-ray departments.';
					break;
				case "kh":
					khca_staffDetailsDiv.style.display = 'block';
					khca_pracDetailsDiv.style.display  = 'none';
					document.images["personImg"].src = khca_personPreloadedImgs[6].src;
					khca_personNameDiv.innerHTML     = '<strong>Karen Hawley, L.P.N.</strong>';
					khca_staffDetailsDiv.innerHTML = 
					'&nbsp;&nbsp;&nbsp;Karen Hawley is a Licensed Practical Nurse. She works in the Lab, '  +
					'helping our doctors with patient calls, prescription renewals, patient concerns, and ' +
					'assists with laboratory procedures, and scheduling functions. Karen acts as a '        +
					'liaison between the patients and their physicians when the doctor is busy with '       +
					'office or hospital calls. She has nearly twenty years of direct patient care '         +
					'experience in inpatient and outpatient settings.<br><br>'                              +
					'&nbsp;&nbsp;&nbsp;Karen assists the doctors with medical procedures, relays '          +
					'prescription information, triages patient complaints and questions and assists '       +
					'in arranging for specialty referrals. She also assists in the completion of '          +
					'insurance and disability forms for patients, and obtains authorization from the '      +
					'insurance companies for various procedures and referrals.';
					break;
				case "ld":
					khca_staffDetailsDiv.style.display = 'block';
					khca_pracDetailsDiv.style.display  = 'none';
					document.images["personImg"].src = khca_personPreloadedImgs[7].src;
					khca_personNameDiv.innerHTML     = '<strong>Linda Dickerson</strong>';
					khca_staffDetailsDiv.innerHTML = 
					'&nbsp;&nbsp;&nbsp;Linda has the responsibility for maintaining the patient medical records. '      +
					'She transcribes office notes, consultations, and referral letters dictated by '  +
					'the physicians. She organizes the medical charts, and helps provide the record ' +
					'of symptoms, laboratory studies, prescriptions, treatments and outcomes that '   +
					'are important to the continuity of care of the patient.<br><br>'                 +
					'&nbsp;&nbsp;&nbsp;She is an accomplished typist with an extensive knowledge of medical '           +
					'terminology. She is careful that the transcriptions accurately reflect the '     +
					'patient encounter, and that medication dosages are correctly recorded. Linda '   +
					'also assists with telephone answering, filing, copying records, and mail '       +
					'handling. She is an asset to our practice.'
					break;
				default:
					break;
			}	
		}
		
	}