function buttonHovers(img) {
	jQuery.each($("img"), function() {
		if ($(this).attr("src").split("_off")[0] == img) {
			var file = $(this).attr("src").split("_off");
			$(this).hover(function() {
				$(this).attr("src", file[0] + "_on" + file[1]);
			}, function() {
				$(this).attr("src", file[0] + "_off" + file[1]);
			});
		}
	});
}

$(document).ready(function() {
	if (!isIe6) {
		jQuery.each(buttons, function() {
			buttonHovers(this);
		});
	}
}); 