jQuery(document).ready(function ()
{
    var $ = jQuery;
    // show sub menus on hover
    if ($('body').hasClass('admin') == false)
    {
        $('#nav li.root').hover(
            function ()
            {
                $(this).children('a').addClass('open').end().children('div.sub').addClass('hover');
            },
            function ()
            {
                $(this).children('a').removeClass('open').end().children('div.sub').removeClass('hover');
            }
        );
    }
});
