$(document).ready( function() { $('nav#primary-navigation .nav-menu > li').hover( function() { if ( $(this).has('.sub-menu').length ) { $('.sub-nav-back').addClass('show'); } }, function() { $('.sub-nav-back').removeClass('show'); }); }); $(window).load( function() { $('#slider').nivoSlider({ directionNav: false, controlNav: false, }); }); $(function () { $("#menu-primary-menu").tinyNav(); }); /*! http://tinynav.viljamis.com v1.2 by @viljamis */ (function ($, window, i) { $.fn.tinyNav = function (options) { // Default settings var settings = $.extend({ 'active' : 'selected', // String: Set the "active" class 'header' : '', // String: Specify text for "header" and show header instead of the active item 'indent' : '- ', // String: Specify text for indenting sub-items 'label' : '' // String: sets the