/* Spot Rollover

	smooth jquery rollover with elegant preload trick from http://bendewey.wordpress.com/

	works in Safari3, FireFox2,FifeFox3, Opera9.5, IE6, IE7
		
	fixme: fade times don't seem to work in any browser, why? why? why? why?
	fixme: is the 'disabled' feature useless?
*/ 

$(document).ready(function()
{
    $('.rollover:enabled').hover(function()
        {
            $(this).find('.overImage').fadeIn('10,1');
        },
        function()
        {
            $(this).find('.overImage').fadeOut('20,1');
        }
    );
    
    $('.rollover:disabled').find('.baseImage').hide();
    $('.rollover:disabled').find('.disabledImage').show();
});

jQuery.extend(jQuery.expr[":"], {
        enabled : function(a){ return !jQuery.attr(a, 'disabled'); },
        disabled : function(a){ return jQuery.attr(a, "disabled"); }
});


jQuery.fn.extend({
    disable : function() {
        return this.each(function(){ jQuery(this).attr("disabled", true); });
    },
    enable : function() {
        return this.each(function(){ jQuery(this).removeAttr("disabled"); });
    },
    toggleDisabled : function() {
        return this.each(function(){
            $(this)[$(this).is(":enabled") ? "disable" : "enable"]();
        });
    }
});1