$(document).ready(function(){

	//image mouseovers
	$("img.mo").hover(function(){
		extension = this.src.substr(this.src.lastIndexOf('.'));
		this.src = this.src.replace(extension,"-mo"+extension);
	},
	function(){
		this.src = this.src.replace("-mo"+extension,extension);
	});
	
	//category mouseovers
	$(".mo").hover(function(){
		oldsrc = $(this).children("li").children("img").attr("src");
		extension = oldsrc.substr(oldsrc.lastIndexOf('.'));
		newsrc = oldsrc.replace(extension,"-mo"+extension);
		$(this).children("li").children("img").attr("src", newsrc);
	},
	function(){
		newsrc = oldsrc.replace("-mo"+extension,extension);
		$(this).children("li").children("img").attr("src", newsrc);
	});
	
});
