﻿$.fn.overstate = function(){
	this.each(function(){
		$("<img />").attr("src", $(this).attr("srcover"));
		$(this)
			.data("src", $(this).attr("src"))
			.data("srcover", $(this).attr("srcover"))
			.mouseover(function(){
				$(this).attr("src", $(this).data("srcover"));
			})
			.mouseout(function(){
				$(this).attr("src", $(this).data("src"));
			});
	});
		
}
