PageSourceSearch

https://www.scottgreenhalghdds.com/sites/www.scottgreenhalghdds.co…gj1TWnZ-cz5xZIIDCkOIbXtiWD7_C5j213tZdNho.js

js scottgreenhalghdds.com collected 2026-10-07 16:38:26 UTC 20,395 bytes, 143 lines download raw bytes

1/*!
2	jQuery Colorbox v1.4.11 - 2013-04-09
3	(c) 2013 Jack Moore - jacklmoore.com/colorbox
4	license: http://www.opensource.org/licenses/mit-license.php
5*/
6(function(t,e,i){function o(i,o,n){var r=e.createElement(i);return o&&(r.id=te+o),n&&(r.style.cssText=n),t(r)}function n(){return i.innerHeight?i.innerHeight:t(i).height()}function r(t){var e=H.length,i=(j+t)%e;return 0>i?e+i:i}function h(t,e){return Math.round((/%/.test(t)?("x"===e?E.width():n())/100:1)*parseInt(t,10))}function l(t,e){return t.photo||t.photoRegex.test(e)}function s(t,e){return t.retinaUrl&&i.devicePixelRatio>1?e.replace(t.photoRegex,t.retinaSuffix):e}function a(t){"contains"in v[0]&&!v[0].contains(t.target)&&(t.stopPropagation(),v.focus())}function d(){var e,i=t.data(O,Z);null==i?(D=t.extend({},Y),console&&console.log&&console.log("Error: cboxElement missing settings object")):D=t.extend({},i);for(e in D)t.isFunction(D[e])&&"on"!==e.slice(0,2)&&(D[e]=D[e].call(O));D.rel=D.rel||O.rel||t(O).data("rel")||"nofollow",D.href=D.href||t(O).attr("href"),D.title=D.title||O.title,"string"==typeof D.href&&(D.href=t.trim(D.href))}function c(i,o){t(e).trigger(i),se.trigger(i),t.isFunction(o)&&o.call(O)}function u(){var t,e,i,o,n,r=te+"Slideshow_",h="click."+te;D.slideshow&&H[1]?(e=function(){clearTimeout(t)},i=function(){(D.loop||H[j+1])&&(t=setTimeout(J.next,D.slideshowSpeed))},o=function(){M.html(D.slideshowStop).unbind(h).one(h,n),se.bind(ne,i).bind(oe,e).bind(re,n),v.removeClass(r+"off").addClass(r+"on")},n=function(){e(),se.unbind(ne,i).unbind(oe,e).unbind(re,n),M.html(D.slideshowStart).unbind(h).one(h,function(){J.next(),o()}),v.removeClass(r+"on").addClass(r+"off")},D.slideshowAuto?o():n()):v.removeClass(r+"off "+r+"on")}function f(i){G||(O=i,d(),H=t(O),j=0,"nofollow"!==D.rel&&(H=t("."+ee).filter(function(){var e,i=t.data(this,Z);return i&&(e=t(this).data("rel")||i.rel||this.rel),e===D.rel}),j=H.index(O),-1===j&&(H=H.add(O),j=H.length-1)),g.css({opacity:parseFloat(D.opacity),cursor:D.overlayClose?"pointer":"auto",visibility:"visible"}).show(),V&&v.add(g).removeClass(V),D.className&&v.add(g).addClass(D.className),V=D.className,K.html(D.close).show(),$||($=q=!0,v.css({visibility:"hidden",display:"block"}),W=o(ae,"LoadedContent","width:0; height:0; overflow:hidden").appendTo(y),B=b.height()+k.height()+y.outerHeight(!0)-y.height(),N=C.width()+T.width()+y.outerWidth(!0)-y.width(),z=W.outerHeight(!0),A=W.outerWidth(!0),D.w=h(D.initialWidth,"x"),D.h=h(D.initialHeight,"y"),J.position(),u(),c(ie,D.onOpen),_.add(F).hide(),v.focus(),e.addEventListener&&(e.addEventListener("focus",a,!0),se.one(he,function(){e.removeEventListener("focus",a,!0)})),D.returnFocus&&se.one(he,function(){t(O).focus()})),w())}function p(){!v&&e.body&&(X=!1,E=t(i),v=o(ae).attr({id:Z,"class":t.support.opacity===!1?te+"IE":"",role:"dialog",tabindex:"-1"}).hide(),g=o(ae,"Overlay").hide(),S=o(ae,"LoadingOverlay").add(o(ae,"LoadingGraphic")),x=o(ae,"Wrapper"),y=o(ae,"Content").append(F=o(ae,"Title"),I=o(ae,"Current"),P=t("<button/>").attr({id:te+"Previous",type:"button"}),R=t("<button/>").attr({id:te+"Next",type:"button"}),M=o("button","Slideshow"),S,K=t("<button/>").attr({id:te+"Close",type:"button"})),x.append(o(ae).append(o(ae,"TopLeft"),b=o(ae,"TopCenter"),o(ae,"TopRight")),o(ae,!1,"clear:left").append(C=o(ae,"MiddleLeft"),y,T=o(ae,"MiddleRight")),o(ae,!1,"clear:left").append(o(ae,"BottomLeft"),k=o(ae,"BottomCenter"),o(ae,"BottomRight"))).find("div div").css({"float":"left"}),L=o(ae,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),_=R.add(P).add(I).add(M),t(e.body).append(g,v.append(x,L)))}function m(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.control||(t.preventDefault(),f(this))}return v?(X||(X=!0,R.click(function(){J.next()}),P.click(function(){J.prev()}),K.click(function(){J.close()}),g.click(function(){D.overlayClose&&J.close()}),t(e).bind("keydown."+te,function(t){var e=t.keyCode;$&&D.escKey&&27===e&&(t.preventDefault(),J.close()),$&&D.arrowKey&&H[1]&&!t.altKey&&(37===e?(t.preventDefault(),P.click()):39===e&&(t.preventDefault(),R.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+te,"."+ee,i):t("."+ee).live("click."+te,i)),!0):!1}function w(){var e,n,r,a=J.prep,u=++de;q=!0,U=!1,O=H[j],d(),c(le),c(oe,D.onLoad),D.h=D.height?h(D.height,"y")-z-B:D.innerHeight&&h(D.innerHeight,"y"),D.w=D.width?h(D.width,"x")-A-N:D.innerWidth&&h(D.innerWidth,"x"),D.mw=D.w,D.mh=D.h,D.maxWidth&&(D.mw=h(D.maxWidth,"x")-A-N,D.mw=D.w&&D.w<D.mw?D.w:D.mw),D.maxHeight&&(D.mh=h(D.maxHeight,"y")-z-B,D.mh=D.h&&D.h<D.mh?D.h:D.mh),e=D.href,Q=setTimeout(function(){S.show()},100),D.inline?(r=o(ae).hide().insertBefore(t(e)[0]),se.one(le,function(){r.replaceWith(W.children())}),a(t(e))):D.iframe?a(" "):D.html?a(D.html):l(D,e)?(e=s(D,e),t(U=new Image).addClass(te+"Photo").bind("error",function(){D.title=!1,a(o(ae,"Error").html(D.imgError))}).one("load",function(){var e;u===de&&(U.alt=t(O).attr("alt")||t(O).attr("data-alt")||"",U.longdesc=t(O).attr("longdesc"),D.retinaImage&&i.devicePixelRatio>1&&(U.height=U.height/i.devicePixelRatio,U.width=U.width/i.devicePixelRatio),D.scalePhotos&&(n=function(){U.height-=U.height*e,U.width-=U.width*e},D.mw&&U.width>D.mw&&(e=(U.width-D.mw)/U.width,n()),D.mh&&U.height>D.mh&&(e=(U.height-D.mh)/U.height,n())),D.h&&(U.style.marginTop=Math.max(D.mh-U.height,0)/2+"px"),H[1]&&(D.loop||H[j+1]
6)&&(U.style.cursor="pointer",U.onclick=function(){J.next()}),setTimeout(function(){a(U)},1))}),setTimeout(function(){U.src=e},1)):e&&L.load(e,D.data,function(e,i){u===de&&a("error"===i?o(ae,"Error").html(D.xhrError):t(this).contents())})}var g,v,x,y,b,C,T,k,H,E,W,L,S,F,I,M,R,P,K,_,D,B,N,z,A,O,j,U,$,q,G,Q,J,V,X,Y={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,className:!1,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",open:!1,returnFocus:!0,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico)((#|\?).*)?$/i,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0},Z="colorbox",te="cbox",ee=te+"Element",ie=te+"_open",oe=te+"_load",ne=te+"_complete",re=te+"_cleanup",he=te+"_closed",le=te+"_purge",se=t("<a/>"),ae="div",de=0;t.colorbox||(t(p),J=t.fn[Z]=t[Z]=function(e,i){var o=this;if(e=e||{},p(),m()){if(t.isFunction(o))o=t("<a/>"),e.open=!0;else if(!o[0])return o;i&&(e.onComplete=i),o.each(function(){t.data(this,Z,t.extend({},t.data(this,Z)||Y,e))}).addClass(ee),(t.isFunction(e.open)&&e.open.call(o)||e.open)&&f(o[0])}return o},J.position=function(t,e){function i(t){b[0].style.width=k[0].style.width=y[0].style.width=parseInt(t.style.width,10)-N+"px",y[0].style.height=C[0].style.height=T[0].style.height=parseInt(t.style.height,10)-B+"px"}var o,r,l,s=0,a=0,d=v.offset();E.unbind("resize."+te),v.css({top:-9e4,left:-9e4}),r=E.scrollTop(),l=E.scrollLeft(),D.fixed?(d.top-=r,d.left-=l,v.css({position:"fixed"})):(s=r,a=l,v.css({position:"absolute"})),a+=D.right!==!1?Math.max(E.width()-D.w-A-N-h(D.right,"x"),0):D.left!==!1?h(D.left,"x"):Math.round(Math.max(E.width()-D.w-A-N,0)/2),s+=D.bottom!==!1?Math.max(n()-D.h-z-B-h(D.bottom,"y"),0):D.top!==!1?h(D.top,"y"):Math.round(Math.max(n()-D.h-z-B,0)/2),v.css({top:d.top,left:d.left,visibility:"visible"}),t=v.width()===D.w+A&&v.height()===D.h+z?0:t||0,x[0].style.width=x[0].style.height="9999px",o={width:D.w+A+N,height:D.h+z+B,top:s,left:a},0===t&&v.css(o),v.dequeue().animate(o,{duration:t,complete:function(){i(this),q=!1,x[0].style.width=D.w+A+N+"px",x[0].style.height=D.h+z+B+"px",D.reposition&&setTimeout(function(){E.bind("resize."+te,J.position)},1),e&&e()},step:function(){i(this)}})},J.resize=function(t){$&&(t=t||{},t.width&&(D.w=h(t.width,"x")-A-N),t.innerWidth&&(D.w=h(t.innerWidth,"x")),W.css({width:D.w}),t.height&&(D.h=h(t.height,"y")-z-B),t.innerHeight&&(D.h=h(t.innerHeight,"y")),t.innerHeight||t.height||(W.css({height:"auto"}),D.h=W.height()),W.css({height:D.h}),J.position("none"===D.transition?0:D.speed))},J.prep=function(e){function i(){return D.w=D.w||W.width(),D.w=D.mw&&D.mw<D.w?D.mw:D.w,D.w}function n(){return D.h=D.h||W.height(),D.h=D.mh&&D.mh<D.h?D.mh:D.h,D.h}if($){var h,a="none"===D.transition?0:D.speed;W.empty().remove(),W=o(ae,"LoadedContent").append(e),W.hide().appendTo(L.show()).css({width:i(),overflow:D.scrolling?"auto":"hidden"}).css({height:n()}).prependTo(y),L.hide(),t(U).css({"float":"none"}),h=function(){function e(){t.support.opacity===!1&&v[0].style.removeAttribute("filter")}var i,n,h=H.length,d="frameBorder",u="allowTransparency";$&&(n=function(){clearTimeout(Q),S.hide(),c(ne,D.onComplete)},F.html(D.title).add(W).show(),h>1?("string"==typeof D.current&&I.html(D.current.replace("{current}",j+1).replace("{total}",h)).show(),R[D.loop||h-1>j?"show":"hide"]().html(D.next),P[D.loop||j?"show":"hide"]().html(D.previous),D.slideshow&&M.show(),D.preloading&&t.each([r(-1),r(1)],function(){var e,i,o=H[this],n=t.data(o,Z);n&&n.href?(e=n.href,t.isFunction(e)&&(e=e.call(o))):e=t(o).attr("href"),e&&l(n,e)&&(e=s(n,e),i=new Image,i.src=e)})):_.hide(),D.iframe?(i=o("iframe")[0],d in i&&(i[d]=0),u in i&&(i[u]="true"),D.scrolling||(i.scrolling="no"),t(i).attr({src:D.href,name:(new Date).getTime(),"class":te+"Iframe",allowFullScreen:!0,webkitAllowFullScreen:!0,mozallowfullscreen:!0}).one("load",n).appendTo(W),se.one(le,function(){i.src="//about:blank"}),D.fastIframe&&t(i).trigger("load")):n(),"fade"===D.transition?v.fadeTo(a,1,e):e()
6)},"fade"===D.transition?v.fadeTo(a,0,function(){J.position(0,h)}):J.position(a,h)}},J.next=function(){!q&&H[1]&&(D.loop||H[j+1])&&(j=r(1),f(H[j]))},J.prev=function(){!q&&H[1]&&(D.loop||j)&&(j=r(-1),f(H[j]))},J.close=function(){$&&!G&&(G=!0,$=!1,c(re,D.onCleanup),E.unbind("."+te),g.fadeTo(200,0),v.stop().fadeTo(300,0,function(){v.add(g).css({opacity:1,cursor:"auto"}).hide(),c(le),W.empty().remove(),setTimeout(function(){G=!1,c(he,D.onClosed)},1)}))},J.remove=function(){v&&(v.stop(),t.colorbox.close(),v.stop().remove(),g.remove(),G=!1,v=null,t("."+ee).removeData(Z).removeClass(ee),t(e).unbind("click."+te))},J.element=function(){return t(O)},J.settings=Y)})(jQuery,document,window);;
7(function ($) {
8
9Drupal.behaviors.initColorbox = {
10  attach: function (context, settings) {
11    if (!$.isFunction($.colorbox) || typeof settings.colorbox === 'undefined') {
12      return;
13    }
14
15    if (settings.colorbox.mobiledetect && window.matchMedia) {
16      // Disable Colorbox for small screens.
17      var mq = window.matchMedia("(max-device-width: " + settings.colorbox.mobiledevicewidth + ")");
18      if (mq.matches) {
19        return;
20      }
21    }
22
23    $('.colorbox', context)
24      .once('init-colorbox')
25      .colorbox(settings.colorbox);
26
27    $(context).bind('cbox_complete', function () {
28      Drupal.attachBehaviors('#cboxLoadedContent');
29    });
30  }
31};
32
33})(jQuery);
34;
35(function ($) {
36
37Drupal.behaviors.initColorboxDefaultStyle = {
38  attach: function (context, settings) {
39    $(context).bind('cbox_complete', function () {
40      // Only run if there is a title.
41      if ($('#cboxTitle:empty', context).length == false) {
42        $('#cboxLoadedContent img', context).bind('mouseover', function () {
43          $('#cboxTitle', context).slideDown();
44        });
45        $('#cboxOverlay', context).bind('mouseover', function () {
46          $('#cboxTitle', context).slideUp();
47        });
48      }
49      else {
50        $('#cboxTitle', context).hide();
51      }
52    });
53  }
54};
55
56})(jQuery);
57;
58/*
59 * jQuery beforeafter plugin
60 * @author [email protected] - http://www.catchmyfame.com
61 * @version 1.4
62 * @date September 19, 2011
63 * @category jQuery plugin
64 * @copyright (c) 2009 [email protected] (www.catchmyfame.com)
65 * @license CC Attribution-NonCommercial-ShareAlike 3.0 Unported (CC BY-NC-SA 3.0) - http://creativecommons.org/licenses/by-nc-sa/3.0/
66 */
67(function(a){a.fn.extend({beforeAfter:function(b){var d={animateIntro:false,introDelay:1000,introDuration:1000,introPosition:0.5,showFullLinks:true,beforeLinkText:"Show only before",afterLinkText:"Show only after",imagePath:"./js/",cursor:"pointer",clickSpeed:600,linkDisplaySpeed:200,dividerColor:"#888",enableKeyboard:false,keypressAmount:20,onReady:function(){}};var b=a.extend(d,b);var c=Math.round(Math.random()*100000000);return this.each(function(){var l=b;var k=a(this);var f=a("img:first",k).width();var e=a("img:first",k).height();if(a("div",k).length!=2){a("img",k).wrap("<div>")}a(k).width(f).height(e).css({overflow:"hidden",position:"relative",padding:"0"});var g=a("img:first",k).attr("src");var j=a("img:last",k).attr("src");a("img:first",k).attr("id","beforeimage"+c);a("img:last",k).attr("id","afterimage"+c);a(k).prepend('<div id="dragwrapper'+c+'"><div id="drag'+c+'"><img width="8" height="56" alt="handle" src="'+l.imagePath+'handle.gif" id="handle'+c+'" /></div></div>');a("#dragwrapper"+c).css({opacity:0.25,position:"absolute",padding:"0",left:(f*l.introPosition)-(a("#handle"+c).width()/2)+"px","z-index":"20"}).width(a("#handle"+c).width()).height(e);a("div:eq(2)",k).height(e).width(f*l.introPosition).css({position:"absolute",overflow:"hidden",left:"0px","z-index":"10"});a("div:eq(3)",k).height(e).width(f).css({position:"absolute",overflow:"hidden",right:"0px"});a("#drag"+c).width(2).height(e).css({background:l.dividerColor,position:"absolute",left:"3px"});a("#beforeimage"+c).css({position:"absolute",top:"0px",left:"0px"});a("#afterimage"+c).css({position:"absolute",top:"0px",right:"0px"});a("#handle"+c).css({"z-index":"100",position:"relative",cursor:l.cursor,top:(e/2)-(a("#handle"+c).height()/2)+"px",left:"-3px"});a(k).append('<img src="'+l.imagePath+'lt-small.png" width="7" height="15" id="lt-arrow'+c+'"><img src="'+l.imagePath+'rt-small.png" width="7" height="15" id="rt-arrow'+c+'">');
67if(l.showFullLinks){a(k).after('<div class="balinks" id="links'+c+'" style="position:relative"><span class="balinks"><a id="showleft'+c+'" href="javascript:void(0)">'+l.beforeLinkText+'</a></span><span class="balinks"><a id="showright'+c+'" href="javascript:void(0)">'+l.afterLinkText+"</a></span></div>");a("#links"+c).width(f);a("#showleft"+c).css({position:"relative",left:"0px"}).click(function(){a("div:eq(2)",k).animate({width:f},l.linkDisplaySpeed);a("#dragwrapper"+c).animate({left:f-a("#dragwrapper"+c).width()+"px"},l.linkDisplaySpeed)});a("#showright"+c).css({position:"absolute",right:"0px"}).click(function(){a("div:eq(2)",k).animate({width:0},l.linkDisplaySpeed);a("#dragwrapper"+c).animate({left:"0px"},l.linkDisplaySpeed)})}if(l.enableKeyboard){a(document).keydown(function(m){if(m.keyCode==39){if((parseInt(a("#dragwrapper"+c).css("left"))+parseInt(a("#dragwrapper"+c).width())+l.keypressAmount)<=f){a("#dragwrapper"+c).css("left",parseInt(a("#dragwrapper"+c).css("left"))+l.keypressAmount+"px");a("div:eq(2)",k).width(parseInt(a("div:eq(2)",k).width())+l.keypressAmount+"px")}else{a("#dragwrapper"+c).css("left",f-parseInt(a("#dragwrapper"+c).width())+"px");a("div:eq(2)",k).width(f-parseInt(a("#dragwrapper"+c).width())/2+"px")}}if(m.keyCode==37){if((parseInt(a("#dragwrapper"+c).css("left"))-l.keypressAmount)>=0){a("#dragwrapper"+c).css("left",parseInt(a("#dragwrapper"+c).css("left"))-l.keypressAmount+"px");a("div:eq(2)",k).width(parseInt(a("div:eq(2)",k).width())-l.keypressAmount+"px")}else{a("#dragwrapper"+c).css("left","0px");a("div:eq(2)",k).width(a("#dragwrapper"+c).width()/2)}}})}a("#dragwrapper"+c).draggable({containment:k,drag:h,stop:h});function h(){a("#lt-arrow"+c+", #rt-arrow"+c).stop().css("opacity",0);a("div:eq(2)",k).width(parseInt(a(this).css("left"))+4)}if(l.animateIntro){a("div:eq(2)",k).width(f);a("#dragwrapper"+c).css("left",f-(a("#dragwrapper"+c).width()/2)+"px");setTimeout(function(){a("#dragwrapper"+c).css({opacity:1}).animate({left:(f*l.introPosition)-(a("#dragwrapper"+c).width()/2)+"px"},l.introDuration,function(){a("#dragwrapper"+c).animate({opacity:0.25},1000)});a("div:eq(2)",k).width(f).animate({width:f*l.introPosition+"px"},l.introDuration,function(){i();l.onReady.call(this)})},l.introDelay)}else{i();l.onReady.call(this)}function i(){a(k).hover(function(){a("#lt-arrow"+c).stop().css({"z-index":"20",position:"absolute",top:e/2-a("#lt-arrow"+c).height()/2+"px",left:parseInt(a("#dragwrapper"+c).css("left"))-10+"px"}).animate({opacity:1,left:parseInt(a("#lt-arrow"+c).css("left"))-6+"px"},200);a("#rt-arrow"+c).stop().css({position:"absolute",top:e/2-a("#lt-arrow"+c).height()/2+"px",left:parseInt(a("#dragwrapper"+c).css("left"))+10+"px"}).animate({opacity:1,left:parseInt(a("#rt-arrow"+c).css("left"))+6+"px"},200);a("#dragwrapper"+c).animate({opacity:1},200)},function(){a("#lt-arrow"+c).animate({opacity:0,left:parseInt(a("#lt-arrow"+c).css("left"))-6+"px"},350);a("#rt-arrow"+c).animate({opacity:0,left:parseInt(a("#rt-arrow"+c).css("left"))+6+"px"},350);a("#dragwrapper"+c).animate({opacity:0.25},350)});a(k).click(function(m){var n=m.pageX-a(this).offset().left;a("#dragwrapper"+c).stop().animate({left:n-(a("#dragwrapper"+c).width()/2)+"px"},l.clickSpeed);a("div:eq(2)",k).stop().animate({width:n+"px"},l.clickSpeed);a("#lt-arrow"+c+",#rt-arrow"+c).stop().animate({opacity:0}
67,50)});a(k).one("mousemove",function(){a("#dragwrapper"+c).stop().animate({opacity:1},500)})}})}})})(jQuery);;
68(function ($) {
69  Drupal.quickbar = Drupal.quickbar || {};
70  
71  Drupal.quickbar.setActive = function(toolbar_id) {
72    // Show the right toolbar
73    $('#quickbar .depth-1 ul.links').addClass('collapsed');
74    $(toolbar_id).removeClass('collapsed');
75    $('div#quickbar, div#quickbar .depth-1').removeClass('collapsed');
76  
77    // Switch link active class to corresponding menu item
78    var link_id = toolbar_id.replace('quickbar', 'quickbar-link');
79    $('#quickbar .depth-0 ul.links a').removeClass('active');
80    $(link_id).addClass('active');
81  }
82  
83  Drupal.behaviors.quickbar = {
84    attach: function (context, settings) {
85      // Move the toolbar to underneath body.
86      var toolbarHtml = $('#quickbar').remove();
87      $('body').prepend(toolbarHtml);
88      
89      // Primary menus
90      $('#quickbar .depth-0 ul.links a:not(.processed)').each(function() {
91        var target = $(this).attr('id');
92        if (target) {
93          target = '#'+ target.replace('quickbar-link', 'quickbar');
94          if ($(target, '#quickbar').size() > 0) {
95            // If this link is active show this toolbar on setup
96            if ($(this).parent().is('.active-trail')) {
97              Drupal.quickbar.setActive(target);
98            }
99            // Add click handler
100            $(this).click(function() {
101              if ($(this).is('.active')) {
102                // Follow the link
103                if (!$('#quickbar').hasClass('primary-nofollow')) {
104                  window.location = $(this).attr('href');
105                  return true;
106                }
107                return false;
108              }
109              // Open submenu
110              Drupal.quickbar.setActive(target);
111              return false;
112            });
113          }
114        }
115        $(this).addClass('processed');
116      });
117      
118      // Close button
119      $('#quickbar .depth-1 span.close:not(.processed)').each(function() {
120        $(this).click(function() {
121          $('#quickbar .depth-1').addClass('collapsed');
122          $('#quickbar-admin a.active').removeClass('active');
123          return false;
124        });
125        $(this).addClass('processed');
126      });
127      
128      // Open active secondary menu
129      $('#quickbar .depth-1 ul.links a.active:first').each(function() {
130        // IE might not prepend '/' to pathhname
131        var path = window.location.pathname;
132        if (path.indexOf('/') !== 0) {
133          path = '/' + path;
134        }
135        if (window.location.pathname == $(this).attr('href')) {
136          var target = $(this).parents('ul:first').attr('id');
137          target = '#' + target.replace('quickbar', 'quickbar-link');
138          $('#quickbar .depth-0 ul.links a:not(.active)' + target).click();
139        }
140      });
141    }
142  };
143})(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.