/*! http://tinynav.viljamis.com v1.03 by @viljamis */ /*! Further modified by Kailash Bijayananda-www.facebook.com/FriedDust for our theme's adjustment. */ function abc(e) { var count = 0; if (!e.hasClass('root')) { if (e.is('ul')) count++; return count + abc(e.parent()); } return count; } (function ($, window, i) { $.fn.tinyNav = function (options) { // Default settings var settings = $.extend({ 'active' : 'current-menu-item', // String: Set the "active" class 'header' : false // Boolean: Show header instead of the active item }, options); var counter = -1; return this.each(function () { // Used for namespacing i++; var $nav = $(this), // Namespacing namespace = 'tinynav', namespace_i = namespace + i, l_namespace_i = '.l_' + namespace_i, $select = $('