$(document).ready(doStuff);

function doStuff() {
	$("#homepage_tabs").tabs().show();
	initFeatureLinks();
}

function initFeatureLinks() {
	$("div#button li").hover(
		function(){
			//make a variable and assign the hovered id to it
			var elid = $(this).attr("id");
			//hide the image currently there
			$("div#images div").hide();
			//fade in the image with the same id as the selected buttom
			$("div#images div#"+elid+"_img").fadeIn("slow");
		}
	);
}