// Define a global namespace object
var Rapid = window.Rapid || {};

/********************************************************************
 Class: Button
*********************************************************************/
Rapid.Button = function()
{
	//-----------------------------------------------------------------
	function showHoverImage(e)
	{
		var imgSrc = $(this).attr('src' ).replace(".gif", "Hover.gif");
		$(this).attr('src', imgSrc );
	}
	
	//-----------------------------------------------------------------
	function resetImage(e)
	{
		var imgSrc = $(this).attr('src' ).replace("Hover.gif", ".gif");
		$(this).attr('src', imgSrc );
	}
	
	return {
		//---------------------------------------------------------------
		init : function(e)
		{
			$('.btnWithHover').bind('mouseover', showHoverImage).bind( 'mouseout', resetImage );
		}
	}
}();
