/*! Originally based on the tinynav.js library found at http://tinynav.viljamis.com by @viljamis */ (function ($, window, i) { $.fn.tinyNav = function (options) { // Default settings var settings = $.extend({ 'active' : 'selected', // String: Set the "active" class 'header' : false, // Boolean: Show header instead of the active item 'indent' : '--', // String: Set this to empty to disable identing 'depth_count' : 3 // Integer: depth to stop counting }, options); 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 = $('