jQuery.fn.ForceNumericOnly =
        function () {
            return this.each(function () {
                $(this).keydown(function (e) {

                    var key = e.keyCode;

                    // allow backspace, tab, delete, arrows, numbers and keypad numbers ONLY
                    return (
                        key == 8 || //bs
                        key == 9 || //tab
                        key == 46 || //delete
                        key == 110 || //.
                        key == 190 || //.
                        (key >= 37 && key <= 40) || // arrows
                        (key >= 48 && key <= 57) || // 0-9
                        (key >= 96 && key <= 105)); // keypad
                });
            });
        };

$(function () {
    $("ul.hover").supersubs({
        minWidth: 12,
        // minimum width of sub-menus in em units
        maxWidth: 27,
        // maximum width of sub-menus in em units
        extraWidth: 1 // extra width can ensure lines don't sometimes turn over
        // due to slight rounding differences and font-family
    }).superfish({
        delay: 1000,
        autoArrows: true
    });
});

$().ready(function() {
    $("#donateForm").validate();


});


