altImageText = new Array("Cover Image: 1","Cover Image: 2","Cover Image: 3","Cover Image: 4");
contentAreaText = new Array(
"<h3>Learning by Doing</h3><p></p>",
"<h3>Science Makes House Calls</h3><p>Translating medical discoveries into patient treatments has not always happened quickly. Mayo Clinic is one of the first NIH-funded centers focusing on streamlining that process. Part of the goal is to engage patients and practitioners on a community level for input and exchanges, and to involve a larger and more diverse range of participants in clinical research studies. As Mayo's CTSA explains on its web site, Everyone can be involved in discovery.</p>",
"<h3>Health Care Education</h3><p></p>",
"<h3>Huntington's Disease: Tracking a Genetic Killer</h3><p>Cancer and multiple neurodegenerative diseases are associated with DNA instability. Cynthia McMurray, Ph.D., leads a team that is investigating how DNA is unstably transmitted, why expanded proteins cause disease, and the role of enzymes in DNA repair. The team recently confirmed theories that a miscue of the body's genetic repair system may cause Huntington's disease. This finding is the first confirmed connection between DNA repair and the progression of the disease. Dr. McMurray's team is now exploring how the mutant huntingtin protein impairs brain function, and is using their findings to develop new approaches for treating or preventing the disease, with application to other genetic disorders.</p>");

function getHttpRequestPage(idx,   targetobj){
	var alist = targetobj.parentNode.parentNode.getElementsByTagName("a");  
	for (var i=0; i<alist.length; i++){
		alist[i].className="";		
	}

	index = idx.split('reader')[1];
	index = index.split('.')[0];

	document.mainheaderimage.src="images/home-feature"+index+".jpg";
	//alert("../images/home-feature"+index+".jpg");
	document.mainheaderimage.alt=altImageText[index-1];
	alist[index-1].className="selected";  	
	var contArea = document.getElementById("contentarea");
	contArea.innerHTML="<div>"+ contentAreaText[index-1] +"</div>";
}

function startJavaScript(){
	//loop through passed UL ids
	for (var i=0; i<arguments.length; i++){ 
		var ulobj=document.getElementById(arguments[i])
		// Array containing the LI elements within UL
		var ulist=ulobj.getElementsByTagName("li") 

		//loop through each LI element
		for (var x=0; x<ulist.length; x++){ 
			var ulistlink=ulist[x].getElementsByTagName("a")[0]
			ulistlink.index=x

			if (ulistlink.getAttribute("rel")){ 
				ulistlink.onmouseover=function(){ getHttpRequestPage(this.getAttribute("id"), this); return true; }
			}
		}
	}
}