﻿
(function($) {
    $.fn.customFadeIn = function(speed, callback) {
        $(this).fadeIn(speed, function() {
            if (jQuery.browser.msie)
                $(this).get(0).style.removeAttribute('filter');
            if (callback != undefined)
                callback();
        });
    };
    $.fn.customFadeOut = function(speed, callback) {
        $(this).fadeOut(speed, function() {
            if (jQuery.browser.msie)
                $(this).get(0).style.removeAttribute('filter');
            if (callback != undefined)
                callback();
        });
    };
})(jQuery);






$(document).ready(function() {
    if ($('.focus').length > 0) $('.focus')[0].focus();
    $('.onclick').each(function(i) {
        $(this).keypress(function(e) { if (e.which == 13) { $('#' + $(this).attr('clicker')).click(); } });
    });

    $('.nut').draggable({ axis: 'x', opacity: 0.4, cursor: 'e-resize', containment: 'parent', stop: function(e, i) { handleStop(e, i); }, drag: function(e, i) { handleDrag(e, i); } });
    
    
});



