$(document).ready(function() {
    $("#frontpage_shortcuts").toggler({
        closePrevious: true,
        alwaysOneOpen: true,
        doShow: function(what) {
            what.stop(true, true).animate({ opacity: 'toggle', height: 'toggle' }, 1000);
        },
        doHide: function(what) {
            what.stop(true, true).animate({ opacity: 'toggle', height: 'toggle' }, 1000);
        }
    });
    $(".box_shortcut").toggler({
        closePrevious: false,
        alwaysOneOpen: false,
        doShow: function(what) {
            what.stop(true, true).animate({ opacity: 'toggle', height: 'toggle' }, 1000);
        },
        doHide: function(what) {
            what.stop(true, true).animate({ opacity: 'toggle', height: 'toggle' }, 1000);
        }
    });
    $("#intranet_frontpage_shortcuts").toggler({
        closePrevious: true,
        alwaysOneOpen: true,
        doShow: function(what) {
            what.stop(true, true).animate({ opacity: 'toggle', height: 'toggle' }, 1000);
        },
        doHide: function(what) {
            what.stop(true, true).animate({ opacity: 'toggle', height: 'toggle' }, 1000);
        }
    });
    $(".intranet_box_shortcut").toggler({
        closePrevious: false,
        alwaysOneOpen: false,
        doShow: function(what) {
            what.stop(true, true).animate({ opacity: 'toggle', height: 'toggle' }, 1000);
        },
        doHide: function(what) {
            what.stop(true, true).animate({ opacity: 'toggle', height: 'toggle' }, 1000);
        }
    });

    $("#translate-close,#translate-link a").click(function(e) {
        $(".translate-box").slideToggle("fast", function() {
            $(".translate-box").toggleClass("translate-active");
        });
    });

}); 
