document.observe("dom:loaded", function() {
    Element.observe('login', 'click', function(event) {
        client_login();
    });
    Element.observe('flogin', 'submit', function(event) {
        //if (event.keyCode == Event.KEY_RETURN) {
            event.stop();
            client_login();
        //}
    });

    show_tooltip();
});

function show_tooltip() {
    $$('span.tt2').each(function(tt) {
        var info_id = tt.down();
        tt.observe('mouseover', function() {
            info_id.show();
        });
        tt.observe('mouseout', function() {
            info_id.hide();
        });
    });
}
