// initialize plugins
$(function () {
    $("ul.sf-menu").supersubs({
        minWidth: 15,
        maxWidth: 40
    }).superfish({
        delay: 200, // one second delay on mouseout 
        animation: { opacity: 'show', height: 'show'}  // fade-in and slide-down animation 
    });

    // equalize left and right columns height
    var highestCol = Math.max($('#left_col').height(), $('#right_col').height());
    $('#left_col').height(highestCol);
    $('#right_col').height(highestCol);

});

$(document).ready(function () {
    var highestCol = Math.max($('#left-sidebar').height(), $('#content').height());
    if (template_col_min_height_value != "undefined")
        highestCol = Math.max(highestCol, template_col_min_height_value);
    $('#left-sidebar').height(highestCol);
    $('#content').height(highestCol);
});
