PageSourceSearch

https://lhotky.cz/wp-content/plugins/unlimited-background-slider//assets/jquery.mb.bgndGallery.js?ver=1.0

js lhotky.cz collected 2026-10-03 02:42:36 UTC 47,298 bytes, 1,308 lines download raw bytes

1/*___________________________________________________________________________________________________________________________________________________
2 _ jquery.mb.components                                                                                                                             _
3 _                                                                                                                                                  _
4 _ file: jquery.mb.bgndGallery.src.js                                                                                                               _
5 _ last modified: 21/06/15 15.53                                                                                                                    _
6 _                                                                                                                                                  _
7 _ Open Lab s.r.l., Florence - Italy                                                                                                                _
8 _                                                                                                                                                  _
9 _ email: [email protected]                                                                                                                       _
10 _ site: http://pupunzi.com                                                                                                                         _
11 _       http://open-lab.com                                                                                                                        _
12 _ blog: http://pupunzi.open-lab.com                                                                                                                _
13 _ Q&A:  http://jquery.pupunzi.com                                                                                                                  _
14 _                                                                                                                                                  _
15 _ Licences: MIT, GPL                                                                                                                               _
16 _    http://www.opensource.org/licenses/mit-license.php                                                                                            _
17 _    http://www.gnu.org/licenses/gpl.html                                                                                                          _
18 _                                                                                                                                                  _
19 _ Copyright (c) 2001-2015. Matteo Bicocchi (Pupunzi);                                                                                              _
20 ___________________________________________________________________________________________________________________________________________________*/
21
22( function( jQuery ) {
23
24	jQuery.mbBgndGallery = {
25		name: "mb.bgndGallery",
26		author: "Matteo Bicocchi",
27		version: "1.9.5",
28		build: "2459",
29
30		clear: false,
31		defaults: {
32			containment: "body",
33			images: [],
34			shuffle: false,
35			controls: null,
36			effect: "fade",
37			filter: null,
38			timer: 4000,
39			effTimer: 5000,
40			raster: true,
41			folderPath: false,
42			autoStart: true,
43			grayScale: false,
44			activateKeyboard: true,
45			preserveTop: false,
46			preserveWidth: false,
47			placeHolder: "",
48			
49
50			//Path to the folder containing the thumbnails and ID of the DOM element that should contains them.
51			// Thumbnail should have the same name of the corresponding image
52			thumbs: {
53				folderPath: "",
54				placeholder: ""
55			},
56
57			onStart: function() {},
58			onChange: function( opt, idx ) {},
59			onPause: function( opt ) {},
60			onPlay: function( opt ) {},
61			onNext: function( opt ) {},
62			onPrev: function( opt ) {}
63
64			// idx = the zero based index of the displayed photo
65			// opt=the options relatives to this component instance you can manipulate on the specific event
66
67			// for example, if you want to reverse the enter/exit effect once the previous button is clicked:
68			// you can change the opt.effect onPrev event : opt.effect = "slideRight"
69			// onNext:function(opt){opt.effect = "slideLeft"}
70			// onPrev:function(opt){opt.effect = "slideRight"}
71
72		},
73
74		buildGallery: function( options ) {
75			var opt = {};
76			jQuery.extend( opt, jQuery.mbBgndGallery.defaults, options );
77			var el = jQuery( opt.containment ).get( 0 );
78			el.opt = opt;
79			el.opt.galleryID = new Date().getTime();
80			jQuery.mbBgndGallery.el = el;
81			if( el.opt.onStart )
82				el.opt.onStart();
83
84			el.opt.gallery = jQuery( "<div/>" ).attr( {
85				id: "bgndGallery_" + el.opt.galleryID
86			} ).addClass( "mbBgndGallery" );
87			var pos = el.opt.containment == "body" ? "fixed" : "absolute";
88			var css = {
89				position: pos,
90				top: 0,
91				let: 0,
92				width: "100%",
93				height: "100%",
94				overflow: "hidden",
95				"-webkit-transform-style": "flat",
96				"-webkit-transform": "translateZ(0)",
97				"z-index": 0
98			};
99			el.opt.gallery.css( css );
100
101			var containment = el.opt.containment;
102
103			if( containment != "body" && jQuery( containment ).text().trim() != "" ) {
104				var wrapper = jQuery( "<div/>" ).css( {
105					"position": "absolute",
106					minHeight: "100%",
107					minWidth: "100%",
108					zIndex: 3
109				} );
110				jQuery( containment ).wrapInner( wrapper );
111				if( jQuery( containment ).css( "position" ) == "static" )
112					jQuery( containment ).css( "position", "relative" );
113			}
114
115			var raster = jQuery( "<div/>" ).css( {
116				position: "absolute",
117				top: 0,
118				left: 0,
119				width: "100%",
120				height: "100%",
121				zIndex: 1
122			} ).addClass( opt.raster ? "bgg_raster" : "" );
123			el.opt.gallery.append( raster );
124
125			jQuery( containment ).prepend( opt.gallery );
126
127			if( el.opt.folderPath && el.opt.images.length == 0 )
128				el.opt.images = jQuery.loadFromSystem( el.opt.folderPath );
129
130			if( el.opt.shuffle )
131				el.opt.images = jQuery.shuffle( el.opt.images );
132
133			var totImg = el.opt.images.length;
134
135			var loadCounter = 0;
136
137			jQuery.mbBgndGallery.preload( el.opt.images[ 0 ], el );
138			el.opt.gallery.on( "imageLoaded." + el.opt.galleryID, function() {
139				loadCounter++;
140				if( loadCounter == totImg ) {
141					el.opt.gallery.off( "imageLoaded." + el.opt.galleryID );
142					return;
143				}
144				jQuery.mbBgndGallery.preload( el.opt.images[ loadCounter ], el );
145			} );
146
147			el.opt.imageCounter = 0;
148
149			jQuery.mbBgndGallery.changePhoto( el.opt.images[ el.opt.imageCounter ], el );
150
151			if( !el.opt.autoStart ) {
152				el.opt.paused = true;
153				jQuery( el.opt.gallery ).trigger( "paused" );
154			}
155
156			el.opt.gallery.on( "imageReady." + el.opt.galleryID, function() {
157
158				if( el.opt.paused )
159					return;
160
161				clearTimeout( el.opt.changing );
162
163				jQuery.mbBgndGallery.play( el );
164			} );
165
166			jQuery( window ).on( "resize", function() {
167				var image = jQuery( "img", el.opt.gallery );
168				jQuery.mbBgndGallery.checkSize( image, el );
169			} );
170
171			var controls = el.opt.controls;
172			if( controls ) {
173				jQuery( controls ).addClass( "controls" );
174
175				var counter = jQuery( el.opt.controls ).find( ".counter" );
176				counter.html( el.opt.imageCounter + 1 + " / " + el.opt.images.length );
177
178				jQuery.mbBgndGallery.buildControls( controls, el );
179				jQuery( el.opt.containment ).on( "paused", function() {
180					jQuery( el.opt.controls ).find( ".play" ).show();
181					jQuery( el.opt.controls ).find( ".pause" ).hide();
182				} );
183				jQuery( el.opt.containment ).on( "play", function() {
184					jQuery( el.opt.controls ).find( ".play" ).hide();
185					jQuery( el.opt.controls ).find( ".pause" ).show();
186				} );
187			}
188
189			if( el.opt.activateKeyboard )
190				jQuery.mbBgndGallery.keyboard( el );
191
192			//	if(el.opt.thumbs.folderPath.trim().length > 0 && el.opt.thumbs.placeholder.trim().length > 0)
193			jQuery.mbBgndGallery.buildThumbs( el );
194
195			return jQuery( el );
196
197		},
198
199		preload: function( url, el ) {
200			if( jQuery.mbBgndGallery.clear ) {
201				el.opt.gallery.remove();
202				return;
203			}
204
205			var img = jQuery( "<img/>" ).load( function() {
206				el.opt.gallery.trigger( "imageLoaded." + el.opt.galleryID );
207			} ).attr( "src", url );
208
209		},
210
211		checkSize: function( image, el ) {
212			if( !image )
213				return;
214
215			if( jQuery.mbBgndGallery.changing )
216				return;
217
218			if( jQuery.mbBgndGallery.clear ) {
219				el.opt.gallery.remove();
220				return;
221			}
222
223			return image.each( function() {
224				var image = jQuery( this );
225				var w = image.attr( "w" );
226				var h = image.attr( "h" );
227
228				var containment = el.opt.containment == "body" ? window : el.opt.containment;
229				var aspectRatio = w / h;
230				var wAspectRatio = jQuery( containment ).width() / jQuery( containment ).height();
231				if( aspectRatio >= wAspectRatio ) {
232					image.css( "height", "100%" );
233					image.css( "width", "auto" );
234				} else {
235					image.css( "width", "100%" );
236					image.css( "height", "auto" );
237					
238				}
239				if(jQuery(window).width()<=800){
240					image.css( "height", "100%" );
241					image.css( "width", "auto" );
242					image.css( "max-width", "5000000px" );
243				}
244				image.css( "margin-left", ( ( jQuery( containment ).width() - image.width() ) / 2 ) );
245
246				if( !el.opt.preserveTop )
247					image.css( "margin-top", ( ( jQuery( containment ).height() - image.height() ) / 2 ) );
248
249				if( el.opt.preserveWidth ) {
250					image.css( {
251						width: "100%",
252						height: "auto",
253						left: 0,
254						marginLeft: 0
255					} );
256				}
257			} );
258		},
259
260		changePhoto: function( url, el ) {
261
262			if( !document.hasFocus() ) {
263				jQuery( window ).one( "focus", function() {
264					jQuery.mbBgndGallery.changePhoto( url, el );
265				} );
266				return;
267			}
268
269			if( jQuery.mbBgndGallery.clear ) {
270				el.opt.gallery.remove();
271				return;
272			}
273
274			jQuery.mbBgndGallery.buildThumbs( el );
275
276			if( el.opt.thumbs.folderPath.trim().length > 0 && el.opt.thumbs.placeholder.trim().length > 0 ) {
277				jQuery( ".sel", jQuery( el.opt.thumbs.placeholder ) ).removeClass( "sel" );
278				jQuery( "#mbBgImg_" + el.opt.imageCounter ).addClass( "sel" );
279			}
280
281			jQuery.mbBgndGallery.changing = true;
282
283			clearTimeout( el.opt.changing );
284
285			if( el.opt.onChange )
286				el.opt.onChange( el.opt, el.opt.imageCounter );
287
288			var image = jQuery( "<img/>" ).hide().load( function() {
289
290				var that = jQuery( this );
291
292				var tmp = jQuery( "<div/>" ).css( {
293					position: "absolute",
294					top: -5000
295				} );
296				tmp.append( that );
297				jQuery( "body" ).append( tmp );
298				that.attr( "w", that.width() );
299				that.attr( "h", that.height() );
300				tmp.remove();
301
302				el.opt.effect = typeof el.opt.effect == "object" ? el.opt.effect : jQuery.mbBgndGallery.effects[ el.opt.effect ];
303
304				jQuery( "img", el.opt.gallery ).CSSAnimate( el.opt.effect.exit, el.opt.effTimer, 0, el.opt.effect.exitTiming, function() {
305
306					if( jQuery( this ).length )
307						jQuery( this ).remove();
308
309				} );
310				that.css( {
311					position: "absolute"
312				} );
313
314				el.opt.gallery.css( {
315
316					"-webkit-backface-visibility": "none",
317					"-webkit-transform-style": "preserve-3d",
318					"-webkit-perspective": 1000
319
320				} );
321
322				el.opt.gallery.append( that );
323
324				jQuery.mbBgndGallery.changing = false;
325				jQuery.mbBgndGallery.checkSize( that, el );
326
327				var displayProperties = {};
328				for( var x in el.opt.effect.enter ) {
329					displayProperties[ x ] = 0;
330				}
331
332				if( el.opt.filter && !jQuery.browser.mozilla )
333					jQuery.extend( displayProperties, el.opt.filter );
334
335				displayProperties.opacity = 1;
336				displayProperties.scale = 1;
337
338				that.css3( el.opt.effect.enter ).show().CSSAnimate( displayProperties, el.opt.effTimer, 0, el.opt.effect.enterTiming, function() {
339					el.opt.gallery.trigger( "imageReady." + el.opt.galleryID );
340				} );
341
342			} ).attr( "src", url );
343
344			image.error( function() {
345				var image = jQuery( this );
346				image.attr( "src", el.opt.placeHolder );
347			} );
348
349			var counter = jQuery( el.opt.controls ).find( ".counter" );
350			counter.html( el.opt.imageCounter + 1 + " / " + el.opt.images.length );
351
352		},
353
354		play: function( el ) {
355
356			if( !el )
357				el = this.get( 0 );
358
359			clearTimeout( el.opt.changing );
360
361			var imgToRemove = jQuery( "img", el.opt.gallery ).not( ":last" );
362			imgToRemove.remove();
363
364			if( jQuery.mbBgndGallery.clear ) {
365				el.opt.gallery.remove();
366				return;
367			}
368
369			if( el.opt.onPlay )
370				el.opt.onPlay( el.opt );
371
372			el.opt.changing = setTimeout( function() {
373				if( el.opt.paused )
374					return;
375
376				if( el.opt.onNext )
377					el.opt.onNext( el.opt );
378
379				if( el.opt.imageCounter >= el.opt.images.length - 1 )
380					el.opt.imageCounter = -1;
381
382				el.opt.imageCounter++;
383
384				jQuery.mbBgndGallery.changePhoto( el.opt.images[ el.opt.imageCounter ], jQuery( el.opt.containment ).get( 0 ) );
385
386			}, el.opt.paused ? 0 : el.opt.timer );
387
388			el.opt.gallery.trigger( "play" );
389
390		},
391
392		pause: function( el ) {
393
394			if( !el )
395				el = this.get( 0 );
396
397			if( jQuery.mbBgndGallery.clear ) {
398				el.opt.gallery.remove();
399				return;
400			}
401
402			clearTimeout( el.opt.changing );
403			el.opt.paused = true;
404			el.opt.gallery.trigger( "paused" );
405
406			if( el.opt.onPause )
407				el.opt.onPause( el.opt );
408
409		},
410
411		next: function( el ) {
412
413			if( !el )
414				el = this.get( 0 );
415
416			if( jQuery.mbBgndGallery.clear ) {
417				el.opt.gallery.remove();
418				return;
419			}
420
421			if( el.opt.onNext )
422				el.opt.onNext( el.opt );
423
424			jQuery.mbBgndGallery.pause( el );
425
426			if( el.opt.imageCounter == el.opt.images.length - 1 )
427				el.opt.imageCounter = -1;
428
429			el.opt.imageCounter++;
430
431			jQuery.mbBgndGallery.changePhoto( el.opt.images[ el.opt.imageCounter ], el );
432			clearTimeout( el.opt.changing );
433
434		},
435
436		prev: function( el ) {
437
438			if( !el )
439				el = this.get( 0 );
440
441			if( jQuery.mbBgndGallery.clear ) {
442				el.opt.gallery.remove();
443				return;
444			}
445
446			if( el.opt.onPrev )
447				el.opt.onPrev( el.opt );
448
449			jQuery.mbBgndGallery.pause( el );
450
451			clearTimeout( el.opt.changing );
452			if( el.opt.imageCounter == 0 )
453				el.opt.imageCounter = el.opt.images.length;
454
455			el.opt.imageCounter--;
456
457			jQuery.mbBgndGallery.changePhoto( el.opt.images[ el.opt.imageCounter ], el );
458
459		},
460
461		loader: {
462			show: function() {},
463			hide: function() {}
464		},
465
466		keyboard: function( el ) {
467
468			jQuery( document ).off( "keydown.bgndGallery" ).on( "keydown.bgndGallery", function( e ) {
469
470				if( jQuery( e.target ).is( "textarea" ) || jQuery( e.target ).is( "input" ) || jQuery( e.target ).is( "[contenteditable]" ) )
471					return;
472
473				switch( e.keyCode ) {
474					case 32:
475
476						if( el.opt.paused ) {
477
478							jQuery.mbBgndGallery.play( el );
479							el.opt.paused = false;
480
481						} else {
482
483							el.opt.paused = true;
484							jQuery.mbBgndGallery.pause( el );
485
486						}
487
488						e.preventDefault();
489						break;
490
491					case 39: // NEXT
492
493						jQuery.mbBgndGallery.next( el );
494						e.preventDefault();
495						break;
496
497					case 37: //PREV
498
499						jQuery.mbBgndGallery.prev( el );
500						e.preventDefault();
501						break;
502
503				}
504			} )
505		},
506
507		buildControls: function( controls, el ) {
508
509			var pause = jQuery( controls ).find( ".pause" );
510			var play = jQuery( controls ).find( ".play" );
511			var next = jQuery( controls ).find( ".next" );
512			var prev = jQuery( controls ).find( ".prev" );
513			var fullScreen = jQuery( controls ).find( ".fullscreen" );
514
515			if( ( jQuery.browser.msie || jQuery.browser.opera || 'ontouchstart' in window ) )
516				fullScreen.remove();
517
518			if( el.opt.autoStart )
519				play.hide();
520
521			pause.on( "click", function() {
522				jQuery.mbBgndGallery.pause( el );
523				jQuery( this ).hide();
524				play.show();
525			} );
526
527			play.on( "click", function() {
528
529				if( !el.opt.paused ) return;
530				clearTimeout( el.opt.changing );
531				jQuery.mbBgndGallery.play( el );
532				el.opt.paused = false;
533
534			} );
535
536			next.on( "click", function() {
537
538				jQuery.mbBgndGallery.next( el );
539				pause.hide();
540				play.show();
541
542			} );
543
544			prev.on( "click", function() {
545
546				jQuery.mbBgndGallery.prev( el );
547				pause.hide();
548				play.show();
549
550			} );
551
552			fullScreen.on( "click", function() {
553
554				jQuery.mbBgndGallery.runFullscreen( el );
555
556			} );
557
558			if( el.opt.activateKeyboard )
559				jQuery.mbBgndGallery.keyboard( el );
560
561		},
562
563		changeGallery: function( array ) {
564
565			var el = this.get( 0 );
566
567			clearTimeout( el.opt.changing );
568			el.opt.gallery.off( "imageLoaded." + el.opt.galleryID );
569
570			jQuery.mbBgndGallery.pause( el );
571			el.opt.gallery.fadeOut();
572
573			el.opt.images = array;
574			el.opt.imageCounter = -1;
575
576			var images = el.opt.images;
577			var totImg = images.length;
578			var loadCounter = 0;
579
580			jQuery.mbBgndGallery.preload( images[ loadCounter ], el );
581			el.opt.gallery.on( "imageLoaded." + el.opt.galleryID, function() {
582
583				if( loadCounter == totImg ) {
584					el.opt.gallery.off( "imageLoaded." + el.opt.galleryID );
585					el.opt.gallery.fadeIn();
586					jQuery.mbBgndGallery.play( el );
587					el.opt.paused = false;
588					return;
589				}
590
591				jQuery.mbBgndGallery.preload( images[ loadCounter ], el );
592				loadCounter++;
593
594			} );
595
596			if( el.opt.thumbs.folderPath.trim().length > 0 && el.opt.thumbs.placeholder.trim().length > 0 )
597				jQuery.mbBgndGallery.buildThumbs( el );
598
599		},
600
601		changeEffect: function( effect ) {
602
603			jQuery.mbBgndGallery.el.opt.effect = effect;
604
605		},
606
607		runFullscreen: function( el ) {
608
609			if( !el )
610				el = this.get( 0 );
611
612			var fullscreenchange = jQuery.browser.mozilla ? "mozfullscreenchange" : jQuery.browser.webkit ? "webkitfullscreenchange" : "fullscreenchange";
613			jQuery( document ).off( fullscreenchange );
614			jQuery( document ).on( fullscreenchange, function() {
615				var isFullScreen = RunPrefixMethod( document, "IsFullScreen" ) || RunPrefixMethod( document, "FullScreen" );
616
617				if( !isFullScreen ) {
618
619					el.isFullscreen = false;
620
621					jQuery( ".fullScreen_controls" ).remove();
622
623					if( !jQuery( el.opt.containment ).is( "body" ) )
624						jQuery( el.opt.containment ).css( {
625							width: el.width,
626							height: el.height,
627							top: el.top,
628							left: el.left,
629							position: el.position
630						} );
631
632					el.opt.gallery.css( {
633						background: "transparent"
634					} );
635					var image = jQuery( "#bgndGallery_" + el.opt.galleryID + " img:first" );
636
637				}
638
639				jQuery.mbBgndGallery.checkSize( image, el );
640
641			} );
642
643			if( el.isFullscreen ) {
644
645				cancelFullscreen();
646
647			} else {
648
649				el.isFullscreen = true;
650
651				if( !jQuery( el.opt.containment ).is( "body" ) ) {
652
653					el.width = jQuery( el.opt.containment ).css( "width" );
654					el.height = jQuery( el.opt.containment ).css( "height" );
655					el.top = jQuery( el.opt.containment ).css( "top" );
656					el.left = jQuery( el.opt.containment ).css( "left" );
657					el.position = jQuery( el.opt.containment ).css( "position" );
658
659				}
660
661				var controls = jQuery( el.opt.controls ).clone( true ).addClass( "fullScreen_controls" ).css( {
662					position: "absolute",
663					zIndex: 1000,
664					bottom: 20,
665					right: 20
666				} );
667				controls.find( ".fullscreen" ).html( "exit" );
668				el.opt.gallery.append( controls ).css( {
669					background: "#000"
670				} );
671
672				jQuery( el.opt.containment ).CSSAnimate( {
673
674					width: "100%",
675					height: "100%",
676					top: 0,
677					left: 0,
678					position: "absolute"
679
680				}, 500 );
681
682				launchFullscreen( el.opt.gallery.get( 0 ) );
683
684			}
685
686			function RunPrefixMethod( obj, method ) {
687
688				var pfx = [ "webkit", "moz", "ms", "o", "" ];
689				var p = 0,
690					m, t;
691				while( p < pfx.length && !obj[ m ] ) {
692					m = method;
693					if( pfx[ p ] == "" ) {
694						m = m.substr( 0, 1 ).toLowerCase() + m.substr( 1 );
695					}
696					m = pfx[ p ] + m;
697					t = typeof obj[ m ];
698					if( t != "undefined" ) {
699						pfx = [ pfx[ p ] ];
700						return( t == "function" ? obj[ m ]() : obj[ m ] );
701					}
702					p++;
703				}
704
705			}
706
707			function launchFullscreen( element ) {
708				RunPrefixMethod( element, "RequestFullScreen" );
709			}
710
711			function cancelFullscreen() {
712				if( RunPrefixMethod( document, "FullScreen" ) || RunPrefixMethod( document, "IsFullScreen" ) ) {
713					RunPrefixMethod( document, "CancelFullScreen" );
714				}
715			}
716		},
717
718		buildThumbs: function( el ) {
719
720			if( el.opt.thumbs.folderPath.trim().length == 0 && el.opt.thumbs.placeholder.trim().length == 0 )
721				return;
722			//11111
723			jQuery( el.opt.thumbs.placeholder ).addClass( "bgg_thumbnailsContainer" );
724
725			function getImageName( path ) {
726				return path.split( "/" ).pop();
727			}
728
729			var thumbNumber = jQuery( el.opt.thumbs.placeholder ).children().length || 0;
730
731			if( thumbNumber != el.opt.images.length ) {
732
733				jQuery( el.opt.thumbs.placeholder ).empty();
734				for( var i = 0; i < el.opt.images.length; i++ ) {
735					
736					
737					
738					var imgSrc = el.opt.images[ i ];
739				
740					if(el.opt.images[ i ].match('.png')){
741						var ed_values=el.opt.images[ i ].split('.png');
742						imgSrc = ed_values[0]+'-50x50.png';
743					}else if(el.opt.images[ i ].match('.PNG')){
744						var ed_values=el.opt.images[ i ].split('.PNG');
745						imgSrc = ed_values[0]+'-50x50.PNG';
746					}else if(el.opt.images[ i ].match('.Png')){
747						var ed_values=el.opt.images[ i ].split('.Png');
748						imgSrc = ed_values[0]+'-50x50.Png';
749					}
750					
751					if(el.opt.images[ i ].match('.jpg')){
752						var ed_values=imgSrc.split('.jpg');
753						imgSrc = ed_values[0]+'-50x50.jpg';
754						
755					}else if(el.opt.images[ i ].match('.JPG')){
756						var ed_values=el.opt.images[ i ].split('.JPG');
757						imgSrc = ed_values[0]+'-50x50.JPG';
758					}
759					else if(el.opt.images[ i ].match('.Jpg')){
760						var ed_values=el.opt.images[ i ].split('.Jpg');
761						imgSrc = ed_values[0]+'-50x50.Jpg';
762					}
763					
764					if(el.opt.images[ i ].match('.gif')){
765						var ed_values=el.opt.images[ i ].split('.gif');
766						imgSrc = ed_values[0]+'-50x50.gif';
767					}else if(el.opt.images[ i ].match('.GIF')){
768						var ed_values=el.opt.images[ i ].split('.GIF');
769						imgSrc = ed_values[0]+'-50x50.GIF';
770					}
771					else if(el.opt.images[ i ].match('.Gif')){
772						var ed_values=el.opt.images[ i ].split('.Gif');
773						imgSrc = ed_values[0]+'-50x50.Gif';
774					}
775					
776					if(el.opt.images[ i ].match('.Jpeg')){
777						var ed_values=el.opt.images[ i ].split('.Jpeg');
778						imgSrc = ed_values[0]+'-50x50.Jpeg';
779					}else if(el.opt.images[ i ].match('.jpeg')){
780						var ed_values=el.opt.images[ i ].split('.jpeg');
781						imgSrc = ed_values[0]+'-50x50.jpeg';
782					}else if(el.opt.images[ i ].match('.JPEG')){
783						var ed_values=el.opt.images[ i ].split('.JPEG');
784						imgSrc = ed_values[0]+'-50x50.JPEG';
785					}
786					if(el.opt.images[ i ].match('.exif')){
787						var ed_values=el.opt.images[ i ].split('.exif');
788						imgSrc = ed_values[0]+'-50x50.exif';
789					}else if(el.opt.images[ i ].match('.EXIF')){
790						var ed_values=el.opt.images[ i ].split('.EXIF');
791						imgSrc = ed_values[0]+'-50x50.EXIF';
792					}
793					
794					if(el.opt.images[ i ].match('.bmp')){
795						var ed_values=el.opt.images[ i ].split('.bmp');
796						imgSrc = ed_values[0]+'-50x50.bmp';
797					}else if(el.opt.images[ i ].match('.BMP')){
798						var ed_values=el.opt.images[ i ].split('.BMP');
799						imgSrc = ed_values[0]+'-50x50.BMP';
800					}
801					if(el.opt.images[ i ].match('.Webp')){
802						var ed_values=el.opt.images[ i ].split('.Webp');
803						imgSrc = ed_values[0]+'-50x50.Webp';
804					}else if(el.opt.images[ i ].match('.webp')){
805						var ed_values=el.opt.images[ i ].split('.webp');
806						imgSrc = ed_values[0]+'-50x50.webp';
807					}else if(el.opt.images[ i ].match('.WEBP')){
808						var ed_values=el.opt.images[ i ].split('.WEBP');
809						imgSrc = ed_values[0]+'-50x50.WEBP';
810					}
811					
812				
813					
814					
815					
816					
817					var img = jQuery( "<img/>" ).attr( {
818						"src": imgSrc,
819						id: "mbBgImg_" + i
820					} ).click( function() {
821						el.opt.imageCounter = jQuery( this ).attr( "i" ) - 1;
822						jQuery.mbBgndGallery.next( el );
823						el.opt.paused = true;
824					} ).attr( "i", i ).css( {
825						opacity: 0
826					} ).on( "load", function() {
827						jQuery( this ).fadeTo( 1000, 1 );
828					} );
829
830					jQuery( el.opt.thumbs.placeholder ).append( img );
831				}
832
833				/*if( el.opt.thumbs.folderPath.trim().length > 0 && el.opt.thumbs.placeholder.trim().length > 0 ) {
834					jQuery( ".sel", jQuery( el.opt.thumbs.placeholder ) ).removeClass( "sel" );
835					jQuery( "#mbBgImg_" + el.opt.imageCounter ).addClass( "sel" );
836				}*/
837			}
838
839		},
840
841		addImages: function( images, goto, shuffle ) {
842
843			var el = this.get( 0 );
844			for( var i in images ) {
845				el.opt.images.push( images[ i ] );
846			}
847			if( shuffle )
848				el.opt.images = jQuery.shuffle( el.opt.images );
849
850			if( goto )
851				el.opt.imageCounter = el.opt.images.indexOf( images[ 0 ] );
852
853			jQuery.mbBgndGallery.buildThumbs( el );
854
855		},
856
857		removeImages: function( images ) {
858
859			var el = this.get( 0 );
860			for( var i in images ) {
861				var index = el.opt.images.indexOf( images[ i ] );
862				if( index > -1 )
863					el.opt.images.splice( index, 1 );
864			}
865			jQuery.mbBgndGallery.changePhoto( el.opt.images[ el.opt.imageCounter ], el );
866			jQuery.mbBgndGallery.buildThumbs( el );
867		},
868
869		applyFilter: function( filter, val ) {
870
871			var el = this.get( 0 );
872			var gallery = el.opt.gallery;
873			var f = {};
874			f[ filter ] = val;
875
876			gallery.css3( f );
877
878		}
879	};
880
881	/**
882	 *
883	 * Public methods
884	 */
885
886	jQuery.fn.mbBgndGalleryPlay = jQuery.mbBgndGallery.play;
887	jQuery.fn.mbBgndGalleryPause = jQuery.mbBgndGallery.pause;
888	jQuery.fn.mbBgndGalleryPrev = jQuery.mbBgndGallery.prev;
889	jQuery.fn.mbBgndGalleryNext = jQuery.mbBgndGallery.next;
890	jQuery.fn.changeGallery = jQuery.mbBgndGallery.changeGallery;
891	jQuery.fn.addImages = jQuery.mbBgndGallery.addImages;
892	jQuery.fn.removeImages = jQuery.mbBgndGallery.removeImages;
893	jQuery.fn.applyFilter = jQuery.mbBgndGallery.applyFilter;
894
895	jQuery.loadFromSystem = function( folderPath, type ) {
896
897		// if directory listing is enabled on the remote server.
898		// if you run the page locally you need to run it under a local web server (Ex: http://localhost/yourPage)
899		// otherwise the directory listing is unavailable.
900
901		if( !folderPath )
902			return;
903		if( !type )
904			type = [ "jpg", "jpeg", "png" ];
905		var arr = [];
906		jQuery.ajax( {
907			url: folderPath,
908			async: false,
909			success: function( response ) {
910				var tmp = jQuery( response );
911				var els = tmp.find( "[href]" );
912
913				els.each( function() {
914					for( var i in type ) {
915						if( jQuery( this ).attr( "href" ).indexOf( type[ i ] ) >= 0 )
916							arr.push( folderPath + jQuery( this ).attr( "href" ) );
917						arr = jQuery.unique( arr );
918					}
919				} );
920				tmp.remove();
921			}
922		} );
923		return arr.length != 0 ? arr : false;
924	};
925
926	jQuery.shuffle = function( arr ) {
927		var newArray = arr.slice();
928		var len = newArray.length;
929		var i = len;
930		while( i-- ) {
931			var p = parseInt( Math.random() * len );
932			var t = newArray[ i ];
933			newArray[ i ] = newArray[ p ];
934			newArray[ p ] = t;
935		}
936		return newArray;
937	};
938
939} )( jQuery );
940
941function mbBgndGallery( opt ) {
942	return jQuery.mbBgndGallery.buildGallery( opt );
943}
944;/*___________________________________________________________________________________________________________________________________________________
945 _ jquery.mb.components                                                                                                                             _
946 _                                                                                                                                                  _
947 _ file: jquery.mb.bgndGallery.effects.src.js                                                                                                       _
948 _ last modified: 27/06/15 17.16                                                                                                                    _
949 _                                                                                                                                                  _
950 _ Open Lab s.r.l., Florence - Italy                                                                                                                _
951 _                                                                                                                                                  _
952 _ email: [email protected]                                                                                                                       _
953 _ site: http://pupunzi.com                                                                                                                         _
954 _       http://open-lab.com                                                                                                                        _
955 _ blog: http://pupunzi.open-lab.com                                                                                                                _
956 _ Q&A:  http://jquery.pupunzi.com                                                                                                                  _
957 _                                                                                                                                                  _
958 _ Licences: MIT, GPL                                                                                                                               _
959 _    http://www.opensource.org/licenses/mit-license.php                                                                                            _
960 _    http://www.gnu.org/licenses/gpl.html                                                                                                          _
961 _                                                                                                                                                  _
962 _ Copyright (c) 2001-2015. Matteo Bicocchi (Pupunzi);                                                                                              _
963 ___________________________________________________________________________________________________________________________________________________*/
964
965jQuery.mbBgndGallery.effects = {
966
967	fade: {
968		enter: {
969			left: 0,
970			opacity: 0
971		},
972		exit: {
973			left: 0,
974			opacity: 0
975		},
976		enterTiming: "ease-in",
977		exitTiming: "ease-in"
978	},
979
980	slideUp: {
981		enter: {
982			top: "100%",
983			//opacity: 0
984		},
985		exit: {
986			top: 0,
987			//opacity: 0
988		},
989		enterTiming: "ease-in",
990		exitTiming: "ease-in"
991	},
992	slideUpToDown: {
993		enter: {
994			top: "100%",
995			//opacity: 0
996		},
997		exit: {
998			top: "100%",
999			//opacity: 0
1000		},
1001		enterTiming: "ease-in",
1002		exitTiming: "ease-in"
1003	},
1004	slideUpFadeOut: {
1005		enter: {
1006			top: "100%",
1007			opacity: 0
1008		},
1009		exit: {
1010			top: 0,
1011			opacity: 0
1012		},
1013		enterTiming: "ease-in",
1014		exitTiming: "ease-in"
1015	},
1016	
1017
1018	slideDown: {
1019		enter: {
1020			top: "-100%",
1021			//opacity: 0
1022		},
1023		exit: {
1024			top: 0,
1025			//opacity: 0
1026		},
1027		enterTiming: "ease-in",
1028		exitTiming: "ease-in"
1029	},
1030	slideDownToUp: {
1031		enter: {
1032			top: "-100%",
1033			//opacity: 0
1034		},
1035		exit: {
1036			top:"-100%",
1037			//opacity: 0
1038		},
1039		enterTiming: "ease-in",
1040		exitTiming: "ease-in"
1041	},
1042	
1043	slideDownFadeOut: {
1044		enter: {
1045			top: "-100%",
1046			opacity: 0
1047		},
1048		exit: {
1049			top: 0,
1050			opacity: 0
1051		},
1052		enterTiming: "ease-in",
1053		exitTiming: "ease-in"
1054	},
1055
1056	slideLeft: {
1057		enter: {
1058			x: "100%",
1059			//opacity: 0
1060		},
1061		exit: {
1062			x: "-100%",
1063			//opacity: 0
1064		},
1065		enterTiming: "easeOutQuad",
1066		exitTiming: "easeOutQuad"
1067	},
1068	slideLeftFadeOut: {
1069		enter: {
1070			x: "100%",
1071			opacity: 0
1072		},
1073		exit: {
1074			x: "-100%",
1075			opacity: 0
1076		},
1077		enterTiming: "easeOutQuad",
1078		exitTiming: "easeOutQuad"
1079	},
1080	slideLeftToRight: {
1081		enter: {
1082			x: "100%",
1083			scale: 0.5,
1084			
1085		},
1086		exit: {
1087			x: "100%",
1088			scale: 0.5,
1089			
1090		}
1091	},
1092	slideRight: {
1093		enter: {
1094			x: "-100%",
1095			//opacity: 0
1096		},
1097		exit: {
1098			x: "100%",
1099			//opacity: 0
1100		}
1101	},
1102	slideRightFadeOut: {
1103		enter: {
1104			x: "-100%",
1105			opacity: 0
1106		},
1107		exit: {
1108			x: "100%",
1109			opacity: 0
1110		}
1111	},
1112	slideRightToLeft: {
1113		enter: {
1114			x: "-100%",
1115			scale: 0.5,
1116		
1117		},
1118		exit: {
1119			x: "-100%",
1120			scale: 0.5,
1121			
1122		}
1123	},
1124	zoom: {
1125		enter: {
1126			scale: ( 1 + Math.random() * 5 ),
1127			opacity: 0
1128		},
1129		exit: {
1130			scale: ( 1 + Math.random() * 5 ),
1131			opacity: 0
1132		},
1133		enterTiming: "cubic-bezier(0.19, 1, 0.22, 1)",
1134		exitTiming: "cubic-bezier(0.19, 1, 0.22, 1)"
1135	},
1136	zoomDownUp: {
1137		enter: {
1138			scale: 0,
1139			opacity: 0
1140		},
1141		exit: {
1142			scale: 0,
1143			opacity: 0
1144		},
1145		enterTiming: "cubic-bezier(0.19, 1, 0.22, 1)",
1146		exitTiming: "cubic-bezier(0.19, 1, 0.22, 1)"
1147	},
1148
1149	zoomBlur: { //the blur effect only works on webkit browsers.
1150		enter: {
1151			opacity: 0,
1152			blur: 10,
1153			scale: 2
1154		},
1155		exit: {
1156			opacity: 0,
1157			blur: 10,
1158			scale: 2
1159		},
1160		enterTiming: "cubic-bezier(0.19, 1, 0.22, 1)",
1161		exitTiming: "cubic-bezier(0.19, 1, 0.22, 1)"
1162	},
1163
1164	blur: { //the blur effect only works on webkit browsers.
1165		enter: {
1166			opacity: 0,
1167			blur: 10
1168		},
1169		exit: {
1170			opacity: 0,
1171			blur: 10
1172		},
1173		enterTiming: "cubic-bezier(0.19, 1, 0.22, 1)",
1174		exitTiming: "cubic-bezier(0.19, 1, 0.22, 1)"
1175	},
1176	
1177	rotate: {
1178		enter: {
1179			rotate: "-150deg",
1180			opacity: 0
1181		},
1182		exit: {
1183			rotate: "0deg",
1184			
1185		},
1186		enterTiming: "ease-in",
1187		exitTiming: "ease-in"
1188	},
1189	rotateRight: {
1190		enter: {
1191			rotate: "150deg",
1192			opacity: 0
1193		},
1194		exit: {
1195			rotate: "0deg",
1196			
1197		},
1198		enterTiming: "ease-in",
1199		exitTiming: "ease-in"
1200	},
1201	zoomrotate: {
1202		enter: {
1203			scale: ( 1 + Math.random() * 5 ),
1204			rotate: "-150deg",
1205			opacity: 0
1206		},
1207		exit: {
1208			scale: ( 1 + Math.random() * 5 ),
1209			opacity: 0
1210		},
1211		enterTiming: "cubic-bezier(0.19, 1, 0.22, 1)",
1212		exitTiming: "cubic-bezier(0.19, 1, 0.22, 1)"
1213	},
1214	rotateZoomIn: {
1215		enter: {
1216			scale: 0,
1217			rotate: "-150deg",
1218			opacity: 0
1219		},
1220		exit: {
1221			scale: 0,
1222			rotate: "150deg",
1223			opacity: 0
1224		},
1225		enterTiming: "cubic-bezier(0.19, 1, 0.22, 1)",
1226		exitTiming: "cubic-bezier(0.19, 1, 0.22, 1)"
1227	},
1228	
1229	
1230	grayscale: {
1231		enter: {
1232			grayscale: "100%",
1233			opacity: 0
1234		},
1235		exit: {
1236			grayscale: "100%",
1237			
1238		},
1239		enterTiming: "ease-in",
1240		exitTiming: "ease-in"
1241	},
1242	blackandwhite: {
vendor: 6,656 bytes, lines 1243-1287
1243		enter: {
1244			saturate: "100%",
1245			opacity: 0
1246		},
1247		exit: {
1248			opacity: 0
1249			
1250		},
1251		enterTiming: "ease-in",
1252		exitTiming: "ease-in"
1253	},
1254	/*rightToRight: {
1255		enter: {
1256			x: "-100%",
1257			//opacity: 0
1258		},
1259		exit: {
1260			y: "-100%",
1261			//opacity: 0
1262		}
1263	},*/
1264	
1265};
1266;
1267/*
1268 * ******************************************************************************
1269 *  jquery.mb.components
1270 *  file: jquery.mb.CSSAnimate.min.js
1271 *
1272 *  Copyright (c) 2001-2014. Matteo Bicocchi (Pupunzi);
1273 *  Open lab srl, Firenze - Italy
1274 *  email: [email protected]
1275 *  site: 	http://pupunzi.com
1276 *  blog:	http://pupunzi.open-lab.com
1277 * 	http://open-lab.com
1278 *
1279 *  Licences: MIT, GPL
1280 *  http://www.opensource.org/licenses/mit-license.php
1281 *  http://www.gnu.org/licenses/gpl.html
1282 *
1283 *  last modified: 26/03/14 21.40
1284 *  *****************************************************************************
1285 */
1286
1287function uncamel(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}function setUnit(a,b){return"string"!=typeof a||a.match(/^[\-0-9\.]+jQuery/)?""+a+b:a}function setFilter(a,b,c){var d=uncamel(b),e=jQuery.browser.mozilla?"":jQuery.CSS.sfx;a[e+"filter"]=a[e+"filter"]||"",c=setUnit(c>jQuery.CSS.filters[b].max?jQuery.CSS.filters[b].max:c,jQuery.CSS.filters[b].unit),a[e+"filter"]+=d+"("+c+") ",delete a[b]}jQuery.support.CSStransition=function(){var a=document.body||document.documentElement,b=a.style;return void 0!==b.transition||void 0!==b.WebkitTransition||void 0!==b.MozTransition||void 0!==b.MsTransition||void 0!==b.OTransition}(),jQuery.CSS={name:"mb.CSSAnimate",author:"Matteo Bicocchi",version:"2.0.0",transitionEnd:"transitionEnd",sfx:"",filters:{blur:{min:0,max:100,unit:"px"},brightness:{min:0,max:400,unit:"%"},contrast:{min:0,max:400,unit:"%"},grayscale:{min:0,max:100,unit:"%"},hueRotate:{min:0,max:360,unit:"deg"},invert:{min:0,max:100,unit:"%"},saturate:{min:0,max:400,unit:"%"},sepia:{min:0,max:100,unit:"%"}},normalizeCss:function(a){var b=jQuery.extend(!0,{},a);jQuery.browser.webkit||jQuery.browser.opera?jQuery.CSS.sfx="-webkit-":jQuery.browser.mozilla?jQuery.CSS.sfx="-moz-":jQuery.browser.msie&&(jQuery.CSS.sfx="-ms-");for(var c in b){"transform"===c&&(b[jQuery.CSS.sfx+"transform"]=b[c],delete b[c]),"transform-origin"===c&&(b[jQuery.CSS.sfx+"transform-origin"]=a[c],delete b[c]),"filter"!==c||jQuery.browser.mozilla||(b[jQuery.CSS.sfx+"filter"]=a[c],delete b[c]),"blur"===c&&setFilter(b,"blur",a[c]),"brightness"===c&&setFilter(b,"brightness",a[c]),"contrast"===c&&setFilter(b,"contrast",a[c]),"grayscale"===c&&setFilter(b,"grayscale",a[c]),"hueRotate"===c&&setFilter(b,"hueRotate",a[c]),"invert"===c&&setFilter(b,"invert",a[c]),"saturate"===c&&setFilter(b,"saturate",a[c]),"sepia"===c&&setFilter(b,"sepia",a[c]);var d="";"x"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" translateX("+setUnit(a[c],"px")+")",delete b[c]),"y"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" translateY("+setUnit(a[c],"px")+")",delete b[c]),"z"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" translateZ("+setUnit(a[c],"px")+")",delete b[c]),"rotate"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" rotate("+setUnit(a[c],"deg")+")",delete b[c]),"rotateX"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" rotateX("+setUnit(a[c],"deg")+")",delete b[c]),"rotateY"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" rotateY("+setUnit(a[c],"deg")+")",delete b[c]),"rotateZ"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" rotateZ("+setUnit(a[c],"deg")+")",delete b[c]),"scale"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" scale("+setUnit(a[c],"")+")",delete b[c]),"scaleX"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" scaleX("+setUnit(a[c],"")+")",delete b[c]),"scaleY"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" scaleY("+setUnit(a[c],"")+")",delete b[c]),"scaleZ"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" scaleZ("+setUnit(a[c],"")+")",delete b[c]),"skew"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" skew("+setUnit(a[c],"deg")+")",delete b[c]),"skewX"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" skewX("+setUnit(a[c],"deg")+")",delete b[c]),"skewY"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" skewY("+setUnit(a[c],"deg")+")",delete b[c]),"perspective"===c&&(d=jQuery.CSS.sfx+"transform",b[d]=b[d]||"",b[d]+=" perspective("+setUnit(a[c],"px")+")",delete b[c])}return b},getProp:function(a){var b=[];for(var c in a)b.indexOf(c)<0&&b.push(uncamel(c));return b.join(",")},animate:function(a,b,c,d,e){return this.each(function(){function o(){f.called=!0,f.CSSAIsRunning=!1,g.off(jQuery.CSS.transitionEnd+"."+f.id),clearTimeout(f.timeout),g.css(jQuery.CSS.sfx+"transition",""),"function"==typeof e&&e.apply(f),"function"==typeof f.CSSqueue&&(f.CSSqueue(),f.CSSqueue=null)}var f=this,g=jQuery(this);f.id=f.id||"CSSA_"+(new Date).getTime();var h=h||{type:"noEvent"};if(f.CSSAIsRunning&&f.eventType==h.type&&!jQuery.browser.msie&&jQuery.browser.version<=9)return f.CSSqueue=function(){g.CSSAnimate(a,b,c,d,e)},void 0;if(f.CSSqueue=null,f.eventType=h.type,0!==g.length&&a){if(a=jQuery.normalizeCss(a),f.CSSAIsRunning=!0,"function"==typeof b&&(e=b,b=jQuery.fx.speeds._default),"function"==typeof c&&(d=c,c=0),"string"==typeof c&&(e=c,c=0),"function"==typeof d&&(e=d,d="cubic-bezier(0.65,0.03,0.36,0.72)"),"string"==typeof b)for(var i in jQuery.fx.speeds){if(b==i){b=jQuery.fx.speeds[i];break}b=jQuery.fx.speeds._default}if(b||(b=jQuery.fx.speeds._default),"string"==typeof e&&(d=e,e=null),!jQuery.support.CSStransition){for(var j in a){if("transform"===j&&delete a[j],"filter"===j&&delete a[j],"transform-origin"===j&&delete a[j],"auto"===a[j]&&delete a[j],"x"===j){var k=a[j],l="left";a[l]=k,delete a[j]}if("y"===j){var k=a[j],l="top";a[l]=k,delete a[j]}("-ms-transform"===j||"-ms-filter"===j)&&delete a[j]}return g.delay(c).animate(a,b,e),void 0}var m={"default":"ease","in":"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1
1287)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};m[d]&&(d=m[d]),g.off(jQuery.CSS.transitionEnd+"."+f.id);var n=jQuery.CSS.getProp(a),p={};jQuery.extend(p,a),p[jQuery.CSS.sfx+"transition-property"]=n,p[jQuery.CSS.sfx+"transition-duration"]=b+"ms",p[jQuery.CSS.sfx+"transition-delay"]=c+"ms",p[jQuery.CSS.sfx+"transition-timing-function"]=d,setTimeout(function(){g.one(jQuery.CSS.transitionEnd+"."+f.id,o),g.css(p)},1),f.timeout=setTimeout(function(){return f.called||!e?(f.called=!1,f.CSSAIsRunning=!1,void 0):(g.css(jQuery.CSS.sfx+"transition",""),e.apply(f),f.CSSAIsRunning=!1,"function"==typeof f.CSSqueue&&(f.CSSqueue(),f.CSSqueue=null),void 0)},b+c+10)}})}},jQuery.fn.CSSAnimate=jQuery.CSS.animate,jQuery.normalizeCss=jQuery.CSS.normalizeCss,jQuery.fn.css3=function(a){return this.each(function(){var b=jQuery(this),c=jQuery.normalizeCss(a);b.css(c)})};
1288;/*
1289 * ******************************************************************************
1290 *  jquery.mb.components
1291 *  file: jquery.mb.browser.min.js
1292 *
1293 *  Copyright (c) 2001-2014. Matteo Bicocchi (Pupunzi);
1294 *  Open lab srl, Firenze - Italy
1295 *  email: [email protected]
1296 *  site: 	http://pupunzi.com
1297 *  blog:	http://pupunzi.open-lab.com
1298 * 	http://open-lab.com
1299 *
1300 *  Licences: MIT, GPL
1301 *  http://www.opensource.org/licenses/mit-license.php
1302 *  http://www.gnu.org/licenses/gpl.html
1303 *
1304 *  last modified: 26/03/14 21.43
1305 *  *****************************************************************************
1306 */
1307
1308var nAgt=navigator.userAgent;if(!jQuery.browser){jQuery.browser={},jQuery.browser.mozilla=!1,jQuery.browser.webkit=!1,jQuery.browser.opera=!1,jQuery.browser.safari=!1,jQuery.browser.chrome=!1,jQuery.browser.androidStock=!1,jQuery.browser.msie=!1,jQuery.browser.ua=nAgt,jQuery.browser.name=navigator.appName,jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10);var nameOffset,verOffset,ix;if(-1!=(verOffset=nAgt.indexOf("Opera")))jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+6),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8));else if(-1!=(verOffset=nAgt.indexOf("OPR")))jQuery.browser.opera=!0,jQuery.browser.name="Opera",jQuery.browser.fullVersion=nAgt.substring(verOffset+4);else if(-1!=(verOffset=nAgt.indexOf("MSIE")))jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer",jQuery.browser.fullVersion=nAgt.substring(verOffset+5);else if(-1!=nAgt.indexOf("Trident")||-1!=nAgt.indexOf("Edge")){jQuery.browser.msie=!0,jQuery.browser.name="Microsoft Internet Explorer";var start=nAgt.indexOf("rv:")+3,end=start+4;jQuery.browser.fullVersion=nAgt.substring(start,end)}else-1!=(verOffset=nAgt.indexOf("Chrome"))?(jQuery.browser.webkit=!0,jQuery.browser.chrome=!0,jQuery.browser.name="Chrome",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):nAgt.indexOf("mozilla/5.0")>-1&&nAgt.indexOf("android ")>-1&&nAgt.indexOf("applewebkit")>-1&&!(nAgt.indexOf("chrome")>-1)?(verOffset=nAgt.indexOf("Chrome"),jQuery.browser.webkit=!0,jQuery.browser.androidStock=!0,jQuery.browser.name="androidStock",jQuery.browser.fullVersion=nAgt.substring(verOffset+7)):-1!=(verOffset=nAgt.indexOf("Safari"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("AppleWebkit"))?(jQuery.browser.webkit=!0,jQuery.browser.safari=!0,jQuery.browser.name="Safari",jQuery.browser.fullVersion=nAgt.substring(verOffset+7),-1!=(verOffset=nAgt.indexOf("Version"))&&(jQuery.browser.fullVersion=nAgt.substring(verOffset+8))):-1!=(verOffset=nAgt.indexOf("Firefox"))?(jQuery.browser.mozilla=!0,jQuery.browser.name="Firefox",jQuery.browser.fullVersion=nAgt.substring(verOffset+8)):(nameOff
vendor: 1,496 bytes, line 1308
1308set=nAgt.lastIndexOf(" ")+1)<(verOffset=nAgt.lastIndexOf("/"))&&(jQuery.browser.name=nAgt.substring(nameOffset,verOffset),jQuery.browser.fullVersion=nAgt.substring(verOffset+1),jQuery.browser.name.toLowerCase()==jQuery.browser.name.toUpperCase()&&(jQuery.browser.name=navigator.appName));-1!=(ix=jQuery.browser.fullVersion.indexOf(";"))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),-1!=(ix=jQuery.browser.fullVersion.indexOf(" "))&&(jQuery.browser.fullVersion=jQuery.browser.fullVersion.substring(0,ix)),jQuery.browser.majorVersion=parseInt(""+jQuery.browser.fullVersion,10),isNaN(jQuery.browser.majorVersion)&&(jQuery.browser.fullVersion=""+parseFloat(navigator.appVersion),jQuery.browser.majorVersion=parseInt(navigator.appVersion,10)),jQuery.browser.version=jQuery.browser.majorVersion}jQuery.browser.android=/Android/i.test(nAgt),jQuery.browser.blackberry=/BlackBerry|BB|PlayBook/i.test(nAgt),jQuery.browser.ios=/iPhone|iPad|iPod|webOS/i.test(nAgt),jQuery.browser.operaMobile=/Opera Mini/i.test(nAgt),jQuery.browser.windowsMobile=/IEMobile|Windows Phone/i.test(nAgt),jQuery.browser.kindle=/Kindle|Silk/i.test(nAgt),jQuery.browser.mobile=jQuery.browser.android||jQuery.browser.blackberry||jQuery.browser.ios||jQuery.browser.windowsMobile||jQuery.browser.operaMobile||jQuery.browser.kindle,jQuery.isMobile=jQuery.browser.mobile,jQuery.isTablet=jQuery.browser.mobile&&jQuery(window).width()>765,jQuery.isAndroidDefault=jQuery.browser.android&&!/chrome/i.test(nAgt);

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.