/// <reference path="../../../Scripts/jquery-1.3.2-vsdoc.js" />
$(document).ready(function() {
    var inProcess = false;

    $.serpentine.login = {
        callback: function(data) {
            inProcess = true;
            var vo = $(".f-box").filter(":visible");
            if (vo.length == 0) {
                $("#nx1-box").toggle();
                $(".nx1").toggleClass("nx-open");
                vo = $("#nx1-box");
            }

            vo.html(data);

            $("#richMenu").data('sMenu').setCurrentItem(4);
        },
        close: function(divId) {
            $(divId).parent().hide();
            this.clean(divId);
        },
        clean: function(divId) {
            $(divId).parent().html("");
            inProcess = false;
        }
    }
});
