// Requires the metadata plugin
if ($j.fn.metadata) {
    (function($) {
    	$.fn.hoverOver = function(opts) {
    		$.fn.hoverOver.defaults = { };
    		var opts = $.extend({}, $.fn.hoverOver.defaults, opts);
		
    		return this.each(function(idx) {
    		    var data = $(this).metadata();
    		    if (!data.over) return;
    		    $(this).hover(
    		        function() {
    		            $(this).attr('originalSrc', $(this).attr('src'));
    		            $(this).attr('src', data.over);
    		        },
    		        function() {
    		            $(this).attr('src', $(this).attr('originalSrc'));
    		        }
    		    )
    	    });
    	};
    })(jQuery);
    $j(document).ready(function() {
        $j("[class*=over:]").hoverOver();
    })
}
