$(document).ready(function() {
    /*   // $('#hdrMenu').next().hide();
    $('#hdrTrain').click(function() {
    if ($(this).next().css('display') == 'none') {
    $(this).next().slideDown();
    if ($('#hdrMenu').next().css('display') != 'none')
    $('#hdrMenu').next().slideUp();
    }
    else {
    $(this).next().slideUp();
    if ($('#hdrMenu').next().css('display') != 'block')
    $('#hdrMenu').next().slideDown();
    }
    $('html, body').animate({ scrollTop: '30px' }, 200);

    }
    );
    $('#hdrMenu').click(function() {
    if ($(this).next().css('display') == 'none') {
    $(this).next().slideDown();
    if ($('#hdrTrain').next().css('display') != 'none')
    $('#hdrTrain').next().slideUp();
    }
    else {
    $(this).next().slideUp();
    if ($('#hdrTrain').next().css('display') != 'block')
    $('#hdrTrain').next().slideDown();
    }
    $('html, body').animate({ scrollTop: '30px' }, 200);

    }
    );*/

    $("#example").treeview();
    $('#scrollPane').jScrollPane();
    $("#example").click(function() {
            var settings = {
                showArrows: true
            };
            var pane = $('#scrollPane');
            pane.jScrollPane(settings);
            var api = pane.data('jsp');
            api.reinitialise();
        });
});

