// JavaScript Document

function homeTabs(currId){
	document.getElementById(currId).className = "centersButtonSelected";
	
	if(currId == 'imgServ'){
		document.getElementById('respCare').className = "centersButtonUp";
		document.getElementById('rehabTher').className = "centersButtonUp";
		document.getElementById('genSurg').className = "centersButtonUp";
		
		document.getElementById('centersText').innerHTML = "At Grande Ronde Hospital, we take pride in knowing our Radiologists and Technicians are well-trained and educated in advanced imaging technology. We provide the high end of a wide array of both standard and cutting edge imaging services to our patients. <a href=\"srvImaging.html\">Take a look at all we do</a>.";
		
		document.getElementById('centersImg').src = "images/homeCentersImaging.jpg";/**/
		
	} else if(currId == 'respCare'){
		document.getElementById('imgServ').className = "centersButtonUp";
		document.getElementById('rehabTher').className = "centersButtonUp";
		document.getElementById('genSurg').className = "centersButtonUp";
		
		document.getElementById('centersText').innerHTML = "At Grande Ronde Hospital, we understand that breath is life. That's why our Respiratory Care department offers a variety of cardiac and neurological services, testing and therapy, as well as our pulmonary services. We're here to help you to breathe easier. <a href=\"srvRespiratory.html\">Learn more</a>. ";
		
		document.getElementById('centersImg').src = "images/homeCentersResp.jpg";
		
	} else if(currId == 'rehabTher'){
		document.getElementById('respCare').className = "centersButtonUp";
		document.getElementById('imgServ').className = "centersButtonUp";
		document.getElementById('genSurg').className = "centersButtonUp";
		
		document.getElementById('centersText').innerHTML = "Our Rehab Therapy services are patient centered, and accomodate your lifestyle and schedule. Our therapists know that an injury or limitation affects your quality of life, so we want to help you get back to enjoying life to the fullest as quickly as possible. <a href=\"srvRehabTherapy.html\">Learn more</a>.";
		
		document.getElementById('centersImg').src = "images/homeCentersRehab.jpg";
		
	} else{
		document.getElementById('respCare').className = "centersButtonUp";
		document.getElementById('rehabTher').className = "centersButtonUp";
		document.getElementById('imgServ').className = "centersButtonUp";
		
		document.getElementById('centersText').innerHTML = "We want our patients to have the best possible experience and outcome. For that reason, we have assembled a dedicated team of compassionate professionals to staff our Surgi-Center, our operating suites and recovery rooms. Our focus is patient comfort, a quicker recovery and quality follow-up care. <a href=\"srvSurgery.html\">Learn more</a>.";
		
		document.getElementById('centersImg').src = "images/homeCentersSurgery.jpg";

	}	
	
}
