﻿if (typeof (M8) == "undefined") {
    var M8 = new (function() {
    })();
}

jQuery(function()
{
    $("#header .hdrlogin input").keypress(function(e) { if (e.which == 13) $("#loginform").submit(); });
});

jQuery.fn.scrollable = function() {
    var tbody = $("tbody", this);
    if (tbody.length > 0) {
        if (tbody[0].scrollHeight > 600) {
            if ($.browser.mozilla) {
                $(tbody[0]).css("height", "550px").css("overflow-y", "scroll").css("overflow-x", "hidden");
            }
            else
                $("<div/>").css("height", "550px").css("overflow-y", "scroll").insertBefore(this).append(this);
        }
    }
};

