PageSourceSearch

https://www.hildrethmeiere.org/Production.js?t=54815

js hildrethmeiere.org collected 2026-10-02 11:36:18 UTC 43,445 bytes, 928 lines download raw bytes

1"Production™ Framework. © 2017. ALL RIGHTS RESERVED IMPACT Branding & Design LLC. THIS INSTALLATION OF Production™ Framework IS NONEXCLUSIVE AND NONTRANSFERABLE AND LICENSED BY IMPACT Branding & Design LLC FOR COMMERCIAL USE. UNAUTHORIZED COPYING, REPRODUCTION, REPUBLISHING, UPLOADING, POSTING, TRANSMITTING OR DUPLICATING OF ANY OF THE MATERIAL WITHOUT PERMISSION IS PROHIBITED.";
2
3/*
4
5// Import base
6
7@codekit-append "_base.js"
8
9// Import assets
10@codekit-append "../../../Custom_Assets/JS/_assets.js"
11
12// Import custom
13@codekit-append "../../../Custom_Assets/JS/_custom.js"
14
15*/
16
17/* NO CONSOLE FALLBACK */
18if (!window.console) window.console = {};
19if (!window.console.log) window.console.log = function () { };
20
21/* DETECT TOUCH DEVICE */
22
23if (('ontouchstart' in window) || (navigator.MaxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0)) {
24    $(document).ready(function () {
25        $('html').addClass('device--touch');
26    });
27}
28function touch() {
29    if (('ontouchstart' in window) || (navigator.MaxTouchPoints > 0) || (navigator.msMaxTouchPoints > 0)) {
30        return true
31    }
32    else {
33        return false
34    }
35}
36
37/* WINDOW SIZE FOR MEDIA QUERIES */
38
39function viewport(mediaName) {
40    var e = window, a = 'inner';
41    if (!('innerWidth' in window )) {
42        a = 'client';
43        e = document.documentElement || document.body;
44    }
45    if (mediaName) {
46        if (mediaList[mediaName]) {
47            if (((e[a+'Width'] <= mediaList[mediaName][0])||(mediaList[mediaName][0] == null))&&((e[a+'Width'] >= mediaList[mediaName][1])||(mediaList[mediaName][1] == null))) {
48                return true;
49            }
50            else {
51                return false;
52            }
53        }
54        else if ((mediaName.slice(0,1) == ">")&&(mediaList[mediaName.slice(1)])) {
55            if ((e[a+'Width'] >= mediaList[mediaName.slice(1)][1])||(mediaList[mediaName.slice(1)][1] == null)) {
56                return true;
57            }
58            else {
59                return false;
60            }
61        }
62        else if ((mediaName.slice(0,1) == "<")&&(mediaList[mediaName.slice(1)])) {
63            if ((e[a+'Width'] <= mediaList[mediaName.slice(1)][0])||(mediaList[mediaName.slice(1)][0] == null)) {
64                return true;
65            }
66            else {
67                return false;
68            }
69        }
70        else if (mediaName == "touch") {
71            return touch();
72        }
73        else {
74            throw "Media size "+mediaName+" not found in media list."
75        }
76    }
77    else {
78        return { width : e[a+'Width'] , height : e[a+'Height'] };
79    }
80}
81
82/* Returns boolean true/false to check if in HubSpot editor */
83function editor() {
84    try {
85        return window.self !== window.top;
86    } catch (e) {
87        return true;
88    }
89}
90
91$(window).load(function () {
92    /* Adds class to body if user is logged into HubSpot */
93    if ($('.hs-tools-menu').length > 0) {
94        $('body').addClass('hs--user');
95    }
96    /* .hs--unwrap CSS class */
97    if (!editor()) {
98        $('.hs--unwrap').each(function() {
99            $(this).find(".hs_cos_wrapper.hs_cos_wrapper_widget_container.hs_cos_wrapper_type_widget_container > .hs_cos_wrapper > *").unwrap();
100        });
101    }
102});
103
104/* Date Format */
105
106var dateFormat = function () {
107    var    token = /d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,
108        timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,
109        timezoneClip = /[^-+\dA-Z]/g,
110        pad = function (val, len) {
111            val = String(val);
112            len = len || 2;
113            while (val.length < len) val = "0" + val;
114            return val;
115        };
116
117    // Regexes and supporting functions are cached through closure
118    return function (date, mask, utc) {
119        var dF = dateFormat;
120
121        // You can't provide utc if you skip other args (use the "UTC:" mask prefix)
122        if (arguments.length == 1 && Object.prototype.toString.call(date) == "[object String]" && !/\d/.test(date)) {
123            mask = date;
124            date = undefined;
125        }
126
127        // Passing date through Date applies Date.parse, if necessary
128        date = date ? new Date(date) : new Date;
129        if (isNaN(date)) {
130            return "";
131        }
132
133        mask = String(dF.masks[mask] || mask || dF.masks["default"]);
134
135        // Allow setting the utc argument via the mask
136        if (mask.slice(0, 4) == "UTC:") {
137            mask = mask.slice(4);
138            utc = true;
139        }
140
141        var    _ = utc ? "getUTC" : "get",
142            d = date[_ + "Date"](),
143            D = date[_ + "Day"](),
144            m = date[_ + "Month"](),
145            y = date[_ + "FullYear"](),
146            H = date[_ + "Hours"](),
147            M = date[_ + "Minutes"](),
148            s = date[_ + "Seconds"](),
149            L = date[_ + "Milliseconds"](),
150            o = utc ? 0 : date.getTimezoneOffset(),
151            flags = {
152                d:    d,
153                dd:   pad(d),
154                ddd:  dF.i18n.dayNames[D],
155                dddd: dF.i18n.dayNames[D + 7],
156                m:    m + 1,
157                mm:   pad(m + 1),
158                mmm:  dF.i18n.monthNames[m],
159                mmmm: dF.i18n.monthNames[m + 12],
160                yy:   String(y).slice(2),
161                yyyy: y,
162                h:    H % 12 || 12,
163                hh:   pad(H % 12 || 12),
164                H:    H,
165                HH:   pad(H),
166                M:    M,
167                MM:   pad(M),
168                s:    s,
169                ss:   pad(s),
170                l:    pad(L, 3),
171                L:    pad(L > 99 ? Math.round(L / 10) : L),
172                t:    H < 12 ? "a"  : "p",
173                tt:   H < 12 ? "am" : "pm",
174                T:    H < 12 ? "A"  : "P",
175                TT:   H < 12 ? "AM" : "PM",
176                Z:    utc ? "UTC" : (String(date).match(timezone) || [""]).pop().replace(timezoneClip, ""),
177                o:    (o > 0 ? "-" : "+") + pad(Math.floor(Math.abs(o) / 60) * 100 + Math.abs(o) % 60, 4),
178                S:    ["th", "st", "nd", "rd"][d % 10 > 3 ? 0 : (d % 100 - d % 10 != 10) * d % 10]
179            };
180
181        return mask.replace(token, function ($0) {
182            return $0 in flags ? flags[$0] : $0.slice(1, $0.length - 1);
183        });
184    };
185}();
186
187dateFormat.masks = {
188    "default":      "ddd mmm dd yyyy HH:MM:ss",
189    shortDate:      "m/d/yy",
190    mediumDate:     "mmm d, yyyy",
191    longDate:       "mmmm d, yyyy",
192    fullDate:       "dddd, mmmm d, yyyy",
193    shortTime:      "h:MM TT",
194    mediumTime:     "h:MM:ss TT",
195    longTime:       "h:MM:ss TT Z",
196    isoDate:        "yyyy-mm-dd",
197    isoTime:        "HH:MM:ss",
198    isoDateTime:    "yyyy-mm-dd'T'HH:MM:ss",
199    isoUtcDateTime: "UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"
200};
201
202dateFormat.i18n = {
203    dayNames: [
204        "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat",
205        "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
206    ],
207    monthNames: [
208        "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
209        "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "
209November", "December"
210    ]
211};
212
213Date.prototype.format = function (mask, utc) {
214    return dateFormat(this, mask, utc);
215};
216
217function addCommasToNumber(strNumInput) {
218    var n= strNumInput.toString().split(".");
219    n[0] = n[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
220    return n.join(".");
221}
222
223/* Scroll Item & Scroll Wrapper for sticky/fixed elements */
224
225function scrollItem() {
226    $('.scroll--wrapper .scroll--item').each(function () {
227        $(this).css('position','absolute');
228        if ($(window).scrollTop() > $(this).closest('.scroll--wrapper').offset().top) {
229            if ($(window).scrollTop() - $(this).closest('.scroll--wrapper').offset().top + $(this).height() >= $(this).closest('.scroll--wrapper').height()) {
230                // If bottom
231
232                $(this).css('margin-top',$(this).closest('.scroll--wrapper').height()-$(this).height()+'px');
233            }
234            else {
235                // If not at at top or bottom
236                $(this).css('margin-top',$(window).scrollTop() - $(this).closest('.scroll--wrapper').offset().top+'px');
237            }
238        }
239        else {
240            // If top
241            $(this).css('margin-top','');
242        }               
243    });
244}
245
246$(document).ready(function () {
247    if ($('.scroll--wrapper .scroll--item').length>0) {
248        scrollItem();
249        $('.scroll--wrapper .scroll--item').each(function () {
250            // Set height if needed
251            if ($(this).height() > $(this).closest('.scroll--wrapper').height()) {
252                $(this).closest('.scroll--wrapper').css('min-height',$(this).height()+'px');
253            }
254        });
255        $('.scroll--wrapper').ctaready(function () {
256            $('.scroll--wrapper .scroll--item').each(function () {
257                // Set height if needed
258                if ($(this).height() > $(this).closest('.scroll--wrapper').height()) {
259                    $(this).closest('.scroll--wrapper').css('min-height',$(this).height()+'px');
260                }
261            });
262        });
263        $(window).scroll(function () {
264            scrollItem();
265        });
266        $(window).resize(function () {
267            scrollItem();
268            $('.scroll--wrapper .scroll--item').each(function () {
269                // Set height if needed
270                if ($(this).height() > $(this).closest('.scroll--wrapper').height()) {
271                    $(this).closest('.scroll--wrapper').css('min-height',$(this).height()+'px');
272                }
273            });
274        });
275    }
276});
277
278/* Modal */
279
280function modal(h,c,w) {
281    if (h) {
282        // (div to project,class list on .modal, class list on wrapper)
283        if (c == undefined) {
284            c = "";
285        }
286        if (w == undefined) {
287            w = "";
288        }
289        if ($('#production--modal').length > 0) {
290            $('#production--modal').remove();
291        }
292        $('body').append("<div id='production--modal' onclick='modal();'></div>");
293        $('#production--modal').html("<span id='production--modal--center'></span><div id='production--modal--grid' onclick='event.stopPropagation();'></div>");
294        $('#production--modal').addClass(w);
295        $('#production--modal--grid').addClass("grid "+c);
296        $('#production--modal--grid').html(h.html()+"<div id='production--modal--close--wrapper'><i onclick='modal();' id='production--modal--close' class='fa fa-times'></i></div>");
297        h = undefined;
298        c = undefined;
299        w = undefined;
300    }
301    else {
302        if ($('#production--modal').length > 0) {
303            $('#production--modal').remove();
304        }
305    }
306}
307
308/* Ease To */
309function easeTo(whereTo,offset,scrollTime) {
310    $('html, body').animate({
311        scrollTop: $(whereTo).offset().top + (typeof(offset) == "undefined"?0:offset) - ($('body').find('header').css('position') == 'fixed'?$('body').find('header').outerHeight():0)-10
312    }, (scrollTime||1000));
313};
314
315/*!
316[hubspot-metadata]
317{
318	"category": "template",
319	"creatable": true,
320	"path": "system/Production/production.js"
321}
322[end-hubspot-metadata]
323*/
324
325var copyrightDisplay = "false";
326
327if ((window.console)&&((copyrightDisplay=="true")||(copyrightDisplay=="modest"))) {console.log("Production™ Framework v3.194 loaded.\n© 2016. All rights reserved IMPACT Branding & Design LLC.\nhttp://www.impactbnd.com");}
328
329var mediaList = {
330	"default":[null,null],
331	"desk":[null,1168],
332	"lap":[1167,1024],
333	"lap-and-up":[null,1024],
334	"portable":[1023,null],
335	"tablet":[1023,680],
336	"palm":[679,null]
337};
338/*
339@codekit-append "../../Deli_Assets/base/JS/_aspectratio.js"
340*//*
341@codekit-append "../../Deli_Assets/base/JS/_equalize.js"
342*//*
343@codekit-append "../../Deli_Assets/base/JS/_fades.js"
344*//*
345@codekit-append "../../Deli_Assets/base/JS/_lazyload.js"
346*//*
347@codekit-append "../../Deli_Assets/base/JS/_modernizr.js"
348*//*
349@codekit-append "../../Deli_Assets/blocks/JS/_flexslider.js"
350*/
351
352if ((window.console)&&(copyrightDisplay=="true")) {console.log("Script loaded: aspectratio.js");}
353
354function productionAspect() {
355    $('body').find('.aspectratio, .all--aspectratio, .all--aspectratio *').each(function () {
356        if ($(this).attr('height')&&($(this).attr('width'))) {
357            if (parseFloat($(this).attr('height')/$(this).attr('width')) > 0) {
358                $(this).css('height',(Math.ceil($(this).width() * parseFloat($(this).attr('height')/$(this).attr('width')))+'px'));
359            }
360        }
361    });
362}
363$(document).ready(function () {
364    productionAspect();
365    $(window).resize(function () {
366        productionAspect();
367    });
368});
369
370if ((window.console)&&(copyrightDisplay=="true")) {console.log("Script loaded: equalize.js");}
371
372/* EQUALIZE HEIGHT + VERT-CENTER */
373/* The class .equalize will equalize the heights of instances of .equalize to the largest within a single .grid */
374
375function equalize() {
376	$('body').find('.equalize--center').css({'margin-top':'','overflow':''});
377	var eqar = [];
378    for (eqc=0;eqc<$('.grid').length;eqc++) {
379		if ($('.grid:eq('+eqc+')').length > 0) {
380			eqar.push(eqc);
381		}
382	};
383	for (eqeach=0;eqeach<eqar.length;eqeach++) {
384		var eqheights = [0,0,0,0];
385		var eqparent = $('.grid:eq('+eqar[eqeach]+')');
386		var eqmedia = null;
387		var eqkey = null;
388		$.each(mediaList,function(key,value) {
389			if (key == "default") {
390				eqkey = "";
391			}
392			else {
393				eqkey = key+"-";
394			}
395			for (i=0;i<4;i++) {	
396				if (i==0) {
397					eqmedia = "."+eqkey+"equalize";
398				}
399				else {
400					eqmedia = "."+eqkey+"equalize--"+i;
401				}
402				eqparent.find(eqmedia).css({'height':'','overflow':'auto'});
403				if (viewport(key)) {
404					var eqheight = Math.max.apply(null, eqparent.find(eqmedia).map(function () {
405						return $(this).outerHeight();
406					}).get());
407					if (eqheight > eqheights[i]) {
408						eqheights[i] = eqheight;
409					}
410				}
411			}
412		});
413		$.each(mediaList,function(key,value) {
414			if (viewport(key)) {
415				if (key == "default") {
416					key = "";
417				}
418				else {
419					key += "-";
420				}
421				for (i=0;i<4;i++) {
422					if (i==0) {
423						eqmedia = "."+key+"equalize";
424					}
425					else {
426						eqmedia = "."+key+"equalize--"+i;
427					}
428					eqparent.find(eqmedia).css({'height':eqheights[i]+'px','overflow':'hidden'});
429					eqparent.find(eqmedia).find('.equalize--center').each(function () {
430						$(this).css({'margin-top':($(this).closest(eqmedia).outerHeight() - $(this).outerHeight())/2,'overflow':'hidden'});
431					});
432				}
433			}
434		});
435	}
436};
437
438function vertCenter() {
439	$('body').find('.equalize--center').css({'margin-top':'','overflow':''});
440	var eqar = [];
441    for (eqc=0;eqc<$('.grid').length;eqc++) {
442		if ($('.grid:eq('+eqc+')').length > 0) {
443			eqar.push(eqc);
444		}
445	};
446	for (eqeach=0;eqeach<eqar.length;eqeach++) {
447		var eqparent = $('.grid:eq('+eqar[eqeach]+')');
448		var eqmedia = null;
449		var eqkey = null;
450		$.each(mediaList,function(key,value) {
451			if (viewport(key)) {
452				if (key == "default") {
453					key = "";
454				}
455				else {
456					key += "-";
457				}
458				for (i=0;i<4;i++) {
459					if (i==0) {
460						eqmedia = "."+key+"equalize";
461					}
462					else {
463						eqmedia = "."+key+"equalize--"+i;
464					}
465					eqparent.find(eqmedia).find('.equalize--center').each(function () {
466						$(this).css({'margin-top':($(this).closest(eqmedia).outerHeight() - $(this).outerHeight())/2,'overflow':'hidden'});
467					});
468				}
469			}
470		});
471	}
472}
473
474var eqselectors = [];
475$.each(mediaList,function(key,value) {
476	if (key == "default") {
477		eqkey = "";
478	}
479	else {
480		eqkey = key+"-";
481	}
482	for (i=0;i<4;i++) {	
483		if (i==0) {
484			eqmedia = "."+eqkey+"equalize";
485		}
486		else {
487			eqmedia = "."+eqkey+"equalize--"+i;
488		}
489		eqselectors.push(eqmedia);
490	}
491});
492eqselectors = eqselectors.join();
493
494$(window).load(function () {
495    equalize();
496    //vertCenter();
497    $('body').find('.equalize--center').css('opacity','1');
498});
499$(document).ready(function() {	
500    $(window).resize(function () {
501    	equalize();
502    	setTimeout(function () {
503    		equalize()
504    	},100);
505    });					
506});
507
508if ((window.console)&&(copyrightDisplay=="true")) {console.log("Script loaded: fades.js");}
509
510function productionFade() {
511	$('.fade--in, .fade--up, .fade--down, .fade--left, .fade--right').each(function () {
512		if ($(this).offset().top + $(window).height()*.33 <= $(document).scrollTop()+$(window).height()) {
513			$(this).addClass('fade');
514		}
515	});
516}
517
518// Fallback for slow loads
519setTimeout(function () {
520    productionFade();
521},3000);
522
523$(window).load(function () {
524    productionFade();
525    $(window).scroll(function () {
526    	productionFade();
527    });
528    $(window).resize(function () {
529    	productionFade();
530    });
531    $('.fade--load').each(function () {
532        $(this).addClass('fade');
533    });
534});
535
536if ((window.console)&&(copyrightDisplay=="true")) {console.log("Script loaded: lazyload.js");}
537
538function productionLazyLoad() {
539    viewportBottom = viewport().height + $(window).scrollTop();
540    lazyReplaced = false;
541    $('.lazyload[data-image][data-loaded="false"]').each(function () {
542        if ($(this).offset().top < viewportBottom) {
543            if ($(this).attr('data-target')) {
544                try {
545                    eval($(this).attr('data-target')).attr('src',$(this).attr('data-image'));
546                }
547                catch (e) {
548                    console.log("Failed to lazy load object. "+e.message);
549                }
550            }
551            else {
552                $(this).attr('src',$(this).attr('data-image'));
553            }
554            $(this).attr('data-loaded','true');
555            lazyReplaced = true;
556        }
557    });
558    $('.lazyload[data-background][data-loaded="false"]').each(function () {
559        if ($(this).offset().top < viewportBottom) {
560            if ($(this).attr('data-target')) {
561                try {
562                    eval($(this).attr('data-target')).css('background-image',"url('"+$(this).attr('data-background')+"')");
563                }
564                catch (e) {
565                    console.log("Failed to lazy load object. "+e.message);
566                }
567            }
568            else {
569                $(this).css('background-image',"url('"+$(this).attr('data-background')+"')");
570            }
571            $(this).attr('data-loaded','true');
572            lazyReplaced = true;
573        }
574    });
575    if ((lazyReplaced === true)&&(typeof equalize == 'function')) {
576        equalize();
577    }
578}
579$(document).ready(function () {
580    if ($('.lazyload').length) {
581        $('.lazyload[data-image], .lazyload[data-background]').attr('data-loaded','false');
582        productionLazyLoad();
583        $(window).resize(function () {
584            productionLazyLoad();
585        });
586        $(document).scroll(function () {
587            productionLazyLoad();
588        });
589    }
590});
591
592if ((window.console)&&(copyrightDisplay=="true")) {console.log("Script loaded: modernizr.js");}
593/* Modernizr 2.8.3 (Custom Build) | MIT & BSD
594 * Build: http://modernizr.com/download/#-backgroundsize-boxshadow-opacity-rgba-textshadow-cssgradients-csstransitions-canvas-video-input-inputtypes-localstorage-svg-shiv-cssclasses-testprop-testallprops-prefixes-domprefixes-load
595 */
596;window.Modernizr=function(a,b,c){function A(a){j.cssText=a}function B(a,b){return A(n.join(a+";")+(b||""))}function C(a,b){return typeof a===b}function D(a,b){return!!~(""+a).indexOf(b)}function E(a,b){for(var d in a){var e=a[d];if(!D(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function F(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:C(f,"function")?f.bind(d||b):f}return!1}function G(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+p.join(d+" ")+d).split(" ");return C(b,"string")||C(b,"undefined")?E(e,b):(e=(a+" "+q.join(d+" ")+d).split(" "),F(e,b,c))}function H(){e.input=function(c){for(var d=0,e=c.length;d<e;d++)u[c[d]]=c[d]in k;return u.list&&(u.list=!!b.createElement("datalist")&&!!a.HTMLDataListElement),u}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.length;d<i;d++)k.setAttribute("type",f=a[d]),e=k.type!=="text",e&&(k.value=l,k.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(f)&&k.style.WebkitAppearance!==c?(g.appendChild(k),h=b.defaultView,e=h.getComputedStyle&&h.getComputedStyle(k,null).WebkitAppearance!=="textfield"&&k.offsetHeight!==0,g.removeChild(k)):/^(search|tel)$/.test(f)||(/^(url|email)$/.test(f)?e=k.checkValidity&&k.checkValidity()===!1:e=k.value!=l)),t[a[d]]=!!e;return t}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var d="2.8.3",e={},f=!0,g=b.documentElement,h="modernizr",i=b.createElement(h),j=i.style,k=b.createElement("input"),l=":)",m={}.toString,n=" -webkit- -moz- -o- -ms- ".split(" "),o="Webkit Moz O ms",p=o.split(" "),q=o.toLowerCase().split(" "),r={svg:"http://www.w3.org/2000/svg"},s={},t={},u={},v=[],w=v.slice,x,y={}.hasOwnProperty,z;!C(y,"undefined")&&!C(y.call,"undefined")?z=function(a,b){return y.c
vendor: 4,845 bytes, line 596
596all(a,b)}:z=function(a,b){return b in a&&C(a.constructor.prototype[b],"undefined")},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if(typeof c!="function")throw new TypeError;var d=w.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(w.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(w.call(arguments)))};return e}),s.canvas=function(){var a=b.createElement("canvas");return!!a.getContext&&!!a.getContext("2d")},s.rgba=function(){return A("background-color:rgba(150,255,150,.5)"),D(j.backgroundColor,"rgba")},s.backgroundsize=function(){return G("backgroundSize")},s.boxshadow=function(){return G("boxShadow")},s.textshadow=function(){return b.createElement("div").style.textShadow===""},s.opacity=function(){return B("opacity:.55"),/^0.55$/.test(j.opacity)},s.cssgradients=function(){var a="background-image:",b="gradient(linear,left top,right bottom,from(#9f9),to(white));",c="linear-gradient(left top,#9f9, white);";return A((a+"-webkit- ".split(" ").join(b+a)+n.join(c+a)).slice(0,-a.length)),D(j.backgroundImage,"gradient")},s.csstransitions=function(){return G("transition")},s.video=function(){var a=b.createElement("video"),c=!1;try{if(c=!!a.canPlayType)c=new Boolean(c),c.ogg=a.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),c.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),c.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,"")}catch(d){}return c},s.localstorage=function(){try{return localStorage.setItem(h,h),localStorage.removeItem(h),!0}catch(a){return!1}},s.svg=function(){return!!b.createElementNS&&!!b.createElementNS(r.svg,"svg").createSVGRect};for(var I in s)z(s,I)&&(x=I.toLowerCase(),e[x]=s[I](),v.push((e[x]?"":"no-")+x));return e.input||H(),e.addTest=function(a,b){if(typeof a=="object")for(var d in a)z(a,d)&&e.addTest(d,a[d]);else{a=a.toLowerCase();if(e[a]!==c)return e;b=typeof b=="function"?b():b,typeof f!="undefined"&&f&&(g.className+=" "+(b?"":"no-")+a),e[a]=b}return e},A(""),i=k=null,function(a,b){function l(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function m(){var a=s.elements;return typeof a=="string"?a.split(" "):a}function n(a){var b=j[a[h]];return b||(b={},i++,a[h]=i,j[i]=b),b}function o(a,c,d){c||(c=b);if(k)return c.createElement(a);d||(d=n(c));var g;return d.cache[a]?g=d.cache[a].cloneNode():f.test(a)?g=(d.cache[a]=d.createElem(a)).cloneNode():g=d.createElem(a),g.canHaveChildren&&!e.test(a)&&!g.tagUrn?d.frag.appendChild(g):g}function p(a,c){a||(a=b);if(k)return a.createDocumentFragment();c=c||n(a);var d=c.frag.cloneNode(),e=0,f=m(),g=f.length;for(;e<g;e++)d.createElement(f[e]);return d}function q(a,b){b.cache||(b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag()),a.createElement=function(c){return s.shivMethods?o(c,a,b):b.createElem(c)},a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/[\w\-]+/g,function(a){return b.createElem(a),b.frag.createElement(a),'c("'+a+'")'})+");return n}")(s,b.frag)}function r(a){a||(a=b);var c=n(a);return s.shivCSS&&!g&&!c.hasCSS&&(c.hasCSS=!!l(a,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),k||q(a,c),a}var c="3.7.0",d=a.html5||{},e=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,f=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,g,h="_html5shiv",i=0,j={},k;(function(){try{var a=b.createElement("a");a.innerHTML="<xyz></xyz>",g="hidden"in a,k=a.childNodes.length==1||function(){b.createElement("a");var a=b.createDocumentFragment();return typeof a.cloneNode=="undefined"||typeof a.createDocumentFragment=="undefined"||typeof a.createElement=="undefined"}()}catch(c){g=!0,k=!0}})();var s={elements:d.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:c,shivCSS:d.shivCSS!==!1,supportsUnknownElements:k,shivMethods:d.shivMethods!==!1,type:"default",shivDocument:r,createElement:o,createDocumentFragment:p};a.html5=s,r(b)}(this,b),e._version=d,e._prefixes=n,e._domPrefixes=q,e._cssomPrefixes=p,e.testProp=function(a){return E([a])},e.testAllProps=G,g.className=g.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(f?" js "+v.join(" "):""),e}(this,this.document),function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}
596function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}}(this,document),Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};
597
598/* SLIDER */
599
600function flexsliderSlide(sliderNum,slideNum) {
601    var thisSlider = $('.flexslider--slider[data-slider="'+sliderNum+'"]');
602    if (typeof(thisSlider)!="undefined") {
603        if (!thisSlider.hasClass('flexslider--transition')) {
604            thisSlider.addClass('flexslider--transition');
605            var slideCur = thisSlider.find('.flexslider--slide.active').index();
606            if (parseInt(slideNum) >= 0) {
607                if (thisSlider.attr('data-loop') == "true") {
608                    slideNum += 2;
609                }
610            }
611            else if (slideNum.toLowerCase() == "prev") {
612                slideNum = slideCur-1;
613                if (thisSlider.attr('data-loop') == "true") {
614                    if (slideNum < 2) {
615                        slideNum = thisSlider.find('.flexslider--slide').length-3;
616                        thisSlider.find('.flexslider--slide').addClass('no--transition');
617                        for (i=0;i<thisSlider.find('.flexslider--slide').length;i++) {
618                            thisSlider.find('.flexslider--slide:eq('+i+')').css({
619                                'left':100*(i - (thisSlider.find('.flexslider--slide').length - 2))+'%',
620                            });
621                        }
622                        thisSlider[0].offsetHeight;
623                        thisSlider.find('.flexslider--slide').removeClass('no--transition');
624                    }
625                }
626                else {
627                    if (slideNum < 0) {slideNum = thisSlider.find('.flexslider--slide').length-1;}
628                }
629            }
630            else if (slideNum.toLowerCase() == "next") {
631                slideNum = slideCur+1;
632                if (thisSlider.attr('data-loop') == "true") {
633                    if (slideNum > thisSlider.find('.flexslider--slide').length-3) {
634                        slideNum = 2;
635                        thisSlider.find('.flexslider--slide').addClass('no--transition');
636                        for (i=0;i<thisSlider.find('.flexslider--slide').length;i++) {
637                            thisSlider.find('.flexslider--slide:eq('+i+')').css({
638                                'left':100*(i-1)+'%',
639                            });
640                        }
641                        thisSlider[0].offsetHeight;
642                        thisSlider.find('.flexslider--slide').removeClass('no--transition');
643                    }
644                }
645                else {
646                    if (slideNum > thisSlider.find('.flexslider--slide').length-1) {
647                        slideNum = 0;
648                    }
649                }
650            }
651            if (thisSlider.hasClass('flexslider--type--slide')) {
652                for (i=0;i<thisSlider.find('.flexslider--slide').length;i++) {
653                    thisSlider.find('.flexslider--slide:eq('+i+')').css({
654                        'left':(i-slideNum)*100+"%"
655                    });
656                    thisSlider.find('.flexslider--slide').removeClass('active active--clone');
657                    $('.flexslider--controls[data-slider="'+sliderNum+'"] li').removeClass('active');
658                    thisSlider.find('.flexslider--slide:eq('+slideNum+')').addClass('active');
659                    $('.flexslider--controls[data-slider="'+sliderNum+'"] li:eq('+(slideNum-(thisSlider.attr('data-loop') == "true"?2:0))+')').addClass('active');
660                    if (thisSlider.attr('data-loop') == "true") {
661                        if (slideNum == 2) {
662                            thisSlider.find('.flexslider--slide:eq('+(thisSlider.find('.flexslider--slide').length-2)+')').addClass('active--clone');
663                        }
664                        else if (slideNum == thisSlider.find('.flexslider--slide').length-3) {
665                            thisSlider.find('.flexslider--slide:eq(1)').addClass('active--clone');
666                        }
667                    }
668                };
669            }
670            else if (thisSlider.hasClass('flexslider--type--fade')) {
671                for (i=0;i<thisSlider.find('.flexslider--slide').length;i++) {
672                    thisSlider.find('.flexslider--slide').removeClass('active');
673                    $('.flexslider--controls[data-slider="'+sliderNum+'"] li').removeClass('active');
674                    thisSlider.find('.flexslider--slide:eq('+slideNum+')').addClass('active');
675                    $('.flexslider--controls[data-slider="'+sliderNum+'"] li:eq('+slideNum+')').addClass('active');
676                };
677            }
678            flexsliderAuto(sliderNum);
679            setTimeout(function () {
680                thisSlider.removeClass('flexslider--transition');
681            },(parseFloat(thisSlider.find('.flexslider--slide').css('transition-duration')))*1000);
682        }
683    }
684}
685function flexsliderAuto(sliderNum) {
686    if ($('.flexslider--slider[data-slider="'+sliderNum+'"]').data('duration')) {
687        $('.flexslider--autoslide[data-slider="'+sliderNum+'"]').stop();
688        $('.flexslider--autoslide[data-slider="'+sliderNum+'"]').css('width','0%');
689        $('.flexslider--autoslide[data-slider="'+sliderNum+'"]').animate({width:'100%',mozTransition:'width 500ms ease-out',webkitTransition:'width 500ms ease-out',transition:'width 500ms ease-out'},
690            parseInt($('.flexslider--slider[data-slider="'+sliderNum+'"]').data('duration'))*1000,
691            function(){
692                $('.flexslider--autoslide[data-slider="'+sliderNum+'"]').css('width','0%');
693                flexsliderSlide($('.flexslider--slider[data-slider="'+sliderNum+'"]').data('slider'),'next');
694            }
695        );
696    }   
697}
698function flexsliderSize() {
699    $('.flexslider--slider').each(function () {
700        $(this).find('.flexslider--slide--wrapper').css('height','');
701        $(this).find('.flexslider--slide').each(function() {
702            if ($(this).height() > $(this).closest('.flexslider--slide--wrapper').height()) {
703                $(this).closest('.flexslider--slide--wrapper').css({
704                    'height':$(this).height()+'px'
705                });
706            }
707        });
708    });
709}
710$(document).ready(function () {
711    $(window).resize(function () {
712        flexsliderSize();
713    });
714});
715$(window).load(function () {
716    flexsliderSize();
717    $('.flexslider--slider').each(function () {
718        if ($(this).attr('data-loop') !== "true") {
719            $(this).find('.flexslider--slide:first-child').addClass('active');
720        }
721        for(i=0;i<$(this).find('.flexslider--slide').length;i++) {
722            $('.flexslider--controls[data-slider="'+$(this).data('slider')+'"]').append("<li></li>");
723        };
724        $('.flexslider--controls[data-slider="'+$(this).data('slider')+'"] li:first-child').addClass('active');
725        if ($(this).find('.flexslider--slide').length <= 1) {
726            $('.flexslider--controls[data-slider="'+$(this).data('slider')+'"]').css('display','none');
727            $('.flexslider--prev[data-slider="'+$(this).data('slider')+'"]').css('display','none');
728            $('.flexslider--next[data-slider="'+$(this).data('slider')+'"]').css('display','none');
729            $(this).addClass('flexslider--type--static');
730        }
731        else {
732            if ($(this).attr('data-loop') == "true") {
733                $(this).find('.flexslider--slide:first-child').clone().addClass('active--clone').appendTo($(this).find('.flexslider--slide--wrapper > span'));
734                $(this).find('.flexslider--slide:eq(1)').clone().appendTo($(this).find('.flexslider--slide--wrapper > span'));
735                $(this).find('.flexslider--slide:eq('+($(this).find('.flexslider--slide').length-3)+')').clone().prependTo($(this).find('.flexslider--slide--wrapper > span'));
736                $(this).find('.flexslider--slide:eq('+($(this).find('.flexslider--slide').length-4)+')').clone().prependTo($(this).find('.flexslider--slide--wrapper > span'));
737                $(this).find('.flexslider--slide:eq(2)').addClass('active');
738            }
739            flexsliderAuto($(this).data('slider'));
740        }
741    });
742    $('.flexslider--slider.flexslider--type--slide').each(function () {
743        if ($(this).find('.flexslider--slide').length > 1) {
744            if ($(this).attr('data-loop') == "true") {
745                for (i=0;i<$(this).find('.flexslider--slide').length;i++) {
746                    $(this).find('.flexslider--slide:eq('+i+')').css({
747                        'left':100*(i-2)+'%',
748                    });
749                }
750            }
751            else {
752                for (i=0;i<$(this).find('.flexslider--slide').length;i++) {
753                    $(this).find('.flexslider--slide:eq('+i+')').css({
754                        'left':100*i+'%',
755                    });
756                }
757            }
758        }
759    });
760    $('.flexslider--controls').each(function () {
761        for (i=0;i<$(this).find('li').length;i++) {
762            $(this).find('li:eq('+i+')').attr('onclick',"flexsliderSlide($(this).closest('.flexslider--controls').data('slider'),"+i+");");
763        }
764    });
765    $('.flexslider--prev').attr('onclick',"flexsliderSlide($(this).data('slider'),'prev');");
766    $('.flexslider--next').attr('onclick',"flexsliderSlide($(this).data('slider'),'next');");
767});
768
769// Custom JS
770
771/* MOBILE NAV */
772
773function mobileMenu() {
774	$('body').toggleClass('mobile-nav--showing');
775}
776
777/* Image Modals */
778$(document).ready(function () {
779	$('body').find('.fancybox').each(function () {
780		//modal($(this).parent());
781		$(this).fancybox({
782			scrolling: 'no',
783			fitToView: true,
784			padding:0,
785			iframe: {
786				scrolling: 'no',
787				preload: false
788			}
789		});
790	});
791});
792
793/* Footnotes */
794$(document).ready(function () {
795	$('body').find('.footnote--content--link').click(function () {
796		thisRel = $(this).attr('rel');
797		easeTo($('.footnote--anchor[rel="'+thisRel+'"]'),-200,500);
798		$('.footnote--anchor[rel="'+thisRel+'"]').addClass('active');
799		setTimeout(function () {
800			$('.footnote--anchor[rel="'+thisRel+'"]').removeClass('active');
801		},2000);
802	});
803	$('body').find('.footnote--anchor--link').click(function () {
804		thisRel = $(this).attr('rel');
805		easeTo($('.footnote--content--link[rel="'+thisRel+'"]'),-200,500);
806		$('.footnote--content--link[rel="'+thisRel+'"]').addClass('active');
807		setTimeout(function () {
808			$('.footnote--content--link[rel="'+thisRel+'"]').removeClass('active');
809		},2000);
810	});
811});
812
813/* Back-to-top */
814
815function sizeBacktotop() {
816	if ($(window).scrollTop() > 600) {
817		$('body').addClass('back-to-top--showing');
818	}
819	else {
820		$('body').removeClass('back-to-top--showing');	
821	}
822}
823
824$(document).ready(function () {
825	if ($('body').find('#back-to-top').length > 0) {
826		$('#back-to-top').click(function () {
827			easeTo('body',0,1000);
828		});
829		$(document).scroll(function () {
830			sizeBacktotop();
831		});
832		$(window).resize(function () {
833			sizeBacktotop();
834		});
835	}
836});
837
838
839/* Validate */
840
841function productionValidate(thisObj) {
842	if (thisObj.is("form")) {
843		var formSubmit = true;
844
845		$('.page--form form').find('input[type="text"]:required, input[type="email"]:required, textarea:required').each(function () {
846			if ($(this).value()) {
847				if ($(this).value().trim() != "") {
848					formSubmit = true;
849				}
850				else {
851					formSubmit = false;
852				}
853			}
854			else {
855				formSubmit = false;
856			}
857		});
858
859		if (formSubmit === true) {
860
861		}
862		else {
863			alert("Please complete all required fields.");
864			event.preventDefault();
865			return false;
866		}
867	}
868}
869
870/* Fixed Header */
871
872function initFixedheader() {
873	$("body").addClass("header--fixed--active");
874	$("body").find("header").after("<div class='header--spacer'></div>");
875	
876	sizeFixedheader();
877	$(document).resize(function () {
878		sizeFixedheader();
879	});
880	$(window).scroll(function () {
881		sizeFixedheader();
882	});
883	
884    if (window.location.hash) {
885	  if (window.location.hash.length > 1) {
886	    $(window).load(function () {
887		  setTimeout(function () {
888		    thisHash = window.location.hash.slice(1); 
889		    if ($("body").find("#"+thisHash).length > 0) {
890			  scrollOffset = 0;
891			  if ($("body").hasClass("header--fixed--enabled")) {
892			    scrollOffset += $("body").find("header").height(); 
893			  }
894			  $(window).scrollTop($("body").find("#"+thisHash).offset().top + (-1 * scrollOffset));
895		    }
896		  },300);
897	    });
898	  }
899    }
900    $("body").find("a[href*='#']").click(function (e) {
901	  thisHash = $(this).attr('href').split("#")[1];
902	  if ($("body").find("#"+thisHash).length > 0) {
903	    easeTo($("body").find("#"+thisHash));
904	    e.preventDefault();
905	    return false;
906	  }
907    });
908}
909function sizeFixedheader() {
910	if ($("body").hasClass("header--fixed--active")) {
911		scrollDist = $(window).scrollTop();
912		headerHeight = $("body").find("header").height();
913		$("body").find(".header--spacer").css({
914			"height":headerHeight+"px"
915		});
916		if (scrollDist > 40) {
917			$("body").addClass("is--scrolled");
918		}
919		else {
920			$("body").removeClass("is--scrolled");
921		}
922	}
923}
924$(document).ready(function () {
925	if ($("body").hasClass("header--fixed--enabled")) {
926		initFixedheader();
927	}
928});

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.