PageSourceSearch

https://www.misterbianco.com/sites/default/files/js/js_NxaiG5eokZ51QQ2ctNajxxe7XdEONq1mcZr-xHRH1-k.js

js misterbianco.com collected 2026-10-08 20:52:17 UTC 29,290 bytes, 641 lines download raw bytes

1/**
2* hoverIntent r6 // 2011.02.26 // jQuery 1.5.1+
3* <http://cherne.net/brian/resources/jquery.hoverIntent.html>
4* 
5* @param  f  onMouseOver function || An object with configuration options
6* @param  g  onMouseOut function  || Nothing (use configuration options object)
7* @author    Brian Cherne brian(at)cherne(dot)net
8*/
9(function($){$.fn.hoverIntent=function(f,g){var cfg={sensitivity:7,interval:100,timeout:0};cfg=$.extend(cfg,g?{over:f,out:g}:f);var cX,cY,pX,pY;var track=function(ev){cX=ev.pageX;cY=ev.pageY};var compare=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);if((Math.abs(pX-cX)+Math.abs(pY-cY))<cfg.sensitivity){$(ob).unbind("mousemove",track);ob.hoverIntent_s=1;return cfg.over.apply(ob,[ev])}else{pX=cX;pY=cY;ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}};var delay=function(ev,ob){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t);ob.hoverIntent_s=0;return cfg.out.apply(ob,[ev])};var handleHover=function(e){var ev=jQuery.extend({},e);var ob=this;if(ob.hoverIntent_t){ob.hoverIntent_t=clearTimeout(ob.hoverIntent_t)}if(e.type=="mouseenter"){pX=ev.pageX;pY=ev.pageY;$(ob).bind("mousemove",track);if(ob.hoverIntent_s!=1){ob.hoverIntent_t=setTimeout(function(){compare(ev,ob)},cfg.interval)}}else{$(ob).unbind("mousemove",track);if(ob.hoverIntent_s==1){ob.hoverIntent_t=setTimeout(function(){delay(ev,ob)},cfg.timeout)}}};return this.bind('mouseenter',handleHover).bind('mouseleave',handleHover)}})(jQuery);;
10/*
11 * sf-Smallscreen v1.2b - Provides small-screen compatibility for the jQuery Superfish plugin.
12 *
13 * Developer's note:
14 * Built as a part of the Superfish project for Drupal (http://drupal.org/project/superfish)
15 * Found any bug? have any cool ideas? contact me right away! http://drupal.org/user/619294/contact
16 *
17 * jQuery version: 1.3.x or higher.
18 *
19 * Dual licensed under the MIT and GPL licenses:
20 *  http://www.opensource.org/licenses/mit-license.php
21 *  http://www.gnu.org/licenses/gpl.html
22  */
23
24(function($){
25  $.fn.sfsmallscreen = function(options){
26    options = $.extend({
27      mode: 'inactive',
28      type: 'accordion',
29      breakpoint: 768,
30      breakpointUnit: 'px',
31      useragent: '',
32      title: '',
33      addSelected: false,
34      menuClasses: false,
35      hyperlinkClasses: false,
36      excludeClass_menu: '',
37      excludeClass_hyperlink: '',
38      includeClass_menu: '',
39      includeClass_hyperlink: '',
40      accordionButton: 1,
41      expandText: 'Expand',
42      collapseText: 'Collapse'
43    }, options);
44
45    // We need to clean up the menu from anything unnecessary.
46    function refine(menu){
47      var
48      refined = menu.clone(),
49      // Things that should not be in the small-screen menus.
50      rm = refined.find('span.sf-sub-indicator, span.sf-description'),
51      // This is a helper class for those who need to add extra markup that shouldn't exist
52      // in the small-screen versions.
53      rh = refined.find('.sf-smallscreen-remove'),
54      // Mega-menus has to be removed too.
55      mm = refined.find('ul.sf-megamenu');
56      for (var a = 0; a < rh.length; a++){
57        rh.eq(a).replaceWith(rh.eq(a).html());
58      }
59      for (var b = 0; b < rm.length; b++){
60        rm.eq(b).remove();
61      }
62      if (mm.length > 0){
63        mm.removeClass('sf-megamenu');
64        var ol = refined.find('div.sf-megamenu-column > ol');
65        for (var o = 0; o < ol.length; o++){
66          ol.eq(o).replaceWith('<ul>' + ol.eq(o).html() + '</ul>');
67        }
68        var elements = ['div.sf-megamenu-column','.sf-megamenu-wrapper > ol','li.sf-megamenu-wrapper'];
69        for (var i = 0; i < elements.length; i++){
70          obj = refined.find(elements[i]);
71          for (var t = 0; t < obj.length; t++){
72            obj.eq(t).replaceWith(obj.eq(t).html());
73          }
74        }
75        refined.find('.sf-megamenu-column').removeClass('sf-megamenu-column');
76      }
77      refined.add(refined.find('*')).css({width:''});
78      return refined;
79    }
80
81    // Creating <option> elements out of the menu.
82    function toSelect(menu, level){
83      var
84      items = '',
85      childLI = $(menu).children('li');
86      for (var a = 0; a < childLI.length; a++){
87        var list = childLI.eq(a), parent = list.children('a, span');
88        for (var b = 0; b < parent.length; b++){
89          var
90          item = parent.eq(b),
91          path = item.is('a') ? item.attr('href') : '',
92          // Class names modification.
93          itemClone = item.clone(),
94          classes = (options.hyperlinkClasses) ? ((options.excludeClass_hyperlink && itemClone.hasClass(options.excludeClass_hyperlink)) ? itemClone.removeClass(options.excludeClass_hyperlink).attr('class') : itemClone.attr('class')) : '',
95          classes = (options.includeClass_hyperlink && !itemClone.hasClass(options.includeClass_hyperlink)) ? ((options.hyperlinkClasses) ? itemClone.addClass(options.includeClass_hyperlink).attr('class') : options.includeClass_hyperlink) : classes;
96          // Retaining the active class if requested.
97          if (options.addSelected && item.hasClass('active')){
98            classes += ' active';
99          }
100          // <option> has to be disabled if the item is not a link.
101          disable = item.is('span') || item.attr('href')=='#' ? ' disabled="disabled"' : '',
102          // Crystal clear.
103          subIndicator = 1 < level ? Array(level).join('-') + ' ' : '';
104          // Preparing the <option> element.
105          items += '<option value="' + path + '" class="' + classes + '"' + disable + '>' + subIndicator + $.trim(item.text()) +'</option>',
106          childUL = list.find('> ul');
107          // Using the function for the sub-menu of this item.
108          for (var u = 0; u < childUL.length; u++){
109            items += toSelect(childUL.eq(u), level + 1);
110          }
111        }
112      }
113      return items;
114    }
115
116    // Create the new version, hide the original.
117    function convert(menu){
118      var menuID = menu.attr('id'),
119      // Creating a refined version of the menu.
120      refinedMenu = refine(menu);
121      // Currently the plugin provides two reactions to small screens.
122      // Converting the menu to a <select> element, and converting to an accordion version of the menu.
123      if (options.type == 'accordion'){
124        var
125        toggleID = menuID + '-toggle',
126        accordionID = menuID + '-accordion';
127        // Making sure the accordion does not exist.
128        if ($('#' + accordionID).length == 0){
129          var
130          // Getting the style class.
131          styleClass = menu.attr('class').split(' ').filter(function(item){
132            return item.indexOf('sf-style-') > -1 ? item : '';
133          }),
134          // Creating the accordion.
135          accordion = $(refinedMenu).attr('id', accordionID);
136          // Removing unnecessary classes.
137          accordion.removeClass('sf-horizontal sf-vertical sf-navbar sf-shadow sf-js-enabled');
138          // Adding necessary classes.
139          accordion.addClass('sf-accordion sf-hidden');
140          // Removing style attributes and any unnecessary class.
141          accordion.children('li').removeAttr('style').removeClass('sfHover');
142          // Doing the same and making sure all the sub-menus are off-screen (hidden).
143          accordion.find('ul').removeAttr('style').not('.sf-hidden').addClass('sf-hidden');
144          // Creating the accordion toggle switch.
145          var toggle = '<div class="sf-accordion-toggle ' + styleClass + '"><a href="#" id="' + toggleID + '"><span>' + options.title + '</span></a></div>';
146
147          // Adding Expand\Collapse buttons if requested.
148          if (options.accordionButton == 2){
149            var parent = accordion.find('li.menuparent');
150            for (var i = 0; i < parent.length; i++){
151              parent.eq(i).prepend('<a href="#" class="sf-accordion-button">' + options.expandText + '</a>');
152            }
153          }
154          // Inserting the according and hiding the original menu.
155          menu.before(toggle).before(accordion).hide();
156
157          var
158          accordionElement = $('#' + accordionID),
159          // Deciding what should be used as accordion buttons.
160          buttonElement = (options.accordionButton < 2) ? 'a.menuparent,span.nolink.menuparent' : 'a.sf-accordion-button',
161          button = accordionElement.find(buttonElement);
162
163          // Attaching a click event to the toggle switch.
164          $('#' + toggleID).bind('click', function(e){
165            // Preventing the click.
166            e.preventDefault();
167            // Adding the sf-expanded class.
168            $(this).toggleClass('sf-expanded');
169
170            if (accordionElement.hasClass('sf-expanded')){
171              // If the accordion is already expanded:
172              // Hiding its expanded sub-menus and then the accordion itself as well.
173              accordionElement.add(accordionElement.find('li.sf-expanded')).removeClass('sf-expanded')
174              .end().find('ul').hide()
175              // This is a bit tricky, it's the same trick that has been in use in the main plugin for sometime.
176              // Basically we'll add a class that keeps the sub-menu off-screen and still visible,
177              // and make it invisible and removing the class one moment before showing or hiding it.
178              // This helps screen reader software access all the menu items.
179              .end().hide().addClass('sf-hidden').show();
180              // Changing the caption of any existing accordion buttons to 'Expand'.
181              if (options.accordionButton == 2){
182                accordionElement.find('a.sf-accordion-button').text(options.expandText);
183              }
184            }
185            else {
186              // But if it's collapsed,
187              accordionElement.addClass('sf-expanded').hide().removeClass('sf-hidden').show();
188            }
189          });
190
191          // Attaching a click event to the buttons.
192          button.bind('click', function(e){
193            // Making sure the buttons does not exist already.
194            if ($(this).closest('li').children('ul').length > 0){
195              e.preventDefault();
196              // Selecting the parent menu items.
197              var parent = $(this).closest('li');
198              // Creating and inserting Expand\Collapse buttons to the parent menu items,
199              // of course only if not already happened.
200              if (options.accordionButton == 1 && parent.children('a.menuparent,span.nolink.menuparent').length > 0 && parent.children('ul').children('li.sf-clone-parent').length == 0){
201                var
202                // Cloning the hyperlink of the parent menu item.
203                cloneLink = parent.children('a.menuparent,span.nolink.menuparent').clone(),
204                // Wrapping the hyerplinks in <li>.
205                cloneLink = $('<li class="sf-clone-parent" />').html(cloneLink);
206                // Adding a helper class and attaching them to the sub-menus.
207                parent.children('ul').addClass('sf-has-clone-parent').prepend(cloneLink);
208              }
209              // Once the button is clicked, collapse the sub-menu if it's expanded.
210              if (parent.hasClass('sf-expanded')){
211                parent.children('ul').slideUp('fast', function(){
212                  // Doing the accessibility trick after hiding the sub-menu.
213                  $(this).closest('li').removeClass('sf-expanded').end().addClass('sf-hidden').show();
214                });
215                // Changing the caption of the inserted Collapse link to 'Expand', if any is inserted.
216                if (options.accordionButton == 2 && parent.children('.sf-accordion-button').length > 0){
217                  parent.children('.sf-accordion-button').text(options.expandText);
218                }
219              }
220              // Otherwise, expand the sub-menu.
221              else {
222                // Doing the accessibility trick and then showing the sub-menu.
223                parent.children('ul').hide().removeClass('sf-hidden').slideDown('fast')
224                // Changing the caption of the inserted Expand link to 'Collape', if any is inserted.
225                .end().addClass('sf-expanded').children('a.sf-accordion-button').text(options.collapseText)
226                // Hiding any expanded sub-menu of the same level.
227                .end().siblings('li.sf-expanded').children('ul')
228                .slideUp('fast', function(){
229                  // Doing the accessibility trick after hiding it.
230                  $(this).closest('li').removeClass('sf-expanded').end().addClass('sf-hidden').show();
231                })
232                // Assuming Expand\Collapse buttons do exist, resetting captions, in those hidden sub-menus.
233                .parent().children('a.sf-accordion-button').text(options.expandText);
234              }
235            }
236          });
237        }
238      }
239      else {
240        var
241        // Class names modification.
242        menuClone = menu.clone(), classes = (options.menuClasses) ? ((options.excludeClass_menu && menuClone.hasClass(options.excludeClass_menu)) ? menuClone.removeClass(options.excludeClass_menu).attr('class') : menuClone.attr('class')) : '',
243        classes = (options.includeClass_menu && !menuClone.hasClass(options.includeClass_menu)) ? ((options.menuClasses) ? menuClone.addClass(options.includeClass_menu).attr('class') : options.includeClass_menu) : classes,
244        classes = (classes) ? ' class="' + classes + '"' : '';
245
246        // Making sure the <select> element does not exist already.
247        if ($('#' + menuID + '-select').length == 0){
248          // Creating the <option> elements.
249          var newMenu = toSelect(refinedMenu, 1),
250          // Creating the <select> element and assigning an ID and class name.
251          selectList = $('<select' + classes + ' id="' + menuID + '-select"/>')
252          // Attaching the title and the items to the <select> element.
253          .html('<option>' + options.title + '</option>' + newMenu)
254          // Attaching an event then.
255          .change(function(){
256            // Except for the first option that is the menu title and not a real menu item.
257            if ($('option:selected', this).index()){
258              window.location = selectList.val();
259            }
260          });
261          // Applying the addSelected option to it.
262          if (options.addSelected){
263            selectList.find('.active').attr('selected', !0);
264          }
265          // Finally inserting the <select> element into the document then hiding the original menu.
266          menu.before(selectList).hide();
267        }
268      }
269    }
270
271    // Turn everything back to normal.
272    function turnBack(menu){
273      var
274      id = '#' + menu.attr('id');
275      // Removing the small screen version.
276      $(id + '-' + options.type).remove();
277      // Removing the accordion toggle switch as well.
278      if (options.type == 'accordion'){
279        $(id + '-toggle').parent('div').remove();
280      }
281      // Crystal clear!
282      $(id).show();
283    }
284
285    // Return original object to support chaining.
286    // Although this is unnecessary because of the way the module uses these plugins.
287    for (var s = 0; s < this.length; s++){
288      var
289      menu = $(this).eq(s),
290      mode = options.mode;
291      // The rest is crystal clear, isn't it? :)
292      if (mode == 'always_active'){
293        convert(menu);
294      }
295      else if (mode == 'window_width'){
296        var breakpoint = (options.breakpointUnit == 'em') ? (options.breakpoint * parseFloat($('body').css('font-size'))) : options.breakpoint,
297        windowWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth,
298        timer;
299        if ((typeof Modernizr === 'undefined' || typeof Modernizr.mq !== 'function') && windowWidth < breakpoint){
300          convert(menu);
301        }
302        else if (typeof Modernizr !== 'undefined' && typeof Modernizr.mq === 'function' && Modernizr.mq('(max-width:' + (breakpoint - 1) + 'px)')) {
303          convert(menu);
304        }
305        $(window).resize(function(){
306          clearTimeout(timer);
307          timer = setTimeout(function(){
308            var windowWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
309            if ((typeof Modernizr === 'undefined' || typeof Modernizr.mq !== 'function') && windowWidth < breakpoint){
310              convert(menu);
311            }
312            else if (typeof Modernizr !== 'undefined' && typeof Modernizr.mq === 'function' && Modernizr.mq('(max-width:' + (breakpoint - 1) + 'px)')) {
313              convert(menu);
314            }
315            else {
316              turnBack(menu);
317            }
318          }, 50);
319        });
320      }
321      else if (mode == 'useragent_custom'){
322        if (options.useragent != ''){
323          var ua = RegExp(options.useragent, 'i');
324          if (navigator.userAgent.match(ua)){
325            convert(menu);
326          }
327        }
328      }
329      else if (mode == 'useragent_predefined' && navigator.userAgent.match(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i)){
330        convert(menu);
331      }
332    }
333    return this;
334  }
335})(jQuery);
336;
337/* Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net)
338 * Licensed under the MIT License (LICENSE.txt).
339 *
340 * Version 2.1.2
341 */
342(function(a){a.fn.bgiframe=(a.browser.msie&&/msie 6\.0/i.test(navigator.userAgent)?function(d){d=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},d);var c='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+d.src+'"style="display:block;position:absolute;z-index:-1;'+(d.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(d.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":b(d.top))+";left:"+(d.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":b(d.left))+";width:"+(d.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":b(d.width))+";height:"+(d.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":b(d.height))+';"/>';return this.each(function(){if(a(this).children("iframe.bgiframe").length===0){this.insertBefore(document.createElement(c),this.firstChild)}})}:function(){return this});a.fn.bgIframe=a.fn.bgiframe;function b(c){return c&&c.constructor===Number?c+"px":c}})(jQuery);;
343/*
344 * Superfish v1.4.8 - jQuery menu widget
345 * Copyright (c) 2008 Joel Birch
346 *
347 * Dual licensed under the MIT and GPL licenses:
348 *  http://www.opensource.org/licenses/mit-license.php
349 *  http://www.gnu.org/licenses/gpl.html
350 *
351 * CHANGELOG: http://users.tpg.com.au/j_birch/plugins/superfish/changelog.txt
352 */
353/*
354 * This is not the original jQuery Superfish plugin.
355 * Please refer to the README for more information.
356 */
357
358(function($){
359  $.fn.superfish = function(op){
360    var sf = $.fn.superfish,
361      c = sf.c,
362      $arrow = $(['<span class="',c.arrowClass,'"> &#187;</span>'].join('')),
363      over = function(){
364        var $$ = $(this), menu = getMenu($$);
365        clearTimeout(menu.sfTimer);
366        $$.showSuperfishUl().siblings().hideSuperfishUl();
367      },
368      out = function(){
369        var $$ = $(this), menu = getMenu($$), o = sf.op;
370        clearTimeout(menu.sfTimer);
371        menu.sfTimer=setTimeout(function(){
372          if ($$.children('.sf-clicked').length == 0){
373            o.retainPath=($.inArray($$[0],o.$path)>-1);
374            $$.hideSuperfishUl();
375            if (o.$path.length && $$.parents(['li.',o.hoverClass].join('')).length<1){over.call(o.$path);}
376          }
377        },o.delay);
378      },
379      getMenu = function($menu){
380        var menu = $menu.parents(['ul.',c.menuClass,':first'].join(''))[0];
381        sf.op = sf.o[menu.serial];
382        return menu;
383      },
384      addArrow = function($a){ $a.addClass(c.anchorClass).append($arrow.clone()); };
385
386    return this.each(function() {
387      var s = this.serial = sf.o.length;
388      var o = $.extend({},sf.defaults,op);
389      o.$path = $('li.'+o.pathClass,this).slice(0,o.pathLevels),
390      p = o.$path;
391      for (var l = 0; l < p.length; l++){
392        p.eq(l).addClass([o.hoverClass,c.bcClass].join(' ')).filter('li:has(ul)').removeClass(o.pathClass);
393      }
394      sf.o[s] = sf.op = o;
395
396      $('li:has(ul)',this)[($.fn.hoverIntent && !o.disableHI) ? 'hoverIntent' : 'hover'](over,out).each(function() {
397        if (o.autoArrows) addArrow( $(this).children('a:first-child, span.nolink:first-child') );
398      })
399      .not('.'+c.bcClass)
400        .hideSuperfishUl();
401
402      var $a = $('a, span.nolink',this);
403      $a.each(function(i){
404        var $li = $a.eq(i).parents('li');
405        $a.eq(i).focus(function(){over.call($li);}).blur(function(){out.call($li);});
406      });
407      o.onInit.call(this);
408
409    }).each(function() {
410      var menuClasses = [c.menuClass],
411      addShadow = true;
412      if ($.browser !== undefined){
413        if ($.browser.msie && $.browser.version < 7){
414          addShadow = false;
415        }
416      }
417      if (sf.op.dropShadows && addShadow){
418        menuClasses.push(c.shadowClass);
419      }
420      $(this).addClass(menuClasses.join(' '));
421    });
422  };
423
424  var sf = $.fn.superfish;
425  sf.o = [];
426  sf.op = {};
427  sf.IE7fix = function(){
428    var o = sf.op;
429    if ($.browser !== undefined){
430      if ($.browser.msie && $.browser.version > 6 && o.dropShadows && o.animation.opacity != undefined) {
431        this.toggleClass(sf.c.shadowClass+'-off');
432      }
433    }
434  };
435  sf.c = {
436    bcClass: 'sf-breadcrumb',
437    menuClass: 'sf-js-enabled',
438    anchorClass: 'sf-with-ul',
439    arrowClass: 'sf-sub-indicator',
440    shadowClass: 'sf-shadow'
441  };
442  sf.defaults = {
443    hoverClass: 'sfHover',
444    pathClass: 'overideThisToUse',
445    pathLevels: 1,
446    delay: 800,
447    animation: {opacity:'show'},
448    speed: 'fast',
449    autoArrows: true,
450    dropShadows: true,
451    disableHI: false, // true disables hoverIntent detection
452    onInit: function(){}, // callback functions
453    onBeforeShow: function(){},
454    onShow: function(){},
455    onHide: function(){}
456  };
457  $.fn.extend({
458    hideSuperfishUl : function(){
459      var o = sf.op,
460        not = (o.retainPath===true) ? o.$path : '';
461      o.retainPath = false;
462      var $ul = $(['li.',o.hoverClass].join(''),this).add(this).not(not).removeClass(o.hoverClass)
463          .children('ul').addClass('sf-hidden');
464      o.onHide.call($ul);
465      return this;
466    },
467    showSuperfishUl : function(){
468      var o = sf.op,
469        sh = sf.c.shadowClass+'-off',
470        $ul = this.addClass(o.hoverClass)
471          .children('ul.sf-hidden').hide().removeClass('sf-hidden');
472      sf.IE7fix.call($ul);
473      o.onBeforeShow.call($ul);
474      $ul.animate(o.animation,o.speed,function(){ sf.IE7fix.call($ul); o.onShow.call($ul); });
475      return this;
476    }
477  });
478})(jQuery);;
479/*
480 * Supersubs v0.4b - jQuery plugin
481 * Copyright (c) 2013 Joel Birch
482 *
483 * Dual licensed under the MIT and GPL licenses:
484 *  http://www.opensource.org/licenses/mit-license.php
485 *  http://www.gnu.org/licenses/gpl.html
486 *
487 * This plugin automatically adjusts submenu widths of suckerfish-style menus to that of
488 * their longest list item children. If you use this, please expect bugs and report them
489 * to the jQuery Google Group with the word 'Superfish' in the subject line.
490 *
491 */
492/*
493 * This is not the original jQuery Supersubs plugin.
494 * Please refer to the README for more information.
495 */
496
497(function($){ // $ will refer to jQuery within this closure
498  $.fn.supersubs = function(options){
499    var opts = $.extend({}, $.fn.supersubs.defaults, options);
500    // return original object to support chaining
501    // Although this is unnecessary due to the way the module uses these plugins.
502    for (var a = 0; a < this.length; a++) {
503      // cache selections
504      var $$ = $(this).eq(a),
505      // support metadata
506      o = $.meta ? $.extend({}, opts, $$.data()) : opts;
507      // Jump one level if it's a "NavBar"
508      if ($$.hasClass('sf-navbar')) {
509        $$ = $$.children('li').children('ul');
510      }
511      // cache all ul elements
512      var $ULs = $$.find('ul'),
513      // get the font size of menu.
514      // .css('fontSize') returns various results cross-browser, so measure an em dash instead
515      fontsize = $('<li id="menu-fontsize">&#8212;</li>'),
516      size = fontsize.attr('style','padding:0;position:absolute;top:-99999em;width:auto;')
517      .appendTo($$)[0].clientWidth; //clientWidth is faster than width()
518      // remove em dash
519      fontsize.remove();
520
521      // loop through each ul in menu
522      for (var b = 0; b < $ULs.length; b++) {
523        var
524        // cache this ul
525        $ul = $ULs.eq(b);
526        // If a multi-column sub-menu, and only if correctly configured.
527        if (o.megamenu && $ul.hasClass('sf-megamenu') && $ul.find('.sf-megamenu-column').length > 0){
528          // Look through each column.
529          var $column = $ul.find('div.sf-megamenu-column > ol'),
530          // Overall width.
531          mwWidth = 0;
532          for (var d = 0; d < $column.length; d++){
533            resize($column.eq(d));
534            // New column width, in pixels.
535            var colWidth = $column.width();
536            // Just a trick to convert em unit to px.
537            $column.css({width:colWidth})
538            // Making column parents the same size.
539            .parents('.sf-megamenu-column').css({width:colWidth});
540            // Overall width.
541            mwWidth += parseInt(colWidth);
542          }
543          // Resizing the columns container too.
544          $ul.add($ul.find('li.sf-megamenu-wrapper, li.sf-megamenu-wrapper > ol')).css({width:mwWidth});
545        }
546        else {
547          resize($ul);
548        }
549      }
550    }
551    function resize($ul){
552      var
553      // get all (li) children of this ul
554      $LIs = $ul.children(),
555      // get all anchor grand-children
556      $As = $LIs.children('a');
557      // force content to one line and save current float property
558      $LIs.css('white-space','nowrap');
559      // remove width restrictions and floats so elements remain vertically stacked
560      $ul.add($LIs).add($As).css({float:'none',width:'auto'});
561      // this ul will now be shrink-wrapped to longest li due to position:absolute
562      // so save its width as ems.
563      var emWidth = $ul.get(0).clientWidth / size;
564      // add more width to ensure lines don't turn over at certain sizes in various browsers
565      emWidth += o.extraWidth;
566      // restrict to at least minWidth and at most maxWidth
567      if (emWidth > o.maxWidth) {emWidth = o.maxWidth;}
568      else if (emWidth < o.minWidth) {emWidth = o.minWidth;}
569      emWidth += 'em';
570      // set ul to width in ems
571      $ul.css({width:emWidth});
572      // restore li floats to avoid IE bugs
573      // set li width to full width of this ul
574      // revert white-space to normal
575      $LIs.add($As).css({float:'',width:'',whiteSpace:''});
576      // update offset position of descendant ul to reflect new width of parent.
577      // set it to 100% in case it isn't already set to this in the CSS
578      for (var c = 0; c < $LIs.length; c++) {
579        var $childUl = $LIs.eq(c).children('ul');
580        var offsetDirection = $childUl.css('left') !== undefined ? 'left' : 'right';
581        $childUl.css(offsetDirection,'100%');
582      }
583    }
584    return this;
585  };
586  // expose defaults
587  $.fn.supersubs.defaults = {
588    megamenu: true, // define width for multi-column sub-menus and their columns.
589    minWidth: 12, // requires em unit.
590    maxWidth: 27, // requires em unit.
591    extraWidth: 1 // extra width can ensure lines don't sometimes turn over due to slight browser differences in how they round-off values
592  };
593})(jQuery); // plugin code ends
594;
595/**
596 * @file
597 * The Superfish Drupal Behavior to apply the Superfish jQuery plugin to lists.
598 */
599
600(function ($) {
601  Drupal.behaviors.superfish = {
602    attach: function (context, settings) {
603      // Take a look at each list to apply Superfish to.
604      $.each(settings.superfish || {}, function(index, options) {
605        // Process all Superfish lists.
606        $('#superfish-' + options.id, context).once('superfish', function() {
607          var list = $(this);
608
609          // Check if we are to apply the Supersubs plug-in to it.
610          if (options.plugins || false) {
611            if (options.plugins.supersubs || false) {
612              list.supersubs(options.plugins.supersubs);
613            }
614          }
615
616          // Apply Superfish to the list.
617          list.superfish(options.sf);
618
619          // Check if we are to apply any other plug-in to it.
620          if (options.plugins || false) {
621            if (options.plugins.touchscreen || false) {
622              list.sftouchscreen(options.plugins.touchscreen);
623            }
624            if (options.plugins.smallscreen || false) {
625              list.sfsmallscreen(options.plugins.smallscreen);
626            }
627            if (options.plugins.automaticwidth || false) {
628              list.sfautomaticwidth();
629            }
630            if (options.plugins.supposition || false) {
631              list.supposition();
632            }
633            if (options.plugins.bgiframe || false) {
634              list.find('ul').bgIframe({opacity:false});
635            }
636          }
637        });
638      });
639    }
640  };
641})(jQuery);;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.