$(document).ready(function() {
	//	$("ul#teamlist li a").hover(function() {
//			$listId = $(this).attr('id');
//			$imageToLoad = "image-" + $listId;
//			$imageOutSrc = "images/profile-" + $listId + ".gif";
//			$imageOverSrc = "images/profile-" + $listId + "-over.gif";
//			
//			$("#"+$imageToLoad).attr("src", $imageOverSrc);
//		}, function() {
//			$("#"+$imageToLoad).attr("src", $imageOutSrc);
//		});
//		
		
		$("#teamright img").hover(function() {
			$imageId = $(this).attr('id');
			$listId = $imageId.substr(6,$imageId.length); //get the string from after "image-" to the end of the imageId e.g. "image-brent-wallace" will become "brent-wallace"
			
			$imageOutSrc = "images/profile-" + $listId + ".gif";
			$imageOverSrc = "images/profile-" + $listId + "-over.gif";
			
			
			$("#"+$listId).addClass("selected");
	
		}, function() {
			$("#"+$imageId).attr("src", $imageOutSrc);
			$("#"+$listId).removeClass("selected");
		});
		
	});
