﻿ql.loaded(function () {
    function csw() {
        $('#dim,.coworker').hide();
    }
    var o = $('a.close');
    o.click(csw);
    if (o.size() > 0) {
        $('body').click(function (e) {
            var el = $(e.target);
            if (!el.hasClass('coworker') && !el.hasClass('wd-start-edit') && el.parents(".coworker,.wd-start-edit,#wd-top,.ui-dialog").size() < 1) {
                csw();
            }
        });
    }

});
