PageSourceSearch

https://www.varesenews.it/wp-content/themes/editheme/js/all-init.js?v=1672598784

js varesenews.it collected 2026-10-01 10:35:52 UTC 129,048 bytes, 574 lines download raw bytes

1
2jQuery.cookie = function(key, value, options) {
3	// key and at least value given, set cookie...
4	if (arguments.length > 1 && (!/Object/.test(Object.prototype.toString.call(value)) || value === null || value === undefined)) {
5		options = jQuery.extend({}, options);
6
7		if (value === null || value === undefined) {
8			options.expires = -1;
9		}
10
11		if (typeof options.expires === 'number') {
12			var days = options.expires, t = options.expires = new Date();
13			t.setDate(t.getDate() + days);
14		}
15
16		value = String(value);
17
18		return (document.cookie = [
19			encodeURIComponent(key), '=', options.raw ? value : encodeURIComponent(value),
20			options.expires ? '; expires=' + options.expires.toUTCString() : '', // use expires attribute, max-age is not supported by IE
21			options.path    ? '; path=' + options.path : '',
22			options.domain  ? '; domain=' + options.domain : '',
23			options.secure  ? '; secure' : ''
24		].join(''));
25	}
26
27	// key and possibly options given, get cookie...
28	options = value || {};
29	var decode = options.raw ? function(s) { return s; } : decodeURIComponent;
30
31	var pairs = document.cookie.split('; ');
32	for (var i = 0, pair; pair = pairs[i] && pairs[i].split('='); i++) {
33		// IE saves cookies with empty string as "c; ", e.g. without "=" as opposed to EOMB, thus pair[1] may be undefined
34		if (decode(pair[0]) === key) return decode(pair[1] || '');
35	}
36	return null;
37};
38jQuery(document).ready(function() {
39
40	jQuery("a.impostazioni_privacy_footer").click(function(e) {
41
42		e.preventDefault();
43		if (typeof window.__cmp !=='undefined') {
44
45			window.__cmp('displayConsentUi');
46		}
47
48
49	});
50
51
52 // jQuery.dfp({
53	// 			dfpID: '5426123'
54	// 	});
55
56	
57is_mobile = jQuery.cookie('cf_mobile_2014');
58
59if (typeof is_mobile != 'undefined' ) {
60  jQuery('body').append('<div class="back-to-mobile"><a href="#">Vai al sito in modalità mobile</a></div>'); 
61  jQuery('.back-to-mobile').click( function(){
62	jQuery.cookie('cf_mobile_2014','true', { path: '/', domain: '.www.varesenews.it' } );
63	//jQuery.removeCookie('cf_mobile_2014');
64	location.reload();
65  });
66}
67
68/*----------------------------------------------------*/
69/* Get Datepicker
70/*----------------------------------------------------*/
71
72 if ((jQuery('.dpicker').length > 0)){
73 jQuery('.dpicker').datepicker({
74	          dateFormat : 'dd-mm-yy',
75			 changeMonth: true,
76             changeYear: true,
77			 numberOfMonths: 2,
78			 showButtonPanel: true
79         });
80}		 
81		 
82/*----------------------------------------------------*/
83/* Get Today
84/*----------------------------------------------------*/
85
86  var e = WebDate();
87  jQuery("#web-today").text(e);
88
89if ((jQuery('.badge-share').length > 0)){
90 
91 
92/*----------------------------------------------------*/
93/* Social Box Button in Single
94/*----------------------------------------------------*/
95 
96 
97 
98jQuery(".badge-share").click(function() {   
99	
100	
101 	 switch (true) {
102      case jQuery(this).hasClass('badge-share-facebook'):
103        MyVar = 1;
104        break;
105      case jQuery(this).hasClass('badge-share-twitter'):
106       MyVar = 2;
107        break;
108      case jQuery(this).hasClass('badge-share-gplus'):
109        MyVar = 3;
110        break;
111	  case jQuery(this).hasClass('badge-share-linkedin'):
112        MyVar = 4;
113        break;
114	   case jQuery(this).hasClass('badge-share-pinterest'):
115        MyVar = 5;
116        break;	
117    }
118	 
119
120 
121	switch (MyVar) 
122	{
123		case 1:
124			var b = jQuery(this).attr("data-share");
125			socialurl = "https://www.facebook.com/sharer/sharer.php?u=" + encodeURIComponent(b)
126			break; 
127		case 2:
128			var b = jQuery(this).attr("data-share");
129			var c = jQuery(this).attr("data-title");
130			var d = jQuery(this).attr("data-shortlink");
131
132			socialurl = "https://twitter.com/intent/tweet?source=tweetbutton&original_referer=" + encodeURIComponent(b) + "&text=" + encodeURIComponent(c) + "&url=" + encodeURIComponent(d);
133			break; 
134		case 3:
135			var b = jQuery(this).attr("data-share");
136
137			socialurl = "https://plus.google.com/share?url=" + encodeURIComponent(b);
138			break; 
139		case 4:
140			var b = jQuery(this).attr("data-share");
141
142			socialurl = "https://www.linkedin.com/shareArticle?mini=true&url=" + encodeURIComponent(b);
143			break; 	
144		case 5:
145			var b = jQuery(this).attr("data-share");
146			var c = jQuery(this).attr("data-title");
147			var d = jQuery(this).attr("data-media");
148
149
150			socialurl = "https://www.pinterest.com/pin/create/button/?url=" + encodeURIComponent(b) + "&description=" + encodeURIComponent(c)+ "&media=" + encodeURIComponent(d);
151			break;
152		default: 
153			socialurl = "Foo";
154	}
155	 function showShareWindow() {
156            {
157                var b = 640,
158				    //z = jQuery(".btn-facebook").attr("data-share");
159                    c = 460,
160					a = socialurl;
161                    d = window.screen.height / 2 - c / 2,
162                    e = window.screen.width / 2 - b / 2;
163               	 window.open(socialurl, "Share", "status=1,height=" + c + ",width=" 
163+ b + ",top=" + d + ",left=" + e + ",resizable=0")
164            }
165        };
166      showShareWindow();
167
168 });      
169}
170
171/*----------------------------------------------------*/
172/* Feed
173/*----------------------------------------------------*/
174
175var win = null;
176// jQuery.extend({
177// 	jGFeed: function (e, t, n, r) {
178// 		if (e == null) {
179// 			return false
180// 		}
181// 		var i = "https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&callback=?&q=" + e;
182// 		if (n != null) {
183// 			i += "&num=" + n
184// 		}
185// 		if (r != null) {
186// 			i += "&key=" + r
187// 		}
188// 		jQuery.getJSON(i, function (e) {
189// 			if (typeof t == "function") {
190// 				t.call(this, e.responseData.feed)
191// 			} else {
192// 				return false
193// 			}
194// 		})
195// 	}
196// });
197var orariofeed = new Date;
198var feedcachebuster = Math.floor(orariofeed.getTime() / (5 * 60 * 1e3));
199
200//Blog
201//     var jsonUrl = "https://www3.varesenews.it/blog/blogosfera_varesenews_json.php";
202//     jQuery.ajax({
203//         url: jsonUrl,
204//         success:function(data) {
205//             jQuery.each(data, function (key, value) {
206// 				if (key > 4) return false;
207//
208//                 var template = '<article><header><h4><a target="blank" href="%bloglink%">%blogtitle%</a></h4><h5><a target="blank" href="%bloglink%">%blogdescription%</a></h5></header></article>';
209//                 var html = template.replace(/%bloglink%/g, value.link).replace(/%blogtitle%/g, value.title).replace(/%blogdescription%/g, value.description);
210//                 if ((jQuery('#blog-feed').length > 0)){
211//                     jQuery(html).appendTo("#blog-feed");
212//                 }
213//                 if ((jQuery('#tab-3').length > 0)){
214//                     jQuery(html).appendTo("#tab-3");
215//                 }
216//                 if ((jQuery('#tab-7').length > 0)){
217//                     jQuery(html).appendTo("#tab-7");
218//                 }
219//
220//             })
221//         }
222//     });
223
224//Blog Tab
225// if ((jQuery('#tab-3').length > 0)){
226//
227// 	jQuery.jGFeed("https://www3.varesenews.it/blog/blogosfera.rss", function (e) {
228// 		if (!e) {
229// 			return false
230// 		}
231// 		var t = '<article><header><h4><a target="blank" href="%bloglink%">%blogtitle%</a></h4><h5><a target="blank" href="%bloglink%">%blogdescription%</a></h5></header></article>';
232//
233// 		for (var n = 0; n < e.entries.length; n++) {
234// 			var r = e.entries[n];
235// 			var i = t.replace(/%blogtitle%/g, r.title).replace(/%bloglink%/g, r.link).replace(/%blogdescription%/g, r.contentSnippet);
236// 			jQuery(i).appendTo("#tab-3")
237// 		}
238// 	}, 4);
239//
240// };
241
242//Blog Tab
243// if ((jQuery('#tab-7').length > 0)){
244//
245// 	jQuery.jGFeed("https://www3.varesenews.it/blog/blogosfera.rss", function (e) {
246// 		if (!e) {
247// 			return false
248// 		}
249// 		var t = '<article><header><h4><a target="blank" href="%bloglink%">%blogtitle%</a></h4><h5><a target="blank" href="%bloglink%">%blogdescription%</a></h5></header></article>';
250//
251// 		for (var n = 0; n < e.entries.length; n++) {
252// 			var r = e.entries[n];
253// 			var i = t.replace(/%blogtitle%/g, r.title).replace(/%bloglink%/g, r.link).replace(/%blogdescription%/g, r.contentSnippet);
254// 			jQuery(i).appendTo("#tab-7")
255// 		}
256// 	}, 4);
257//
258// };
259
260
261
262    /*----------------------------------------------------*/
263/*  Ajax Feed Instagram
264/*----------------------------------------------------*/	
265	
266if ( jQuery('#edifeed').length > 0 ){
267		console.log("PARTE EDIFEED");
268
269 		jQuery.ajax({
270					url: "https://api.instagram.com/v1/users/self/media/recent/?access_token=343648695.4886ee0.d829663d72af47048eb1dd45f5f8b8de&count=1", 
271					// Tell jQuery we're expecting JSONP
272					dataType: "jsonp",
273					success: function( response ) {
274					
275					//console.log(response.data);
276					
277					jQuery.each( response.data, function( key, instadata ) {
278				 
279						posturl = instadata.link;
280						postlike = instadata.likes.count;
281						postimagesrc = instadata.images.low_resolution.url;
282						
283						
284						jQuery("#edifeed").append('<a href="'+posturl+'" target="_blank"><img src="'+postimagesrc+'" /><div class="likes">&hearts; '+postlike+'</div></a>'); 
285
286 						
287					});
288						
289				 
290				
291					 
292				
293					}
294		});
295		
296		console.log("FINIESCE EDIFEED");
297};  
298
299
300  
301  
302/*----------------------------------------------------*/
303/* Box Necrologie
304/*----------------------------------------------------*/
305 
306
307// if ((jQuery('.necro ul').length > 0)){
308//
309// 		// var jsonUrl = "https://necrologie.varesenews.it/wp-content/themes/editheme/json/tutti.php";
310// 		var jsonUrl = "https://necrologie.varesenews.it/wp-content/themes/editheme/json/export.json?v=2";
311// 		  jQuery.ajax({
312// 			url: jsonUrl,
313// 			success:function(data) {
314//
315// 				 jQuery.each(data, function (key, value) {
316//
317//  					var template = '<li><a target="blank" href="%defuntolink%"><strong>%defuntotitle%</strong> - %defuntotype%</a></li>';
318// 				  	var html = template.replace(/%defuntolink%/g, value.link).replace(/%defuntotitle%/g, value.title).replace(/%defuntotype%/g, value.type);
319// 					jQuery(html).appendTo(".necro ul");
320// 				 })
321//
322//
323//
324// 			}
325// 		  });
326//
327// 	};
328 
329/*----------------------------------------------------*/
330/* Share Box Handler 
331/*----------------------------------------------------*/
332
333if ((jQuery('.share-btn').length > 0)){
334
335	jQuery('.share-btn').hover(function()
336		{
337			jQuery(this).children('.share-mask').show();
338		}, function()
339		{ 
340			jQuery(this).children('.share-mask').hide();
341	});
342
343}
344			
345	
346	
347
348 
349/*----------------------------------------------------*/
350/*  Tab Box Handler 
351/*----------------------------------------------------*/
352 
353if ((jQuery('.tabs-container').length > 0)){
354
355    jQuery(".tab-widget-01 a").click(function(event) {
356        event.preventDefault();
357        jQuery(this).parent().addClass("current");
358        jQuery(this).parent().siblings().removeClass("current");
359        var tab = jQuery(this).attr("href");
360        jQuery(".tc-01 .tab-content").not(tab).css("display", "none");
361        jQuery(tab).fadeIn();
362    });
363	
364	jQuery(".tab-widget-02 a").click(function(event) {
365        event.preventDefault();
366        jQuery(this).parent().addClass("current");
367        jQuery(this).parent().siblings().removeClass("current");
368        var tab = jQuery(this).attr("href");
369        jQuery(".tc-02 .tab-content").not(tab).css("display", "none");
370        jQuery(tab).fadeIn();
371    });
372	
373	jQuery(".tab-widget-03 a").click(function(event) {
374        event.preventDefault();
375        jQuery(this).parent().addClass("current");
376        jQuery(this).parent().siblings().removeClass("current");
377        var tab = jQuery(this).attr("href");
378        jQuery(".tc-03 .tab-content-popular").not(tab).css("display", "none");
379        jQuery(tab).fadeIn();
380    });
381	
382}
383
384/*----------------------------------------------------*/
385/* Last Screen in Photogallery
386/*----------------------------------------------------*/
387
388if ((jQuery('.lastone').length > 0)){
389	jQuery( ".lastone" ).click(function(e) {
390		jQuery( "#final-screen" ).addClass('active');
391		jQuery( "#photogallery-content" ).addClass('disable');
392		e.preventDefault();
393	});
394	
395	jQuery( ".close-finalscreen" ).click(function() {
396		jQuery( "#final-screen" ).removeClass('active');
397		jQuery( "#photogallery-content" ).removeClass('disable');
398	});
399
400
401}
402
403 
404/*----------------------------------------------------*/
405/* Trig The Lightbox
406/*----------------------------------------------------*/
407(function() {
408	var arr = [];
409	jQuery('[rel^="ilightbox["]').each(function() {
410		var attr = this.getAttribute("rel");
411		jQuery.inArray(attr, arr) && arr.push(attr)
412	});
413	jQuery.each(arr, function(b, c) {
414		jQuery('[rel="' + c + '"]').iLightBox({
415			skin: 'metro-black',
416 
417		})
418	});
419})();
420	
421
422
423(function ($) {
424
425	if($('#main-menu-custom-cat').length > 0){
426
427        $('#main-menu-custom-cat > li').on('click', function(){
428
429        	$('#main-menu-custom-cat .sub-menu').toggle();
430
431			var curr_nav_color = ($('#wrap-header .bottom-bar-custom').css('background-color') === 'rgb(235, 235, 235)')?'white':"rgb(235, 235, 235)";
432            $('#wrap-header .bottom-bar-custom').css('background-color', curr_nav_color);
433
434
435		})
436
437	}
438
439}(jQuery))
440
441
442});
443
444/*----------------------------------------------------*/
445/* Cookie Logged In Check
446/*----------------------------------------------------*/
447
448function update_login_menu() {
449	user_info = jQuery.cookie('wordpress_logged_in_usercache');
450
451	if (typeof user_info != 'undefined'){
452		var user_info_splitted  = user_info.split("|");
453		var user_name = user_info_splitted[0];
454		var user_surname = user_info_splitted[1];
455		var user_displayname = user_info_splitted[2];
456		var user_nicename = user_info_splitted[3];
457
458		jQuery("body").addClass('cookie-logged-in');
459		document.querySelector(".user-menu-logged").style.display = 'flex';
460		jQuery("#login-modal").hide();
461		jQuery(".user-menu-name").html('Profilo <b class="caret"></b>');
462		jQuery(".user-menu-link a").attr('href','/persona/'+user_nicename+'/');
463		jQuery(".user-menu-login").hide();
464		jQuery("#registrati-footer-link").hide();
465		jQuery(".iscriviti-comunita").hide();
466
467
468	}
469
470	const getCookie = (name) => {
471		var nameEQ = name + "=";
472		var ca = document.cookie.split(';');
473		for(var i=0;i < ca.length;i++) {
474			var c = ca[i];
475			while (c.charAt(0)==' ') c = c.substring(1,c.length);
476			if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
477		}
478		return null;
479	}
480
481	const sCookieRoles = getCookie('wordpress_logged_in_company');
482	if(!sCookieRoles){ return; }
483
484	const aCookieRoles = sCookieRoles.split(', ');
485	console.log(aCookieRoles);
486	if(aCookieRoles.includes('organization')){
487		document.querySelector('.user-menu-org').classList.add('visible');
488	}
489
490
491}
492
493document.addEventListener('DOMContentLoaded',update_login_menu);
494document.addEventListener('trigger_login',update_login_menu);
495
496 
497function str_pad(e, t, n, r) {
498  var i = "",
499    s;
500  var o = function (e, t) {
501    var n = "",
502      r;
503    while (n.length < t) {
504      n += e
505    }
506    n = n.substr(0, t);
507    return n
508  };
509  e += "";
510  n = n !== undefined ? n : " ";
511  if (r != "STR_PAD_LEFT" && r != "STR_PAD_RIGHT" && r != "STR_PAD_BOTH") {
512    r = "STR_PAD_RIGHT"
513  }
514  if ((s = t - e.length) > 0) {
515    if (r == "STR_PAD_LEFT") {
516      e = o(n, s) + e
517    } else if (r == "STR_PAD_RIGHT") {
518      e = e + o(n, s)
519    } else if (r == "STR_PAD_BOTH") {
520      i = o(n, Math.ceil(s / 2));
521      e = i + e + i;
522      e = e.substr(0, t)
523    }
524  }
525  return e
526}
527function is_array(e) {
528  return typeof e == "object" && e instanceof Array
529}
530 
531 
532var win = null;
533 
534
535function WebDate() {
536  var e = new Date;
537  var t = e.getYear();
538  if (t < 1e3) {
539    t += 1900
540  }
541  var n = new Array("Domenica", "Lunedi", "Martedi", "Mercoledi", "Giovedi", "Venerdi", "Sabato");
542  var r = new Array("Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre");
543  var i =  n[e.getDay()] + " , " + e.getDate() + " " + r[e.getMonth()] + " " + t;
544  return i
545}
546
547 
548
vendor: 27,822 bytes, lines 549-555
549/*!
550 * Bootstrap v3.0.3 (http://getbootstrap.com)
551 * Copyright 2013 Twitter, Inc.
552 * Licensed under http://www.apache.org/licenses/LICENSE-2.0
553 */
554
555if("undefined"==typeof jQuery)throw new Error("Bootstrap requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]}}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one(a.support.transition.end,function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b()})}(jQuery),+function(a){"use strict";var b='[data-dismiss="alert"]',c=function(c){a(c).on("click",b,this.close)};c.prototype.close=function(b){function c(){f.trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one(a.support.transition.end,c).emulateTransitionEnd(150):c())};var d=a.fn.alert;a.fn.alert=function(b){return this.each(function(){var d=a(this),e=d.data("bs.alert");e||d.data("bs.alert",e=new c(this)),"string"==typeof b&&e[b].call(d)})},a.fn.alert.Constructor=c,a.fn.alert.noConflict=function(){return a.fn.alert=d,this},a(document).on("click.bs.alert.data-api",b,c.prototype.close)}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d)};b.DEFAULTS={loadingText:"loading..."},b.prototype.setState=function(a){var b="disabled",c=this.$element,d=c.is("input")?"val":"html",e=c.data();a+="Text",e.resetText||c.data("resetText",c[d]()),c[d](e[a]||this.options[a]),setTimeout(function(){"loadingText"==a?c.addClass(b).attr(b,b):c.removeClass(b).removeAttr(b)},0)},b.prototype.toggle=function(){var a=this.$element.closest('[data-toggle="buttons"]'),b=!0;if(a.length){var c=this.$element.find("input");"radio"===c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?b=!1:a.find(".active").removeClass("active")),b&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}b&&this.$element.toggleClass("active")};var c=a.fn.button;a.fn.button=function(c){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof c&&c;e||d.data("bs.button",e=new b(this,f)),"toggle"==c?e.toggle():c&&e.setState(c)})},a.fn.button.Constructor=b,a.fn.button.noConflict=function(){return a.fn.button=c,this},a(document).on("click.bs.button.data-api","[data-toggle^=button]",function(b){var c=a(b.target);c.hasClass("btn")||(c=c.closest(".btn")),c.button("toggle"),b.preventDefault()})}(jQuery),+function(a){"use strict";var b=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",a.proxy(this.pause,this)).on("mouseleave",a.proxy(this.cycle,this))};b.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},b.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},b.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},b.prototype.to=function(b){var c=this,d=this.getActiveIndex();return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},b.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition.end&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},b.prototype.next=function(){return this.sliding?void 0:this.slide("next")},b.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},b.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}this.sliding=!0,f&&this.pause();var j=a.Event("slide.bs.carousel",{relatedTarget:e[0],direction:g});if(!e.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var b=a(i.$indicators.children()[i.getActiveIndex()]);b&&b.addClass("active")})),a.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(j),j.isDefaultPrevented())return;e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one(a.support.transition.end,function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(j),j.isDefaultPrevented())return;d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")}return f&&this.cycle(),this}};var c=a.fn.carousel;a.fn.carousel=function(c){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c),g="string"==typeof c?c:f.slide;e||d.data("bs.carousel",e=new b(this,f)),"number"==typeof c?e.to(c):g?e[g]():f.interval&&e.pause().cycle()})},a.fn.carousel.Constructor=b,a.fn.carousel.noConflict=function(){return a.fn.carousel=c,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(b){var c,d=a(this),e=a(d.attr("data-target")||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")),f=a.extend({},e.data(),d.data()),g=d.attr("data-slide-to");g&&(f.interval=!1),e.carousel(f),(g=d.attr("data-slide-to"))&&e.data("bs.carousel").to(g),b.preventDefault()}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var b=a(this);b.carousel(b.data())})})}(jQuery),+function(a){"use strict";var b=function(c,d){this.$element=a(c),this.options=a.extend({},b.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};b.DEFAULTS={toggle:!0},b.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},b.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b=a.Event("show.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.$parent&&this.$parent.find("> .panel > .in");if(c&&c.length){var d=c.data("bs.collapse");if(d&&d.transitioning)return;c.collapse("hide"),d||c.data("bs.collapse",null)}var e=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[e](0),this.transitioning=1;var f=function(){this.$element.removeClass("collapsing").addClass("in")[e]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return f.call(this);var g=a.camelCase(["scroll",e].join("-"));this.$element.one(a.support.transition.end,a.proxy(f,this)).emulateTransitionEnd(350)[e](this.$element[0][g])}}},b.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?(this.$element[c](0).one(a.support.transition.end,a.proxy(d,this)).emulateTransitionEnd(350),void 0):d.call(this)}}},b.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var c=a.fn.collapse;a.fn.collapse=function(c){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},b.DEFAULTS,d.data(),"object"==typeof c&&c);e||d.data("bs.collapse",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.collapse.Constructor=b,a.fn.collapse.noConflict=function(){return a.fn.collapse=c,this},a(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(b){var c,d=a(this),e=d.attr("data-target")||b.preventDefault()||(c=d.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,""),f=a(e),g=f.data("bs.collapse"),h=g?"toggle":d.data(),i=d.attr("data-parent"),j=i&&a(i);g&&g.transitioning||(j&&j.find('[data-toggle=collapse][data-parent="'+i+'"]').not(d).addClass("collapsed"),d[f.hasClass("in")?"addClass":"removeClass"]("collapsed")),f.collapse(h)})}(jQuery),+function(a){"use strict";function b(){a(d).remove(),a(e).each(function(b){var d=c(a(this));d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown")),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown"))})}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}var d=".dropdown-backdrop",e="[data-toggle=dropdown]",f=function(b){a(b).on("click.bs.dropdown",this.toggle)};f.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){if("ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('<div class="dropdown-backdrop"/>').insertAfter(a(this)).on("click",b),f.trigger(d=a.Event("show.bs.dropdown")),d.isDefaultPrevented())return;f.toggleClass("open").trigger("shown.bs.dropdown"),e.focus()}return!1}},f.prototype.keydown=function(b){if(/(38|40|27)/.test(b.keyCode)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(".disabled, :disabled")){var f=c(d),g=f.hasClass("open");if(!g||g&&27==b.keyCode)return 27==b.which&&f.find(e).focus(),d.click();var h=a("[role=menu] li:not(.divider):visible a",f);if(h.length){var i=h.index(h.filter(":focus"));38==b.keyCode&&i>0&&i--,40==b.keyCode&&i<h.length-1&&i++,~i||(i=0),h.eq(i).focus()}}}};var g=a.fn.dropdown;a.fn.dropdown=function(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new f(this)),"string"==typeof b&&d[b].call(c)})},a.fn.dropdown.Constructor=f,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=g,this},a(document).on("click.bs.dropdown.data-api",b).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",e,f.prototype.toggle).on("keydown.bs.dropdown.data-api",e+", [role=menu]",f.prototype.keydown)}(jQuery),+function(a){"use strict";var b=function(b,c){this.options=c,this.$element=a(b),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)};b.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},b.prototype.toggle=function(a){return this[this.isShown?"hide":"show"](a)},b.prototype.show=function(b){var c=this,d=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(d),this.isShown||d.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.backdrop(function(){var d=a.support.transition&&c.$element.hasClass("fade");c.$element.parent().length||c.$element.appendTo(document.body),c.$element.show(),d&&c.$element[0].offsetWidth,c.$element.addClass("in").attr("aria-hidden",!1),c.enforceFocus();var e=a.Event("shown.bs.modal",{relatedTarget:b});d?c.$element.find(".modal-dialog").one(a.support.transition.end,function(){c.$element.focus().trigger(e)}).emulateTransitionEnd(300):c.$element.focus().trigger(e)}))},b.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.escape(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one(a.support.transition.end,a.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},b.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.focus()},this))},b.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},b.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.removeBackdrop(),a.$element.trigger("hidden.bs.modal")})},b.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},b.prototype.backdrop=function(b){var c=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var d=a.support.transition&&c;if(this.$backdrop=a('<div class="modal-backdrop '+c+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",a.proxy(function(a){a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),d&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;d?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(a.support.transition.end,b).emulateTransitionEnd(150):b()):b&&b()};var c=a.fn.modal;a.fn.modal=function(c,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},b.DEFAULTS,e.data(),"object"==typeof c&&c);f||e.data("bs.modal",f=new b(this,g)),"string"==typeof c?f[c](d):g.show&&f.show(d)})},a.fn.modal.Constructor=b,a.fn.modal.noConflict=function(){return a.fn.modal=c,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(b){var c=a(this),d=c.attr("href"),e=a(c.attr("data-target")||d&&d.replace(/.*(?=#[^\s]+$)/,"")),f=e.data("modal")?"toggle":a.extend({remote:!/#/.test(d)&&d},e.data(),c.data());b.preventDefault(),e.modal(f,this).one("hide",function(){c.is(":visible")&&c.focus()})}),a(document).on("show.bs.modal",".modal",function(){a(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){a(document.body).removeClass("modal-open")})}(jQuery),+function(a){"use strict";var b=function(a,b){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",a,b)};b.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},b.prototype.init=function(b,c,d){this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d);for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focus",i="hover"==g?"mouseleave":"blur";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},b.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},b.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show),void 0):c.show()},b.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide),void 0):c.hide()},b.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(b),b.isDefaultPrevented())return;var c=this.tip();this.setContent(),this.options.animation&&c.addClass("fade");var d="function"==typeof this.options.placement?this.options.placement.call(this,c[0],this.$element[0]):this.options.placement,e=/\s?auto?\s?/i,f=e.test(d);f&&(d=d.replace(e,"")||"top"),c.detach().css({top:0,left:0,display:"block"}).addClass(d),this.options.container?c.appendTo(this.options.container):c.insertAfter(this.$element);var g=this.getPosition(),h=c[0].offsetWidth,i=c[0].offsetHeight;if(f){var j=this.$element.parent(),k=d,l=document.documentElement.scrollTop||document.body.scrollTop,m="body"==this.options.container?window.innerWidth:j.outerWidth(),n="body"==this.options.container?window.innerHeight:j.outerHeight(),o="body"==this.options.container?0:j.offset().left;d="bottom"==d&&g.top+g.height+i-l>n?"top":"top"==d&&g.top-l-i<0?"bottom":"right"==d&&g.right+h>m?"left":"left"==d&&g.left-h<o?"right":d,c.removeClass(k).addClass(d)}var p=this.getCalculatedOffset(d,g,h,i);this.applyPlacement(p,d),this.$element.trigger("shown.bs."+this.type)}},b.prototype.applyPlacement=function(a,b){var c,d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),a.top=a.top+g,a.left=a.left+h,d.offset(a).addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;if("top"==b&&j!=f&&(c=!0,a.top=a.top+f-j),/bottom|top/.test(b)){var k=0;a.left<0&&(k=-2*a.left,a.left=0,d.offset(a),i=d[0].offsetWidth,j=d[0].offsetHeight),this.replaceArrow(k-e+i,i,"left")}else this.replaceArrow(j-f,j,"top");c&&d.offset(a)},b.prototype.replaceArrow=function(a,b,c){this.arrow().css(c,a?50*(1-a/b)+"%":"")},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},b.prototype.hide=function(){function b(){"in"!=c.hoverState&&d.detach()}var c=this,d=this.tip(),e=a.Event("hide.bs."+this.type);return this.$element.trigger(e),e.isDefaultPrevented()?void 0:(d.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?d.one(a.support.transition.end,b).emulateTransitionEnd(150):b(),this.$element.trigger("hidden.bs."+this.type),this)},b.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},b.prototype.hasContent=function(){return this.getTitle()},b.prototype.getPosition=function(){var b=this.$element[0];return a.extend({},"function"==typeof b.getBoundingClientRect?b.getBoundingClientRect():{width:b.offsetWidth,height:b.offsetHeight},this.$element.offset())},b.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},b.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},b.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},b.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},b.prototype.enable=function(){this.enabled=!0},b.prototype.disable=function(){this.enabled=!1},b.prototype.toggleEnabled=function(){this.enabled=!this.enabled},b.prototype.toggle=function(b){var c=b?a(b.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;c.tip().hasClass("in")?c.leave(c):c.enter(c)},b.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var c=a.fn.tooltip;a.fn.tooltip=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof c&&c;e||d.data("bs.tooltip",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.tooltip.Constructor=b,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=c,this}}(jQuery),+function(a){"use strict";var b=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");b.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),b.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),b.prototype.constructor=b,b.prototype.getDefaults=function(){return b.DEFAULTS},b.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content")[this.options.html?"html":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},b.prototype.hasContent=function(){return this.getTitle()||this.getContent()},b.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},b.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},b.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var c=a.fn.popover;a.fn.popover=function(c){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof c&&c;e||d.data("bs.popover",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.popover.Constructor=b,a.fn.popover.noConflict=function(){return a.fn.popover=c,this}}(jQuery),+function(a){"use strict";function b(c,d){var e,f=a.proxy(this.process,this);this.$element=a(c).is("body")?a(window):a(c),this.$body=a("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",f),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||(e=a(c).attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=a([]),this.targets=a([]),this.activeTarget=null,this.refresh(),this.process()}b.DEFAULTS={offset:10},b.prototype.refresh=function(){var b=this.$element[0]==window?"offset":"position";this.offsets=a([]),this.targets=a([]);var c=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#\w/.test(e)&&a(e);return f&&f.length&&[[f[b]().top+(!a.isWindow(c.$scrollElement.get(0))&&c.$scrollElement.scrollTop()),e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){c.offsets.push(this[0]),c.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,d=c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(b>=d)return g!=(a=f.last()[0])&&this.activate(a);for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parents(".active").removeClass("active");var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")};var c=a.fn.scrollspy;a.fn.scrollspy=function(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=c,this},a(window).on("load",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);b.scrollspy(b.data())})})}(jQuery),+function(a){"use strict";var b=function(b){this.element=a(b)};b.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});if(b.trigger(f),!f.isDefaultPrevented()){var g=a(d);this.activate(b.parent("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})}}},b.prototype.activate=function(b,c,d){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),g?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var f=c.find("> .active"),g=d&&a.support.transition&&f.hasClass("fade");g?f.one(a.support.transition.end,e).emulateTransitionEnd(150):e(),f.removeClass("in")};var c=a.fn.tab;a.fn.tab=function(c){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new b(this)),"string"==typeof c&&e[c]()})},a.fn.tab.Constructor=b,a.fn.tab.noConflict=function(){return a.fn.tab=c,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(b){b.preventDefault(),a(this).tab("show")})}(jQuery),+function(a){"use strict";var b=function(c,d){this.options=a.extend({},b.DEFAULTS,d),this.$window=a(window).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(c),this.affixed=this.unpin=null,this.checkPosition()};b.RESET="affix affix-top affix-bottom",b.DEFAULTS={offset:0},b.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},b.prototype.checkPosition=function(){if(this.$element.is(":visible")){var c=a(document).height(),d=this.$window.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;"object"!=typeof f&&(h=g=f),"function"==typeof g&&(g=f.top()),"function"==typeof h&&(h=f.bottom());var i=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=h&&e.top+this.$element.height()>=c-h?"bottom":null!=g&&g>=d?"top":!1;this.affixed!==i&&(this.unpin&&this.$element.css("top",""),this.affixed=i,this.unpin="bottom"==i?e.top-d:null,this.$element.removeClass(b.RESET).addClass("affix"+(i?"-"+i:"")),"bottom"==i&&this.$element.offset({top:document.body.offsetHeight-h-this.$element.height()}))}};var c=a.fn.affix;a.fn.affix=function(c){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof c&&c;e||d.data("bs.affix",e=new b(this,f)),"string"==typeof c&&e[c]()})},a.fn.affix.Constructor=b,a.fn.affix.noConflict=function(){return a.fn.affix=c,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var b=a(this),c=b.data();c.offset=c.offset||{},c.offsetBottom&&(c.offset.bottom=c.offsetBottom),c.offsetTop&&(c.offset.top=c.offsetTop),b.affix(c)})})}(jQuery);
555
556
557//Ilightbox
558!function($,window,undefined){function getPixel(e,t){return parseInt(e.css(t),10)||0}function within(e,t,o){return t>e?t:e>o?o:e}function getViewport(){var e=window,t="inner";return"innerWidth"in window||(t="client",e=document.documentElement||document.body),{width:e[t+"Width"],height:e[t+"Height"]}}function removeHash(){var e=getScrollXY();window.location.hash="",window.scrollTo(e.x,e.y)}function doAjax(e,t){var e="https://ilightbox.net/getSource/jsonp.php?url="+encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),o=$.ajax({url:e,dataType:"jsonp"});o.error(function(){t(!1)}),iLCallback=function(e){t(e)}}function findImageInElement(e){var t=$("*",e),o=new Array;return t.each(function(){var e="",t=this;if("none"!=$(t).css("background-image")?e=$(t).css("background-image"):"undefined"!=typeof $(t).attr("src")&&"img"==t.nodeName.toLowerCase()&&(e=$(t).attr("src")),-1==e.indexOf("gradient")){e=e.replace(/url\(\"/g,""),e=e.replace(/url\(/g,""),e=e.replace(/\"\)/g,""),e=e.replace(/\)/g,"");for(var i=e.split(","),n=0;n<i.length;n++)if(i[n].length>0&&-1==$.inArray(i[n],o)){var a="";browser.msie&&browser.version<9&&(a="?"+Math.floor(3e3*Math.random())),o.push(i[n]+a)}}}),o}function basename(e,t){var o=e.replace(/^.*[\/\\]/g,"");return"string"==typeof t&&o.substr(o.length-t.length)==t&&(o=o.substr(0,o.length-t.length)),o}function pathInfo(e,t){var o="",i="",n=0,a={},r=0,s=0,l=!1,c=!1,u=!1;if(!e)return!1;t||(t="PATHINFO_ALL");var h={PATHINFO_DIRNAME:1,PATHINFO_BASENAME:2,PATHINFO_EXTENSION:4,PATHINFO_FILENAME:8,PATHINFO_ALL:0};for(i in h)h.PATHINFO_ALL=h.PATHINFO_ALL|h[i];if("number"!=typeof t){for(t=[].concat(t),s=0;s<t.length;s++)h[t[s]]&&(n|=h[t[s]]);t=n}var d=function(e){var t=e+"",o=t.lastIndexOf(".")+1;return o?o!==t.length?t.substr(o):"":!1};if(t&h.PATHINFO_DIRNAME){var p=e.replace(/\\/g,"/").replace(/\/[^\/]*\/?$/,"");a.dirname=p===e?".":p}t&h.PATHINFO_BASENAME&&(!1===l&&(l=basename(e)),a.basename=l),t&h.PATHINFO_EXTENSION&&(!1===l&&(l=basename(e)),!1===c&&(c=d(l)),!1!==c&&(a.extension=c)),t&h.PATHINFO_FILENAME&&(!1===l&&(l=basename(e)),!1===c&&(c=d(l)),!1===u&&(u=l.slice(0,l.length-(c?c.length+1:c===!1?0:1))),a.filename=u),r=0;for(o in a)r++;return 1==r?a[o]:a}function getTypeByExtension(e){var t=pathInfo(e,"PATHINFO_EXTENSION");return t=$.isPlainObject(t)?null:t.toLowerCase(),type=extensions.image.indexOf(t)>=0?"image":extensions.flash.indexOf(t)>=0?"flash":extensions.video.indexOf(t)>=0?"video":"iframe",type}function percentToValue(e,t){return parseInt(t/100*e)}function parseURI(e){var t=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return t?{href:t[0]||"",protocol:t[1]||"",authority:t[2]||"",host:t[3]||"",hostname:t[4]||"",port:t[5]||"",pathname:t[6]||"",search:t[7]||"",hash:t[8]||""}:null}function absolutizeURI(e,t){function o(e){var t=[];return e.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,function(e){"/.."===e?t.pop():t.push(e)}),t.join("").replace(/^\//,"/"===e.charAt(0)?"/":"")}return t=parseURI(t||""),e=parseURI(e||""),t&&e?(t.protocol||e.protocol)+(t.protocol||t.authority?t.authority:e.authority)+o(t.protocol||t.authority||"/"===t.pathname.charAt(0)?t.pathname:t.pathname?(e.authority&&!e.pathname?"/":"")+e.pathname.slice(0,e.pathname.lastIndexOf("/")+1)+t.pathname:e.pathname)+(t.protocol||t.authority||t.pathname?t.search:t.search||e.search)+t.hash:null}function version_compare(e,t,o){this.php_js=this.php_js||{},this.php_js.ENV=this.php_js.ENV||{};var i=0,n=0,a=0,r={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},s=function(e){return e=(""+e).replace(/[_\-+]/g,"."),e=e.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,"."),e.length?e.split("."):[-8]},l=function(e){return e?isNaN(e)?r[e]||-7:parseInt(e,10):0};for(e=s(e),t=s(t),n=Math.max(e.length,t.length),i=0;n>i;i++)if(e[i]!=t[i]){if(e[i]=l(e[i]),t[i]=l(t[i]),e[i]<t[i]){a=-1;break}if(e[i]>t[i]){a=1;break}}if(!o)return a;switch(o){case">":case"gt":return a>0;case">=":case"ge":return a>=0;case"<=":case"le":return 0>=a;case"==":case"=":case"eq":return 0===a;case"<>":case"!=":case"ne":return 0!==a;case"":case"<":case"lt":return 0>a;default:return null}}function getScrollXY(){var e=0,t=0;return"number"==typeof window.pageYOffset?(t=window.pageYOffset,e=window.pageXOffset):document.body&&(document.body.scrollLeft||document.body.scrollTop)?(t=document.body.scrollTop,e=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(t=document.documentElement.scrollTop,e=document.documentElement.scrollLeft),{x:e,y:t}}function AC_QuickTimeVersion(){return gQTGeneratorVersion}function _QTComplain(e,t){t=t.replace("%%",e),alert(t)}function _QTAddAttribute(e,t,o){var i;return i=gTagAttrs[e+t],null==i&&(i=gTagAttrs[t]),null!=i?(0==t.indexOf(e)&&null==o&&(o=t.substring(e.length)),null==o&&(o=t),o+'="'+i+'" '):""}function _QTAddObjectAttr(e,t){return 0==e.indexOf("emb#")?"":(0==e.indexOf("obj#")&&null==t&&(t=e.substring(4)),_QTAddAttribute("obj#",e,t))}
558function _QTAddEmbedAttr(e,t){return 0==e.indexOf("obj#")?"":(0==e.indexOf("emb#")&&null==t&&(t=e.substring(4)),_QTAddAttribute("emb#",e,t))}function _QTAddObjectParam(e,t){var o,i="",n=t?" />":">";return-1==e.indexOf("emb#")&&(o=gTagAttrs["obj#"+e],null==o&&(o=gTagAttrs[e]),0==e.indexOf("obj#")&&(e=e.substring(4)),null!=o&&(i='  <param name="'+e+'" value="'+o+'"'+n+"\n")),i}function _QTDeleteTagAttrs(){for(var e=0;e<arguments.length;e++){var t=arguments[e];delete gTagAttrs[t],delete gTagAttrs["emb#"+t],delete gTagAttrs["obj#"+t]}}function _QTGenerate(e,t,o){if(4>o.length||0!=o.length%2)return _QTComplain(e,gArgCountErr),"";gTagAttrs=[],gTagAttrs.src=o[0],gTagAttrs.width=o[1],gTagAttrs.height=o[2],gTagAttrs.classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",gTagAttrs.pluginspage="https://www.apple.com/quicktime/download/",e=o[3],(null==e||""==e)&&(e="6,0,2,0"),gTagAttrs.codebase="https://www.apple.com/qtactivex/qtplugin.cab#version="+e;for(var i,n=4;n<o.length;n+=2)i=o[n].toLowerCase(),e=o[n+1],"name"==i||"id"==i?gTagAttrs.name=e:gTagAttrs[i]=e;o="<object "+_QTAddObjectAttr("classid")+_QTAddObjectAttr("width")+_QTAddObjectAttr("height")+_QTAddObjectAttr("codebase")+_QTAddObjectAttr("name","id")+_QTAddObjectAttr("tabindex")+_QTAddObjectAttr("hspace")+_QTAddObjectAttr("vspace")+_QTAddObjectAttr("border")+_QTAddObjectAttr("align")+_QTAddObjectAttr("class")+_QTAddObjectAttr("title")+_QTAddObjectAttr("accesskey")+_QTAddObjectAttr("noexternaldata")+">\n"+_QTAddObjectParam("src",t),n="  <embed "+_QTAddEmbedAttr("src")+_QTAddEmbedAttr("width")+_QTAddEmbedAttr("height")+_QTAddEmbedAttr("pluginspage")+_QTAddEmbedAttr("name")+_QTAddEmbedAttr("align")+_QTAddEmbedAttr("tabindex"),_QTDeleteTagAttrs("src","width","height","pluginspage","classid","codebase","name","tabindex","hspace","vspace","border","align","noexternaldata","class","title","accesskey");for(i in gTagAttrs)e=gTagAttrs[i],null!=e&&(n+=_QTAddEmbedAttr(i),o+=_QTAddObjectParam(i,t));return o+n+"> </embed>\n</object>"}function QT_GenerateOBJECTText(){return _QTGenerate("QT_GenerateOBJECTText",!1,arguments)}function get_fragment(e){return e=e||location.href,"#"+e.replace(/^[^#]*#?(.*)$/,"$1")}var extensions={flash:"swf",image:"bmp gif jpeg jpg png tiff tif jfif jpe",iframe:"asp aspx cgi cfm htm html jsp php pl php3 php4 php5 phtml rb rhtml shtml txt",video:"avi mov mpg mpeg movie mp4 webm ogv ogg 3gp m4v"},$win=$(window),$doc=$(document),browser,transform,gpuAcceleration,fullScreenApi="",supportTouch=!!("ontouchstart"in window),clickEvent=supportTouch?"itap.iLightBox":"click.iLightBox",touchStartEvent=supportTouch?"touchstart.iLightBox":"mousedown.iLightBox",touchStopEvent=supportTouch?"touchend.iLightBox":"mouseup.iLightBox",touchMoveEvent=supportTouch?"touchmove.iLightBox":"mousemove.iLightBox",pluginspages={quicktime:"https://www.apple.com/quicktime/download",flash:"https://www.adobe.com/go/getflash"},iLightBox=function(e,t,o,i){var n=this;if(n.options=t,n.selector=e.selector||e,n.context=e.context,n.instant=i,o.length<1?n.attachItems():n.items=o,n.vars={total:n.items.length,start:0,current:null,next:null,prev:null,BODY:$("body"),loadRequests:0,overlay:$('<div class="ilightbox-overlay"></div>'),loader:$('<div class="ilightbox-loader"><div></div></div>'),toolbar:$('<div class="ilightbox-toolbar"></div>'),innerToolbar:$('<div class="ilightbox-inner-toolbar"></div>'),title:$('<div class="ilightbox-title"></div>'),closeButton:$('<a class="ilightbox-close" title="'+n.options.text.close+'"></a>'),fullScreenButton:$('<a class="ilightbox-fullscreen" title="'+n.options.text.enterFullscreen+'"></a>'),innerPlayButton:$('<a class="ilightbox-play" title="'+n.options.text.slideShow+'"></a>'),innerNextButton:$('<a class="ilightbox-next-button" title="'+n.options.text.next+'"></a>'),innerPrevButton:$('<a class="ilightbox-prev-button" title="'+n.options.text.previous+'"></a>'),holder:$('<div class="ilightbox-holder" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),nextPhoto:$('<div class="ilightbox-holder ilightbox-next" ondragstart="return false;"><div class="ilightbox-container"></div></div>'),prevPhoto:$('<div class="ilightbox-holder ilightbox-prev" ondragstart="return false;"><div class="ilightbox-container"></div></div>
558'),nextButton:$('<a class="ilightbox-button ilightbox-next-button" ondragstart="return false;" title="'+n.options.text.next+'"><span></span></a>'),prevButton:$('<a class="ilightbox-button ilightbox-prev-button" ondragstart="return false;" title="'+n.options.text.previous+'"><span></span></a>'),thumbnails:$('<div class="ilightbox-thumbnails" ondragstart="return false;"><div class="ilightbox-thumbnails-container"><a class="ilightbox-thumbnails-dragger"></a><div class="ilightbox-thumbnails-grid"></div></div></div>'),thumbs:!1,nextLock:!1,prevLock:!1,hashLock:!1,isMobile:!1,mobileMaxWidth:980,isInFullScreen:!1,isSwipe:!1,mouseID:0,cycleID:0,isPaused:0},n.vars.hideableElements=n.vars.nextButton.add(n.vars.prevButton),n.normalizeItems(),n.availPlugins(),n.options.startFrom=n.options.startFrom>0&&n.options.startFrom>=n.vars.total?n.vars.total-1:n.options.startFrom,n.options.startFrom=n.options.randomStart?Math.floor(Math.random()*n.vars.total):n.options.startFrom,n.vars.start=n.options.startFrom,i?n.instantCall():n.patchItemsEvents(),n.options.linkId&&(n.hashChangeHandler(),$win.iLightBoxHashChange(function(){n.hashChangeHandler()})),supportTouch){var a=/(click|mouseenter|mouseleave|mouseover|mouseout)/gi,r="itap";n.options.caption.show=n.options.caption.show.replace(a,r),n.options.caption.hide=n.options.caption.hide.replace(a,r),n.options.social.show=n.options.social.show.replace(a,r),n.options.social.hide=n.options.social.hide.replace(a,r)}n.options.controls.arrows&&$.extend(n.options.styles,{nextOffsetX:0,prevOffsetX:0,nextOpacity:0,prevOpacity:0})};iLightBox.prototype={showLoader:function(){var e=this;e.vars.loadRequests+=1,"horizontal"==e.options.path.toLowerCase()?e.vars.loader.stop().animate({top:"-30px"},e.options.show.speed,"easeOutCirc"):e.vars.loader.stop().animate({left:"-30px"},e.options.show.speed,"easeOutCirc")},hideLoader:function(){var e=this;e.vars.loadRequests-=1,e.vars.loadRequests=e.vars.loadRequests<0?0:e.vars.loadRequests,"horizontal"==e.options.path.toLowerCase()?e.vars.loadRequests<=0&&e.vars.loader.stop().animate({top:"-192px"},e.options.show.speed,"easeInCirc"):e.vars.loadRequests<=0&&e.vars.loader.stop().animate({left:"-192px"},e.options.show.speed,"easeInCirc")},createUI:function(){var e=this;e.ui={currentElement:e.vars.holder,nextElement:e.vars.nextPhoto,prevElement:e.vars.prevPhoto,currentItem:e.vars.current,nextItem:e.vars.next,prevItem:e.vars.prev,hide:function(){e.closeAction()},refresh:function(){arguments.length>0?e.repositionPhoto(!0):e.repositionPhoto()},fullscreen:function(){e.fullScreenAction()}}},attachItems:function(){var iL=this,itemsObject=new Array,items=new Array;$(iL.selector,iL.context).each(function(){var t=$(this),URL=t.attr(iL.options.attr)||null,options=t.data("options")&&eval("({"+t.data("options")+"})")||{},caption=t.data("caption"),title=t.data("title"),type=t.data("type")||getTypeByExtension(URL);items.push({URL:URL,caption:caption,title:title,type:type,options:options}),iL.instant||itemsObject.push(t)}),iL.items=items,iL.itemsObject=itemsObject},normalizeItems:function(){var e=this,t=new Array;$.each(e.items,function(o,i){"string"==typeof i&&(i={url:i});var n=i.url||i.URL||null,a=i.options||{},r=i.caption||null,s=i.title||null,l=i.type?i.type.toLowerCase():getTypeByExtension(n),c="object"!=typeof n?pathInfo(n,"PATHINFO_EXTENSION"):"";a.thumbnail=a.thumbnail||("image"==l?n:null),a.videoType=a.videoType||null,a.skin=a.skin||e.options.skin,a.width=a.width||null,a.height=a.height||null,a.mousewheel="undefined"!=typeof a.mousewheel?a.mousewheel:!0,a.swipe="undefined"!=typeof a.swipe?a.swipe:!0,a.social="undefined"!=typeof a.social?a.social:e.options.social.buttons&&$.extend({},{},e.options.social.buttons),"video"==l&&(a.html5video="undefined"!=typeof a.html5video?a.html5video:{},a.html5video.webm=a.html5video.webm||a.html5video.WEBM||null,a.html5video.controls="undefined"!=typeof a.html5video.controls?a.html5video.controls:"controls",a.html5video.preload=a.html5video.preload||"metadata",a.html5video.autoplay="undefined"!=typeof a.html5video.autoplay?a.html5video.autoplay:!1),a.width&&a.height||("video"==l?(a.width=1280,a.height=720):"iframe"==l?(a.width="100%",a.height="90%"):"flash"==l&&(a.width=1280,a.height=720)),delete i.url,i.URL=n,i.caption=r,i.title=s,i.type=l,i.options=a,i.ext=c,t.pu
558sh(i)}),e.items=t},instantCall:function(){var e=this,t=e.vars.start;e.vars.current=t,e.vars.next=e.items[t+1]?t+1:null,e.vars.prev=e.items[t-1]?t-1:null,e.addContents(),e.patchEvents()},addContents:function(){var e=this,t=e.vars,o=e.options,i=getViewport(),n=o.path.toLowerCase();o.mobileOptimizer&&!o.innerToolbar&&(t.isMobile=i.width<=t.mobileMaxWidth),t.overlay.addClass(o.skin).hide().css({opacity:o.overlay.opacity}),o.linkId&&t.overlay.attr("linkid",o.linkId),o.controls.toolbar&&(t.toolbar.addClass(o.skin).append(t.closeButton),o.controls.fullscreen&&t.toolbar.append(t.fullScreenButton),o.controls.slideshow&&t.toolbar.append(t.innerPlayButton),t.total>1&&t.toolbar.append(t.innerPrevButton).append(t.innerNextButton)),t.BODY.addClass("ilightbox-noscroll").append(t.overlay).append(t.loader).append(t.holder).append(t.nextPhoto).append(t.prevPhoto),o.innerToolbar||t.BODY.append(t.toolbar),o.controls.arrows&&t.BODY.append(t.nextButton).append(t.prevButton),o.controls.thumbnail&&t.total>1&&(t.BODY.append(t.thumbnails),t.thumbnails.addClass(o.skin).addClass("ilightbox-"+n),$("div.ilightbox-thumbnails-grid",t.thumbnails).empty(),t.thumbs=!0);var a="horizontal"==o.path.toLowerCase()?{left:parseInt(i.width/2-t.loader.outerWidth()/2)}:{top:parseInt(i.height/2-t.loader.outerHeight()/2)};t.loader.addClass(o.skin).css(a),t.nextButton.add(t.prevButton).addClass(o.skin),"horizontal"==n&&t.loader.add(t.nextButton).add(t.prevButton).addClass("horizontal"),t.BODY[t.isMobile?"addClass":"removeClass"]("isMobile"),o.infinite||(t.prevButton.add(t.prevButton).add(t.innerPrevButton).add(t.innerNextButton).removeClass("disabled"),(0==o.startFrom||0==t.current)&&t.prevButton.add(t.innerPrevButton).addClass("disabled"),(o.startFrom>=t.total-1||t.current>=t.total-1)&&t.nextButton.add(t.innerNextButton).addClass("disabled")),o.show.effect?setTimeout(function(){e.generateBoxes()},o.show.speed):e.generateBoxes(),o.show.effect?(t.overlay.stop().fadeIn(o.show.speed),t.toolbar.stop().fadeIn(o.show.speed)):(t.overlay.show(),t.toolbar.show());var r=t.total;o.smartRecognition&&t.total>1&&$.each(e.items,function(o){var i=e.items[o];e.ogpRecognition(i,function(o){o&&$.extend(!0,i,{type:o.type,options:{html5video:o.html5video,width:"image"==o.type?0:o.width||i.width,height:"image"==o.type?0:o.height||i.height,thumbnail:i.options.thumbnail||o.thumbnail}}),r--,0==r&&(t.dontGenerateThumbs=!1,e.generateThumbnails())})}),e.createUI(),window.iLightBox={close:function(){e.closeAction()},fullscreen:function(){e.fullScreenAction()},moveNext:function(){e.moveTo("next")},movePrev:function(){e.moveTo("prev")},goTo:function(t){e.goTo(t)},refresh:function(){e.refresh()},reposition:function(){arguments.length>0?e.repositionPhoto(!0):e.repositionPhoto()},setOption:function(t){e.setOption(t)},destroy:function(){e.closeAction(),e.dispatchItemsEvents()}},o.linkId&&(t.hashLock=!0,window.location.hash=o.linkId+"/"+t.current,setTimeout(function(){t.hashLock=!1},55)),o.slideshow.startPaused||(e.resume(),t.innerPlayButton.removeClass("ilightbox-play").addClass("ilightbox-pause")),"function"==typeof e.options.callback.onOpen&&e.options.callback.onOpen.call(e)},loadContent:function(e,t,o){var i,n,a=this;switch(a.createUI(),e.speed=o||a.options.effects.loadedFadeSpeed,"current"==t&&(a.vars.lockWheel=e.options.mousewheel?!1:!0,a.vars.lockSwipe=e.options.swipe?!1:!0),t){case"current":i=a.vars.holder,n=a.vars.current;break;case"next":i=a.vars.nextPhoto,n=a.vars.next;break;case"prev":i=a.vars.prevPhoto,n=a.vars.prev}if(i.removeAttr("style class").addClass("ilightbox-holder").addClass(e.options.skin),$("div.ilightbox-inner-toolbar",i).remove(),e.title||a.options.innerToolbar){var r=a.vars.innerToolbar.clone();if(e.title&&a.options.show.title){var s=a.vars.title.clone();s.empty().html(e.title),r.append(s)}a.options.innerToolbar&&r.append(a.vars.total>1?a.vars.toolbar.clone():a.vars.toolbar),i.prepend(r)}a.options.smartRecognition||e.options.smartRecognition?a.ogpRecognition(e,function(o){var r=e,s=$.extend({},e,{});o&&(e=$.extend(!0,e,{type:o.type,options:{html5video:o.html5video,width:"image"==o.type?0:o.width||e.width,height:"image"==o.type?0:o.height||e.height,thumbnail:e.options.thumbnail||o.thumbnail}}),r=$.extend({},e,{URL:o.source}),e.options.smartRecognition&&!s.options.thumbnail&&(a.vars.dontGenerateThumbs=!1,a.generateThumbnails())),a.loadSwitcher(r,i,n,t)}):a.loadSwitcher(e,i,n,t)},loadSwitcher:function(e,t,o,i){var n=this,a=n.options,r={element:t,position:o};switch(e.type){case"image":"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,o),"function"==typeof e.o
558ptions.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),n.loadImage(e.URL,function(s){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r);var l=s?s.width:400,c=s?s.height:200;t.data({naturalWidth:l,naturalHeight:c}),$("div.ilightbox-container",t).empty().append(s?'<img src="'+e.URL+'" class="ilightbox-image" />':'<span class="ilightbox-alert">'+a.errors.loadImage+"</span>"),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r),n.configureHolder(e,i,t)});break;case"video":t.data({naturalWidth:e.options.width,naturalHeight:e.options.height}),n.addContent(t,e),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r),n.configureHolder(e,i,t);break;case"iframe":n.showLoader(),t.data({naturalWidth:e.options.width,naturalHeight:e.options.height});var s=n.addContent(t,e);"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r),"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,o),"function"==typeof e.options.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),s.bind("load",function(){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),n.hideLoader(),n.configureHolder(e,i,t),s.unbind("load")});break;case"inline":var s=$(e.URL),l=n.addContent(t,e),c=findImageInElement(t);t.data({naturalWidth:n.items[o].options.width||s.outerWidth(),naturalHeight:n.items[o].options.height||s.outerHeight()}),l.children().eq(0).show(),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r),"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,o),"function"==typeof e.options.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),n.loadImage(c,function(){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),n.configureHolder(e,i,t)});break;case"flash":var s=n.addContent(t,e);t.data({naturalWidth:n.items[o].options.width||s.outerWidth(),naturalHeight:n.items[o].options.height||s.outerHeight()}),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r),n.configureHolder(e,i,t);break;case"ajax":var u=e.options.ajax||{};"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,o),"function"==typeof e.options.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),n.showLoader(),$.ajax({url:e.URL||a.ajaxSetup.url,data:u.data||null,dataType:u.dataType||"html",type:u.type||a.ajaxSetup.type,cache:u.cache||a.ajaxSetup.cache,crossDomain:u.crossDomain||a.ajaxSetup.crossDomain,global:u.global||a.ajaxSetup.global,ifModified:u.ifModified||a.ajaxSetup.ifModified,username:u.username||a.ajaxSetup.username,password:u.password||a.ajaxSetup.password,beforeSend:u.beforeSend||a.ajaxSetup.beforeSend,complete:u.complete||a.ajaxSetup.complete,success:function(s,l,c){n.hideLoader();var h=$(s),d=$("div.ilightbox-container",t),p=n.items[o].options.width||parseInt(h.attr("width")),f=n.items[o].options.height||parseInt(h.attr("height")),g=h.attr("width")&&h.attr("height")?{overflow:"hidden"}:{};d.empty().append($('<div class="ilightbox-wrapper"></div>').css(g).html(h)),t.show().data({naturalWidth:p||d.outerWidth(),naturalHeight:f||d.outerHeight()}).hide(),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r);var m=findImageInElement(t);n.loadImage(m,function(){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),n.configureHolder(e,i,t)}),a.ajaxSetup.success(s,l,c),"function"==typeof u.success&&u.success(s,l,c)},error:function(s,l,c){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.o
558ptions.onAfterLoad&&e.options.onAfterLoad.call(n,r),n.hideLoader(),$("div.ilightbox-container",t).empty().append('<span class="ilightbox-alert">'+a.errors.loadContents+"</span>"),n.configureHolder(e,i,t),a.ajaxSetup.error(s,l,c),"function"==typeof u.error&&u.error(s,l,c)}});break;case"html":var s,h=e.URL;if(container=$("div.ilightbox-container",t),h[0].nodeName)s=h.clone();else{var d=$(h);s=d.selector?$("<div>"+d+"</div>"):d}var p=n.items[o].options.width||parseInt(s.attr("width")),f=n.items[o].options.height||parseInt(s.attr("height"));n.addContent(t,e),s.appendTo(document.documentElement).hide(),"function"==typeof a.callback.onRender&&a.callback.onRender.call(n,n.ui,o),"function"==typeof e.options.onRender&&e.options.onRender.call(n,r);var c=findImageInElement(t);"function"==typeof a.callback.onBeforeLoad&&a.callback.onBeforeLoad.call(n,n.ui,o),"function"==typeof e.options.onBeforeLoad&&e.options.onBeforeLoad.call(n,r),n.loadImage(c,function(){"function"==typeof a.callback.onAfterLoad&&a.callback.onAfterLoad.call(n,n.ui,o),"function"==typeof e.options.onAfterLoad&&e.options.onAfterLoad.call(n,r),t.show().data({naturalWidth:p||container.outerWidth(),naturalHeight:f||container.outerHeight()}).hide(),s.remove(),n.configureHolder(e,i,t)})}},configureHolder:function(e,t,o){var i=this,n=i.vars,a=i.options;if("current"!=t&&o.addClass("next"==t?"ilightbox-next":"ilightbox-prev"),"current"==t)var r=n.current;else if("next"==t)var s=a.styles.nextOpacity,r=n.next;else var s=a.styles.prevOpacity,r=n.prev;var l={element:o,position:r};i.items[r].options.width=i.items[r].options.width||0,i.items[r].options.height=i.items[r].options.height||0,"current"==t?a.show.effect?o.css(transform,gpuAcceleration).fadeIn(e.speed,function(){if(o.css(transform,""),e.caption){i.setCaption(e,o);var t=$("div.ilightbox-caption",o),n=parseInt(t.outerHeight()/o.outerHeight()*100);a.caption.start&50>=n&&t.fadeIn(a.effects.fadeSpeed)}var s=e.options.social;s&&(i.setSocial(s,e.URL,o),a.social.start&&$("div.ilightbox-social",o).fadeIn(a.effects.fadeSpeed)),i.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(i,i.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(i,l)}):(o.show(),i.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(i,i.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(i,l)):a.show.effect?o.fadeTo(e.speed,s,function(){"next"==t?n.nextLock=!1:n.prevLock=!1,i.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(i,i.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(i,l)}):(o.css({opacity:s}).show(),"next"==t?n.nextLock=!1:n.prevLock=!1,i.generateThumbnails(),"function"==typeof a.callback.onShow&&a.callback.onShow.call(i,i.ui,r),"function"==typeof e.options.onShow&&e.options.onShow.call(i,l)),setTimeout(function(){i.repositionPhoto()},0)},generateBoxes:function(){var e=this,t=e.vars,o=e.options;o.infinite&&t.total>=3?(t.current==t.total-1&&(t.next=0),0==t.current&&(t.prev=t.total-1)):o.infinite=!1,e.loadContent(e.items[t.current],"current",o.show.speed),e.items[t.next]&&e.loadContent(e.items[t.next],"next",o.show.speed),e.items[t.prev]&&e.loadContent(e.items[t.prev],"prev",o.show.speed)},generateThumbnails:function(){var e=this,t=e.vars,o=e.options,i=null;if(t.thumbs&&!e.vars.dontGenerateThumbs){var n=t.thumbnails,a=$("div.ilightbox-thumbnails-container",n),r=$("div.ilightbox-thumbnails-grid",a),s=0;r.removeAttr("style").empty(),$.each(e.items,function(l,c){var u=t.current==l?"ilightbox-active":"",h=t.current==l?o.thumbnails.activeOpacity:o.thumbnails.normalOpacity,d=c.options.thumbnail,p=$('<div class="ilightbox-thumbnail"></div>'),f=$('<div class="ilightbox-thumbnail-icon"></div>');p.css({opacity:0}).addClass(u),"video"!=c.type&&"flash"!=c.type||"undefined"!=typeof c.options.icon?c.options.icon&&(f.addClass("ilightbox-thumbnail-"+c.options.icon),p.append(f)):(f.addClass("ilightbox-thumbnail-video"),p.append(f)),d&&e.loadImage(d,function(t){s++,t?p.data({naturalWidth:t.width,naturalHeight:t.height}).append('<img src="'+d+'" border="0" />
558'):p.data({naturalWidth:o.thumbnails.maxWidth,naturalHeight:o.thumbnails.maxHeight}),clearTimeout(i),i=setTimeout(function(){e.positionThumbnails(n,a,r)},20),setTimeout(function(){p.fadeTo(o.effects.loadedFadeSpeed,h)},20*s)}),r.append(p)}),e.vars.dontGenerateThumbs=!0}},positionThumbnails:function(e,t,o){var i=this,n=i.vars,a=i.options,r=getViewport(),s=a.path.toLowerCase();e||(e=n.thumbnails),t||(t=$("div.ilightbox-thumbnails-container",e)),o||(o=$("div.ilightbox-thumbnails-grid",t));var l=$(".ilightbox-thumbnail",o),c="horizontal"==s?r.width-a.styles.pageOffsetX:l.eq(0).outerWidth()-a.styles.pageOffsetX,u="horizontal"==s?l.eq(0).outerHeight()-a.styles.pageOffsetY:r.height-a.styles.pageOffsetY,h="horizontal"==s?0:c,d="horizontal"==s?u:0,p=$(".ilightbox-active",o),f={};arguments.length<3&&(l.css({opacity:a.thumbnails.normalOpacity}),p.css({opacity:a.thumbnails.activeOpacity})),l.each(function(){var e=$(this),t=e.data(),o="horizontal"==s?0:a.thumbnails.maxWidth;height="horizontal"==s?a.thumbnails.maxHeight:0,dims=i.getNewDimenstions(o,height,t.naturalWidth,t.naturalHeight,!0),e.css({width:dims.width,height:dims.height}),"horizontal"==s&&e.css({"float":"left"}),"horizontal"==s?h+=e.outerWidth():d+=e.outerHeight()}),f={width:h,height:d},o.css(f),f={};var g=o.offset(),m=p.length?p.offset():{top:parseInt(u/2),left:parseInt(c/2)};g.top=g.top-$doc.scrollTop(),g.left=g.left-$doc.scrollLeft(),m.top=m.top-g.top-$doc.scrollTop(),m.left=m.left-g.left-$doc.scrollLeft(),"horizontal"==s?(f.top=0,f.left=parseInt(c/2-m.left-p.outerWidth()/2)):(f.top=parseInt(u/2-m.top-p.outerHeight()/2),f.left=0),arguments.length<3?o.stop().animate(f,a.effects.repositionSpeed,"easeOutCirc"):o.css(f)},loadImage:function(e,t){$.isArray(e)||(e=[e]);var o=this,i=e.length;i>0?(o.showLoader(),$.each(e,function(n){var a=new Image;a.onload=function(){i-=1,0==i&&(o.hideLoader(),t(a))},a.onerror=a.onabort=function(){i-=1,0==i&&(o.hideLoader(),t(!1))},a.src=e[n]})):t(!1)},patchItemsEvents:function(){var e=this,t=e.vars,o=supportTouch?"itap.iLightBox":"click.iLightBox",i=supportTouch?"click.iLightBox":"itap.iLightBox";$.each(e.itemsObject,function(n,a){a.on(o,function(){return t.current=n,t.next=e.items[n+1]?n+1:null,t.prev=e.items[n-1]?n-1:null,e.addContents(),e.patchEvents(),!1}).on(i,function(){return!1})})},dispatchItemsEvents:function(){{var e=this;e.vars,e.options}$.each(e.itemsObject,function(e,t){t.off(".iLightBox")})},refresh:function(){var e=this;e.dispatchItemsEvents(),e.attachItems(),e.normalizeItems(),e.patchItemsEvents()},patchEvents:function(){function e(e){"mousemove"!==e.type||o.isMobile||(o.mouseID||o.hideableElements.show(),o.mouseID=clearTimeout(o.mouseID),o.mouseID=setTimeout(function(){o.hideableElements.hide(),o.mouseID=clearTimeout(o.mouseID)},3e3))}var t=this,o=t.vars,i=t.options,n=i.path.toLowerCase(),a=$(".ilightbox-holder"),r=fullScreenApi.fullScreenEventName+".iLightBox",s=1e3,l=verticalDistanceThreshold=100;$win.bind("resize.iLightBox",function(){var e=getViewport();i.mobileOptimizer&&!i.innerToolbar&&(o.isMobile=e.width<=o.mobileMaxWidth),o.BODY[o.isMobile?"addClass":"removeClass"]("isMobile"),t.repositionPhoto(null),supportTouch&&(clearTimeout(o.setTime),o.setTime=setTimeout(function(){var e=getScrollXY().y;window.scrollTo(0,e-30),window.scrollTo(0,e+30),window.scrollTo(0,e)},2e3)),o.thumbs&&t.positionThumbnails()}).bind("keydown.iLightBox",function(e){if(i.controls.keyboard)switch(e.keyCode){case 13:e.shiftKey&&i.keyboard.shift_enter&&t.fullScreenAction();break;case 27:i.keyboard.esc&&t.closeAction();break;case 37:i.keyboard.left&&!o.lockKey&&t.moveTo("prev");break;case 38:i.keyboard.up&&!o.lockKey&&t.moveTo("prev");break;case 39:i.keyboard.right&&!o.lockKey&&t.moveTo("next");break;case 40:i.keyboard.down&&!o.lockKey&&t.moveTo("next")}}),fullScreenApi.supportsFullScreen&&$win.bind(r,function(){t.doFullscreen()});var c=[i.caption.show+".iLightBox",i.caption.hide+".iLightBox",i.social.show+".iLightBox",i.social.hide+".iLightBox"].filter(function(e,t,o){return o.lastIndexOf(e)===t}),u="";$.each(c,function(e,t){0!=e&&(u+=" "),u+=t}),$doc.on(clickEvent,".ilightbox-overlay",function(){i.overlay.blur&&t.closeAction()}).on(clickEvent,".ilightbox-next, .ilightbox-next-button",function(){t.moveTo("next")}).on(clickEvent,".ilightbox-prev, .ilightbox-prev-button",function(){t.moveTo("prev")}
558).on(clickEvent,".ilightbox-thumbnail",function(){var e=$(this),i=$(".ilightbox-thumbnail",o.thumbnails),n=i.index(e);n!=o.current&&t.goTo(n)}).on(u,".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(e){var t=$("div.ilightbox-caption",o.holder),n=$("div.ilightbox-social",o.holder),a=i.effects.fadeSpeed;o.nextLock||o.prevLock?(e.type!=i.caption.show||t.is(":visible")?e.type==i.caption.hide&&t.is(":visible")&&t.fadeOut(a):t.fadeIn(a),e.type!=i.social.show||n.is(":visible")?e.type==i.social.hide&&n.is(":visible")&&n.fadeOut(a):n.fadeIn(a)):(e.type!=i.caption.show||t.is(":visible")?e.type==i.caption.hide&&t.is(":visible")&&t.stop().fadeOut(a):t.stop().fadeIn(a),e.type!=i.social.show||n.is(":visible")?e.type==i.social.hide&&n.is(":visible")&&n.stop().fadeOut(a):n.stop().fadeIn(a))}).on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-wrapper",function(e){o.lockWheel="mouseenter"==e.type?!0:!1
559}).on(clickEvent,".ilightbox-toolbar a.ilightbox-close, .ilightbox-toolbar a.ilightbox-fullscreen, .ilightbox-toolbar a.ilightbox-play, .ilightbox-toolbar a.ilightbox-pause",function(){var e=$
559(this);e.hasClass("ilightbox-fullscreen")?t.fullScreenAction():e.hasClass("ilightbox-play")?(t.resume(),e.addClass("ilightbox-pause").removeClass("ilightbox-play")):e.hasClass("ilightbox-pause")?(t.pause(),e.addClass("ilightbox-play").removeClass("ilightbox-pause")):t.closeAction()}).on(touchMoveEvent,".ilightbox-overlay, .ilightbox-thumbnails-container",function(e){e.preventDefault()}),i.controls.arrows&&!supportTouch&&$doc.on("mousemove.iLightBox",e),i.controls.slideshow&&i.slideshow.pauseOnHover&&$doc.on("mouseenter.iLightBox mouseleave.iLightBox",".ilightbox-holder:not(.ilightbox-next, .ilightbox-prev)",function(e){"mouseenter"==e.type&&o.cycleID?t.pause():"mouseleave"==e.type&&o.isPaused&&t.resume()});var h=$(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails");i.controls.mousewheel&&h.on("mousewheel.iLightBox",function(e,i){o.lockWheel||(e.preventDefault(),0>i?t.moveTo("next"):i>0&&t.moveTo("prev"))}),i.controls.swipe&&a.on(touchStartEvent,function(e){function r(e){if(f){var t=e.originalEvent.touches?e.originalEvent.touches[0]:e;u={time:(new Date).getTime(),coords:[t.pageX-p,t.pageY-d]}
559,a.each(function(){var e=$(this),t=e.data("offset")||{top:e.offset().top-d,left:e.offset().left-p},o=t.top,i=t.left,a=[f.coords[0]-u.coords[0],f.coords[1]-u.coords[1]];e.stop().css("horizontal"==n?{left:i-a[0]}:{top:o-a[1]})}),e.preventDefault()}}function c(){a.each(function(){var e=$(this),t=e.data("offset")||{top:e.offset().top-d,left:e.offset().left-p},o=t.top,i=t.left;e.css(transform,gpuAcceleration).stop().animate({top:o,left:i},500,"easeOutCirc",function(){e.css(transform,"")})})}if(!o.nextLock&&!o.prevLock&&1!=o.total&&!o.lockSwipe){o.BODY.addClass("ilightbox-closedhand");var u,h=e.originalEvent.touches?e.originalEvent.touches[0]:e,d=$doc.scrollTop(),p=$doc.scrollLeft(),f={time:(new Date).getTime(),coords:[h.pageX-p,h.pageY-d]};a.bind(touchMoveEvent,r),$doc.one(touchStopEvent,function(){a.unbind(touchMoveEvent,r),o.BODY.removeClass("ilightbox-closedhand"),f&&u&&("horizontal"==n&&u.time-f.time<s&&Math.abs(f.coords[0]-u.coords[0])>l&&Math.abs(f.coords[1]-u.coords[1])<verticalDistanceThreshold?f.coords[0]>u.coords[0]?o.current!=o.total-1||i.infinite?(o.isSwipe=!0,t.moveTo("next")):c():0!=o.current||i.infinite?(o.isSwipe=!0,t.moveTo("prev")):c():"vertical"==n&&u.time-f.time<s&&Math.abs(f.coords[1]-u.coords[1])>l&&Math.abs(f.coords[0]-u.coords[0])<verticalDistanceThreshold?f.coords[1]>u.coords[1]?o.current!=o.total-1||i.infinite?(o.isSwipe=!0,t.moveTo("next")):c():0!=o.current||i.infinite?(o.isSwipe=!0,t.moveTo("prev")):c():c()),f=u=undefined})}})},goTo:function(e){var t=this,o=t.vars,i=t.options,n=e-o.current;if(i.infinite&&(e==o.total-1&&0==o.current&&(n=-1),o.current==o.total-1&&0==e&&(n=1)),1==n)t.moveTo("next");else if(-1==n)t.moveTo("prev");else{if(o.nextLock||o.prevLock)return!1;"function"==typeof i.callback.onBeforeChange&&i.callback.onBeforeChange.call(t,t.ui),i.linkId&&(o.hashLock=!0,window.location.hash=i.linkId+"/"+e),t.items[e]&&(t.items[e].options.mousewheel?t.vars.lockWheel=!1:o.lockWheel=!0,o.lockSwipe=t.items[e].options.swipe?!1:!0),$.each([o.holder,o.nextPhoto,o.prevPhoto],function(e,t){t.css(transform,gpuAcceleration).fadeOut(i.effects.loadedFadeSpeed)}),o.current=e,o.next=e+1,o.prev=e-1,t.createUI(),setTimeout(function(){t.generateBoxes()},i.effects.loadedFadeSpeed+50),$(".ilightbox-thumbnail",o.thumbnails).removeClass("ilightbox-active").eq(e).addClass("ilightbox-active"),t.positionThumbnails(),i.linkId&&setTimeout(function(){o.hashLock=!1},55),i.infinite||(o.nextButton.add(o.prevButton).add(o.innerPrevButton).add(o.innerNextButton).removeClass("disabled"),0==o.current&&o.prevButton.add(o.innerPrevButton).addClass("disabled"),o.current>=o.total-1&&o.nextButton.add(o.innerNextButton).addClass("disabled")),t.resetCycle(),"function"==typeof i.callback.onAfterChange&&i.callback.onAfterChange.call(t,t.ui)}},moveTo:function(e){var t=this,o=t.vars,i=t.options,n=i.path.toLowerCase(),a=getViewport(),r=i.effects.switchSpeed;if(o.nextLock||o.prevLock)return!1;var s="next"==e?o.next:o.prev;if(i.linkId&&(o.hashLock=!0,window.location.hash=i.linkId+"/"+s),"next"==e){if(!t.items[s])return!1;var l=o.nextPhoto,c=o.holder,u=o.prevPhoto,h="ilightbox-prev",d="ilightbox-next"}else if("prev"==e){if(!t.items[s])return!1;var l=o.prevPhoto,c=o.holder,u=o.nextPhoto,h="ilightbox-next",d="ilightbox-prev"}"function"==typeof i.callback.onBeforeChange&&i.callback.onBeforeChange.call(t,t.ui),"next"==e?o.nextLock=!0:o.prevLock=!0;var p=$("div.ilightbox-caption",c),f=$("div.ilightbox-social",c);if(p.length&&p.stop().fadeOut(r,function(){$(this).remove()}),f.length&&f.stop().fadeOut(r,function(){$(this).remove()}),t.items[s].caption){t.setCaption(t.items[s],l);var g=$("div.ilightbox-caption",l),m=parseInt(g.outerHeight()/l.outerHeight()*100);i.caption.start&&50>=m&&g.fadeIn(r)}var v=t.items[s].options.social;v&&(t.setSocial(v,t.items[s].URL,l),i.social.start&&$("div.ilightbox-social",l).fadeIn(i.effects.fadeSpeed)),$.each([l,c,u],function(e,t){t.removeClass("ilightbox-next ilightbox-prev")});var b=l.data("offset"),x=a.width-i.styles.pageOffsetX,w=a.height-i.styles.pageOffsetY,y=b.newDims.width,S=b.newDims.height,A=b.thumbsOffset,T=b.diff,k=parseInt(w/2-S/2-T.H-A.H/2),I=parseInt(x/2-y/2-T.W-A.W/2);l.css(transform,gpuAcceleration).animate({top:k,left:I,opacity:1},r,o.isSwipe?"easeOutCirc":"easeInOutCirc",function(){l.css(transform,"")}),$("div.ilightbox-container",l).animate({width:y,height:S},r,o.isSwipe?"easeOutCirc":"easeInOutCirc");var L=c.data("offset"),O=L.object;T=L.diff,y=L.newDims.width,S=L.newDims.height,y=parseInt(y*i.styles["next"==e?"prevScale":"nextScale"]),S=parseInt(S*i.styles["next"==e?"prevScale":"nextScale"]),k=parseInt("horizontal"==n?w/2-O.offsetY-S/2-T.H-A.H/2:w-O.offsetX-T.H-A.H/2),"prev"==e?I=parseInt("horizontal"==n?x-O.offsetX-T.W-A.W/2:x/2-y/2-T.W-O.offsetY-A.W/2):(k="horizontal"==n?k:parseInt(O.offsetX-T.H-S-A.H/2),I=parseInt("horizontal"==n?O.offsetX-T.W-y-A.W/2:x/2-O.offsetY-y/2-T.W-A.W/2)),$("div.ilightbox-container",c).animate({width:y,height:S},r,o.isSwipe?"easeOutCirc":"easeInOutCirc"),c.addClass(h).css(transform,gpuAcceleration).animate({top:k,left:I,opacity:i.styles.prevOpacity},r,o.isSwipe?"easeOutCirc":"easeInOutCirc",function(){c.css(transform,""),$(".ilightbox-thumbn
559ail",o.thumbnails).removeClass("ilightbox-active").eq(s).addClass("ilightbox-active"),t.positionThumbnails(),t.items[s]&&(o.lockWheel=t.items[s].options.mousewheel?!1:!0,o.lockSwipe=t.items[s].options.swipe?!1:!0),o.isSwipe=!1,"next"==e?(o.nextPhoto=u,o.prevPhoto=c,o.holder=l,o.nextPhoto.hide(),o.next=o.next+1,o.prev=o.current,o.current=o.current+1,i.infinite&&(o.current>o.total-1&&(o.current=0),o.current==o.total-1&&(o.next=0),0==o.current&&(o.prev=o.total-1)),t.createUI(),t.items[o.next]?t.loadContent(t.items[o.next],"next"):o.nextLock=!1):(o.prevPhoto=u,o.nextPhoto=c,o.holder=l,o.prevPhoto.hide(),o.next=o.current,o.current=o.prev,o.prev=o.current-1,i.infinite&&(o.current==o.total-1&&(o.next=0),0==o.current&&(o.prev=o.total-1)),t.createUI(),t.items[o.prev]?t.loadContent(t.items[o.prev],"prev"):o.prevLock=!1),i.linkId&&setTimeout(function(){o.hashLock=!1},55),i.infinite||(o.nextButton.add(o.prevButton).add(o.innerPrevButton).add(o.innerNextButton).removeClass("disabled"),0==o.current&&o.prevButton.add(o.innerPrevButton).addClass("disabled"),o.current>=o.total-1&&o.nextButton.add(o.innerNextButton).addClass("disabled")),t.repositionPhoto(),t.resetCycle(),"function"==typeof i.callback.onAfterChange&&i.callback.onAfterChange.call(t,t.ui)}),k="horizontal"==n?getPixel(u,"top"):parseInt("next"==e?-(w/2)-u.outerHeight():2*k),I="horizontal"==n?parseInt("next"==e?-(x/2)-u.outerWidth():2*I):getPixel(u,"left"),u.css(transform,gpuAcceleration).animate({top:k,left:I,opacity:i.styles.nextOpacity},r,o.isSwipe?"easeOutCirc":"easeInOutCirc",function(){u.css(transform,"")}).addClass(d)},setCaption:function(e,t){var o=$('<div class="ilightbox-caption"></div>');e.caption&&(o.html(e.caption),$("div.ilightbox-container",t).append(o))},normalizeSocial:function(e,t){var o=this,i=(o.vars,o.options),n=window.location.href;return $.each(e,function(o,a){var r,s,l=o.toLowerCase();switch(l){case"facebook":r="https://www.facebook.com/share.php?v=4&src=bm&u={URL}",s="Share on Facebook";break;case"twitter":r="https://twitter.com/home?status={URL}",s="Share on Twitter";break;case"googleplus":r="https://plus.google.com/share?url={URL}",s="Share on Google+";break;case"delicious":r="https://delicious.com/post?url={URL}",s="Share on Delicious";break;case"digg":r="https://digg.com/submit?phase=2&url={URL}",s="Share on Digg";break;case"reddit":r="https://reddit.com/submit?url={URL}",s="Share on reddit"}e[o]={URL:a.URL&&absolutizeURI(n,a.URL)||i.linkId&&window.location.href||"string"!=typeof t&&n||t&&absolutizeURI(n,t)||n,source:a.source||r||a.URL&&absolutizeURI(n,a.URL)||t&&absolutizeURI(n,t),text:s||a.text||"Share on "+o,width:"undefined"==typeof a.width||isNaN(a.width)?640:parseInt(a.width),height:a.height||360}}),e},setSocial:function(e,t,o){var i=this,n=$('<div class="ilightbox-social"></div>'),a="<ul>";e=i.normalizeSocial(e,t),$.each(e,function(e,t){var o=(e.toLowerCase(),t.source.replace("{URL}",encodeURIComponent(t.URL).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A").replace(/%20/g,"+")));a+='<li class="'+e+'"><a href="'+o+'" onclick="javascript:window.open(this.href'+(t.width<=0||t.height<=0?"":", '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height="+t.height+",width="+t.width+",left=40,top=40'")+');return false;" title="'+t.text+'" target="_blank"></a></li>'}),a+="</ul>",n.html(a),$("div.ilightbox-container",o).append(n)},fullScreenAction:function(){{var e=this;e.vars}fullScreenApi.supportsFullScreen?fullScreenApi.isFullScreen()?fullScreenApi.cancelFullScreen(document.documentElement):fullScreenApi.requestFullScreen(document.documentElement):e.doFullscreen()},doFullscreen:function(){var e=this,t=e.vars,o=getViewport(),i=e.options;if(i.fullAlone){var n=t.holder,a=e.items[t.current],r=o.width,s=o.height,l=[n,t.nextPhoto,t.prevPhoto,t.nextButton,t.prevButton,t.overlay,t.toolbar,t.thumbnails,t.loader],c=[t.nextPhoto,t.prevPhoto,t.nextButton,t.prevButton,t.loader,t.thumbnails];if(t.isInFullScreen)t.isInFullScreen=t.lockKey=t.lockWheel=t.lockSwipe=!1,t.overlay.css({opacity:e.options.overlay.opacity}),$.each(c,function(e,t){t.show()}),t.fullScreenButton.attr("title",i.text.enterFullscreen),n.data({naturalWi
559dth:n.data("naturalWidthOld"),naturalHeight:n.data("naturalHeightOld"),naturalWidthOld:null,naturalHeightOld:null}),$.each(l,function(e,t){t.removeClass("ilightbox-fullscreen")}),"function"==typeof i.callback.onExitFullScreen&&i.callback.onExitFullScreen.call(e,e.ui);else{if(t.isInFullScreen=t.lockKey=t.lockWheel=t.lockSwipe=!0,t.overlay.css({opacity:1}),$.each(c,function(e,t){t.hide()}),t.fullScreenButton.attr("title",i.text.exitFullscreen),-1!=i.fullStretchTypes.indexOf(a.type))n.data({naturalWidthOld:n.data("naturalWidth"),naturalHeightOld:n.data("naturalHeight"),naturalWidth:r,naturalHeight:s});else{var o=a.options.fullViewPort||i.fullViewPort||"",u=r,h=s,d=n.data("naturalWidth"),p=n.data("naturalHeight");if("fill"==o.toLowerCase())h=u/d*p,s>h&&(u=s/p*d,h=s);else if("fit"==o.toLowerCase()){var f=e.getNewDimenstions(u,h,d,p,!0);u=f.width,h=f.height}else if("stretch"==o.toLowerCase())u=u,h=h;else{var g=d>u||p>h?!0:!1,f=e.getNewDimenstions(u,h,d,p,g);u=f.width,h=f.height}n.data({naturalWidthOld:n.data("naturalWidth"),naturalHeightOld:n.data("naturalHeight"),naturalWidth:u,naturalHeight:h})}$.each(l,function(e,t){t.addClass("ilightbox-fullscreen")}),"function"==typeof i.callback.onEnterFullScreen&&i.callback.onEnterFullScreen.call(e,e.ui)}}else t.isInFullScreen=t.isInFullScreen?!1:!0;e.repositionPhoto(!0)},closeAction:function(){var e=this,t=e.vars,o=e.options;$win.unbind(".iLightBox"),t.isInFullScreen&&fullScreenApi.cancelFullScreen(document.documentElement),$doc.off(".iLightBox"),$(".ilightbox-overlay, .ilightbox-holder, .ilightbox-thumbnails").off(".iLightBox"),o.hide.effect?t.overlay.stop().fadeOut(o.hide.speed,function(){t.overlay.remove(),t.BODY.removeClass("ilightbox-noscroll").off(".iLightBox")}):(t.overlay.remove(),t.BODY.removeClass("ilightbox-noscroll").off(".iLightBox"));var i=[t.toolbar,t.holder,t.nextPhoto,t.prevPhoto,t.nextButton,t.prevButton,t.loader,t.thumbnails];$.each(i,function(e,t){t.removeAttr("style").remove()}),t.dontGenerateThumbs=t.isInFullScreen=!1,window.iLightBox=null,o.linkId&&(t.hashLock=!0,removeHash(),setTimeout(function(){t.hashLock=!1},55)),"function"==typeof o.callback.onHide&&o.callback.onHide.call(e,e.ui)},repositionPhoto:function(){var e=this,t=e.vars,o=e.options,i=o.path.toLowerCase(),n=getViewport(),a=n.width,r=n.height,s=t.isInFullScreen&&o.fullAlone||t.isMobile?0:"horizontal"==i?0:t.thumbnails.outerWidth(),l=t.isMobile?t.toolbar.outerHeight():t.isInFullScreen&&o.fullAlone?0:"horizontal"==i?t.thumbnails.outerHeight():0,c=t.isInFullScreen&&o.fullAlone?a:a-o.styles.pageOffsetX,u=t.isInFullScreen&&o.fullAlone?r:r-o.styles.pageOffsetY,h="horizontal"==i?parseInt(e.items[t.next]||e.items[t.prev]?2*(o.styles.nextOffsetX+o.styles.prevOffsetX):30>=c/10?30:c/10):parseInt(30>=c/10?30:c/10)+s,d="horizontal"==i?parseInt(30>=u/10?30:u/10)+l:parseInt(e.items[t.next]||e.items[t.prev]?2*(o.styles.nextOffsetX+o.styles.prevOffsetX):30>=u/10?30:u/10),p={type:"current",width:c,height:u,item:e.items[t.current],offsetW:h,offsetH:d,thumbsOffsetW:s,thumbsOffsetH:l,animate:arguments.length,holder:t.holder};e.repositionEl(p),e.items[t.next]&&(p=$.extend(p,{type:"next",item:e.items[t.next],offsetX:o.styles.nextOffsetX,offsetY:o.styles.nextOffsetY,holder:t.nextPhoto}),e.repositionEl(p)),e.items[t.prev]&&(p=$.extend(p,{type:"prev",item:e.items[t.prev],offsetX:o.styles.prevOffsetX,offsetY:o.styles.prevOffsetY,holder:t.prevPhoto}),e.repositionEl(p));var f="horizontal"==i?{left:parseInt(c/2-t.loader.outerWidth()/2)}:{top:parseInt(u/2-t.loader.outerHeight()/2)};t.loader.css(f)},repositionEl:function(e){var t=this,o=t.vars,i=t.options,n=i.path.toLowerCase(),a="current"==e.type&&o.isInFullScreen&&i.fullAlone?e.width:e.width-e.offsetW,r="current"==e.type&&o.isInFullScreen&&i.fullAlone?e.height:e.height-e.offsetH,s=e.item,l=e.item.options,c=e.holder,u=e.offsetX||0,h=e.offsetY||0,d=e.thumbsOffsetW,p=e.thumbsOffsetH;"current"==e.type?("number"==typeof l.width&&l.width&&(a=o.isInFullScreen&&i.fullAlone&&(-1!=i.fullStretchTypes.indexOf(s.type)||l.fullViewPort||i.fullViewPort)?a:l.width>a?a:l.width),"number"==typeof l.height&&l.height&&(r=o.isInFullScreen&&i.fullAlone&&(-1!=i.fullStretchTypes.indexOf(s.type)||l.fullViewPort||i.fullViewPort)?r:l.height>r?r:l.height)):("number"==typeof l.width&&l.width&&(a=l.width>a?a:l.width),"number"==typeof l.height&&l.height&&(r=l.height>r?r:l.height)),r=parseInt(r-$(".ilightbox-inner-toolbar",c).outerHeight());var f="string"==typeof l.width&&-1!=l.width.indexOf("%")?percentToValue(parseInt(l.width.replace("%","")),e.width):c.data("naturalWi
559dth"),g="string"==typeof l.height&&-1!=l.height.indexOf("%")?percentToValue(parseInt(l.height.replace("%","")),e.height):c.data("naturalHeight"),m="string"==typeof l.width&&-1!=l.width.indexOf("%")||"string"==typeof l.height&&-1!=l.height.indexOf("%")?{width:f,height:g}:t.getNewDimenstions(a,r,f,g),v=$.extend({},m,{});"prev"==e.type||"next"==e.type?(f=parseInt(m.width*("next"==e.type?i.styles.nextScale:i.styles.prevScale)),g=parseInt(m.height*("next"==e.type?i.styles.nextScale:i.styles.prevScale))):(f=m.width,g=m.height);var b=parseInt((getPixel(c,"padding-left")+getPixel(c,"padding-right")+getPixel(c,"border-left-width")+getPixel(c,"border-right-width"))/2),x=parseInt((getPixel(c,"padding-top")+getPixel(c,"padding-bottom")+getPixel(c,"border-top-width")+getPixel(c,"border-bottom-width")+$(".ilightbox-inner-toolbar",c).outerHeight())/2);switch(e.type){case"current":var w=parseInt(e.height/2-g/2-x-p/2),y=parseInt(e.width/2-f/2-b-d/2);break;case"next":var w=parseInt("horizontal"==n?e.height/2-h-g/2-x-p/2:e.height-u-x-p/2),y=parseInt("horizontal"==n?e.width-u-b-d/2:e.width/2-f/2-b-h-d/2);break;case"prev":var w=parseInt("horizontal"==n?e.height/2-h-g/2-x-p/2:u-x-g-p/2),y=parseInt("horizontal"==n?u-b-f-d/2:e.width/2-h-f/2-b-d/2)}c.data("offset",{top:w,left:y,newDims:v,diff:{W:b,H:x},thumbsOffset:{W:d,H:p},object:e}),e.animate>0&&i.effects.reposition?(c.css(transform,gpuAcceleration).stop().animate({top:w,left:y},i.effects.repositionSpeed,"easeOutCirc",function(){c.css(transform,"")}),$("div.ilightbox-container",c).stop().animate({width:f,height:g},i.effects.repositionSpeed,"easeOutCirc"),$("div.ilightbox-inner-toolbar",c).stop().animate({width:f},i.effects.repositionSpeed,"easeOutCirc",function(){$(this).css("overflow","visible")})):(c.css({top:w,left:y}),$("div.ilightbox-container",c).css({width:f,height:g}),$("div.ilightbox-inner-toolbar",c).css({width:f}))},resume:function(e){var t=this,o=t.vars,i=t.options;!i.slideshow.pauseTime||i.controls.slideshow&&o.total<=1||e<o.isPaused||(o.isPaused=0,o.cycleID&&(o.cycleID=clearTimeout(o.cycleID)),o.cycleID=setTimeout(function(){o.current==o.total-1?t.goTo(0):t.moveTo("next")},i.slideshow.pauseTime))},pause:function(e){{var t=this,o=t.vars;t.options}e<o.isPaused||(o.isPaused=e||100,o.cycleID&&(o.cycleID=clearTimeout(o.cycleID)))},resetCycle:function(){var e=this,t=e.vars,o=e.options;o.controls.slideshow&&t.cycleID&&!t.isPaused&&e.resume()},getNewDimenstions:function(e,t,o,i,n){var a=this;factor=e?t?Math.min(e/o,t/i):e/o:t/i,n||(factor>a.options.maxScale?factor=a.options.maxScale:factor<a.options.minScale&&(factor=a.options.minScale));var r=a.options.keepAspectRatio?Math.round(o*factor):e,s=a.options.keepAspectRatio?Math.round(i*factor):t;return{width:r,height:s,ratio:factor}},setOption:function(e){var t=this;t.options=$.extend(!0,t.options,e||{}),t.refresh()},availPlugins:function(){var e=this,t=document.createElement("video");e.plugins={flash:parseInt(PluginDetect.getVersion("Shockwave"))>=0||parseInt(PluginDetect.getVersion("Flash"))>=0?!0:!1,quicktime:parseInt(PluginDetect.getVersion("QuickTime"))>=0?!0:!1,html5H264:!(!t.canPlayType||!t.canPlayType("video/mp4").replace(/no/,"")),html5WebM:!(!t.canPlayType||!t.canPlayType("video/webm").replace(/no/,"")),html5Vorbis:!(!t.canPlayType||!t.canPlayType("video/ogg").replace(/no/,"")),html5QuickTime:!(!t.canPlayType||!t.canPlayType("video/quicktime").replace(/no/,""))}},addContent:function(e,t){var o,i=this;switch(t.type){case"video":var n=!1,a=t.videoType,r=t.options.html5video;("video/mp4"==a||"mp4"==t.ext||"m4v"==t.ext||r.h264)&&i.plugins.html5H264?(t.ext="mp4",t.URL=r.h264||t.URL):r.webm&&i.plugins.html5WebM?(t.ext="webm",t.URL=r.webm||t.URL):r.ogg&&i.plugins.html5Vorbis&&(t.ext="ogv",t.URL=r.ogg||t.URL),!i.plugins.html5H264||"video/mp4"!=a&&"mp4"!=t.ext&&"m4v"!=t.ext?!i.plugins.html5WebM||"video/webm"!=a&&"webm"!=t.ext?!i.plugins.html5Vorbis||"video/ogg"!=a&&"ogv"!=t.ext?!i.plugins.html5QuickTime||"video/quicktime"!=a&&"mov"!=t.ext&&"qt"!=t.ext||(n=!0,a="video/quicktime"):(n=!0,a="video/ogg"):(n=!0,a="video/webm"):(n=!0,a="video/mp4"),n?o=$("<video />
559",{width:"100%",height:"100%",preload:r.preload,autoplay:r.autoplay,poster:r.poster,controls:r.controls}).append($("<source />",{src:t.URL,type:a})):i.plugins.quicktime?(o=$("<object />",{type:"video/quicktime",pluginspage:pluginspages.quicktime}).attr({data:t.URL,width:"100%",height:"100%"}).append($("<param />",{name:"src",value:t.URL})).append($("<param />",{name:"autoplay",value:"false"})).append($("<param />",{name:"loop",value:"false"})).append($("<param />",{name:"scale",value:"tofit"})),browser.msie&&(o=QT_GenerateOBJECTText(t.URL,"100%","100%","","SCALE","tofit","AUTOPLAY","false","LOOP","false"))):o=$("<span />",{"class":"ilightbox-alert",html:i.options.errors.missingPlugin.replace("{pluginspage}",pluginspages.quicktime).replace("{type}","QuickTime")});break;case"flash":if(i.plugins.flash){var s="",l=0;t.options.flashvars?$.each(t.options.flashvars,function(e,t){0!=l&&(s+="&"),s+=e+"="+encodeURIComponent(t),l++}):s=null,o=$("<embed />").attr({type:"application/x-shockwave-flash",src:t.URL,width:"number"==typeof t.options.width&&t.options.width&&"1"==i.options.minScale&&"1"==i.options.maxScale?t.options.width:"100%",height:"number"==typeof t.options.height&&t.options.height&&"1"==i.options.minScale&&"1"==i.options.maxScale?t.options.height:"100%",quality:"high",bgcolor:"#000000",play:"true",loop:"true",menu:"true",wmode:"transparent",scale:"showall",allowScriptAccess:"always",allowFullScreen:"true",flashvars:s,fullscreen:"yes"})}else o=$("<span />",{"class":"ilightbox-alert",html:i.options.errors.missingPlugin.replace("{pluginspage}",pluginspages.flash).replace("{type}","Adobe Flash player")});break;case"iframe":o=$("<iframe />").attr({width:"number"==typeof t.options.width&&t.options.width&&"1"==i.options.minScale&&"1"==i.options.maxScale?t.options.width:"100%",height:"number"==typeof t.options.height&&t.options.height&&"1"==i.options.minScale&&"1"==i.options.maxScale?t.options.height:"100%",src:t.URL,frameborder:0,webkitAllowFullScreen:"",mozallowfullscreen:"",allowFullScreen:""});break;case"inline":o=$('<div class="ilightbox-wrapper"></div>').html($(t.URL).clone(!0));break;case"html":var o,c=t.URL;if(c[0].nodeName)o=$('<div class="ilightbox-wrapper"></div>').html(c);else{var u=$(t.URL),h=u.selector?$("<div>"+u+"</div>"):u;o=$('<div class="ilightbox-wrapper"></div>').html(h)}}return $("div.ilightbox-container",e).empty().html(o),o},ogpRecognition:function(e,t){var o=this,i=e.URL,n=new Object;n.length=!1,o.showLoader(),doAjax(i,function(e){if(o.hideLoader(),200==e.status){var i=e.results,a=i.type,r=i.source;n.source=r.src,n.width=r.width&&parseInt(r.width)||0,n.height=r.height&&parseInt(r.height)||0,n.type=a,n.thumbnail=r.thumbnail||i.images[0],n.html5video=i.html5video||{},n.length=!0,"application/x-shockwave-flash"==r.type?n.type="flash":-1!=r.type.indexOf("video/")?n.type="video":-1!=r.type.indexOf("/html")?n.type="iframe":-1!=r.type.indexOf("image/")&&(n.type="image")}else if("undefined"!=typeof e.response)throw e.response;t(n.length?n:!1)})},hashChangeHandler:function(e){var t=this,o=t.vars,i=t.options,n=e||window.location.href,a=parseURI(n).hash,r=a.indexOf("#"+i.linkId+"/"),s=a.split("/");if(!(o.hashLock||"#"+i.linkId!=s[0]&&a.length>1))if(-1!=r){var l=s[1]||0;if(t.items[l]){var c=$(".ilightbox-overlay");c.length&&c.attr("linkid")==i.linkId?t.goTo(l):t.itemsObject[l].trigger("click")}else{var c=$(".ilightbox-overlay");c.length&&t.closeAction()}}else{var c=$(".ilightbox-overlay");c.length&&t.closeAction()}}},$.fn.iLightBox=function(){var e=arguments,t=$.isPlainObject(e[0])?e[0]:e[1],o=$.isArray(e[0])||"string"==typeof e[0]?e[0]:e[1];t||(t={});var i=$.extend(!0,{attr:"href",path:"horizontal",skin:"dark",linkId:!1,infinite:!0,startFrom:0,randomStart:!1,keepAspectRatio:!0,maxScale:1,minScale:.2,innerToolbar:!1,smartRecognition:!1,mobileOptimizer:!0,fullAlone:!0,fullViewPort:null,fullStretchTypes:"flash, video",overlay:{blur:!0,opacity:.85},controls:{arrows:!0,slideshow:!0,toolbar:!0,fullscreen:!0,thumbnail:!0,keyboard:!0,mousewheel:!0,swipe:!0},keyboard:{left:!0,right:!0,up:!0,down:!0,esc:!0,shift_enter:!0},show:{effect:!0,speed:300,title:!0},hide:{effect:!0,speed:300},caption:{start:!0,show:"mouseenter",hide:"mouseleave"},social:{start:!0,show:"mouseenter",hide:"mouseleave",buttons:!1},styles:{pageOffsetX:0,pageOffsetY:0,nextOffsetX:45,nextOffsetY:0,nextOpacity:1,nextScale:1,prevOffsetX:45,prevOffsetY:0,prevOpacity:1,prevScale:1},thumbnails:{maxWidth:120,maxHeight:80,normalOpacity:1,activeOpacity:.6},effects:{reposition:!0,repositionSpeed:200,switchSpeed:500,loadedFadeSpeed:180,fadeSpeed:200},slideshow:{pauseTime:5e3,pauseOnHover:!1,startPaused:!0},text:{close:"Press Esc to close",enterFullscreen:"Enter Fullscreen (Shift+Enter)",exitFullscreen:"Exit Fullscreen (Shift+Enter)",slideShow:"Slideshow",next:"Next",previous:"Previous"},errors:{loadImage:"An error occurred when trying to load photo.",loadContents:"An error occurred when trying to load contents.",missingPlugin:"The content your are attempting to view requires the <a href='{pluginspage}' target='_blank'>{type} plugin</a>."},ajaxSetup:{url:"",beforeSend:function(){},cache:!1,complete:function(){},crossDomain:!1,error:function(){},success:function(){},global:!0,ifModified:!1,username:null,password:null,type:"GET"},callback:{}},t),n=$.isArray(o)||"string"==typeof o?!0:!1;if(o=$.isArray(o)?o:new Array,"string"==typeof e[0]&&(o[0]=e[0]),version_compare($.fn.jquery,"1.8",">=")){var a=new iLightBox($(this),i,o,n);return{close:function(){a.closeAction()},fullscreen:function(){a.fullScreenAction()},moveNext:function(){a.moveTo("next")},movePrev:function(){a.moveTo("prev")},goTo:function(e){a.goTo(e)},refresh:function(){a.refresh()},reposition:function(){arguments.length>0?a.repositionPhoto(!0):a.repositionPhoto()},setOption:function(e){a.setOption(e)},destroy:function(){a.closeAction(),a.dispatchItemsEvents()}}}throw"The jQuery version that was loaded is too old. iLightBox requires jQuery 1.8+"},$.iLightBox=function(){return $.fn.iLightBox(arguments[0],arguments[1])},$.extend($.easing,{easeInCirc:function(e,t,o,i,n){return-i*(Math.sqrt(1-(t/=n)*t)-1)+o},easeOutCirc:function(e,t,o,i,n){return i*Math.sqrt(1-(t=t/n-1)*t)+o},easeInOutCirc:function(e,t,o,i,n){return(t/=n/2)<1?-i/2*(Math.sqrt(1-t*t)-1)+o:i/2*(Math.sqrt(1-(t-=2)*t)+1)+o}});var $document=$(document);$.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(e,t){$.fn[t]=function(e){return e?this.bind(t,e):this.trigger(t)},$.attrFn&&($.attrFn[t]=!0)});var tapSettings={startEvent:"touchstart.iTap",endEvent:"touchend.iTap"};$.event.special.itap={setup:function(){var e,t,o=this,i=$(this);i.bind(tapSettings.startEvent,function(){e=getScrollXY(),i.one(tapSettings.endEvent,function(i){t=getScrollXY();var n=i||window.event;i=$.event.fix(n),i.type="itap",e&&t&&e.x==t.x&&e.y==t.y&&($.event.dispatch||$.event.handle).call(o,i),e=t=undefined})})},teardown:function(){$(this).unbind(tapSettings.startEvent)}},function(){if(fullScreenApi={supportsFullScreen:!1,isFullScreen:function(){return!1},requestFullScreen:function(){},cancelFullScreen:function(){},fullScreenEventName:"",prefix:""},browserPrefixes="webkit moz o ms khtml".split(" "),"undefined"!=typeof document.cancelFullScreen)fullScreenApi.supportsFullScreen=!0;else for(var e=0,t=browserPrefixes.length;t>e;e++)if(fullScreenApi.prefix=browserPrefixes[e],"undefined"!=typeof document[fullScreenApi.prefix+"CancelFullScreen"]){fullScreenApi.supportsFullScreen=!0;break}fullScreenApi.supportsFullScreen&&(fullScreenApi.fullScreenEventName=fullScreenApi.prefix+"fullscreenchange",fullScreenApi.isFullScreen=function(){switch(this.prefix){case"":return document.fullScreen;case"webkit":return document.webkitIsFullScreen;default:return document[this.prefix+"FullScreen"]}},fullScreenApi.requestFullScreen=function(e){return""===this.prefix?e.requestFullScreen():e[this.prefix+"RequestFullScreen"]()},fullScreenApi.cancelFullScreen=function(){return""===this.prefix?document.cancelFullScreen():document[this.prefix+"CancelFullScreen"]()})}(),function(){function e(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}}var t=e(navigator.userAgent);browser={},t.browser&&(browser[t.browser]=!0,browser.version=t.version),browser.chrome?browser.webkit=!0:browser.webkit&&(browser.safari=!0)}(),function(){function e(e){for(var i=0,n=t.length;n>i;i++){var a=t[i]?t[i]+e.charAt(0).toUpperCase()+e.slice(1):e;if(o.style[a]!==undefined)return a}}var t=["","webkit","moz","ms","o"],o=document.createElement("div");transform=e("transform")||"",gpuAcceleration=e("perspective")?"translateZ(0) ":""}();var PluginDetect={version:"0.7.9",name:"PluginDetect",handler:function(e,t,o){return function(){e(t,o)}},openTag:"<",isDefined:function(e){return"undefined"!=typeof e},isArray:function(e){return/array/i.test(Object.prototype.toString.call(e))},isFunc:function(e){return"function"==typeof e},isString:function(e){return"string"==typeof e},isNum:function(e){return"number"==typeof e},isStrNum:function(e){return"string"==typeof e&&/\d/.test(e)},getNumRegx:/[\d][\d\.\_,-]*/,splitNumRegx:/[\.\_,-]/g,getNum:function(e,t){var o=this,i=o.isStrNum(e)?(o.isDefined(t)?new RegExp(t):o.getNumRegx).exec(e):null;return i?i[0]:null},compareNums:function(e,t,o){var i,n,a,r=this,s=parseInt;if(r.isStrNum(e)&&r.isStrNum(t)){if(r.isDefined(o)&&o.compareNums)return o.compareNums(e,t);for(i=e.split(r.splitNumRegx),n=t.split(r.splitNumRegx),a=0;a<Math.min(i.length,n.length);a++){if(s(i[a],10)>s(n[a],10))return 1;if(s(i[a],10)<s(n[a],10))return-1}}return 0},formatNum:function(e,t){var o,i,n=this;if(!n.isStrNum(e))return null;for(n.isNum(t)||(t=4),t--,i=e.replace(/\s/g,"").split(n.splitNumRegx).concat(["0","0","0","0"]),o=0;4>o;o++)/^(0+)(.+)$/.test(i[o])&&(i[o]=RegExp.$2),(o>
559t||!/\d/.test(i[o]))&&(i[o]="0");return i.slice(0,4).join(",")},$$hasMimeType:function(e){return function(t){if(!e.isIE&&t){var o,i,n,a=e.isArray(t)?t:e.isString(t)?[t]:[];for(n=0;n<a.length;n++)if(e.isString(a[n])&&/[^\s]/.test(a[n])&&(o=navigator.mimeTypes[a[n]],i=o?o.enabledPlugin:0,i&&(i.name||i.description)))return o}return null}},findNavPlugin:function(e,t,o){var i,n,a,r=this,s=new RegExp(e,"i"),l=!r.isDefined(t)||t?/\d/:0,c=o?new RegExp(o,"i"):0,u=navigator.plugins,h="";for(i=0;i<u.length;i++)if(a=u[i].description||h,n=u[i].name||h,(s.test(a)&&(!l||l.test(RegExp.leftContext+RegExp.rightContext))||s.test(n)&&(!l||l.test(RegExp.leftContext+RegExp.rightContext)))&&(!c||!c.test(a)&&!c.test(n)))return u[i];return null},getMimeEnabledPlugin:function(e,t,o){var i,n,a,r,s=this,l=new RegExp(t,"i"),c="",u=o?new RegExp(o,"i"):0,h=s.isString(e)?[e]:e;for(r=0;r<h.length;r++)if((i=s.hasMimeType(h[r]))&&(i=i.enabledPlugin)&&(a=i.description||c,n=i.name||c,(l.test(a)||l.test(n))&&(!u||!u.test(a)&&!u.test(n))))return i;return 0},getPluginFileVersion:function(e,t){var o,i,n,a,r=this,s=-1;if(r.OS>2||!e||!e.version||!(o=r.getNum(e.version)))return t;if(!t)return o;for(o=r.formatNum(o),t=r.formatNum(t),i=t.split(r.splitNumRegx),n=o.split(r.splitNumRegx),a=0;a<i.length;a++){if(s>-1&&a>s&&"0"!=i[a])return t;if(n[a]!=i[a]&&(-1==s&&(s=a),"0"!=i[a]))return t}return o},AXO:window.ActiveXObject,getAXO:function(e){var t=null,o=this;try{t=new o.AXO(e)}catch(i){}return t},convertFuncs:function(e){var t,o,i=/^[\$][\$]/;for(t in e)if(i.test(t))try{o=t.slice(2),o.length>0&&!e[o]&&(e[o]=e[t](e),delete e[t])}catch(n){}},initObj:function(e,t,o){var i,n;if(e){if(1==e[t[0]]||o)for(i=0;i<t.length;i+=2)e[t[i]]=t[i+1];for(i in e)n=e[i],n&&1==n[t[0]]&&this.initObj(n,t)}},initScript:function(){var e,t=this,o=navigator,i=document,n=o.userAgent||"",a=o.vendor||"",r=o.platform||"",s=o.product||"";t.initObj(t,["$",t]);for(e in t.Plugins)t.Plugins[e]&&t.initObj(t.Plugins[e],["$",t,"$$",t.Plugins[e]],1);if(t.convertFuncs(t),t.OS=100,r){var l=["Win",1,"Mac",2,"Linux",3,"FreeBSD",4,"iPhone",21.1,"iPod",21.2,"iPad",21.3,"Win.*CE",22.1,"Win.*Mobile",22.2,"Pocket\\s*PC",22.3,"",100];for(e=l.length-2;e>=0;e-=2)if(l[e]&&new RegExp(l[e],"i").test(r)){t.OS=l[e+1];break}}if(t.head=i.getElementsByTagName("head")[0]||i.getElementsByTagName("body")[0]||i.body||null,t.isIE=new Function("return/*@cc_on!@*/!1")(),t.verIE=t.isIE&&/MSIE\s*(\d+\.?\d*)/i.test(n)?parseFloat(RegExp.$1,10):null,t.verIEfull=null,t.docModeIE=null,t.isIE){var c,u=document.createElement("div");try{u.style.behavior="url(#default#clientcaps)",t.verIEfull=u.getComponentVersion("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid").replace(/,/g,".")
560}catch(h){}c=parseFloat(t.verIEfull||"0",10),t.docModeIE=i.documentMode||(/back/i.test(i.compatMode||"")?5:c)||t.verIE,t.verIE=c||t.docModeIE}if(t.ActiveXEnabled=!1,t.isIE){var e,d=["Msxml2.XMLHTTP","Msxml2.DOMDocument","Microsoft.XMLDOM","ShockwaveFlash.ShockwaveFlash","TDCCtl.TDCCtl","Shell.UIHelper","Scripting.Dictionary","wmplayer.ocx"];for(e=0;e<d.length;e++)if(t.getAXO(d[e])){t.ActiveXEnabled=!0;break}}t.isGecko=/Gecko/i.test(s)&&/Gecko\s*\/\s*\d/i.test(n),t.verGecko=t.isGecko?t.formatNum(/rv\s*\:\s*([\.\,\d]+)/i.test(n)?RegExp.$1:"0.9"):null,t.isChrome=/Chrome\s*\/\s*(\d[\d\.]*)/i.test(n),t.verChrome=t.isChrome?t.formatNum(RegExp.$1):null,t.isSafari=(/Apple/i.test(a)||!a&&!t.isChrome)&&/Safari\s*\/\s*(\d[\d\.]*)/i.test(n),t.verSafari=t.isSafari&&/Version\s*\/\s*(\d[\d\.]*)/i.test(n)?t.formatNum(RegExp.$1):null,t.isOpera=/Opera\s*[\/]?\s*(\d+\.?\d*)/i.test(n),t.verOpera=t.isOpera?parseFloat(RegExp.$1,10):null,t.addWinEvent("load",t.handler(t.runWLfuncs,t))},init:function(e){var t,e,o=this,i={status:-3,plugin:0};return o.isString(e)?1==e.length?(o.getVersionDelimiter=e,i):(e=e.toLowerCase().replace(/\s/g,""),t=o.Plugins[e],t&&t.getVersion?(i.plugin=t,o.isDefined(t.installed)||(t.installed=null,t.version=null,t.version0=null,t.getVersionDone=null,t.pluginName=e),o.garbage=!1,o.isIE&&!o.ActiveXEnabled&&"java"!==e?(i.status=-2,i):(i.status=1,i)):i):i},fPush:function(e,t){var o=this;o.isArray(t)&&(o.isFunc(e)||o.isArray(e)&&e.length>
5600&&o.isFunc(e[0]))&&t.push(e)},callArray:function(e){var t,o=this;if(o.isArray(e))for(t=0;t<e.length;t++){if(null===e[t])return;o.call(e[t]),e[t]=null}},call:function(e){var t=this,o=t.isArray(e)?e.length:-1;o>0&&t.isFunc(e[0])?e[0](t,o>1?e[1]:0,o>2?e[2]:0,o>3?e[3]:0):t.isFunc(e)&&e(t)},getVersionDelimiter:",",$$getVersion:function(e){return function(t,o,i){var n,a,r=e.init(t);return r.status<0?null:(n=r.plugin,1!=n.getVersionDone&&(n.getVersion(null,o,i),null===n.getVersionDone&&(n.getVersionDone=1)),e.cleanup(),a=n.version||n.version0,a=a?a.replace(e.splitNumRegx,e.getVersionDelimiter):a)}},cleanup:function(){var e=this;e.garbage&&e.isDefined(window.CollectGarbage)&&window.CollectGarbage()},isActiveXObject:function(e,t){var o=this,i=!1,n='<object width="1" height="1" style="display:none" '+e.getCodeBaseVersion(t)+">"+e.HTML+o.openTag+"/object>";if(!o.head)return i;o.head.insertBefore(document.createElement("object"),o.head.firstChild),o.head.firstChild.outerHTML=n;try{o.head.firstChild.classid=e.classID}catch(a){}try{o.head.firstChild.object&&(i=!0)}catch(a){}try{i&&o.head.firstChild.readyState<4&&(o.garbage=!0)}catch(a){}return o.head.removeChild(o.head.firstChild),i},codebaseSearch:function(e,t){var o=this;if(!o.ActiveXEnabled||!e)return null;e.BIfuncs&&e.BIfuncs.length&&null!==e.BIfuncs[e.BIfuncs.length-1]&&o.callArray(e.BIfuncs);var i,n=e.SEARCH;if(o.isStrNum(t))return n.match&&n.min&&o.compareNums(t,n.min)<=0?!0:n.match&&n.max&&o.compareNums(t,n.max)>=0?!1:(i=o.isActiveXObject(e,t),i&&(!n.min||o.compareNums(t,n.min)>0)&&(n.min=t),i||n.max&&!(o.compareNums(t,n.max)<0)||(n.max=t),i);var a,r,s,l,c,u=[0,0,0,0],h=[].concat(n.digits),d=n.min?1:0,p=function(t,i){var n=[].concat(u);return n[t]=i,o.isActiveXObject(e,n.join(","))};if(n.max){for(l=n.max.split(o.splitNumRegx),a=0;a<l.length;a++)l[a]=parseInt(l[a],10);l[0]<h[0]&&(h[0]=l[0])}if(n.min){for(c=n.min.split(o.splitNumRegx),a=0;a<c.length;a++)c[a]=parseInt(c[a],10);c[0]>u[0]&&(u[0]=c[0])}if(c&&l)for(a=1;a<c.length&&c[a-1]==l[a-1];a++)l[a]<h[a]&&(h[a]=l[a]),c[a]>u[a]&&(u[a]=c[a]);if(n.max)for(a=1;a<h.length;a++)if(l[a]>0&&0==h[a]&&h[a-1]<n.digits[a-1]){h[a-1]+=1;break}for(a=0;a<h.length;a++){for(s={},r=0;20>r&&!(h[a]-u[a]<1)&&(i=Math.round((h[a]+u[a])/2),!s["a"+i]);r++)s["a"+i]=1,p(a,i)?(u[a]=i,d=1):h[a]=i;if(h[a]=u[a],!d&&p(a,u[a])&&(d=1),!d)break}return d?u.join(","):null},addWinEvent:function(e,t){var o,i=this,n=window;i.isFunc(t)&&(n.addEventListener?n.addEventListener(e,t,!1):n.attachEvent?n.attachEvent("on"+e,t):(o=n["on"+e],n["on"+e]=i.winHandler(t,o)))},winHandler:function(e,t){return function(){e(),"function"==typeof t&&t()}},WLfuncs0:[],WLfuncs:[],runWLfuncs:function(e){e.winLoaded=!0,e.callArray(e.WLfuncs0),e.callArray(e.WLfuncs),e.onDoneEmptyDiv&&e.onDoneEmptyDiv()},winLoaded:!1,$$onWindowLoaded:function(e){return function(t){e.winLoaded?e.call(t):e.fPush(t,e.WLfuncs)}},div:null,divID:"plugindetect",divWidth:50,pluginSize:1,emptyDiv:function(){var e,t,o,i,n,a=this;if(a.div&&a.div.childNodes)for(e=a.div.childNodes.length-1;e>=0;e--){if(o=a.div.childNodes[e],o&&o.childNodes)for(t=o.childNodes.length-1;t>=0;t--){n=o.childNodes[t];try{o.removeChild(n)}catch(r){}}if(o)try{a.div.removeChild(o)}catch(r){}}if(a.div||(i=document.getElementById(a.divID),i&&(a.div=i)),a.div&&a.div.parentNode){try{a.div.parentNode.removeChild(a.div)}catch(r){}a.div=null}},DONEfuncs:[],onDoneEmptyDiv:function(){var e,t,o=this;if(o.winLoaded&&(!o.WLfuncs||!o.WLfuncs.length||null===o.WLfuncs[o.WLfuncs.length-1])){for(e in o)if(t=o[e],t&&t.funcs){if(3==t.OTF)return;if(t.funcs.length&&null!==t.funcs[t.funcs.length-1])return}for(e=0;e<o.DONEfuncs.length;e++)o.callArray(o.DONEfuncs);o.emptyDiv()}},getWidth:function(e){if(e){var t=e.scrollWidth||e.offsetWidth,o=this;if(o.isNum(t))return t}return-1},getTagStatus:function(e,t,o,i){var n=this,a=e.span,r=n.getWidth(a),s=o.span,l=n.getWidth(s),c=t.span,u=n.getWidth(c);if(!(a&&s&&c&&n.getDOMobj(e)))return-2;if(u>l||0>r||0>l||0>u||u<=n.pluginSize||n.pluginSize<1)return 0;if(r>=u)return-1;try{if(r==n.pluginSize&&(!n.isIE||4==n.getDOMobj(e).readyState)){if(!e.winLoaded&&n.winLoaded)return 1;if(e.winLoaded&&n.isNum(i)&&(n.isNum(e.count)||(e.count=i),i-e.count>=10))return 1}}catch(h){}return 0},getDOMobj:function(e,t){var o=this,i=e?e.span:0,n=i&&i.firstChild?1:0;try{n&&t&&o.div.focus()}catch(a){}return n?i.firstChild:null},setStyle:function(e,t){var o,i=e.style;if(i&&t)for(o=0;o<t.length;o+=2)try{i[t[o]]=t[o+1]}catch(n){}},insertDivInBody:function(e,t){var o=this,i="pd33993399",n=null,a=t?window.top.document:window.document,r=a.getElementsByTagName("body")[0]||a.body;if(!r)try{a.write('<div id="'+i+'">.'+o.openTag+"/div>"),n=a.getElementById(i)}catch(s){}r=a.getElementsByTagName("body")[0]||a.body,r&&(r.insertBefore(e,r.firstChild),n&&r.removeChild(n))},insertHTML:function(e,t,o,i){var n,a,r,s=document,l=this,c=s.createElement("span"),u=["outlineStyle","none","borderStyle","none","padding","0p
560x","margin","0px","visibility","visible"],h="outline-style:none;border-style:none;padding:0px;margin:0px;visibility:visible;";if(l.isDefined(i)||(i=""),l.isString(e)&&/[^\s]/.test(e)){for(e=e.toLowerCase().replace(/\s/g,""),n=l.openTag+e+' width="'+l.pluginSize+'" height="'+l.pluginSize+'" ',n+='style="'+h+'display:inline;" ',a=0;a<t.length;a+=2)/[^\s]/.test(t[a+1])&&(n+=t[a]+'="'+t[a+1]+'" ');for(n+=">",a=0;a<o.length;a+=2)/[^\s]/.test(o[a+1])&&(n+=l.openTag+'param name="'+o[a]+'" value="'+o[a+1]+'" />');n+=i+l.openTag+"/"+e+">"}else n=i;if(l.div||(r=s.getElementById(l.divID),r?l.div=r:(l.div=s.createElement("div"),l.div.id=l.divID),l.setStyle(l.div,u.concat(["width",l.divWidth+"px","height",l.pluginSize+3+"px","fontSize",l.pluginSize+3+"px","lineHeight",l.pluginSize+3+"px","verticalAlign","baseline","display","block"])),r||(l.setStyle(l.div,["position","absolute","right","0px","top","0px"]),l.insertDivInBody(l.div))),l.div&&l.div.parentNode){l.setStyle(c,u.concat(["fontSize",l.pluginSize+3+"px","lineHeight",l.pluginSize+3+"px","verticalAlign","baseline","display","inline"]));try{c.innerHTML=n}catch(d){}try{l.div.appendChild(c)}catch(d){}return{span:c,winLoaded:l.winLoaded,tagName:e,outerHTML:n}}return{span:null,winLoaded:l.winLoaded,tagName:"",outerHTML:n}},Plugins:{quicktime:{mimeType:["video/quicktime","application/x-quicktimeplayer","image/x-macpaint","image/x-quicktime"],progID:"QuickTimeCheckObject.QuickTimeCheck.1",progID0:"QuickTime.QuickTime",classID:"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B",minIEver:7,HTML:'<param name="src" value="" /><param name="controller" value="false" />',getCodeBaseVersion:function(e){return'codebase="#version='+e+'"'},SEARCH:{min:0,max:0,match:0,digits:[16,128,128,0]},getVersion:function(e){var t,o=this,i=o.$,n=null,a=null;if(i.isIE){if(i.isStrNum(e)&&(t=e.split(i.splitNumRegx),t.length>3&&parseInt(t[3],10)>0&&(t[3]="9999"),e=t.join(",")),i.isStrNum(e)&&i.verIE>=o.minIEver&&o.canUseIsMin()>0)return o.installed=o.isMin(e),void(o.getVersionDone=0);o.getVersionDone=1,!n&&i.verIE>=o.minIEver&&(n=o.CDBASE2VER(i.codebaseSearch(o))),n||(a=i.getAXO(o.progID),a&&a.QuickTimeVersion&&(n=a.QuickTimeVersion.toString(16),n=parseInt(n.charAt(0),16)+"."+parseInt(n.charAt(1),16)+"."+parseInt(n.charAt(2),16)))}else i.hasMimeType(o.mimeType)&&(a=3!=i.OS?i.findNavPlugin("QuickTime.*Plug-?in",0):null,a&&a.name&&(n=i.getNum(a.name)));
560o.installed=n?1:a?0:-1,o.version=i.formatNum(n,3)},cdbaseUpper:["7,60,0,0","0,0,0,0"],cdbaseLower:["7,50,0,0",null],cdbase2ver:[function(e,t){var o=t.split(e.$.splitNumRegx);return[o[0],o[1].charAt(0),o[1].charAt(1),o[2]].join(",")},null],CDBASE2VER:function(e){var t,o=this,i=o.$,n=o.cdbaseUpper,a=o.cdbaseLower;if(e)for(e=i.formatNum(e),t=0;t<n.length;t++)if(n[t]&&i.compareNums(e,n[t])<0&&a[t]&&i.compareNums(e,a[t])>=0&&o.cdbase2ver[t])return o.cdbase2ver[t](o,e);return e},canUseIsMin:function(){var e,t=this,o=t.$,i=t.canUseIsMin,n=t.cdbaseUpper,a=t.cdbaseLower;if(!i.value)for(i.value=-1,e=0;e<n.length;e++){if(n[e]&&o.codebaseSearch(t,n[e])){i.value=1;break}if(a[e]&&o.codebaseSearch(t,a[e])){i.value=-1;break}}return t.SEARCH.match=1==i.value?1:0,i.value},isMin:function(e){var t=this,o=t.$;return o.codebaseSearch(t,e)?.7:-1}},flash:{mimeType:"application/x-shockwave-flash",progID:"ShockwaveFlash.ShockwaveFlash",classID:"clsid:D27CDB6E-AE6D-11CF-96B8-444553540000",getVersion:function(){var e,t,o,i,n=function(e){if(!e)return null;var t=/[\d][\d\,\.\s]*[rRdD]{0,1}[\d\,]*/.exec(e);return t?t[0].replace(/[rRdD\.]/g,",").replace(/\s/g,""):null},a=this,r=a.$,s=null,l=null,c=null;if(r.isIE){for(e=15;e>2;e--)if(l=r.getAXO(a.progID+"."+e)){c=e.toString();break}if(l||(l=r.getAXO(a.progID)),"6"==c)try{l.AllowScriptAccess="always"}catch(u){return"6,0,21,0"}try{s=n(l.GetVariable("$version"))}catch(u){}!s&&c&&(s=c)}else{if(o=r.hasMimeType(a.mimeType)){t=r.getDOMobj(r.insertHTML("object",["type",a.mimeType],[],"",a));try{s=r.getNum(t.GetVariable("$version"))}catch(u){}}s||(i=o?o.enabledPlugin:null,i&&i.description&&(s=n(i.description)),s&&(s=r.getPluginFileVersion(i,s)))}return a.installed=s?1:-1,a.version=r.formatNum(s),!0}},shockwave:{mimeType:"application/x-director",progID:"SWCtl.SWCtl",classID:"clsid:166B1BCA-3F9C-11CF-8075-444553540000",getVersion:function(){var e,t=null,o=null,i=this,n=i.$;if(n.isIE){try{o=n.getAXO(i.progID).ShockwaveVersion("")}catch(a){}n.isString(o)&&o.length>0?t=n.getNum(o):n.getAXO(i.progID+".8")?t="8":n.getAXO(i.progID+".7")?t="7":n.getAXO(i.progID+".1")&&(t="6")}else e=n.findNavPlugin("Shockwave\\s*for\\s*Director"),e&&e.description&&n.hasMimeType(i.mimeType)&&(t=n.getNum(e.description)),t&&(t=n.getPluginFileVersion(e,t));
560i.installed=t?1:-1,i.version=n.formatNum(t)}},zz:0}};PluginDetect.initScript();var gArgCountErr='The "%%" function requires an even number of arguments.\nArguments should be in the form "atttributeName", "attributeValue", ...',gTagAttrs=null,gQTGeneratorVersion=1,str_hashchange="iLightBoxHashChange",doc=document,fake_onhashchange,special=$.event.special,doc_mode=doc.documentMode,supports_onhashchange="on"+str_hashchange in window&&(doc_mode===undefined||doc_mode>7);$.fn[str_hashchange]=function(e){return e?this.bind(str_hashchange,e):this.trigger(str_hashchange)},$.fn[str_hashchange].delay=50,special[str_hashchange]=$.extend(special[str_hashchange],{setup:function(){return supports_onhashchange?!1:void $(fake_onhashchange.start)},teardown:function(){return supports_onhashchange?!1:void $(fake_onhashchange.stop)}}),fake_onhashchange=function(){function e(){var o=get_fragment(),n=r(i);o!==i?(a(i=o,n),$(window).trigger(str_hashchange)):n!==i&&(location.href=location.href.replace(/#.*/,"")+n),t=setTimeout(e,$.fn[str_hashchange].delay)}var t,o={},i=get_fragment(),n=function(e){return e},a=n,r=n;return o.start=function(){t||e()},o.stop=function(){t&&clearTimeout(t),t=undefined},browser.msie&&!supports_onhashchange&&function(){var t,i;o.start=function(){t||(i=$.fn[str_hashchange].src,i=i&&i+get_fragment(),t=$('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){i||a(get_fragment()),e()}).attr("src",i||"javascript:0").insertAfter("body")[0].contentWindow,doc.onpropertychange=function(){try{"title"===event.propertyName&&(t.document.title=doc.title)}catch(e){}})},o.stop=n,r=function(){return get_fragment(t.location.href)},a=function(e,o){var i=t.document,n=$.fn[str_hashchange].domain;e!==o&&(i.title=doc.title,i.open(),n&&i.write('<script>document.domain="'+n+'"</script>'),i.close(),t.location.hash=e)}}(),o}(),Array.prototype.filter||(Array.prototype.filter=function(e){"use strict";if(null==this)throw new TypeError;var t=Object(this),o=t.length>>>0;if("function"!=typeof e)throw new TypeError;for(var i=[],n=arguments[1],a=0;o>a;a++)if(a in t){var r=t[a];e.call(n,r,a,t)&&i.push(r)}return i}),Array.prototype.lastIndexOf||(Array.prototype.lastIndexOf=function(e){"use strict";if(null==this)throw new TypeError;var t=Object(this),o=t.length>>>0;if(0===o)return-1;var i=o;arguments.length>1&&(i=Number(arguments[1]),i!=i?i=0:0!=i&&i!=1/0&&i!=-(1/0)&&(i=(i>0||-1)*Math.floor(Math.abs(i))));for(var n=i>=0?Math.min(i,o-1):o-Math.abs(i);n>=0;n--)if(n in t&&t[n]===e)return n;return-1})}(jQuery,this);
561
562
563/**
564 * jQuery DFP v1.1.9
565 * https://github.com/coop182/jquery.dfp.js
566 *
567 * Copyright 2015 Matt Cooper
568 * Released under the MIT license
569 */
570!function(a,b,c){"use strict";var d,e=this,f="",g=0,h=0,i=0,j=".adunit",k={},l=!1,m="googleAdUnit",n=function(b,c,e){g=0,i=0,f=b,d=a(c),v(),o(e),a(function(){p(),q()})},o=function(d){if(k={setTargeting:{},setCategoryExclusion:"",setLocation:"",enableSingleRequest:!0,collapseEmptyDivs:"original",refreshExisting:!0,disablePublisherConsole:!1,disableInitialLoad:!1,noFetch:!1,namespace:c,sizeMapping:{}},"undefined"==typeof d.setUrlTargeting||d.setUrlTargeting){var e=r(d.url);a.extend(!0,k.setTargeting,{inURL:e.inURL,URLIs:e.URLIs,Query:e.Query,Domain:e.Domain})}a.extend(!0,k,d),k.googletag&&b.googletag.cmd.push(function(){a.extend(!0,b.googletag,k.googletag)})},p=function(){d.each(function(){var c=a(this);g++;var d=t(c),e=s(c,d),h=u(c);c.data("existingContent",c.html()),c.html("").addClass("display-none"),b.googletag.cmd.push(function(){var g,i=c.data(m);g=i?i:c.data("outofpage")?b.googletag.defineOutOfPageSlot("/"+f+"/"+d,e).addService(b.googletag.pubads()):c.data("companion")?b.googletag.defineSlot("/"+f+"/"+d,h,e).addService(b.googletag.companionAds()).addService(b.googletag.pubads()):b.googletag.defineSlot("/"+f+"/"+d,h,e).addService(b.googletag.pubads());var j=c.data("targeting");j&&a.each(j,function(a,b){g.setTargeting(a,b)});var l=c.data("exclusions");if(l){var n,o=l.split(",");a.each(o,function(b,c){n=a.trim(c),n.length>0&&g.setCategoryExclusion(n)})}var p=c.data("size-mapping");
570if(p&&k.sizeMapping[p]){var q=b.googletag.sizeMapping();a.each(k.sizeMapping[p],function(a,b){q.addSize(b.browser,b.ad_sizes)}),g.defineSizeMapping(q.build())}c.data(m,g),"function"==typeof k.beforeEachAdLoaded&&k.beforeEachAdLoaded.call(this,c)})}),b.googletag.cmd.push(function(){if(k.enableSingleRequest&&b.googletag.pubads().enableSingleRequest(),a.each(k.setTargeting,function(a,c){b.googletag.pubads().setTargeting(a,c)}),"object"==typeof k.setLocation&&("number"==typeof k.setLocation.latitude&&"number"==typeof k.setLocation.longitude&&"number"==typeof k.setLocation.precision?b.googletag.pubads().setLocation(k.setLocation.latitude,k.setLocation.longitude,k.setLocation.precision):"number"==typeof k.setLocation.latitude&&"number"==typeof k.setLocation.longitude&&b.googletag.pubads().setLocation(k.setLocation.latitude,k.setLocation.longitude)),k.setCategoryExclusion.length>0){var c,e=k.setCategoryExclusion.split(",");a.each(e,function(d,e){c=a.trim(e),c.length>0&&b.googletag.pubads().setCategoryExclusion(c)})}k.collapseEmptyDivs&&b.googletag.pubads().collapseEmptyDivs(),k.disablePublisherConsole&&b.googletag.pubads().disablePublisherConsole(),k.companionAds&&(b.googletag.companionAds().setRefreshUnfilledSlots(!0),k.disableInitialLoad||b.googletag.pubads().enableVideoAds()),k.disableInitialLoad&&b.googletag.pubads().disableInitialLoad(),k.noFetch&&b.googletag.pubads().noFetch(),b.googletag.pubads().addEventListener("slotRenderEnded",function(b){i++;var c=a("#"+b.slot.getSlotId().getDomId()),e=b.isEmpty?"none":"block",f=c.data("existingContent");"none"===e&&a.trim(f).length>0&&"original"===k.collapseEmptyDivs&&(c.show().html(f),e="block display-original"),c.removeClass("display-none").addClass("display-"+e),"function"==typeof k.afterEachAdLoaded&&k.afterEachAdLoaded.call(this,c,b),"function"==typeof k.afterAllAdsLoaded&&i===g&&k.afterAllAdsLoaded.call(this,d)}),b.googletag.enableServices()})},q=function(){d.each(function(){var c=a(this),d=c.data(m);b.googletag.cmd.push(k.refreshExisting&&d&&c.hasClass("display-block")?function(){b.googletag.pubads().refresh([d])}:function(){b.googletag.display(c.attr("id"))})})},r=function(a){var c=(a||b.location.toString()).match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/),d=c[4]||"",e=(c[5]||"").replace(/\/$/,""),f=c[7]||"",g=new RegExp("/([^/]*)","ig"),h=e.match(g),i=["/"],j="";if(h&&"/"!==e){var k="",l=h.length;if(l>0)for(var m=0;l>m;m++){k=h[m],i.push(k);for(var n=m+1;l>n;n++)k+=h[n],i.push(k);0===m&&(i.splice(-1,1),j=k)}i.push(j)}i=i.reverse();var o=f.replace(/\=/gi,":").split("&");return{Domain:d,inURL:i,URLIs:i[0],Query:o}},s=function(a,b){return h++,a.attr("id")||a.attr("id",b.replace(/[^A-z0-9]/g,"_")+"-auto-gen-id-"+h).attr("id")},t=function(a){var b=a.data("adunit")||k.namespace||a.attr("id")||"";return"function"==typeof k.alterAdUnitName&&(b=k.alterAdUnitName.call(this,b,a)),b},u=function(b){var c=[],d=b.data("dimensions");if(d){var e=d.split(",");a.each(e,function(a,b){var d=b.split("x");c.push([parseInt(d[0],10),parseInt(d[1],10)])})}else c.push([b.width(),b.height()]);return c},v=function(){if(l=l||a('script[src*="googletagservices.com/tag/js/gpt.js"]').length,!l){b.googletag=b.googletag||{},b.googletag.cmd=b.googletag.cmd||[];var c=document.createElement("script");c.async=!0,c.type="text/javascript",c.onerror=function(){w()};var d="https:"===document.location.protocol;c.src=(d?"https:":"http:")+"//www.googletagservices.com/tag/js/gpt.js";var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(c,e),"none"===c.style.display&&w()}},w=function(){var c=b.googletag.cmd;setTimeout(function(){var d=function(a,c,d){return b.googletag.ads.push(d),b.googletag.ads[d]={renderEnded:function(){},addService:function(){return this}},b.googletag.ads[d]};b.googletag={cmd:{push:function(a){a.call(e)}},ads:[],pubads:function(){return this},noFetch:function(){return this},disableInitialLoad:function(){return this},disablePublisherConsole:function(){return this},enableSingleRequest:function(){return this},setTargeting:function(){return this},collapseEmptyDivs:function(){return this},enableServices:function(){return this},defineSlot:function(a,b,c){return d(a,b,c,!1)},defineOutOfPageSlot:function(a,b){return d(a,[],b,!0)},display:function(a){return b.googletag.ads[a].renderEnded.call(e),this}},a.each(c,function(a,c){b.googletag.cmd.push(c)})},50)};!function(b){"function"==typeof define&&define.amd?define(["jquery"],b):b("object"==typeof exports?require("jquery"):a)}(function(a){a.dfp=a.fn.dfp=function(a,b){b=b||{},a===c&&(a=f),"object"==typeof a&&(b=a,a=b.dfpID||f);var d=this;return"function"==typeof this&&(d=j),n(a,d,b),this}})}(window.jQuery||window.Zepto||window.tire,window);
571 
572
573/*! jCookie */
574!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e){function n(e){return u.raw?e:encodeURIComponent(e)}function o(e){return u.raw?e:decodeURIComponent(e)}function i(e){return n(u.json?JSON.stringify(e):String(e))}function r(e){0===e.indexOf('"')&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(c," ")),u.json?JSON.parse(e):e}catch(n){}}function t(n,o){var i=u.raw?n:r(n);return e.isFunction(o)?o(i):i}var c=/\+/g,u=e.cookie=function(r,c,a){if(arguments.length>
5741&&!e.isFunction(c)){if(a=e.extend({},u.defaults,a),"number"==typeof a.expires){var f=a.expires,s=a.expires=new Date;s.setTime(+s+864e5*f)}return document.cookie=[n(r),"=",i(c),a.expires?"; expires="+a.expires.toUTCString():"",a.path?"; path="+a.path:"",a.domain?"; domain="+a.domain:"",a.secure?"; secure":""].join("")}for(var d=r?void 0:{},p=document.cookie?document.cookie.split("; "):[],m=0,x=p.length;x>m;m++){var l=p[m].split("="),g=o(l.shift()),k=l.join("=");if(r&&r===g){d=t(k,c);break}r||void 0===(k=t(k))||(d[g]=k)}return d};u.defaults={},e.removeCookie=function(n,o){return void 0===e.cookie(n)?!1:(e.cookie(n,"",e.extend({},o,{expires:-1})),!e.cookie(n))}});

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.