$(document).ready(function(){
$(".rollover").hover(
	function(){
		if($(this).attr("src").indexOf("-over") == -1) {
			var newSrc = $(this).attr("src").replace(".gif","-over.gif#hover");
			$(this).attr("src",newSrc);
		}
	},
	function(){
		if($(this).attr("src").indexOf("-over.gif#hover") != -1) {
			var oldSrc = $(this).attr("src").replace("-over.gif#hover",".gif");
			$(this).attr("src",oldSrc);
		}
	}
);
$(".rolloverpng").hover(
	function(){
		if($(this).attr("src").indexOf("-over") == -1) {
			var newSrc = $(this).attr("src").replace(".png","-over.png#hover");
			$(this).attr("src",newSrc);
		}
	},
	function(){
		if($(this).attr("src").indexOf("-over.png#hover") != -1) {
			var oldSrc = $(this).attr("src").replace("-over.png#hover",".png");
			$(this).attr("src",oldSrc);
		}
	}
);
		});