PageSourceSearch

https://sustainable19125and19134.org/sites/default/files/js/js_ECPXfdRe9z_GKdRPdnGua5asnw4qE0kdVmA8qBQxSBw.js

js sustainable19125and19134.org collected 2026-10-09 01:09:32 UTC 28,383 bytes, 514 lines download raw bytes

1var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; };
2if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } }
3{
4  let window = _____WB$wombat$assign$function_____("window");
5  let self = _____WB$wombat$assign$function_____("self");
6  let document = _____WB$wombat$assign$function_____("document");
7  let location = _____WB$wombat$assign$function_____("location");
8  let top = _____WB$wombat$assign$function_____("top");
9  let parent = _____WB$wombat$assign$function_____("parent");
10  let frames = _____WB$wombat$assign$function_____("frames");
11  let opener = _____WB$wombat$assign$function_____("opener");
12
13(function ($) {
14  Drupal.behaviors.respImg = {
15    attach: function (context) {
16      Drupal.respImg_processSuffixes();
17      $(window).resize(function() {
18        if ($(window).width() > 10) {
19          Drupal.respImg_processSuffixes();
20        }
21      });
22    }
23  }
24
25  Drupal.respImg_getOptimalSuffix = function() {
26    var devicePixelRatio = 1;
27    if(window.devicePixelRatio !== undefined && Drupal.settings.respImg.useDevicePixelRatio) {
28      devicePixelRatio = window.devicePixelRatio;
29    }
30    $.cookie(
31      "respimg_ratio",
32      devicePixelRatio,
33      {
34        path: Drupal.settings.basePath,
35        expires: 1
36      }
37    );
38    // Helper function to calculate width off border and scrollbars
39    function borderAndScroll() {
40      if (typeof borderAndScroll.current == 'undefined' ) {
41        borderAndScroll.current = 0;
42        if (window.innerWidth && window.outerWidth) {
43          borderAndScroll.current = window.outerWidth - window.innerWidth;
44        }
45        else if (document.body.offsetWidth && document.body.clientWidth) {
46          borderAndScroll.current = document.body.offsetWidth - document.body.clientWidth;
47        }
48      }
49      return borderAndScroll.current;
50    }
51
52    var suffix = '';
53    var suffix_set = false;
54    var cookie_set = false;
55    $.each(Drupal.settings.respImg.suffixes, function(index, value) {
56      var breakpoint = value - borderAndScroll();
57      if (breakpoint <= $(window).width() && !cookie_set) {
58        // set cookie with new width
59        $.cookie(
60          "respimg",
61          value,
62          {
63            path: Drupal.settings.basePath,
64            expires: 1
65          }
66        );
67        cookie_set = true;
68      }
69      if ((breakpoint / devicePixelRatio) <= $(window).width() && !suffix_set) {
70        suffix = index;
71        suffix_set = true;
72      }
73      if (cookie_set && suffix_set) {
74        return false; // break .each
75      }
76    });
77    return suffix;
78  }
79
80  Drupal.respImg_processSuffixes = function() {
81    // Redirect user if needed / wanted
82    if (Drupal.settings.respImg.current_suffix === false && Drupal.settings.respImg.forceRedirect == "1") {
83      // Make sure browser accepts cookies
84      if (Drupal.respImg_cookiesEnabled()) {
85        var suffix = Drupal.respImg_getOptimalSuffix();
86        location.replace(location.href);
87        return;
88      }
89    }
90
91    // get currently used suffix, or default
92    var current_suffix = Drupal.settings.respImg.current_suffix;
93    if (Drupal.settings.respImg.current_suffix === false) {
94      current_suffix = Drupal.settings.respImg.default_suffix;
95    }
96
97    // get optimal suffix
98    var suffix = Drupal.respImg_getOptimalSuffix();
99
100    if (Drupal.settings.respImg.reloadOnResize == "1" && suffix !== '' && suffix !== current_suffix && Drupal.respImg_cookiesEnabled()) {
101      setTimeout(function() {location.reload(true)}, 100);
102      return;
103    }
104
105    if (Drupal.settings.respImg.forceResize == "1" && suffix !== '' && suffix !== current_suffix) {
106      // support for images
107      $('img').each(function() {
108        var img = $(this);
109        var src = img.attr('src').replace(current_suffix, suffix);
110        img.attr('src', src);
111        img.removeAttr('width');
112        img.removeAttr('height');
113      });
114
115      // support for colorbox links
116      $('a.colorbox').each(function() {
117        var a = $(this);
118        var href = a.attr('href').replace(current_suffix, suffix);
119        a.attr('href', href);
120      });
121
122      // support for field_slideshow (kind of)
123      if (typeof(Drupal.behaviors.field_slideshow) == "object") {
124        $('div.field-slideshow-processed')
125          .cycle('destroy')
126          .removeClass('field-slideshow-processed')
127          .css('width', '')
128          .css('height', '')
129          .css('padding-bottom', '')
130          .each(function() {
131            var $field = $(this);
132            var $child = $field.children('div.field-slideshow-slide').first();
133            console.log($child);
134            console.log($child.css('width'));
135            $field.css('width', $child.css('width'));
136          });
137        $('div.field-slideshow-slide').css('width', '').css('height', '');
138        Drupal.behaviors.field_slideshow.attach();
139      }
140
141      // store last used suffix
142      Drupal.settings.respImg.current_suffix = suffix;
143    }
144  }
145
146  Drupal.respImg_cookiesEnabled = function() {
147    var cookieEnabled = (navigator.cookieEnabled) ? true : false;
148
149    if (typeof navigator.cookieEnabled == "undefined" && !cookieEnabled)
150    {
151        $.cookie('respimg_test', 'ok');
152        cookieEnabled = ($cookie('respimg_test') === 'ok');
153    }
154    return cookieEnabled;
155  }
156} (jQuery));;
157
158/**
159 * @file
160 *
161 * Javascript specific to facebook connect pages.  This means pages
162 * which are not canvas pages, and where fb_connect.module has
163 * initialized the facebook api. The user may or may not have
164 * authorized the app, this javascript will still be loaded.
165 *
166 * Note (!) much of the work done here is deprecated, and moved to fb.js
167 * (where code works equally well on both connect pages and canvas
168 * pages).  If your app needs the features here, please report your
169 * use case to our issue queue (http://drupal.org/project/issues/fb),
170 * otherwise these features may go away...
171 */
172(function ($) {
173  Drupal.behaviors.fb_connect = {
174    attach: function(context, settings) {
175      // Logout of facebook when logging out of drupal.
176      jQuery("a[href^='" + Drupal.settings.basePath + "user/logout']", context).click(FB_Connect.logoutHandler);
177      if (Drupal.settings.fb_connect.front_url != Drupal.settings.basePath) {
178        jQuery("a[href^='" + Drupal.settings.fb_connect.front_url + "user/logout']", context).click(FB_Connect.logoutHandler); // front_url includes language.  I.e. "/en/"
179      }
180
181      // Support markup for dialog boxes.
182      FB_Connect.enablePopups(context);
183
184      var events = jQuery(document).data('events');
185      if (!events || !events.fb_session_change) {
186        jQuery(document).bind('fb_session_change', FB_Connect.sessionChangeHandler);
187      }
188    }
189  };
190})(jQuery);
191
192FB_Connect = function(){};
193
194// JQuery pseudo-event handler.
195FB_Connect.sessionChangeHandler = function(context, status) {
196  jQuery('.block-fb_connect')
197    .ajaxStart(function() {
198      // This is an attempt to trigger the drupal progress indicator.  Not convinced that it works.
199      jQuery(this).wrap('<div class="bar filled"></div>').wrap('<div class="bar filled"></div>');
200    })
201    .ajaxStop(function() {
202      //jQuery(this).html('');
203      // unwrap() not defined.
204      jQuery(this).parent().removeClass('bar filled').parent().removeClass('bar filled');
205    })
206  ;
207
208  // Call the default handler, too.
209  FB_JS.sessionChangeHandler(context, status);
210};
211
212// click handler
213/**
214 * We cannot simply follow link to drupal logout, because facebook
215 * connect cookies are still present.  The user will be reconnected
216 * right away.  We must call FB.logout().
217 */
218FB_Connect.logoutHandler = function(event) {
219  var reloading = false;
220
221  // When we reload, go to logout page.
222  Drupal.settings.fb.reload_url = Drupal.settings.fb.base_url + "/user/logout";
223  // No need to handle status change event because we know we're logged out and about to reload page.
224  FB_JS.ignoreEvents = true;
225  Drupal.settings.fb.test_login_status = false;
226
227
228  if (typeof(FB) != 'undefined' && FB.getAuthResponse()) {
229    try {
230      FB.logout(function () {
231        // We've logged out of facebook.
232        FB_JS.reload();
233      });
234
235      // At this point we've asked facebook to log out.  If we "return true;" here, browser moves on to user/logout.  This is what we'd like to do.  But logout takes time and firefox specifically won't update cookies if leave the page before facebook does it's thing. http://drupal.org/node/1164048
236
237      // Give firefox some time, then reload. We don't trust FB.logout() to ever call our callback function above.
238      setTimeout(function() {
239        FB_JS.getLoginStatus(function(response) {
240          FB_JS.reload();
241        }, true);
242      }, 500);
243
244      return false; // Don't follow the user/logout link right away.
245    }
246    catch (e) {
247      debugger; // reason for exception?
248      return true; // continue to user/logout
249    }
250  }
251  else {
252    return true; // continue to user/logout
253  }
254};
255
256/**
257 * Move new dialogs to visible part of screen.
258 **/
259FB_Connect.centerPopups = function() {
260  var scrollTop = $(window).scrollTop();
261  $('.fb_dialog:not(.fb_popup_centered)').each(function() {
262    var offset = $(this).offset();
263    if (offset.left == 0) {
264      // This is some facebook cruft that cannot be centered.
265    }
266    else if (offset.top < 0) {
267      // Not yet visible, don't center.
268    }
269    else if (offset.top < scrollTop) {
270      $(this).css('top', offset.top + scrollTop + 'px');
271      $(this).addClass('fb_popup_centered'); // Don't move this dialog again.
272    }
273  });
274};
275
276
277FB_Connect.enablePopups = function(context) {
278  // Support for easy fbml popup markup which degrades when javascript not enabled.
279  // Markup is subject to change.  Currently...
280  // <div class=fb_fbml_popup_wrap><a title="POPUP TITLE">LINK MARKUP</a><div class=fb_fbml_popup><fb:SOME FBML>...</fb:SOME FBML></div></div>
281  jQuery('.fb_fbml_popup:not(.fb_fbml_popup-processed)', context).addClass('fb_fbml_popup-processed').prev().each(
282    function() {
283      this.fbml_popup = $(this).next().html();
284      this.fbml_popup_width = parseInt($(this).next().attr('width'));
285      this.fbml_popup_height = parseInt($(this).next().attr('height'));
286      //console.log("stored fbml_popup markup: " + this.fbml_popup); // debug
287      $(this).next().remove(); // Remove FBML so facebook does not expand it.
288    })
289    // Handle clicks on the link element.
290    .bind('click',
291	  function (e) {
292	    var popup;
293	    //console.log('Clicked!  Will show ' + this.fbml_popup); // debug
294
295	    // http://forum.developers.facebook.net/viewtopic.php?pid=243983
296	    var size = FB.UIServer.Methods["fbml.dialog"].size;
297	    if (this.fbml_popup_width) {
298	      size.width=this.fbml_popup_width;
299	    }
300	    if (this.fbml_popup_height) {
301	      size.height=this.fbml_popup_height;
302	    }
303	    FB.UIServer.Methods['fbml.dialog'].size = size;
304
305	    // http://forum.developers.facebook.net/viewtopic.php?id=74743
306	    var markup = this.fbml_popup;
307	    if ($(this).attr('title')) {
308	      markup = '<fb:header icon="true" decoration="add_border">' + $(this).attr('title') + '</fb:header>' + this.fbml_popup;
309	    }
310	    var dialog = {
311	      method: 'fbml.dialog', // triple-secret undocumented feature.
312	      display: 'dialog',
313	      fbml: markup,
314	      width: this.fbml_popup_width,
315	      height: this.fbml_popup_height
316	    };
317	    var popup = FB.ui(dialog, function (response) {
318	      console.log(response);
319	    });
320
321	    // Start a timer to keep popups centered.
322	    // @TODO - avoid starting timer more than once.
323	    window.setInterval(FB_Connect.centerPopups, 500);
324
325	    e.preventDefault();
326	  })
327    .parent().show();
328};
329;
330/*!
331	jQuery ColorBox v1.4.5 - 2013-03-15
332	(c) 2013 Jack Moore - jacklmoore.com/colorbox
333	license: http://www.opensource.org/licenses/mit-license.php
334*/
335(function(e,t,i){function o(i,o,n){var r=t.createElement(i);return o&&(r.id=et+o),n&&(r.style.cssText=n),e(r)}function n(){return i.innerHeight?i.innerHeight:e(i).height()}function r(e){var t=E.length,i=(j+e)%t;return 0>i?t+i:i}function h(e,t){return Math.round((/%/.test(e)?("x"===t?H.width():n())/100:1)*parseInt(e,10))}function s(e,t){return e.photo||e.photoRegex.test(t)}function l(e,t){return e.retinaUrl&&i.devicePixelRatio>1?t.replace(e.photoRegex,e.retinaSuffix):t}function a(e){"contains"in v[0]&&!v[0].contains(e.target)&&(e.stopPropagation(),v.focus())}function d(){var t,i=e.data(O,Z);null==i?(z=e.extend({},Y),console&&console.log&&console.log("Error: cboxElement missing settings object")):z=e.extend({},i);for(t in z)e.isFunction(z[t])&&"on"!==t.slice(0,2)&&(z[t]=z[t].call(O));z.rel=z.rel||O.rel||e(O).data("rel")||"nofollow",z.href=z.href||e(O).attr("href"),z.title=z.title||O.title,"string"==typeof z.href&&(z.href=e.trim(z.href))}function c(i,o){e(t).trigger(i),ct.trigger(i),e.isFunction(o)&&o.call(O)}function u(){var e,t,i,o,n,r=et+"Slideshow_",h="click."+et;z.slideshow&&E[1]?(t=function(){clearTimeout(e)},i=function(){(z.loop||E[j+1])&&(e=setTimeout(X.next,z.slideshowSpeed))},o=function(){F.html(z.slideshowStop).unbind(h).one(h,n),ct.bind(nt,i).bind(ot,t).bind(rt,n),v.removeClass(r+"off").addClass(r+"on")},n=function(){t(),ct.unbind(nt,i).unbind(ot,t).unbind(rt,n),F.html(z.slideshowStart).unbind(h).one(h,function(){X.next(),o()}),v.removeClass(r+"on").addClass(r+"off")},z.slideshowAuto?o():n()):v.removeClass(r+"off "+r+"on")}function f(i){G||(O=i,d(),E=e(O),j=0,"nofollow"!==z.rel&&(E=e("."+tt).filter(function(){var t,i=e.data(this,Z);return i&&(t=e(this).data("rel")||i.rel||this.rel),t===z.rel}),j=E.index(O),-1===j&&(E=E.add(O),j=E.length-1)),g.css({opacity:parseFloat(z.opacity),cursor:z.overlayClose?"pointer":"auto",visibility:"visible"}).show(),J&&v.add(g).removeClass(J),z.className&&v.add(g).addClass(z.className),J=z.className,K.html(z.close).show(),U||(U=$=!0,v.css({visibility:"hidden",display:"block"}),I=o(ut,"LoadedContent","width:0; height:0; overflow:hidden").appendTo(y),D=b.height()+k.height()+y.outerHeight(!0)-y.height(),B=C.width()+T.width()+y.outerWidth(!0)-y.width(),N=I.outerHeight(!0),A=I.outerWidth(!0),z.w=h(z.initialWidth,"x"),z.h=h(z.initialHeight,"y"),
335X.position(),at&&H.bind("resize."+dt+" scroll."+dt,function(){g.css({width:H.width(),height:n(),top:H.scrollTop(),left:H.scrollLeft()})}).trigger("resize."+dt),u(),c(it,z.onOpen),_.add(M).hide(),v.focus(),t.addEventListener&&(t.addEventListener("focus",a,!0),ct.one(ht,function(){t.removeEventListener("focus",a,!0)})),z.returnFocus&&ct.one(ht,function(){e(O).focus()})),w())}function p(){!v&&t.body&&(V=!1,H=e(i),v=o(ut).attr({id:Z,"class":lt?et+(at?"IE6":"IE"):"",role:"dialog",tabindex:"-1"}).hide(),g=o(ut,"Overlay",at?"position:absolute":"").hide(),W=o(ut,"LoadingOverlay").add(o(ut,"LoadingGraphic")),x=o(ut,"Wrapper"),y=o(ut,"Content").append(M=o(ut,"Title"),S=o(ut,"Current"),P=o("button","Previous"),R=o("button","Next"),F=o("button","Slideshow"),W,K=o("button","Close")),x.append(o(ut).append(o(ut,"TopLeft"),b=o(ut,"TopCenter"),o(ut,"TopRight")),o(ut,!1,"clear:left").append(C=o(ut,"MiddleLeft"),y,T=o(ut,"MiddleRight")),o(ut,!1,"clear:left").append(o(ut,"BottomLeft"),k=o(ut,"BottomCenter"),o(ut,"BottomRight"))).find("div div").css({"float":"left"}),L=o(ut,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),_=R.add(P).add(S).add(F),e(t.body).append(g,v.append(x,L)))}function m(){function i(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||(e.preventDefault(),f(this))}return v?(V||(V=!0,R.click(function(){X.next()}),P.click(function(){X.prev()}),K.click(function(){X.close()}),g.click(function(){z.overlayClose&&X.close()}),e(t).bind("keydown."+et,function(e){var t=e.keyCode;U&&z.escKey&&27===t&&(e.preventDefault(),X.close()),U&&z.arrowKey&&E[1]&&!e.altKey&&(37===t?(e.preventDefault(),P.click()):39===t&&(e.preventDefault(),R.click()))}),e.isFunction(e.fn.on)?e(t).on("click."+et,"."+tt,i):e("."+tt).live("click."+et,i)),!0):!1}function w(){var t,n,r,a=X.prep,u=++ft;$=!0,q=!1,O=E[j],d(),c(st),c(ot,z.onLoad),z.h=z.height?h(z.height,"y")-N-D:z.innerHe
335ight&&h(z.innerHeight,"y"),z.w=z.width?h(z.width,"x")-A-B:z.innerWidth&&h(z.innerWidth,"x"),z.mw=z.w,z.mh=z.h,z.maxWidth&&(z.mw=h(z.maxWidth,"x")-A-B,z.mw=z.w&&z.w<z.mw?z.w:z.mw),z.maxHeight&&(z.mh=h(z.maxHeight,"y")-N-D,z.mh=z.h&&z.h<z.mh?z.h:z.mh),t=z.href,Q=setTimeout(function(){W.show()},100),z.inline?(r=o(ut).hide().insertBefore(e(t)[0]),ct.one(st,function(){r.replaceWith(I.children())}),a(e(t))):z.iframe?a(" "):z.html?a(z.html):s(z,t)?(t=l(z,t),e(q=new Image).addClass(et+"Photo").bind("error",function(){z.title=!1,a(o(ut,"Error").html(z.imgError))}).one("load",function(){var e;u===ft&&(z.retinaImage&&i.devicePixelRatio>1&&(q.height=q.height/i.devicePixelRatio,q.width=q.width/i.devicePixelRatio),z.scalePhotos&&(n=function(){q.height-=q.height*e,q.width-=q.width*e},z.mw&&q.width>z.mw&&(e=(q.width-z.mw)/q.width,n()),z.mh&&q.height>z.mh&&(e=(q.height-z.mh)/q.height,n())),z.h&&(q.style.marginTop=Math.max(z.mh-q.height,0)/2+"px"),E[1]&&(z.loop||E[j+1])&&(q.style.cursor="pointer",q.onclick=function(){X.next()}),lt&&(q.style.msInterpolationMode="bicubic"),setTimeout(function(){a(q)},1))}),setTimeout(function(){q.src=t},1)):t&&L.load(t,z.data,function(t,i){u===ft&&a("error"===i?o(ut,"Error").html(z.xhrError):e(this).contents())})}var g,v,x,y,b,C,T,k,E,H,I,L,W,M,S,F,R,P,K,_,z,D,B,N,A,O,j,q,U,$,G,Q,X,J,V,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",et="cbox",tt=et+"Element",it=et+"_open",ot=et+"_load",nt=et+"_complete",rt=et+"_cleanup",ht=et+"_closed",st=et+"_purge",lt=!e.support.leadingWhitespace,at=lt&&!i.XMLHttpRequest,dt=et+"_IE6",ct=e({}),ut="div",ft=0;e.colorbox||(e(p),X=e.fn[Z]=e[Z]=function(t,i){var o=this;if(t=t||{},p(),m()){if(e.isFunction(o))o=e("<a/>"),t.open=!0;else if(!o[0])return o;i&&(t.onComplete=i),o.each(function(){e.data(this,Z,e.extend({},e.data(this,Z)||Y,t))}).addClass(tt),(e.isFunction(t.open)&&t.open.call(o)||t.open)&&f(o[0])}return o},X.position=function(e,t){function i(e){b[0].style.width=k[0].style.width=y[0].style.width=parseInt(e.style.width,10)-B+"px",y[0].style.height=C[0].style.height=T[0].style.height=parseInt(e.style.height,10)-D+"px"}var o,r,s,l=0,a=0,d=v.offset();H.unbind("resize."+et),v.css({top:-9e4,left:-9e4}),r=H.scrollTop(),s=H.scrollLeft(),z.fixed&&!at?(d.top-=r,d.left-=s,v.css({position:"fixed"})):(l=r,a=s,v.css({position:"absolute"})),a+=z.right!==!1?Math.max(H.width()-z.w-A-B-h(z.right,"x"),0):z.left!==!1?h(z.left,"x"):Math.round(Math.max(H.width()-z.w-A-B,0)/2),l+=z.bottom!==!1?Math.max(n()-z.h-N-D-h(z.bottom,"y"),0):z.top!==!1?h(z.top,"y"):Math.round(Math.max(n()-z.h-N-D,0)/2),v.css({top:d.top,left:d.left,visibility:"visible"}),e=v.width()===z.w+A&&v.height()===z.h+N?0:e||0,x[0].style.width=x[0].style.height="9999px",o={width:z.w+A+B,height:z.h+N+D,top:l,left:a},0===e&&v.css(o),v.dequeue().animate(o,{duration:e,complete:function(){i(this),$=!1,x[0].style.width=z.w+A+B+"px",x[0].style.height=z.h+N+D+"px",z.reposition&&setTimeout(function(){H.bind("resize."+et,X.position)},1),t&&t()},step:function(){i(this)}})},X.resize=function(e){U&&(e=e||{},e.width&&(z.w=h(e.width,"x")-A-B),e.innerWidth&&(z.w=h(e.innerWidth,"x")),I.css({width:z.w}),e.height&&(z.h=h(e.height,"y")-N-D),e.innerHeight&&(z.h=h(e.innerHeight,"y")),e.innerHeight||e.height||(I.css({height:"auto"}),z.h=I.height()),I.css({height:z.h}),X.position("none"===z.transition?0:z.speed))},X.prep=function(t){function i(){return z.w=z.w||I.width(),z.w=z.mw&&z.mw<z.w?z.mw:z.w,z.w}function n(){return z.h=z.h||I.height(),z.h=z.mh&&z.mh<z.h?z.mh:z.h,z.h}if(U){var h,a="none"===z.transition?0:z.speed;I.empty().remove(),I=o(ut,"LoadedContent").append(t),I.hide().appendTo(L.show()).css({width:i(),overflow:z.scrolling?"auto":"hidden"}).css({height:n()}).prependTo(y),L.hide(),e(q).css({"float":"none"}),h=function(){function t(){lt&&v[0].style.removeAttribute("filter")}var i,n,h=E.length,d="frameBorder",u="allowTransparency";U&&(n=function(){clearTimeout(Q),W.hide(),c(nt,z.onComplete)},lt&&q&&I.fadeIn(100),M.html(z.title).add(I).show(),h>1?("string"==typeof z.current&&S.html(z.current.replace("{current}",j+1).replace("{total}",h)).show(),R[z.loop||h-1>j?"show":"hide"]().html(z.next),P[z.loop||j?"show":"hide"]().html(z.previous),z.slideshow&&F.show(),z.preloading&&e.each([r(-1),r(1)],function(){var t,i,o=E[this],n=e.data(o,Z);n&&n.href?(t=n.href,e.isFunction(t)&&(t=t.call(o))):t=e(o).attr("href"),t&&s(n,t)&&(t=l(n,t),i=new Image,i.src=t)})):_.hide(),z.iframe?(i=o("iframe")[0],d in i&&(i[d]=0),u in i&&(i[u]="true"),z.scrolling||(i.scrolling="no"),e(i).attr({src:z.href,name:(new Date).getTime(),"class":et+"Iframe",allowFullScreen:!0,webkitAllowFullScreen:!0,mozallowfullscreen:!0}).one("load",n).appendTo(I),ct.one(st,function(){i.src="/web/20160420093007/http://about:blank"}),z.fastIframe&&e(i).trigger("load")):n(),"fade"===z.transition?v.fadeTo(a,1,t):t())},"fade"===z.transition?v.fadeTo(a,0,function(){X.position(0,h)}):X.position(a,h)}},X.next=function(){!$&&E[1]&&(z.loop||E[j+1])&&(j=r(1),f(E[j]))},X.prev=function(){!$&&E[1]&&(z.loop||j)&&(j=r(-1),f(E[j]))},X.close=function(){U&&!G&&(G=!0,U=!1,c(rt,z.onCleanup),H.unbind("."+et+" ."+dt),g.fadeTo(200,0),v.stop().fadeTo(300,0,function(){v.add(g).css({opacity:1,cursor:"auto"}).hide(),c(st),I.empty().remove(),setTimeout(function(){G=!1,c(ht,z.onClosed)},1)}))},X.remove=function(){e([]).add(v).add(g).remove(),v=null,e("."+tt).removeData(Z).removeClass(tt),e(t).unbind("click."+et)},X.element=function(){return e(O)},X.settings=Y)})(jQuery,document,window);;
336(function ($) {
337
338Drupal.behaviors.initColorbox = {
339  attach: function (context, settings) {
340    if (!$.isFunction($.colorbox)) {
341      return;
342    }
343
344    if (settings.colorbox.mobiledetect && window.matchMedia) {
345      // Disable Colorbox for small screens.
346      var mq = window.matchMedia("(max-device-width: " + settings.colorbox.mobiledevicewidth + ")");
347      if (mq.matches) {
348        return;
349      }
350    }
351
352    $('.colorbox', context)
353      .once('init-colorbox')
354      .colorbox(settings.colorbox);
355
356    $(context).bind('cbox_complete', function () {
357      Drupal.attachBehaviors('#cboxLoadedContent');
358    });
359  }
360};
361
362})(jQuery);
363;
364(function ($) {
365
366Drupal.behaviors.initColorboxDefaultStyle = {
367  attach: function (context, settings) {
368    $(context).bind('cbox_complete', function () {
369      // Only run if there is a title.
370      if ($('#cboxTitle:empty', context).length == false) {
371        $('#cboxLoadedContent img', context).bind('mouseover', function () {
372          $('#cboxTitle', context).slideDown();
373        });
374        $('#cboxOverlay', context).bind('mouseover', function () {
375          $('#cboxTitle', context).slideUp();
376        });
377      }
378      else {
379        $('#cboxTitle', context).hide();
380      }
381    });
382  }
383};
384
385})(jQuery);
386;
387(function($) {
388  Drupal.behaviors.custom_search = {
389    attach: function(context) {
390
391      if (!Drupal.settings.custom_search.solr) {
392        // Check if the search box is not empty on submit
393        $('form.search-form', context).submit(function(){
394          var $this = $(this);
395          var box = $this.find('input.custom-search-box');
396          if (box.val() != undefined && box.val() == '') {
397            $this.find('input.custom-search-box').addClass('error');
398            return false;
399          }
400          // If basic search is hidden, copy or value to the keys
401          if ($this.find('#edit-keys').parents('div.element-invisible').attr('class') == 'element-invisible') {
402            $this.find('#edit-keys').val($this.find('#edit-or').val());
403            $this.find('#edit-or').val('');
404          }
405          return true;
406        });
407      }
408
409      // Search from target
410      $('form.search-form').attr('target', Drupal.settings.custom_search.form_target);
411
412      // Displays Popup.
413      $('form.search-form input.custom-search-box', context).bind('click focus', function(e){
414        var $parentForm = $(this).parents('form');
415        // check if there's something in the popup and displays it
416        var popup = $parentForm.find('fieldset.custom_search-popup');
417        if (popup.find('input,select').length && !popup.hasClass('opened')) {
418          popup.fadeIn().addClass('opened');
419        }
420        e.stopPropagation();
421      });
422      $(document).bind('click focus', function(){
423        $('fieldset.custom_search-popup').hide().removeClass('opened');
424      });
425
426      // Handle checkboxes
427      $('.custom-search-selector input:checkbox', context).each(function(){
428        var el = $(this);
429        if (el.val() == 'c-all') {
430          el.change(function(){
431            $(this).parents('.custom-search-selector').find('input:checkbox[value!=c-all]').attr('checked', false);
432          });
433        }
434        else {
435          if (el.val().substr(0,2) == 'c-') {
436            el.change(function(){
437              $('.custom-search-selector input:checkbox').each(function(){
438                if ($(this).val().substr(0,2) == 'o-') {
439                  $(this).attr('checked', false);
440                }
441              });
442              $(this).parents('.custom-search-selector').find('input:checkbox[value=c-all]').attr('checked', false);
443            });
444          } else {
445            el.change(function(){
446              $(this).parents('.custom-search-selector').find('input:checkbox[value!=' + el.val() + ']').attr('checked', false);
447            });
448          }
449        }
450      });
451
452      // Reselect types and terms in advanced search
453      var edit_keys = encodeURIComponent($('#edit-keys').val());
454
455      if (edit_keys) {
456        // types
457        var pos = edit_keys.indexOf('type:');
458        if (pos != -1) {
459          var pos2 = edit_keys.indexOf(' ', pos);
460          if (pos2 == -1) {
461            pos2 = edit_keys.length;
462          }
463          var types = edit_keys.substring(pos + 5,pos2);
464          types = types.split(',');
465          for (var i = 0; i < types.length; i++) {
466            $('.search-form input:checkbox[value=' + types[i] + ']').attr('checked', true);
467          }
468        }
469        // terms
470        var pos = edit_keys.indexOf('term:');
471        if (pos != -1) {
472          var pos2 = edit_keys.indexOf(' ', pos);
473          if (pos2 == -1) {
474            pos2 = edit_keys.length;
475          }
476          var terms = edit_keys.substring(pos + 5, pos2);
477          terms = terms.split(',');
478          for (var i = 0; i < terms.length; i++) {
479            $('#edit-term option[value=' + terms[i] + ']').attr('selected', true);
480          }
481        }
482        // languages
483        var pos = edit_keys.indexOf('language:');
484        if (pos != -1) {
485          var pos2 = edit_keys.indexOf(' ', pos);
486          if (pos2 == -1) {
487            pos2 = edit_keys.length;
488          }
489          var languages = edit_keys.substring(pos + 9,pos2);
490          languages = languages.split(',');
491          for (var i = 0; i < languages.length; i++) {
492            $('.search-advanced #edit-language-' + languages[i]).attr('checked', true);
493          }
494        }
495      }
496
497      var popup = $('fieldset.custom_search-popup:not(.custom_search-processed)', context).addClass("custom_search-processed");
498      popup.click(function(e){
499        e.stopPropagation();
500      })
501      popup.append('<a class="custom_search-popup-close" href="#">
501' + Drupal.t('Close') + '</a>');
502      $('a.custom_search-popup-close').click(function(e){
503        $('fieldset.custom_search-popup.opened').hide().removeClass('opened');
504        e.preventDefault();
505      });
506
507    }
508  }
509})(jQuery);
510;
511
512
513}
514/*

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.