Photo Gallery by Envira – Responsive Image Gallery for WordPress - Version 1.1.3

Version Description

  • Fix: Enable HTML captions
Download this release

Release Info

Developer n7studios
Plugin Icon 128x128 Photo Gallery by Envira – Responsive Image Gallery for WordPress
Version 1.1.3
Comparing to
See all releases

Code changes from version 1.1.2 to 1.1.3

assets/js/envira-dev-holder.js DELETED
@@ -1,97 +0,0 @@
1
- // Needed functions.
2
- function enviraGetColWidth(container, gutter) {
3
- var width,
4
- windowWidth = $(window).width(),
5
- numColumns = container.data('envira-columns');
6
-
7
- switch(numColumns){
8
- case 1 :
9
- width = container.width();
10
- break;
11
- case 2 :
12
- if ( windowWidth <= 480 ) {
13
- width = container.width();
14
- } else {
15
- width = container.width() / 2;
16
- }
17
- break;
18
- case 3 :
19
- if ( windowWidth <= 480 ) {
20
- width = container.width();
21
- } else if ( windowWidth <= 768 ) {
22
- width = container.width() / 2;
23
- } else {
24
- width = container.width() / 3;
25
- }
26
- case 4 :
27
- case 5 :
28
- case 6 :
29
- if ( windowWidth <= 480 ) {
30
- width = container.width();
31
- } else if ( windowWidth <= 768 ) {
32
- width = container.width() / 2;
33
- } else if ( windowWidth <= 1024 ) {
34
- width = container.width() / 3;
35
- } else {
36
- width = container.width() / numColumns;
37
- }
38
- break;
39
- }
40
-
41
- return parseInt(width - (gutter*(numColumns-1))/numColumns);
42
- }
43
-
44
- function enviraSetWidths(container, gutter) {
45
- var colWidth = enviraGetColWidth(container, gutter);
46
- container.children().css({ width: colWidth });
47
- }
48
-
49
- // Custom Isotope extensions.
50
- $.Isotope.prototype._getMasonryGutterColumns = function() {
51
- var gutter = this.options.masonry && this.options.masonry.gutterWidth || 0;
52
- containerWidth = this.element.width();
53
-
54
- this.masonry.columnWidth = this.options.masonry && this.options.masonry.columnWidth ||
55
- // Or use the size of the first item
56
- this.$filteredAtoms.outerWidth(true) ||
57
- // If there's no items, use size of container
58
- containerWidth;
59
-
60
- this.masonry.columnWidth += gutter;
61
-
62
- this.masonry.cols = Math.floor((containerWidth + gutter) / this.masonry.columnWidth);
63
- this.masonry.cols = Math.max(this.masonry.cols, 1);
64
- };
65
-
66
- $.Isotope.prototype._masonryReset = function() {
67
- // Layout-specific props
68
- this.masonry = {};
69
- // FIXME shouldn't have to call this again
70
- this._getMasonryGutterColumns();
71
- var i = this.masonry.cols;
72
- this.masonry.colYs = [];
73
- while (i--) {
74
- this.masonry.colYs.push(0);
75
- }
76
- };
77
-
78
- $.Isotope.prototype._masonryResizeChanged = function() {
79
- var prevSegments = this.masonry.cols;
80
- // Update cols/rows
81
- this._getMasonryGutterColumns();
82
- // Return if updated cols/rows is not equal to previous
83
- return (this.masonry.cols !== prevSegments);
84
- };
85
-
86
- function enviraThrottle(func, wait) {
87
- return function() {
88
- var that = this,
89
- args = [].slice(arguments);
90
-
91
- clearTimeout(func._throttleTimeout);
92
-
93
- func._throttleTimeout = setTimeout(function() {
94
- func.apply(that, args);
95
- }, wait);
96
- };
97
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
assets/js/envira.js CHANGED
@@ -1,11 +1,1790 @@
1
  // Isotope 1.5.26.
2
- ;(function(n,f,i){var s=n.document;var w=s.documentElement;var k=n.Modernizr;var p=function(z){return z.charAt(0).toUpperCase()+z.slice(1)};var u="Moz Webkit O Ms".split(" ");var o=function(D){var C=w.style,A;if(typeof C[D]==="string"){return D}D=p(D);for(var B=0,z=u.length;B<z;B++){A=u[B]+D;if(typeof C[A]==="string"){return A}}};var c=o("transform"),v=o("transitionProperty");
3
- ;var j={csstransforms:function(){return !!c},csstransforms3d:function(){var B=!!o("perspective");if(B&&"webkitPerspective" in w.style){var A=f("<style>@media (transform-3d),(-webkit-transform-3d){#modernizr{height:3px}}</style>").appendTo("head"),z=f('<div id="modernizr" />').appendTo("html");B=z.height()===3;z.remove();A.remove()}return B},csstransitions:function(){return !!v}};var m;if(k){for(m in j){if(!k.hasOwnProperty(m)){k.addTest(m,j[m])}}}else{k=n.Modernizr={_version:"1.6ish: miniModernizr for Isotope"};var y=" ";var q;for(m in j){q=j[m]();k[m]=q;y+=" "+(q?"":"no-")+m}f("html").addClass(y)}if(k.csstransforms){var e=k.csstransforms3d?{translate:function(z){return"translate3d("+z[0]+"px, "+z[1]+"px, 0) "},scale:function(z){return"scale3d("+z+", "+z+", 1) "}}:{translate:function(z){return"translate("+z[0]+"px, "+z[1]+"px) "},scale:function(z){return"scale("+z+") "}};var t=function(C,A,H){var F=f.data(C,"isoTransform")||{},J={},B,D={},G;J[A]=H;f.extend(F,J);for(B in F){G=F[B];D[B]=e[B](G)}var E=D.translate||"",I=D.scale||"",z=E+I;f.data(C,"isoTransform",F);C.style[c]=z};f.cssNumber.scale=true;f.cssHooks.scale={set:function(z,A){t(z,"scale",A)},get:function(B,A){var z=f.data(B,"isoTransform");return z&&z.scale?z.scale:1}};f.fx.step.scale=function(z){f.cssHooks.scale.set(z.elem,z.now+z.unit)};f.cssNumber.translate=true;f.cssHooks.translate={set:function(z,A){t(z,"translate",A)},get:function(B,A){var z=f.data(B,"isoTransform");return z&&z.translate?z.translate:[0,0]}}}var b,a;if(k.csstransitions){b={WebkitTransitionProperty:"webkitTransitionEnd",MozTransitionProperty:"transitionend",OTransitionProperty:"oTransitionEnd otransitionend",transitionProperty:"transitionend"}[v];a=o("transitionDuration")}var l=f.event,h=f.event.handle?"handle":"dispatch",d;l.special.smartresize={setup:function(){f(this).bind("resize",l.special.smartresize.handler)},teardown:function(){f(this).unbind("resize",l.special.smartresize.handler)},handler:function(C,z){var B=this,A=arguments;C.type="smartresize";if(d){clearTimeout(d)}d=setTimeout(function(){l[h].apply(B,A)},z==="execAsap"?0:100)}};f.fn.smartresize=function(z){return z?this.bind("smartresize",z):this.trigger("smartresize",["execAsap"])};f.Isotope=function(z,A,B){this.element=f(A);this._create(z);this._init(B)};var g=["width","height"];var r=f(n);f.Isotope.settings={resizable:true,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:{opacity:0,scale:0.001},visibleStyle:{opacity:1,scale:1},containerStyle:{position:"relative",overflow:"hidden"},animationEngine:"best-available",animationOptions:{queue:false,duration:800},sortBy:"original-order",sortAscending:true,resizesContainer:true,transformsEnabled:true,itemPositionDataEnabled:false};f.Isotope.prototype={_create:function(E){this.options=f.extend({},f.Isotope.settings,E);this.styleQueue=[];this.elemCount=0;var C=this.element[0].style;this.originalStyle={};var B=g.slice(0);for(var G in this.options.containerStyle){B.push(G)}for(var F=0,A=B.length;F<A;F++){G=B[F];this.originalStyle[G]=C[G]||""}this.element.css(this.options.containerStyle);this._updateAnimationEngine();this._updateUsingTransforms();var D={"original-order":function(I,H){H.elemCount++;return H.elemCount},random:function(){return Math.random()}};this.options.getSortData=f.extend(this.options.getSortData,D);this.reloadItems();this.offset={left:parseInt((this.element.css("padding-left")||0),10),top:parseInt((this.element.css("padding-top")||0),10)};var z=this;setTimeout(function(){z.element.addClass(z.options.containerClass)},0);if(this.options.resizable){r.bind("smartresize.isotope",function(){z.resize()})}this.element.delegate("."+this.options.hiddenClass,"click",function(){return false})},_getAtoms:function(C){var z=this.options.itemSelector,B=z?C.filter(z).add(C.find(z)):C,A={position:"absolute"};B=B.filter(function(D,E){return E.nodeType===1});if(this.usingTransforms){A.left=0;A.top=0}B.css(A).addClass(this.options.itemClass);this.updateSortData(B,true);return B},_init:function(z){this.$filteredAtoms=this._filter(this.$allAtoms);this._sort();this.reLayout(z)},option:function(B){if(f.isPlainObject(B)){this.options=f.extend(true,this.options,B);var z;for(var A in B){z="_update"+p(A);if(this[z]){this[z]()}}}},_updateAnimationEngine:function(){var A=this.options.animationEngine.toLowerCase().replace(/[ _\-]/g,"");var z;switch(A){case"css":case"none":z=false;break;case"jquery":z=true;break;default:z=!k.csstransitions}this.isUsingJQueryAnimation=z;this._updateUsingTransforms()},_updateTransformsEnabled:function(){this._updateUsingTransforms()},_updateUsingTransforms:function(){var z=this.usingTransforms=this.options.transformsEnabled&&k.csstransforms&&k.csstransitions&&!this.isUsingJQueryAnimation;if(!z){delete this.options.hiddenStyle.scale;delete this.options.visibleStyle.scale}this.getPositionStyles=z?this._translate:this._positionAbs},_filter:function(F){var B=this.options.filter===""?"*":this.options.filter;if(!B){return F}var E=this.options.hiddenClass,A="."+E,D=F.filter(A),z=D;if(B!=="*"){z=D.filter(B);var C=F.not(A).not(B).addClass(E);this.styleQueue.push({$el:C,style:this.options.hiddenStyle})}this.styleQueue.push({$el:z,style:this.options.visibleStyle});z.removeClass(E);return F.filter(B)},updateSortData:function(E,B){var A=this,C=this.options.getSortData,D,z;E.each(function(){D=f(this);z={};for(var F in C){if(!B&&F==="original-order"){z[F]=f.data(this,"isotope-sort-data")[F]}else{z[F]=C[F](D,A)}}f.data(this,"isotope-sort-data",z)})},_sort:function(){var C=this.options.sortBy,B=this._getSorter,z=this.options.sortAscending?1:-1,A=function(G,F){var E=B(G,C),D=B(F,C);if(E===D&&C!=="original-order"){E=B(G,"original-order");D=B(F,"original-order")}return((E>D)?1:(E<D)?-1:0)*z};this.$filteredAtoms.sort(A)},_getSorter:function(z,A){return f.data(z,"isotope-sort-data")[A]},_translate:function(z,A){return{translate:[z,A]}},_positionAbs:function(z,A){return{left:z,top:A}},_pushPosition:function(B,A,C){A=Math.round(A+this.offset.left);C=Math.round(C+this.offset.top);var z=this.getPositionStyles(A,C);this.styleQueue.push({$el:B,style:z});if(this.options.itemPositionDataEnabled){B.data("isotope-item-position",{x:A,y:C})}},layout:function(C,B){var A=this.options.layoutMode;this["_"+A+"Layout"](C);if(this.options.resizesContainer){var z=this["_"+A+"GetContainerSize"]();this.styleQueue.push({$el:this.element,style:z})}this._processStyleQueue(C,B);this.isLaidOut=true},_processStyleQueue:function(A,P){var C=!this.isLaidOut?"css":(this.isUsingJQueryAnimation?"animate":"css"),F=this.options.animationOptions,G=this.options.onLayout,N,D,J,K;D=function(Q,R){R.$el[C](R.style,F)};if(this._isInserting&&this.isUsingJQueryAnimation){D=function(Q,R){N=R.$el.hasClass("no-transition")?"css":C;R.$el[N](R.style,F)}}else{if(P||G||F.complete){var B=false,I=[P,G,F.complete],O=this;J=true;K=function(){if(B){return}var S;for(var R=0,Q=I.length;R<Q;R++){S=I[R];if(typeof S==="function"){S.call(O.element,A,O)}}B=true};if(this.isUsingJQueryAnimation&&C==="animate"){F.complete=K;J=false}else{if(k.csstransitions){var H=0,L=this.styleQueue[0],M=L&&L.$el,z;while(!M||!M.length){z=this.styleQueue[H++];if(!z){return}M=z.$el}var E=parseFloat(getComputedStyle(M[0])[a]);if(E>0){D=function(Q,R){R.$el[C](R.style,F).one(b,K)};J=false}}}}}f.each(this.styleQueue,D);if(J){K()}this.styleQueue=[]},resize:function(){if(this["_"+this.options.layoutMode+"ResizeChanged"]()){this.reLayout()}},reLayout:function(z){this["_"+this.options.layoutMode+"Reset"]();this.layout(this.$filteredAtoms,z)},addItems:function(A,B){var z=this._getAtoms(A);this.$allAtoms=this.$allAtoms.add(z);if(B){B(z)}},insert:function(A,B){this.element.append(A);var z=this;this.addItems(A,function(C){var D=z._filter(C);z._addHideAppended(D);z._sort();z.reLayout();z._revealAppended(D,B)})},appended:function(A,B){var z=this;this.addItems(A,function(C){z._addHideAppended(C);z.layout(C);z._revealAppended(C,B)})},_addHideAppended:function(z){this.$filteredAtoms=this.$filteredAtoms.add(z);z.addClass("no-transition");this._isInserting=true;this.styleQueue.push({$el:z,style:this.options.hiddenStyle})},_revealAppended:function(A,B){var z=this;setTimeout(function(){A.removeClass("no-transition");z.styleQueue.push({$el:A,style:z.options.visibleStyle});z._isInserting=false;z._processStyleQueue(A,B)},10)},reloadItems:function(){this.$allAtoms=this._getAtoms(this.element.children())},remove:function(B,C){this.$allAtoms=this.$allAtoms.not(B);this.$filteredAtoms=this.$filteredAtoms.not(B);var z=this;var A=function(){B.remove();if(C){C.call(z.element)}};if(B.filter(":not(."+this.options.hiddenClass+")").length){this.styleQueue.push({$el:B,style:this.options.hiddenStyle});this._sort();this.reLayout(A)}else{A()}},shuffle:function(z){this.updateSortData(this.$allAtoms);this.options.sortBy="random";this._sort();this.reLayout(z)},destroy:function(){var B=this.usingTransforms;var A=this.options;this.$allAtoms.removeClass(A.hiddenClass+" "+A.itemClass).each(function(){var D=this.style;D.position="";D.top="";D.left="";D.opacity="";if(B){D[c]=""}});var z=this.element[0].style;for(var C in this.originalStyle){z[C]=this.originalStyle[C]}this.element.unbind(".isotope").undelegate("."+A.hiddenClass,"click").removeClass(A.containerClass).removeData("isotope");r.unbind(".isotope")},_getSegments:function(F){var C=this.options.layoutMode,B=F?"rowHeight":"columnWidth",A=F?"height":"width",E=F?"rows":"cols",G=this.element[A](),z,D=this.options[C]&&this.options[C][B]||this.$filteredAtoms["outer"+p(A)](true)||G;z=Math.floor(G/D);z=Math.max(z,1);this[C][E]=z;this[C][B]=D},_checkIfSegmentsChanged:function(C){var A=this.options.layoutMode,B=C?"rows":"cols",z=this[A][B];this._getSegments(C);return(this[A][B]!==z)},_masonryReset:function(){this.masonry={};this._getSegments();var z=this.masonry.cols;this.masonry.colYs=[];while(z--){this.masonry.colYs.push(0)}},_masonryLayout:function(B){var z=this,A=z.masonry;B.each(function(){var G=f(this),E=Math.ceil(G.outerWidth(true)/A.columnWidth);E=Math.min(E,A.cols);if(E===1){z._masonryPlaceBrick(G,A.colYs)}else{var H=A.cols+1-E,D=[],F,C;for(C=0;C<H;C++){F=A.colYs.slice(C,C+E);D[C]=Math.max.apply(Math,F)}z._masonryPlaceBrick(G,D)}})},_masonryPlaceBrick:function(C,G){var z=Math.min.apply(Math,G),I=0;for(var B=0,D=G.length;B<D;B++){if(G[B]===z){I=B;break}}var H=this.masonry.columnWidth*I,F=z;this._pushPosition(C,H,F);var E=z+C.outerHeight(true),A=this.masonry.cols+1-D;for(B=0;B<A;B++){this.masonry.colYs[I+B]=E}},_masonryGetContainerSize:function(){var z=Math.max.apply(Math,this.masonry.colYs);return{height:z}},_masonryResizeChanged:function(){return this._checkIfSegmentsChanged()},_fitRowsReset:function(){this.fitRows={x:0,y:0,height:0}},_fitRowsLayout:function(C){var z=this,B=this.element.width(),A=this.fitRows;C.each(function(){var F=f(this),E=F.outerWidth(true),D=F.outerHeight(true);if(A.x!==0&&E+A.x>B){A.x=0;A.y=A.height}z._pushPosition(F,A.x,A.y);A.height=Math.max(A.y+D,A.height);A.x+=E})},_fitRowsGetContainerSize:function(){return{height:this.fitRows.height}},_fitRowsResizeChanged:function(){return true},_cellsByRowReset:function(){this.cellsByRow={index:0};this._getSegments();this._getSegments(true)},_cellsByRowLayout:function(B){var z=this,A=this.cellsByRow;B.each(function(){var E=f(this),D=A.index%A.cols,F=Math.floor(A.index/A.cols),C=(D+0.5)*A.columnWidth-E.outerWidth(true)/2,G=(F+0.5)*A.rowHeight-E.outerHeight(true)/2;z._pushPosition(E,C,G);A.index++})},_cellsByRowGetContainerSize:function(){return{height:Math.ceil(this.$filteredAtoms.length/this.cellsByRow.cols)*this.cellsByRow.rowHeight+this.offset.top}},_cellsByRowResizeChanged:function(){return this._checkIfSegmentsChanged()},_straightDownReset:function(){this.straightDown={y:0}},_straightDownLayout:function(A){var z=this;A.each(function(B){var C=f(this);z._pushPosition(C,0,z.straightDown.y);z.straightDown.y+=C.outerHeight(true)})},_straightDownGetContainerSize:function(){return{height:this.straightDown.y}},_straightDownResizeChanged:function(){return true},_masonryHorizontalReset:function(){this.masonryHorizontal={};this._getSegments(true);var z=this.masonryHorizontal.rows;this.masonryHorizontal.rowXs=[];while(z--){this.masonryHorizontal.rowXs.push(0)}},_masonryHorizontalLayout:function(B){var z=this,A=z.masonryHorizontal;B.each(function(){var G=f(this),E=Math.ceil(G.outerHeight(true)/A.rowHeight);E=Math.min(E,A.rows);if(E===1){z._masonryHorizontalPlaceBrick(G,A.rowXs)}else{var H=A.rows+1-E,D=[],F,C;for(C=0;C<H;C++){F=A.rowXs.slice(C,C+E);D[C]=Math.max.apply(Math,F)}z._masonryHorizontalPlaceBrick(G,D)}})},_masonryHorizontalPlaceBrick:function(C,H){var z=Math.min.apply(Math,H),F=0;for(var B=0,D=H.length;B<D;B++){if(H[B]===z){F=B;break}}var I=z,G=this.masonryHorizontal.rowHeight*F;this._pushPosition(C,I,G);var E=z+C.outerWidth(true),A=this.masonryHorizontal.rows+1-D;for(B=0;B<A;B++){this.masonryHorizontal.rowXs[F+B]=E}},_masonryHorizontalGetContainerSize:function(){var z=Math.max.apply(Math,this.masonryHorizontal.rowXs);return{width:z}},_masonryHorizontalResizeChanged:function(){return this._checkIfSegmentsChanged(true)},_fitColumnsReset:function(){this.fitColumns={x:0,y:0,width:0}},_fitColumnsLayout:function(C){var z=this,B=this.element.height(),A=this.fitColumns;C.each(function(){var F=f(this),E=F.outerWidth(true),D=F.outerHeight(true);if(A.y!==0&&D+A.y>B){A.x=A.width;A.y=0}z._pushPosition(F,A.x,A.y);A.width=Math.max(A.x+E,A.width);A.y+=D})},_fitColumnsGetContainerSize:function(){return{width:this.fitColumns.width}},_fitColumnsResizeChanged:function(){return true},_cellsByColumnReset:function(){this.cellsByColumn={index:0};this._getSegments();this._getSegments(true)},_cellsByColumnLayout:function(B){var z=this,A=this.cellsByColumn;B.each(function(){var E=f(this),D=Math.floor(A.index/A.rows),F=A.index%A.rows,C=(D+0.5)*A.columnWidth-E.outerWidth(true)/2,G=(F+0.5)*A.rowHeight-E.outerHeight(true)/2;z._pushPosition(E,C,G);A.index++})},_cellsByColumnGetContainerSize:function(){return{width:Math.ceil(this.$filteredAtoms.length/this.cellsByColumn.rows)*this.cellsByColumn.columnWidth}},_cellsByColumnResizeChanged:function(){return this._checkIfSegmentsChanged(true)},_straightAcrossReset:function(){this.straightAcross={x:0}},_straightAcrossLayout:function(A){var z=this;A.each(function(B){var C=f(this);z._pushPosition(C,z.straightAcross.x,0);z.straightAcross.x+=C.outerWidth(true)})},_straightAcrossGetContainerSize:function(){return{width:this.straightAcross.x}},_straightAcrossResizeChanged:function(){return true}};
4
- ;f.fn.imagesLoaded=function(G){var E=this,C=E.find("img").add(E.filter("img")),z=C.length,F="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",B=[];function D(){G.call(E,C)}function A(I){var H=I.target;if(H.src!==F&&f.inArray(H,B)===-1){B.push(H);if(--z<=0){setTimeout(D);C.unbind(".imagesLoaded",A)}}}if(!z){D()}C.bind("load.imagesLoaded error.imagesLoaded",A).each(function(){var H=this.src;this.src=F;this.src=H});return E};var x=function(z){if(n.console){n.console.error(z)}};f.fn.isotope=function(A,B){if(typeof A==="string"){var z=Array.prototype.slice.call(arguments,1);this.each(function(){var C=f.data(this,"isotope");if(!C){x("cannot call methods on isotope prior to initialization; attempted to call method '"+A+"'");return}if(!f.isFunction(C[A])||A.charAt(0)==="_"){x("no such method '"+A+"' for isotope instance");return}C[A].apply(C,z)})}else{this.each(function(){var C=f.data(this,"isotope");if(C){C.option(A);C._init(B)}else{f.data(this,"isotope",new f.Isotope(A,this,B))}})}return this}})(window,jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  // Isoptope custom extensions and methods.
6
- jQuery.Isotope.prototype._getMasonryGutterColumns=function(){var a=this.options.masonry&&this.options.masonry.gutterWidth||0;containerWidth=this.element.width();this.masonry.columnWidth=this.options.masonry&&this.options.masonry.columnWidth||this.$filteredAtoms.outerWidth(true)||containerWidth;this.masonry.columnWidth+=a;this.masonry.cols=Math.floor((containerWidth+a)/this.masonry.columnWidth);this.masonry.cols=Math.max(this.masonry.cols,1)};jQuery.Isotope.prototype._masonryReset=function(){this.masonry={};this._getMasonryGutterColumns();var a=this.masonry.cols;this.masonry.colYs=[];while(a--){this.masonry.colYs.push(0)}};jQuery.Isotope.prototype._masonryResizeChanged=function(){var a=this.masonry.cols;this._getMasonryGutterColumns();return(this.masonry.cols!==a)};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  // Fancybox v1.3.4
8
- (function(B){var L,T,Q,M,d,m,J,A,O,z,C=0,H={},j=[],e=0,G={},y=[],f=null,o=new Image(),i=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,k=/[^\.]\.(swf)\s*$/i,p,N=1,h=0,t="",b,c,P=false,s=B.extend(B("<div/>")[0],{prop:0}),S=B.browser.msie&&B.browser.version<7&&!window.XMLHttpRequest,r=function(){T.hide();o.onerror=o.onload=null;if(f){f.abort()}L.empty()},x=function(){if(false===H.onError(j,C,H)){T.hide();P=false;return}H.titleShow=false;H.width="auto";H.height="auto";L.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');n()},w=function(){var Z=j[C],W,Y,ab,aa,V,X;r();H=B.extend({},B.fn.fancybox.defaults,(typeof B(Z).data("fancybox")=="undefined"?H:B(Z).data("fancybox")));X=H.onStart(j,C,H);if(X===false){P=false;return}else{if(typeof X=="object"){H=B.extend(H,X)}}ab=H.title||(Z.nodeName?B(Z).attr("title"):Z.title)||"";if(Z.nodeName&&!H.orig){H.orig=B(Z).children("img:first").length?B(Z).children("img:first"):B(Z)}if(ab===""&&H.orig&&H.titleFromAlt){ab=H.orig.attr("alt")}W=H.href||(Z.nodeName?B(Z).attr("href"):Z.href)||null;if((/^(?:javascript)/i).test(W)||W=="#"){W=null}if(H.type){Y=H.type;if(!W){W=H.content}}else{if(H.content){Y="html"}else{if(W){if(W.match(i)){Y="image"}else{if(W.match(k)){Y="swf"}else{if(B(Z).hasClass("iframe")){Y="iframe"}else{if(W.indexOf("#")===0){Y="inline"}else{Y="ajax"}}}}}}}if(!Y){x();return}if(Y=="inline"){Z=W.substr(W.indexOf("#"));Y=B(Z).length>0?"inline":"ajax"}H.type=Y;H.href=W;H.title=ab;if(H.autoDimensions){if(H.type=="html"||H.type=="inline"||H.type=="ajax"){H.width="auto";H.height="auto"}else{H.autoDimensions=false}}if(H.modal){H.overlayShow=true;H.hideOnOverlayClick=false;H.hideOnContentClick=false;H.enableEscapeButton=false;H.showCloseButton=false}H.padding=parseInt(H.padding,10);H.margin=parseInt(H.margin,10);L.css("padding",(H.padding+H.margin));B(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){B(this).replaceWith(m.children())});switch(Y){case"html":L.html(H.content);n();break;case"inline":if(B(Z).parent().is("#fancybox-content")===true){P=false;return}B('<div class="fancybox-inline-tmp" />').hide().insertBefore(B(Z)).bind("fancybox-cleanup",function(){B(this).replaceWith(m.children())}).bind("fancybox-cancel",function(){B(this).replaceWith(L.children())});B(Z).appendTo(L);n();break;case"image":P=false;B.fancybox.showActivity();o=new Image();o.onerror=function(){x()};o.onload=function(){P=true;o.onerror=o.onload=null;F()};o.src=W;break;case"swf":H.scrolling="no";aa='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+H.width+'" height="'+H.height+'"><param name="movie" value="'+W+'"></param>';V="";B.each(H.swf,function(ac,ad){aa+='<param name="'+ac+'" value="'+ad+'"></param>';V+=" "+ac+'="'+ad+'"'});aa+='<embed src="'+W+'" type="application/x-shockwave-flash" width="'+H.width+'" height="'+H.height+'"'+V+"></embed></object>";L.html(aa);n();break;case"ajax":P=false;B.fancybox.showActivity();H.ajax.win=H.ajax.success;f=B.ajax(B.extend({},H.ajax,{url:W,data:H.ajax.data||{},error:function(ac,ae,ad){if(ac.status>0){x()}},success:function(ad,af,ac){var ae=typeof ac=="object"?ac:f;if(ae.status==200){if(typeof H.ajax.win=="function"){X=H.ajax.win(W,ad,af,ac);if(X===false){T.hide();return}else{if(typeof X=="string"||typeof X=="object"){ad=X}}}L.html(ad);n()}}}));break;case"iframe":E();break}},n=function(){var V=H.width,W=H.height;if(V.toString().indexOf("%")>-1){V=parseInt((B(window).width()-(H.margin*2))*parseFloat(V)/100,10)+"px"}else{V=V=="auto"?"auto":V+"px"}if(W.toString().indexOf("%")>-1){W=parseInt((B(window).height()-(H.margin*2))*parseFloat(W)/100,10)+"px"}else{W=W=="auto"?"auto":W+"px"}L.wrapInner('<div style="width:'+V+";height:"+W+";overflow: "+(H.scrolling=="auto"?"auto":(H.scrolling=="yes"?"scroll":"hidden"))+';position:relative;"></div>');H.width=L.width();H.height=L.height();E()},F=function(){H.width=o.width;H.height=o.height;B("<img />").attr({id:"fancybox-img",src:o.src,alt:H.title}).appendTo(L);E()},E=function(){var W,V;T.hide();if(M.is(":visible")&&false===G.onCleanup(y,e,G)){B.event.trigger("fancybox-cancel");P=false;return}P=true;B(m.add(Q)).unbind();B(window).unbind("resize.fb scroll.fb");B(document).unbind("keydown.fb");if(M.is(":visible")&&G.titlePosition!=="outside"){M.css("height",M.height())}y=j;e=C;G=H;if(G.overlayShow){Q.css({"background-color":G.overlayColor,opacity:G.overlayOpacity,cursor:G.hideOnOverlayClick?"pointer":"auto",height:B(document).height()});if(!Q.is(":visible")){if(S){B("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"})}Q.show()}}else{Q.hide()}c=R();l();if(M.is(":visible")){B(J.add(O).add(z)).hide();W=M.position(),b={top:W.top,left:W.left,width:M.width(),height:M.height()};V=(b.width==c.width&&b.height==c.height);m.fadeTo(G.changeFade,0.3,function(){var X=function(){m.html(L.contents()).fadeTo(G.changeFade,1,v)};B.event.trigger("fancybox-change");m.empty().removeAttr("filter").css({"border-width":G.padding,width:c.width-G.padding*2,height:H.autoDimensions?"auto":c.height-h-G.padding*2});if(V){X()}else{s.prop=0;B(s).animate({prop:1},{duration:G.changeSpeed,easing:G.easingChange,step:U,complete:X})}});return}M.removeAttr("style");m.css("border-width",G.padding);if(G.transitionIn=="elastic"){b=I();m.html(L.contents());M.show();if(G.opacity){c.opacity=0}s.prop=0;B(s).animate({prop:1},{duration:G.speedIn,easing:G.easingIn,step:U,complete:v});return}if(G.titlePosition=="inside"&&h>0){A.show()}m.css({width:c.width-G.padding*2,height:H.autoDimensions?"auto":c.height-h-G.padding*2}).html(L.contents());M.css(c).fadeIn(G.transitionIn=="none"?0:G.speedIn,v)},D=function(V){if(V&&V.length){if(G.titlePosition=="float"){return'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+V+'</td><td id="fancybox-title-float-right"></td></tr></table>'}return'<div id="fancybox-title-'+G.titlePosition+'">'+V+"</div>"}return false},l=function(){t=G.title||"";h=0;A.empty().removeAttr("style").removeClass();if(G.titleShow===false){A.hide();return}t=B.isFunction(G.titleFormat)?G.titleFormat(t,y,e,G):D(t);if(!t||t===""){A.hide();return}A.addClass("fancybox-title-"+G.titlePosition).html(t).appendTo("body").show();switch(G.titlePosition){case"inside":A.css({width:c.width-(G.padding*2),marginLeft:G.padding,marginRight:G.padding});h=A.outerHeight(true);A.appendTo(d);c.height+=h;break;case"over":A.css({marginLeft:G.padding,width:c.width-(G.padding*2),bottom:G.padding}).appendTo(d);break;case"float":A.css("left",parseInt((A.width()-c.width-40)/2,10)*-1).appendTo(M);break;default:A.css({width:c.width-(G.padding*2),paddingLeft:G.padding,paddingRight:G.padding}).appendTo(M);break}A.hide()},g=function(){if(G.enableEscapeButton||G.enableKeyboardNav){B(document).bind("keydown.fb",function(V){if(V.keyCode==27&&G.enableEscapeButton){V.preventDefault();B.fancybox.close()}else{if((V.keyCode==37||V.keyCode==39)&&G.enableKeyboardNav&&V.target.tagName!=="INPUT"&&V.target.tagName!=="TEXTAREA"&&V.target.tagName!=="SELECT"){V.preventDefault();B.fancybox[V.keyCode==37?"prev":"next"]()}}})}if(!G.showNavArrows){O.hide();z.hide();return}if((G.cyclic&&y.length>1)||e!==0){O.show()}if((G.cyclic&&y.length>1)||e!=(y.length-1)){z.show()}},v=function(){if(!B.support.opacity){m.get(0).style.removeAttribute("filter");M.get(0).style.removeAttribute("filter")}if(H.autoDimensions){m.css("height","auto")}M.css("height","auto");if(t&&t.length){A.show()}if(G.showCloseButton){J.show()}g();if(G.hideOnContentClick){m.bind("click",B.fancybox.close)}if(G.hideOnOverlayClick){Q.bind("click",B.fancybox.close)}B(window).bind("resize.fb",B.fancybox.resize);if(G.centerOnScroll){B(window).bind("scroll.fb",B.fancybox.center)}if(G.type=="iframe"){B('<iframe id="fancybox-frame" name="fancybox-frame'+new Date().getTime()+'" frameborder="0" hspace="0" '+(B.browser.msie?'allowtransparency="true""':"")+' scrolling="'+H.scrolling+'" src="'+G.href+'"></iframe>').appendTo(m)}M.show();P=false;B.fancybox.center();G.onComplete(y,e,G);K()},K=function(){var V,W;if((y.length-1)>e){V=y[e+1].href;if(typeof V!=="undefined"&&V.match(i)){W=new Image();W.src=V}}if(e>0){V=y[e-1].href;if(typeof V!=="undefined"&&V.match(i)){W=new Image();W.src=V}}},U=function(W){var V={width:parseInt(b.width+(c.width-b.width)*W,10),height:parseInt(b.height+(c.height-b.height)*W,10),top:parseInt(b.top+(c.top-b.top)*W,10),left:parseInt(b.left+(c.left-b.left)*W,10)};if(typeof c.opacity!=="undefined"){V.opacity=W<0.5?0.5:W}M.css(V);m.css({width:V.width-G.padding*2,height:V.height-(h*W)-G.padding*2})},u=function(){return[B(window).width()-(G.margin*2),B(window).height()-(G.margin*2),B(document).scrollLeft()+G.margin,B(document).scrollTop()+G.margin]},R=function(){var V=u(),Z={},W=G.autoScale,X=G.padding*2,Y;if(G.width.toString().indexOf("%")>-1){Z.width=parseInt((V[0]*parseFloat(G.width))/100,10)}else{Z.width=G.width+X}if(G.height.toString().indexOf("%")>-1){Z.height=parseInt((V[1]*parseFloat(G.height))/100,10)}else{Z.height=G.height+X}if(W&&(Z.width>V[0]||Z.height>V[1])){if(H.type=="image"||H.type=="swf"){Y=(G.width)/(G.height);if((Z.width)>V[0]){Z.width=V[0];Z.height=parseInt(((Z.width-X)/Y)+X,10)}if((Z.height)>V[1]){Z.height=V[1];Z.width=parseInt(((Z.height-X)*Y)+X,10)}}else{Z.width=Math.min(Z.width,V[0]);Z.height=Math.min(Z.height,V[1])}}Z.top=parseInt(Math.max(V[3]-20,V[3]+((V[1]-Z.height-40)*0.5)),10);Z.left=parseInt(Math.max(V[2]-20,V[2]+((V[0]-Z.width-40)*0.5)),10);return Z},q=function(V){var W=V.offset();W.top+=parseInt(V.css("paddingTop"),10)||0;W.left+=parseInt(V.css("paddingLeft"),10)||0;W.top+=parseInt(V.css("border-top-width"),10)||0;W.left+=parseInt(V.css("border-left-width"),10)||0;W.width=V.width();W.height=V.height();return W},I=function(){var Y=H.orig?B(H.orig):false,X={},W,V;if(Y&&Y.length){W=q(Y);X={width:W.width+(G.padding*2),height:W.height+(G.padding*2),top:W.top-G.padding-20,left:W.left-G.padding-20}}else{V=u();X={width:G.padding*2,height:G.padding*2,top:parseInt(V[3]+V[1]*0.5,10),left:parseInt(V[2]+V[0]*0.5,10)}}return X},a=function(){if(!T.is(":visible")){clearInterval(p);return}B("div",T).css("top",(N*-40)+"px");N=(N+1)%12};B.fn.fancybox=function(V){if(!B(this).length){return this}B(this).data("fancybox",B.extend({},V,(B.metadata?B(this).metadata():{}))).unbind("click.fb").bind("click.fb",function(X){X.preventDefault();if(P){return}P=true;B(this).blur();j=[];C=0;var W=B(this).attr("rel")||"";if(!W||W==""||W==="nofollow"){j.push(this)}else{j=B("a[rel="+W+"], area[rel="+W+"]");C=j.index(this)}w();return});return this};B.fancybox=function(Y){var X;if(P){return}P=true;X=typeof arguments[1]!=="undefined"?arguments[1]:{};j=[];C=parseInt(X.index,10)||0;if(B.isArray(Y)){for(var W=0,V=Y.length;W<V;W++){if(typeof Y[W]=="object"){B(Y[W]).data("fancybox",B.extend({},X,Y[W]))}else{Y[W]=B({}).data("fancybox",B.extend({content:Y[W]},X))}}j=jQuery.merge(j,Y)}else{if(typeof Y=="object"){B(Y).data("fancybox",B.extend({},X,Y))}else{Y=B({}).data("fancybox",B.extend({content:Y},X))}j.push(Y)}if(C>j.length||C<0){C=0}w()};B.fancybox.showActivity=function(){clearInterval(p);T.show();p=setInterval(a,66)};B.fancybox.hideActivity=function(){T.hide()};B.fancybox.next=function(){return B.fancybox.pos(e+1)};B.fancybox.prev=function(){return B.fancybox.pos(e-1)};B.fancybox.pos=function(V){if(P){return}V=parseInt(V);j=y;if(V>-1&&V<y.length){C=V;w()}else{if(G.cyclic&&y.length>1){C=V>=y.length?0:y.length-1;w()}}return};B.fancybox.cancel=function(){if(P){return}P=true;B.event.trigger("fancybox-cancel");r();H.onCancel(j,C,H);P=false};B.fancybox.close=function(){if(P||M.is(":hidden")){return}P=true;if(G&&false===G.onCleanup(y,e,G)){P=false;return}r();B(J.add(O).add(z)).hide();B(m.add(Q)).unbind();B(window).unbind("resize.fb scroll.fb");B(document).unbind("keydown.fb");m.find("iframe").attr("src",S&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");if(G.titlePosition!=="inside"){A.empty()}M.stop();function V(){Q.fadeOut("fast");A.empty().hide();M.hide();B.event.trigger("fancybox-cleanup");m.empty();G.onClosed(y,e,G);y=H=[];e=C=0;G=H={};P=false}if(G.transitionOut=="elastic"){b=I();var W=M.position();c={top:W.top,left:W.left,width:M.width(),height:M.height()};if(G.opacity){c.opacity=1}A.empty().hide();s.prop=1;B(s).animate({prop:0},{duration:G.speedOut,easing:G.easingOut,step:U,complete:V})}else{M.fadeOut(G.transitionOut=="none"?0:G.speedOut,V)}};B.fancybox.resize=function(){if(Q.is(":visible")){Q.css("height",B(document).height())}var W,V;c=R();l();A.show();W=M.position(),b={top:W.top,left:W.left,width:M.width(),height:M.height()};V=(b.width==c.width&&b.height==c.height);if(V){}else{s.prop=0;B(s).animate({prop:1},{duration:G.changeSpeed,easing:G.easingChange,step:U})}m.css({width:c.width-G.padding*2,height:H.autoDimensions?"auto":c.height-h-G.padding*2});M.css(c);B.fancybox.center(true)};B.fancybox.center=function(){var V,W;if(P){return}W=arguments[0]===true?1:0;V=u();if(!W&&(M.width()>V[0]||M.height()>V[1])){return}M.stop().animate({top:parseInt(Math.max(V[3]-20,V[3]+((V[1]-m.height()-40)*0.5)-G.padding)),left:parseInt(Math.max(V[2]-20,V[2]+((V[0]-m.width()-40)*0.5)-G.padding))},typeof arguments[0]=="number"?arguments[0]:200)};B.fancybox.init=function(){if(B("#fancybox-wrap").length){return}B("body").append(L=B('<div id="fancybox-tmp"></div>'),T=B('<div id="fancybox-loading"><div></div></div>'),Q=B('<div id="fancybox-overlay"></div>'),M=B('<div id="fancybox-wrap"></div>'));d=B('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(M);d.append(m=B('<div id="fancybox-content"></div>'),J=B('<a id="fancybox-close"></a>'),A=B('<div id="fancybox-title"></div>'),O=B('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),z=B('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));J.click(B.fancybox.close);T.click(B.fancybox.cancel);O.click(function(V){V.preventDefault();B.fancybox.prev()});z.click(function(V){V.preventDefault();B.fancybox.next()});if(B.fn.mousewheel){M.bind("mousewheel.fb",function(V,W){if(P){V.preventDefault()}else{if(B(V.target).get(0).clientHeight==0||B(V.target).get(0).scrollHeight===B(V.target).get(0).clientHeight){V.preventDefault();B.fancybox[W>0?"prev":"next"]()}}})}if(!B.support.opacity){M.addClass("fancybox-ie")}if(S){T.addClass("fancybox-ie6");M.addClass("fancybox-ie6");B('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(d)}};B.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};B(document).ready(function(){B.fancybox.init()})})(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9
  /*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)
10
  * Licensed under the MIT License (LICENSE.txt).
11
  *
@@ -13,6 +1792,222 @@ jQuery.Isotope.prototype._getMasonryGutterColumns=function(){var a=this.options.
13
  *
14
  * Requires: jQuery 1.2.2+
15
  */
16
- (function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{if(typeof exports==="object"){module.exports=a}else{a(jQuery)}}}(function(c){var d=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],k=("onwheel" in document||document.documentMode>=9)?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],h=Array.prototype.slice,j,b;if(c.event.fixHooks){for(var e=d.length;e;){c.event.fixHooks[d[--e]]=c.event.mouseHooks}}var f=c.event.special.mousewheel={version:"3.1.9",setup:function(){if(this.addEventListener){for(var m=k.length;m;){this.addEventListener(k[--m],l,false)}}else{this.onmousewheel=l}c.data(this,"mousewheel-line-height",f.getLineHeight(this));c.data(this,"mousewheel-page-height",f.getPageHeight(this))},teardown:function(){if(this.removeEventListener){for(var m=k.length;m;){this.removeEventListener(k[--m],l,false)}}else{this.onmousewheel=null}},getLineHeight:function(i){return parseInt(c(i)["offsetParent" in c.fn?"offsetParent":"parent"]().css("fontSize"),10)},getPageHeight:function(i){return c(i).height()},settings:{adjustOldDeltas:true}};c.fn.extend({mousewheel:function(i){return i?this.bind("mousewheel",i):this.trigger("mousewheel")},unmousewheel:function(i){return this.unbind("mousewheel",i)}});function l(i){var n=i||window.event,r=h.call(arguments,1),t=0,p=0,o=0,q=0;i=c.event.fix(n);i.type="mousewheel";if("detail" in n){o=n.detail*-1}if("wheelDelta" in n){o=n.wheelDelta}if("wheelDeltaY" in n){o=n.wheelDeltaY}if("wheelDeltaX" in n){p=n.wheelDeltaX*-1}if("axis" in n&&n.axis===n.HORIZONTAL_AXIS){p=o*-1;o=0}t=o===0?p:o;if("deltaY" in n){o=n.deltaY*-1;t=o}if("deltaX" in n){p=n.deltaX;if(o===0){t=p*-1}}if(o===0&&p===0){return}if(n.deltaMode===1){var s=c.data(this,"mousewheel-line-height");t*=s;o*=s;p*=s}else{if(n.deltaMode===2){var m=c.data(this,"mousewheel-page-height");t*=m;o*=m;p*=m}}q=Math.max(Math.abs(o),Math.abs(p));if(!b||q<b){b=q;if(a(n,q)){b/=40}}if(a(n,q)){t/=40;p/=40;o/=40}t=Math[t>=1?"floor":"ceil"](t/b);p=Math[p>=1?"floor":"ceil"](p/b);o=Math[o>=1?"floor":"ceil"](o/b);i.deltaX=p;i.deltaY=o;i.deltaFactor=b;i.deltaMode=0;r.unshift(i,t,p,o);if(j){clearTimeout(j)}j=setTimeout(g,200);return(c.event.dispatch||c.event.handle).apply(this,r)}function g(){b=null}function a(m,i){return f.settings.adjustOldDeltas&&m.type==="mousewheel"&&i%120===0}}));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  // Envira functions.
18
- function enviraGetColWidth(a,e){var d,c=jQuery(window).width(),b=a.data("envira-columns");switch(b){case 1:d=a.width();break;case 2:if(c<=480){d=a.width()}else{d=a.width()/2}break;case 3:if(c<=480){d=a.width()}else{if(c<=768){d=a.width()/2}else{d=a.width()/3}}case 4:case 5:case 6:if(c<=480){d=a.width()}else{if(c<=768){d=a.width()/2}else{if(c<=1024){d=a.width()/3}else{d=a.width()/b}}}break}return parseInt(d-(e*(b-1))/b)}function enviraSetWidths(a,c){var b=enviraGetColWidth(a,c);a.children().css({width:b})};function enviraIsMobile(){var check = false;(function(a){if(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0,4)))check=true})(navigator.userAgent||navigator.vendor||window.opera);return check;}function enviraThrottle(a,b){return function(){var d=this,c=[].slice(arguments);clearTimeout(a._throttleTimeout);a._throttleTimeout=setTimeout(function(){a.apply(d,c)},b)}};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  // Isotope 1.5.26.
2
+ ;
3
+ (function(n, f, i) {
4
+ var s = n.document;
5
+ var w = s.documentElement;
6
+ var k = n.Modernizr;
7
+ var p = function(z) {
8
+ return z.charAt(0).toUpperCase() + z.slice(1)
9
+ };
10
+ var u = "Moz Webkit O Ms".split(" ");
11
+ var o = function(D) {
12
+ var C = w.style,
13
+ A;
14
+ if (typeof C[D] === "string") {
15
+ return D
16
+ }
17
+ D = p(D);
18
+ for (var B = 0, z = u.length; B < z; B++) {
19
+ A = u[B] + D;
20
+ if (typeof C[A] === "string") {
21
+ return A
22
+ }
23
+ }
24
+ };
25
+ var c = o("transform"),
26
+ v = o("transitionProperty");;
27
+ var j = {
28
+ csstransforms: function() {
29
+ return !!c
30
+ },
31
+ csstransforms3d: function() {
32
+ var B = !! o("perspective");
33
+ if (B && "webkitPerspective" in w.style) {
34
+ var A = f("<style>@media (transform-3d),(-webkit-transform-3d){#modernizr{height:3px}}</style>").appendTo("head"),
35
+ z = f('<div id="modernizr" />').appendTo("html");
36
+ B = z.height() === 3;
37
+ z.remove();
38
+ A.remove()
39
+ }
40
+ return B
41
+ },
42
+ csstransitions: function() {
43
+ return !!v
44
+ }
45
+ };
46
+ var m;
47
+ if (k) {
48
+ for (m in j) {
49
+ if (!k.hasOwnProperty(m)) {
50
+ k.addTest(m, j[m])
51
+ }
52
+ }
53
+ } else {
54
+ k = n.Modernizr = {
55
+ _version: "1.6ish: miniModernizr for Isotope"
56
+ };
57
+ var y = " ";
58
+ var q;
59
+ for (m in j) {
60
+ q = j[m]();
61
+ k[m] = q;
62
+ y += " " + (q ? "" : "no-") + m
63
+ }
64
+ f("html").addClass(y)
65
+ } if (k.csstransforms) {
66
+ var e = k.csstransforms3d ? {
67
+ translate: function(z) {
68
+ return "translate3d(" + z[0] + "px, " + z[1] + "px, 0) "
69
+ },
70
+ scale: function(z) {
71
+ return "scale3d(" + z + ", " + z + ", 1) "
72
+ }
73
+ } : {
74
+ translate: function(z) {
75
+ return "translate(" + z[0] + "px, " + z[1] + "px) "
76
+ },
77
+ scale: function(z) {
78
+ return "scale(" + z + ") "
79
+ }
80
+ };
81
+ var t = function(C, A, H) {
82
+ var F = f.data(C, "isoTransform") || {}, J = {}, B, D = {}, G;
83
+ J[A] = H;
84
+ f.extend(F, J);
85
+ for (B in F) {
86
+ G = F[B];
87
+ D[B] = e[B](G)
88
+ }
89
+ var E = D.translate || "",
90
+ I = D.scale || "",
91
+ z = E + I;
92
+ f.data(C, "isoTransform", F);
93
+ C.style[c] = z
94
+ };
95
+ f.cssNumber.scale = true;
96
+ f.cssHooks.scale = {
97
+ set: function(z, A) {
98
+ t(z, "scale", A)
99
+ },
100
+ get: function(B, A) {
101
+ var z = f.data(B, "isoTransform");
102
+ return z && z.scale ? z.scale : 1
103
+ }
104
+ };
105
+ f.fx.step.scale = function(z) {
106
+ f.cssHooks.scale.set(z.elem, z.now + z.unit)
107
+ };
108
+ f.cssNumber.translate = true;
109
+ f.cssHooks.translate = {
110
+ set: function(z, A) {
111
+ t(z, "translate", A)
112
+ },
113
+ get: function(B, A) {
114
+ var z = f.data(B, "isoTransform");
115
+ return z && z.translate ? z.translate : [0, 0]
116
+ }
117
+ }
118
+ }
119
+ var b, a;
120
+ if (k.csstransitions) {
121
+ b = {
122
+ WebkitTransitionProperty: "webkitTransitionEnd",
123
+ MozTransitionProperty: "transitionend",
124
+ OTransitionProperty: "oTransitionEnd otransitionend",
125
+ transitionProperty: "transitionend"
126
+ }[v];
127
+ a = o("transitionDuration")
128
+ }
129
+ var l = f.event,
130
+ h = f.event.handle ? "handle" : "dispatch",
131
+ d;
132
+ l.special.smartresize = {
133
+ setup: function() {
134
+ f(this).bind("resize", l.special.smartresize.handler)
135
+ },
136
+ teardown: function() {
137
+ f(this).unbind("resize", l.special.smartresize.handler)
138
+ },
139
+ handler: function(C, z) {
140
+ var B = this,
141
+ A = arguments;
142
+ C.type = "smartresize";
143
+ if (d) {
144
+ clearTimeout(d)
145
+ }
146
+ d = setTimeout(function() {
147
+ l[h].apply(B, A)
148
+ }, z === "execAsap" ? 0 : 100)
149
+ }
150
+ };
151
+ f.fn.smartresize = function(z) {
152
+ return z ? this.bind("smartresize", z) : this.trigger("smartresize", ["execAsap"])
153
+ };
154
+ f.Isotope = function(z, A, B) {
155
+ this.element = f(A);
156
+ this._create(z);
157
+ this._init(B)
158
+ };
159
+ var g = ["width", "height"];
160
+ var r = f(n);
161
+ f.Isotope.settings = {
162
+ resizable: true,
163
+ layoutMode: "masonry",
164
+ containerClass: "isotope",
165
+ itemClass: "isotope-item",
166
+ hiddenClass: "isotope-hidden",
167
+ hiddenStyle: {
168
+ opacity: 0,
169
+ scale: 0.001
170
+ },
171
+ visibleStyle: {
172
+ opacity: 1,
173
+ scale: 1
174
+ },
175
+ containerStyle: {
176
+ position: "relative",
177
+ overflow: "hidden"
178
+ },
179
+ animationEngine: "best-available",
180
+ animationOptions: {
181
+ queue: false,
182
+ duration: 800
183
+ },
184
+ sortBy: "original-order",
185
+ sortAscending: true,
186
+ resizesContainer: true,
187
+ transformsEnabled: true,
188
+ itemPositionDataEnabled: false
189
+ };
190
+ f.Isotope.prototype = {
191
+ _create: function(E) {
192
+ this.options = f.extend({}, f.Isotope.settings, E);
193
+ this.styleQueue = [];
194
+ this.elemCount = 0;
195
+ var C = this.element[0].style;
196
+ this.originalStyle = {};
197
+ var B = g.slice(0);
198
+ for (var G in this.options.containerStyle) {
199
+ B.push(G)
200
+ }
201
+ for (var F = 0, A = B.length; F < A; F++) {
202
+ G = B[F];
203
+ this.originalStyle[G] = C[G] || ""
204
+ }
205
+ this.element.css(this.options.containerStyle);
206
+ this._updateAnimationEngine();
207
+ this._updateUsingTransforms();
208
+ var D = {
209
+ "original-order": function(I, H) {
210
+ H.elemCount++;
211
+ return H.elemCount
212
+ },
213
+ random: function() {
214
+ return Math.random()
215
+ }
216
+ };
217
+ this.options.getSortData = f.extend(this.options.getSortData, D);
218
+ this.reloadItems();
219
+ this.offset = {
220
+ left: parseInt((this.element.css("padding-left") || 0), 10),
221
+ top: parseInt((this.element.css("padding-top") || 0), 10)
222
+ };
223
+ var z = this;
224
+ setTimeout(function() {
225
+ z.element.addClass(z.options.containerClass)
226
+ }, 0);
227
+ if (this.options.resizable) {
228
+ r.bind("smartresize.isotope", function() {
229
+ z.resize()
230
+ })
231
+ }
232
+ this.element.delegate("." + this.options.hiddenClass, "click", function() {
233
+ return false
234
+ })
235
+ },
236
+ _getAtoms: function(C) {
237
+ var z = this.options.itemSelector,
238
+ B = z ? C.filter(z).add(C.find(z)) : C,
239
+ A = {
240
+ position: "absolute"
241
+ };
242
+ B = B.filter(function(D, E) {
243
+ return E.nodeType === 1
244
+ });
245
+ if (this.usingTransforms) {
246
+ A.left = 0;
247
+ A.top = 0
248
+ }
249
+ B.css(A).addClass(this.options.itemClass);
250
+ this.updateSortData(B, true);
251
+ return B
252
+ },
253
+ _init: function(z) {
254
+ this.$filteredAtoms = this._filter(this.$allAtoms);
255
+ this._sort();
256
+ this.reLayout(z)
257
+ },
258
+ option: function(B) {
259
+ if (f.isPlainObject(B)) {
260
+ this.options = f.extend(true, this.options, B);
261
+ var z;
262
+ for (var A in B) {
263
+ z = "_update" + p(A);
264
+ if (this[z]) {
265
+ this[z]()
266
+ }
267
+ }
268
+ }
269
+ },
270
+ _updateAnimationEngine: function() {
271
+ var A = this.options.animationEngine.toLowerCase().replace(/[ _\-]/g, "");
272
+ var z;
273
+ switch (A) {
274
+ case "css":
275
+ case "none":
276
+ z = false;
277
+ break;
278
+ case "jquery":
279
+ z = true;
280
+ break;
281
+ default:
282
+ z = !k.csstransitions
283
+ }
284
+ this.isUsingJQueryAnimation = z;
285
+ this._updateUsingTransforms()
286
+ },
287
+ _updateTransformsEnabled: function() {
288
+ this._updateUsingTransforms()
289
+ },
290
+ _updateUsingTransforms: function() {
291
+ var z = this.usingTransforms = this.options.transformsEnabled && k.csstransforms && k.csstransitions && !this.isUsingJQueryAnimation;
292
+ if (!z) {
293
+ delete this.options.hiddenStyle.scale;
294
+ delete this.options.visibleStyle.scale
295
+ }
296
+ this.getPositionStyles = z ? this._translate : this._positionAbs
297
+ },
298
+ _filter: function(F) {
299
+ var B = this.options.filter === "" ? "*" : this.options.filter;
300
+ if (!B) {
301
+ return F
302
+ }
303
+ var E = this.options.hiddenClass,
304
+ A = "." + E,
305
+ D = F.filter(A),
306
+ z = D;
307
+ if (B !== "*") {
308
+ z = D.filter(B);
309
+ var C = F.not(A).not(B).addClass(E);
310
+ this.styleQueue.push({
311
+ $el: C,
312
+ style: this.options.hiddenStyle
313
+ })
314
+ }
315
+ this.styleQueue.push({
316
+ $el: z,
317
+ style: this.options.visibleStyle
318
+ });
319
+ z.removeClass(E);
320
+ return F.filter(B)
321
+ },
322
+ updateSortData: function(E, B) {
323
+ var A = this,
324
+ C = this.options.getSortData,
325
+ D, z;
326
+ E.each(function() {
327
+ D = f(this);
328
+ z = {};
329
+ for (var F in C) {
330
+ if (!B && F === "original-order") {
331
+ z[F] = f.data(this, "isotope-sort-data")[F]
332
+ } else {
333
+ z[F] = C[F](D, A)
334
+ }
335
+ }
336
+ f.data(this, "isotope-sort-data", z)
337
+ })
338
+ },
339
+ _sort: function() {
340
+ var C = this.options.sortBy,
341
+ B = this._getSorter,
342
+ z = this.options.sortAscending ? 1 : -1,
343
+ A = function(G, F) {
344
+ var E = B(G, C),
345
+ D = B(F, C);
346
+ if (E === D && C !== "original-order") {
347
+ E = B(G, "original-order");
348
+ D = B(F, "original-order")
349
+ }
350
+ return ((E > D) ? 1 : (E < D) ? -1 : 0) * z
351
+ };
352
+ this.$filteredAtoms.sort(A)
353
+ },
354
+ _getSorter: function(z, A) {
355
+ return f.data(z, "isotope-sort-data")[A]
356
+ },
357
+ _translate: function(z, A) {
358
+ return {
359
+ translate: [z, A]
360
+ }
361
+ },
362
+ _positionAbs: function(z, A) {
363
+ return {
364
+ left: z,
365
+ top: A
366
+ }
367
+ },
368
+ _pushPosition: function(B, A, C) {
369
+ A = Math.round(A + this.offset.left);
370
+ C = Math.round(C + this.offset.top);
371
+ var z = this.getPositionStyles(A, C);
372
+ this.styleQueue.push({
373
+ $el: B,
374
+ style: z
375
+ });
376
+ if (this.options.itemPositionDataEnabled) {
377
+ B.data("isotope-item-position", {
378
+ x: A,
379
+ y: C
380
+ })
381
+ }
382
+ },
383
+ layout: function(C, B) {
384
+ var A = this.options.layoutMode;
385
+ this["_" + A + "Layout"](C);
386
+ if (this.options.resizesContainer) {
387
+ var z = this["_" + A + "GetContainerSize"]();
388
+ this.styleQueue.push({
389
+ $el: this.element,
390
+ style: z
391
+ })
392
+ }
393
+ this._processStyleQueue(C, B);
394
+ this.isLaidOut = true
395
+ },
396
+ _processStyleQueue: function(A, P) {
397
+ var C = !this.isLaidOut ? "css" : (this.isUsingJQueryAnimation ? "animate" : "css"),
398
+ F = this.options.animationOptions,
399
+ G = this.options.onLayout,
400
+ N, D, J, K;
401
+ D = function(Q, R) {
402
+ R.$el[C](R.style, F)
403
+ };
404
+ if (this._isInserting && this.isUsingJQueryAnimation) {
405
+ D = function(Q, R) {
406
+ N = R.$el.hasClass("no-transition") ? "css" : C;
407
+ R.$el[N](R.style, F)
408
+ }
409
+ } else {
410
+ if (P || G || F.complete) {
411
+ var B = false,
412
+ I = [P, G, F.complete],
413
+ O = this;
414
+ J = true;
415
+ K = function() {
416
+ if (B) {
417
+ return
418
+ }
419
+ var S;
420
+ for (var R = 0, Q = I.length; R < Q; R++) {
421
+ S = I[R];
422
+ if (typeof S === "function") {
423
+ S.call(O.element, A, O)
424
+ }
425
+ }
426
+ B = true
427
+ };
428
+ if (this.isUsingJQueryAnimation && C === "animate") {
429
+ F.complete = K;
430
+ J = false
431
+ } else {
432
+ if (k.csstransitions) {
433
+ var H = 0,
434
+ L = this.styleQueue[0],
435
+ M = L && L.$el,
436
+ z;
437
+ while (!M || !M.length) {
438
+ z = this.styleQueue[H++];
439
+ if (!z) {
440
+ return
441
+ }
442
+ M = z.$el
443
+ }
444
+ var E = parseFloat(getComputedStyle(M[0])[a]);
445
+ if (E > 0) {
446
+ D = function(Q, R) {
447
+ R.$el[C](R.style, F).one(b, K)
448
+ };
449
+ J = false
450
+ }
451
+ }
452
+ }
453
+ }
454
+ }
455
+ f.each(this.styleQueue, D);
456
+ if (J) {
457
+ K()
458
+ }
459
+ this.styleQueue = []
460
+ },
461
+ resize: function() {
462
+ if (this["_" + this.options.layoutMode + "ResizeChanged"]()) {
463
+ this.reLayout()
464
+ }
465
+ },
466
+ reLayout: function(z) {
467
+ this["_" + this.options.layoutMode + "Reset"]();
468
+ this.layout(this.$filteredAtoms, z)
469
+ },
470
+ addItems: function(A, B) {
471
+ var z = this._getAtoms(A);
472
+ this.$allAtoms = this.$allAtoms.add(z);
473
+ if (B) {
474
+ B(z)
475
+ }
476
+ },
477
+ insert: function(A, B) {
478
+ this.element.append(A);
479
+ var z = this;
480
+ this.addItems(A, function(C) {
481
+ var D = z._filter(C);
482
+ z._addHideAppended(D);
483
+ z._sort();
484
+ z.reLayout();
485
+ z._revealAppended(D, B)
486
+ })
487
+ },
488
+ appended: function(A, B) {
489
+ var z = this;
490
+ this.addItems(A, function(C) {
491
+ z._addHideAppended(C);
492
+ z.layout(C);
493
+ z._revealAppended(C, B)
494
+ })
495
+ },
496
+ _addHideAppended: function(z) {
497
+ this.$filteredAtoms = this.$filteredAtoms.add(z);
498
+ z.addClass("no-transition");
499
+ this._isInserting = true;
500
+ this.styleQueue.push({
501
+ $el: z,
502
+ style: this.options.hiddenStyle
503
+ })
504
+ },
505
+ _revealAppended: function(A, B) {
506
+ var z = this;
507
+ setTimeout(function() {
508
+ A.removeClass("no-transition");
509
+ z.styleQueue.push({
510
+ $el: A,
511
+ style: z.options.visibleStyle
512
+ });
513
+ z._isInserting = false;
514
+ z._processStyleQueue(A, B)
515
+ }, 10)
516
+ },
517
+ reloadItems: function() {
518
+ this.$allAtoms = this._getAtoms(this.element.children())
519
+ },
520
+ remove: function(B, C) {
521
+ this.$allAtoms = this.$allAtoms.not(B);
522
+ this.$filteredAtoms = this.$filteredAtoms.not(B);
523
+ var z = this;
524
+ var A = function() {
525
+ B.remove();
526
+ if (C) {
527
+ C.call(z.element)
528
+ }
529
+ };
530
+ if (B.filter(":not(." + this.options.hiddenClass + ")").length) {
531
+ this.styleQueue.push({
532
+ $el: B,
533
+ style: this.options.hiddenStyle
534
+ });
535
+ this._sort();
536
+ this.reLayout(A)
537
+ } else {
538
+ A()
539
+ }
540
+ },
541
+ shuffle: function(z) {
542
+ this.updateSortData(this.$allAtoms);
543
+ this.options.sortBy = "random";
544
+ this._sort();
545
+ this.reLayout(z)
546
+ },
547
+ destroy: function() {
548
+ var B = this.usingTransforms;
549
+ var A = this.options;
550
+ this.$allAtoms.removeClass(A.hiddenClass + " " + A.itemClass).each(function() {
551
+ var D = this.style;
552
+ D.position = "";
553
+ D.top = "";
554
+ D.left = "";
555
+ D.opacity = "";
556
+ if (B) {
557
+ D[c] = ""
558
+ }
559
+ });
560
+ var z = this.element[0].style;
561
+ for (var C in this.originalStyle) {
562
+ z[C] = this.originalStyle[C]
563
+ }
564
+ this.element.unbind(".isotope").undelegate("." + A.hiddenClass, "click").removeClass(A.containerClass).removeData("isotope");
565
+ r.unbind(".isotope")
566
+ },
567
+ _getSegments: function(F) {
568
+ var C = this.options.layoutMode,
569
+ B = F ? "rowHeight" : "columnWidth",
570
+ A = F ? "height" : "width",
571
+ E = F ? "rows" : "cols",
572
+ G = this.element[A](),
573
+ z, D = this.options[C] && this.options[C][B] || this.$filteredAtoms["outer" + p(A)](true) || G;
574
+ z = Math.floor(G / D);
575
+ z = Math.max(z, 1);
576
+ this[C][E] = z;
577
+ this[C][B] = D
578
+ },
579
+ _checkIfSegmentsChanged: function(C) {
580
+ var A = this.options.layoutMode,
581
+ B = C ? "rows" : "cols",
582
+ z = this[A][B];
583
+ this._getSegments(C);
584
+ return (this[A][B] !== z)
585
+ },
586
+ _masonryReset: function() {
587
+ this.masonry = {};
588
+ this._getSegments();
589
+ var z = this.masonry.cols;
590
+ this.masonry.colYs = [];
591
+ while (z--) {
592
+ this.masonry.colYs.push(0)
593
+ }
594
+ },
595
+ _masonryLayout: function(B) {
596
+ var z = this,
597
+ A = z.masonry;
598
+ B.each(function() {
599
+ var G = f(this),
600
+ E = Math.ceil(G.outerWidth(true) / A.columnWidth);
601
+ E = Math.min(E, A.cols);
602
+ if (E === 1) {
603
+ z._masonryPlaceBrick(G, A.colYs)
604
+ } else {
605
+ var H = A.cols + 1 - E,
606
+ D = [],
607
+ F, C;
608
+ for (C = 0; C < H; C++) {
609
+ F = A.colYs.slice(C, C + E);
610
+ D[C] = Math.max.apply(Math, F)
611
+ }
612
+ z._masonryPlaceBrick(G, D)
613
+ }
614
+ })
615
+ },
616
+ _masonryPlaceBrick: function(C, G) {
617
+ var z = Math.min.apply(Math, G),
618
+ I = 0;
619
+ for (var B = 0, D = G.length; B < D; B++) {
620
+ if (G[B] === z) {
621
+ I = B;
622
+ break
623
+ }
624
+ }
625
+ var H = this.masonry.columnWidth * I,
626
+ F = z;
627
+ this._pushPosition(C, H, F);
628
+ var E = z + C.outerHeight(true),
629
+ A = this.masonry.cols + 1 - D;
630
+ for (B = 0; B < A; B++) {
631
+ this.masonry.colYs[I + B] = E
632
+ }
633
+ },
634
+ _masonryGetContainerSize: function() {
635
+ var z = Math.max.apply(Math, this.masonry.colYs);
636
+ return {
637
+ height: z
638
+ }
639
+ },
640
+ _masonryResizeChanged: function() {
641
+ return this._checkIfSegmentsChanged()
642
+ },
643
+ _fitRowsReset: function() {
644
+ this.fitRows = {
645
+ x: 0,
646
+ y: 0,
647
+ height: 0
648
+ }
649
+ },
650
+ _fitRowsLayout: function(C) {
651
+ var z = this,
652
+ B = this.element.width(),
653
+ A = this.fitRows;
654
+ C.each(function() {
655
+ var F = f(this),
656
+ E = F.outerWidth(true),
657
+ D = F.outerHeight(true);
658
+ if (A.x !== 0 && E + A.x > B) {
659
+ A.x = 0;
660
+ A.y = A.height
661
+ }
662
+ z._pushPosition(F, A.x, A.y);
663
+ A.height = Math.max(A.y + D, A.height);
664
+ A.x += E
665
+ })
666
+ },
667
+ _fitRowsGetContainerSize: function() {
668
+ return {
669
+ height: this.fitRows.height
670
+ }
671
+ },
672
+ _fitRowsResizeChanged: function() {
673
+ return true
674
+ },
675
+ _cellsByRowReset: function() {
676
+ this.cellsByRow = {
677
+ index: 0
678
+ };
679
+ this._getSegments();
680
+ this._getSegments(true)
681
+ },
682
+ _cellsByRowLayout: function(B) {
683
+ var z = this,
684
+ A = this.cellsByRow;
685
+ B.each(function() {
686
+ var E = f(this),
687
+ D = A.index % A.cols,
688
+ F = Math.floor(A.index / A.cols),
689
+ C = (D + 0.5) * A.columnWidth - E.outerWidth(true) / 2,
690
+ G = (F + 0.5) * A.rowHeight - E.outerHeight(true) / 2;
691
+ z._pushPosition(E, C, G);
692
+ A.index++
693
+ })
694
+ },
695
+ _cellsByRowGetContainerSize: function() {
696
+ return {
697
+ height: Math.ceil(this.$filteredAtoms.length / this.cellsByRow.cols) * this.cellsByRow.rowHeight + this.offset.top
698
+ }
699
+ },
700
+ _cellsByRowResizeChanged: function() {
701
+ return this._checkIfSegmentsChanged()
702
+ },
703
+ _straightDownReset: function() {
704
+ this.straightDown = {
705
+ y: 0
706
+ }
707
+ },
708
+ _straightDownLayout: function(A) {
709
+ var z = this;
710
+ A.each(function(B) {
711
+ var C = f(this);
712
+ z._pushPosition(C, 0, z.straightDown.y);
713
+ z.straightDown.y += C.outerHeight(true)
714
+ })
715
+ },
716
+ _straightDownGetContainerSize: function() {
717
+ return {
718
+ height: this.straightDown.y
719
+ }
720
+ },
721
+ _straightDownResizeChanged: function() {
722
+ return true
723
+ },
724
+ _masonryHorizontalReset: function() {
725
+ this.masonryHorizontal = {};
726
+ this._getSegments(true);
727
+ var z = this.masonryHorizontal.rows;
728
+ this.masonryHorizontal.rowXs = [];
729
+ while (z--) {
730
+ this.masonryHorizontal.rowXs.push(0)
731
+ }
732
+ },
733
+ _masonryHorizontalLayout: function(B) {
734
+ var z = this,
735
+ A = z.masonryHorizontal;
736
+ B.each(function() {
737
+ var G = f(this),
738
+ E = Math.ceil(G.outerHeight(true) / A.rowHeight);
739
+ E = Math.min(E, A.rows);
740
+ if (E === 1) {
741
+ z._masonryHorizontalPlaceBrick(G, A.rowXs)
742
+ } else {
743
+ var H = A.rows + 1 - E,
744
+ D = [],
745
+ F, C;
746
+ for (C = 0; C < H; C++) {
747
+ F = A.rowXs.slice(C, C + E);
748
+ D[C] = Math.max.apply(Math, F)
749
+ }
750
+ z._masonryHorizontalPlaceBrick(G, D)
751
+ }
752
+ })
753
+ },
754
+ _masonryHorizontalPlaceBrick: function(C, H) {
755
+ var z = Math.min.apply(Math, H),
756
+ F = 0;
757
+ for (var B = 0, D = H.length; B < D; B++) {
758
+ if (H[B] === z) {
759
+ F = B;
760
+ break
761
+ }
762
+ }
763
+ var I = z,
764
+ G = this.masonryHorizontal.rowHeight * F;
765
+ this._pushPosition(C, I, G);
766
+ var E = z + C.outerWidth(true),
767
+ A = this.masonryHorizontal.rows + 1 - D;
768
+ for (B = 0; B < A; B++) {
769
+ this.masonryHorizontal.rowXs[F + B] = E
770
+ }
771
+ },
772
+ _masonryHorizontalGetContainerSize: function() {
773
+ var z = Math.max.apply(Math, this.masonryHorizontal.rowXs);
774
+ return {
775
+ width: z
776
+ }
777
+ },
778
+ _masonryHorizontalResizeChanged: function() {
779
+ return this._checkIfSegmentsChanged(true)
780
+ },
781
+ _fitColumnsReset: function() {
782
+ this.fitColumns = {
783
+ x: 0,
784
+ y: 0,
785
+ width: 0
786
+ }
787
+ },
788
+ _fitColumnsLayout: function(C) {
789
+ var z = this,
790
+ B = this.element.height(),
791
+ A = this.fitColumns;
792
+ C.each(function() {
793
+ var F = f(this),
794
+ E = F.outerWidth(true),
795
+ D = F.outerHeight(true);
796
+ if (A.y !== 0 && D + A.y > B) {
797
+ A.x = A.width;
798
+ A.y = 0
799
+ }
800
+ z._pushPosition(F, A.x, A.y);
801
+ A.width = Math.max(A.x + E, A.width);
802
+ A.y += D
803
+ })
804
+ },
805
+ _fitColumnsGetContainerSize: function() {
806
+ return {
807
+ width: this.fitColumns.width
808
+ }
809
+ },
810
+ _fitColumnsResizeChanged: function() {
811
+ return true
812
+ },
813
+ _cellsByColumnReset: function() {
814
+ this.cellsByColumn = {
815
+ index: 0
816
+ };
817
+ this._getSegments();
818
+ this._getSegments(true)
819
+ },
820
+ _cellsByColumnLayout: function(B) {
821
+ var z = this,
822
+ A = this.cellsByColumn;
823
+ B.each(function() {
824
+ var E = f(this),
825
+ D = Math.floor(A.index / A.rows),
826
+ F = A.index % A.rows,
827
+ C = (D + 0.5) * A.columnWidth - E.outerWidth(true) / 2,
828
+ G = (F + 0.5) * A.rowHeight - E.outerHeight(true) / 2;
829
+ z._pushPosition(E, C, G);
830
+ A.index++
831
+ })
832
+ },
833
+ _cellsByColumnGetContainerSize: function() {
834
+ return {
835
+ width: Math.ceil(this.$filteredAtoms.length / this.cellsByColumn.rows) * this.cellsByColumn.columnWidth
836
+ }
837
+ },
838
+ _cellsByColumnResizeChanged: function() {
839
+ return this._checkIfSegmentsChanged(true)
840
+ },
841
+ _straightAcrossReset: function() {
842
+ this.straightAcross = {
843
+ x: 0
844
+ }
845
+ },
846
+ _straightAcrossLayout: function(A) {
847
+ var z = this;
848
+ A.each(function(B) {
849
+ var C = f(this);
850
+ z._pushPosition(C, z.straightAcross.x, 0);
851
+ z.straightAcross.x += C.outerWidth(true)
852
+ })
853
+ },
854
+ _straightAcrossGetContainerSize: function() {
855
+ return {
856
+ width: this.straightAcross.x
857
+ }
858
+ },
859
+ _straightAcrossResizeChanged: function() {
860
+ return true
861
+ }
862
+ };;
863
+ f.fn.imagesLoaded = function(G) {
864
+ var E = this,
865
+ C = E.find("img").add(E.filter("img")),
866
+ z = C.length,
867
+ F = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",
868
+ B = [];
869
+
870
+ function D() {
871
+ G.call(E, C)
872
+ }
873
+
874
+ function A(I) {
875
+ var H = I.target;
876
+ if (H.src !== F && f.inArray(H, B) === -1) {
877
+ B.push(H);
878
+ if (--z <= 0) {
879
+ setTimeout(D);
880
+ C.unbind(".imagesLoaded", A)
881
+ }
882
+ }
883
+ }
884
+ if (!z) {
885
+ D()
886
+ }
887
+ C.bind("load.imagesLoaded error.imagesLoaded", A).each(function() {
888
+ var H = this.src;
889
+ this.src = F;
890
+ this.src = H
891
+ });
892
+ return E
893
+ };
894
+ var x = function(z) {
895
+ if (n.console) {
896
+ n.console.error(z)
897
+ }
898
+ };
899
+ f.fn.isotope = function(A, B) {
900
+ if (typeof A === "string") {
901
+ var z = Array.prototype.slice.call(arguments, 1);
902
+ this.each(function() {
903
+ var C = f.data(this, "isotope");
904
+ if (!C) {
905
+ x("cannot call methods on isotope prior to initialization; attempted to call method '" + A + "'");
906
+ return
907
+ }
908
+ if (!f.isFunction(C[A]) || A.charAt(0) === "_") {
909
+ x("no such method '" + A + "' for isotope instance");
910
+ return
911
+ }
912
+ C[A].apply(C, z)
913
+ })
914
+ } else {
915
+ this.each(function() {
916
+ var C = f.data(this, "isotope");
917
+ if (C) {
918
+ C.option(A);
919
+ C._init(B)
920
+ } else {
921
+ f.data(this, "isotope", new f.Isotope(A, this, B))
922
+ }
923
+ })
924
+ }
925
+ return this
926
+ }
927
+ })(window, jQuery);
928
  // Isoptope custom extensions and methods.
929
+ jQuery.Isotope.prototype._getMasonryGutterColumns = function() {
930
+ var a = this.options.masonry && this.options.masonry.gutterWidth || 0;
931
+ containerWidth = this.element.width();
932
+ this.masonry.columnWidth = this.options.masonry && this.options.masonry.columnWidth || this.$filteredAtoms.outerWidth(true) || containerWidth;
933
+ this.masonry.columnWidth += a;
934
+ this.masonry.cols = Math.floor((containerWidth + a) / this.masonry.columnWidth);
935
+ this.masonry.cols = Math.max(this.masonry.cols, 1)
936
+ };
937
+ jQuery.Isotope.prototype._masonryReset = function() {
938
+ this.masonry = {};
939
+ this._getMasonryGutterColumns();
940
+ var a = this.masonry.cols;
941
+ this.masonry.colYs = [];
942
+ while (a--) {
943
+ this.masonry.colYs.push(0)
944
+ }
945
+ };
946
+ jQuery.Isotope.prototype._masonryResizeChanged = function() {
947
+ var a = this.masonry.cols;
948
+ this._getMasonryGutterColumns();
949
+ return (this.masonry.cols !== a)
950
+ };
951
  // Fancybox v1.3.4
952
+ (function(B) {
953
+ var L, T, Q, M, d, m, J, A, O, z, C = 0,
954
+ H = {}, j = [],
955
+ e = 0,
956
+ G = {}, y = [],
957
+ f = null,
958
+ o = new Image(),
959
+ i = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,
960
+ k = /[^\.]\.(swf)\s*$/i,
961
+ p, N = 1,
962
+ h = 0,
963
+ t = "",
964
+ b, c, P = false,
965
+ s = B.extend(B("<div/>")[0], {
966
+ prop: 0
967
+ }),
968
+ S = B.browser.msie && B.browser.version < 7 && !window.XMLHttpRequest,
969
+ r = function() {
970
+ T.hide();
971
+ o.onerror = o.onload = null;
972
+ if (f) {
973
+ f.abort()
974
+ }
975
+ L.empty()
976
+ }, x = function() {
977
+ if (false === H.onError(j, C, H)) {
978
+ T.hide();
979
+ P = false;
980
+ return
981
+ }
982
+ H.titleShow = false;
983
+ H.width = "auto";
984
+ H.height = "auto";
985
+ L.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');
986
+ n()
987
+ }, w = function() {
988
+ var Z = j[C],
989
+ W, Y, ab, aa, V, X;
990
+ r();
991
+ H = B.extend({}, B.fn.fancybox.defaults, (typeof B(Z).data("fancybox") == "undefined" ? H : B(Z).data("fancybox")));
992
+ X = H.onStart(j, C, H);
993
+ if (X === false) {
994
+ P = false;
995
+ return
996
+ } else {
997
+ if (typeof X == "object") {
998
+ H = B.extend(H, X)
999
+ }
1000
+ }
1001
+ ab = H.title || (Z.nodeName ? B(Z).attr("title") : Z.title) || "";
1002
+ if (Z.nodeName && !H.orig) {
1003
+ H.orig = B(Z).children("img:first").length ? B(Z).children("img:first") : B(Z)
1004
+ }
1005
+ if (ab === "" && H.orig && H.titleFromAlt) {
1006
+ ab = H.orig.attr("alt")
1007
+ }
1008
+ W = H.href || (Z.nodeName ? B(Z).attr("href") : Z.href) || null;
1009
+ if ((/^(?:javascript)/i).test(W) || W == "#") {
1010
+ W = null
1011
+ }
1012
+ if (H.type) {
1013
+ Y = H.type;
1014
+ if (!W) {
1015
+ W = H.content
1016
+ }
1017
+ } else {
1018
+ if (H.content) {
1019
+ Y = "html"
1020
+ } else {
1021
+ if (W) {
1022
+ if (W.match(i)) {
1023
+ Y = "image"
1024
+ } else {
1025
+ if (W.match(k)) {
1026
+ Y = "swf"
1027
+ } else {
1028
+ if (B(Z).hasClass("iframe")) {
1029
+ Y = "iframe"
1030
+ } else {
1031
+ if (W.indexOf("#") === 0) {
1032
+ Y = "inline"
1033
+ } else {
1034
+ Y = "ajax"
1035
+ }
1036
+ }
1037
+ }
1038
+ }
1039
+ }
1040
+ }
1041
+ } if (!Y) {
1042
+ x();
1043
+ return
1044
+ }
1045
+ if (Y == "inline") {
1046
+ Z = W.substr(W.indexOf("#"));
1047
+ Y = B(Z).length > 0 ? "inline" : "ajax"
1048
+ }
1049
+ H.type = Y;
1050
+ H.href = W;
1051
+ H.title = ab;
1052
+ if (H.autoDimensions) {
1053
+ if (H.type == "html" || H.type == "inline" || H.type == "ajax") {
1054
+ H.width = "auto";
1055
+ H.height = "auto"
1056
+ } else {
1057
+ H.autoDimensions = false
1058
+ }
1059
+ }
1060
+ if (H.modal) {
1061
+ H.overlayShow = true;
1062
+ H.hideOnOverlayClick = false;
1063
+ H.hideOnContentClick = false;
1064
+ H.enableEscapeButton = false;
1065
+ H.showCloseButton = false
1066
+ }
1067
+ H.padding = parseInt(H.padding, 10);
1068
+ H.margin = parseInt(H.margin, 10);
1069
+ L.css("padding", (H.padding + H.margin));
1070
+ B(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change", function() {
1071
+ B(this).replaceWith(m.children())
1072
+ });
1073
+ switch (Y) {
1074
+ case "html":
1075
+ L.html(H.content);
1076
+ n();
1077
+ break;
1078
+ case "inline":
1079
+ if (B(Z).parent().is("#fancybox-content") === true) {
1080
+ P = false;
1081
+ return
1082
+ }
1083
+ B('<div class="fancybox-inline-tmp" />').hide().insertBefore(B(Z)).bind("fancybox-cleanup", function() {
1084
+ B(this).replaceWith(m.children())
1085
+ }).bind("fancybox-cancel", function() {
1086
+ B(this).replaceWith(L.children())
1087
+ });
1088
+ B(Z).appendTo(L);
1089
+ n();
1090
+ break;
1091
+ case "image":
1092
+ P = false;
1093
+ B.fancybox.showActivity();
1094
+ o = new Image();
1095
+ o.onerror = function() {
1096
+ x()
1097
+ };
1098
+ o.onload = function() {
1099
+ P = true;
1100
+ o.onerror = o.onload = null;
1101
+ F()
1102
+ };
1103
+ o.src = W;
1104
+ break;
1105
+ case "swf":
1106
+ H.scrolling = "no";
1107
+ aa = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + H.width + '" height="' + H.height + '"><param name="movie" value="' + W + '"></param>';
1108
+ V = "";
1109
+ B.each(H.swf, function(ac, ad) {
1110
+ aa += '<param name="' + ac + '" value="' + ad + '"></param>';
1111
+ V += " " + ac + '="' + ad + '"'
1112
+ });
1113
+ aa += '<embed src="' + W + '" type="application/x-shockwave-flash" width="' + H.width + '" height="' + H.height + '"' + V + "></embed></object>";
1114
+ L.html(aa);
1115
+ n();
1116
+ break;
1117
+ case "ajax":
1118
+ P = false;
1119
+ B.fancybox.showActivity();
1120
+ H.ajax.win = H.ajax.success;
1121
+ f = B.ajax(B.extend({}, H.ajax, {
1122
+ url: W,
1123
+ data: H.ajax.data || {},
1124
+ error: function(ac, ae, ad) {
1125
+ if (ac.status > 0) {
1126
+ x()
1127
+ }
1128
+ },
1129
+ success: function(ad, af, ac) {
1130
+ var ae = typeof ac == "object" ? ac : f;
1131
+ if (ae.status == 200) {
1132
+ if (typeof H.ajax.win == "function") {
1133
+ X = H.ajax.win(W, ad, af, ac);
1134
+ if (X === false) {
1135
+ T.hide();
1136
+ return
1137
+ } else {
1138
+ if (typeof X == "string" || typeof X == "object") {
1139
+ ad = X
1140
+ }
1141
+ }
1142
+ }
1143
+ L.html(ad);
1144
+ n()
1145
+ }
1146
+ }
1147
+ }));
1148
+ break;
1149
+ case "iframe":
1150
+ E();
1151
+ break
1152
+ }
1153
+ }, n = function() {
1154
+ var V = H.width,
1155
+ W = H.height;
1156
+ if (V.toString().indexOf("%") > -1) {
1157
+ V = parseInt((B(window).width() - (H.margin * 2)) * parseFloat(V) / 100, 10) + "px"
1158
+ } else {
1159
+ V = V == "auto" ? "auto" : V + "px"
1160
+ } if (W.toString().indexOf("%") > -1) {
1161
+ W = parseInt((B(window).height() - (H.margin * 2)) * parseFloat(W) / 100, 10) + "px"
1162
+ } else {
1163
+ W = W == "auto" ? "auto" : W + "px"
1164
+ }
1165
+ L.wrapInner('<div style="width:' + V + ";height:" + W + ";overflow: " + (H.scrolling == "auto" ? "auto" : (H.scrolling == "yes" ? "scroll" : "hidden")) + ';position:relative;"></div>');
1166
+ H.width = L.width();
1167
+ H.height = L.height();
1168
+ E()
1169
+ }, F = function() {
1170
+ H.width = o.width;
1171
+ H.height = o.height;
1172
+ B("<img />").attr({
1173
+ id: "fancybox-img",
1174
+ src: o.src,
1175
+ alt: H.title
1176
+ }).appendTo(L);
1177
+ E()
1178
+ }, E = function() {
1179
+ var W, V;
1180
+ T.hide();
1181
+ if (M.is(":visible") && false === G.onCleanup(y, e, G)) {
1182
+ B.event.trigger("fancybox-cancel");
1183
+ P = false;
1184
+ return
1185
+ }
1186
+ P = true;
1187
+ B(m.add(Q)).unbind();
1188
+ B(window).unbind("resize.fb scroll.fb");
1189
+ B(document).unbind("keydown.fb");
1190
+ if (M.is(":visible") && G.titlePosition !== "outside") {
1191
+ M.css("height", M.height())
1192
+ }
1193
+ y = j;
1194
+ e = C;
1195
+ G = H;
1196
+ if (G.overlayShow) {
1197
+ Q.css({
1198
+ "background-color": G.overlayColor,
1199
+ opacity: G.overlayOpacity,
1200
+ cursor: G.hideOnOverlayClick ? "pointer" : "auto",
1201
+ height: B(document).height()
1202
+ });
1203
+ if (!Q.is(":visible")) {
1204
+ if (S) {
1205
+ B("select:not(#fancybox-tmp select)").filter(function() {
1206
+ return this.style.visibility !== "hidden"
1207
+ }).css({
1208
+ visibility: "hidden"
1209
+ }).one("fancybox-cleanup", function() {
1210
+ this.style.visibility = "inherit"
1211
+ })
1212
+ }
1213
+ Q.show()
1214
+ }
1215
+ } else {
1216
+ Q.hide()
1217
+ }
1218
+ c = R();
1219
+ l();
1220
+ if (M.is(":visible")) {
1221
+ B(J.add(O).add(z)).hide();
1222
+ W = M.position(), b = {
1223
+ top: W.top,
1224
+ left: W.left,
1225
+ width: M.width(),
1226
+ height: M.height()
1227
+ };
1228
+ V = (b.width == c.width && b.height == c.height);
1229
+ m.fadeTo(G.changeFade, 0.3, function() {
1230
+ var X = function() {
1231
+ m.html(L.contents()).fadeTo(G.changeFade, 1, v)
1232
+ };
1233
+ B.event.trigger("fancybox-change");
1234
+ m.empty().removeAttr("filter").css({
1235
+ "border-width": G.padding,
1236
+ width: c.width - G.padding * 2,
1237
+ height: H.autoDimensions ? "auto" : c.height - h - G.padding * 2
1238
+ });
1239
+ if (V) {
1240
+ X()
1241
+ } else {
1242
+ s.prop = 0;
1243
+ B(s).animate({
1244
+ prop: 1
1245
+ }, {
1246
+ duration: G.changeSpeed,
1247
+ easing: G.easingChange,
1248
+ step: U,
1249
+ complete: X
1250
+ })
1251
+ }
1252
+ });
1253
+ return
1254
+ }
1255
+ M.removeAttr("style");
1256
+ m.css("border-width", G.padding);
1257
+ if (G.transitionIn == "elastic") {
1258
+ b = I();
1259
+ m.html(L.contents());
1260
+ M.show();
1261
+ if (G.opacity) {
1262
+ c.opacity = 0
1263
+ }
1264
+ s.prop = 0;
1265
+ B(s).animate({
1266
+ prop: 1
1267
+ }, {
1268
+ duration: G.speedIn,
1269
+ easing: G.easingIn,
1270
+ step: U,
1271
+ complete: v
1272
+ });
1273
+ return
1274
+ }
1275
+ if (G.titlePosition == "inside" && h > 0) {
1276
+ A.show()
1277
+ }
1278
+ m.css({
1279
+ width: c.width - G.padding * 2,
1280
+ height: H.autoDimensions ? "auto" : c.height - h - G.padding * 2
1281
+ }).html(L.contents());
1282
+ M.css(c).fadeIn(G.transitionIn == "none" ? 0 : G.speedIn, v)
1283
+ }, D = function(V) {
1284
+ if (V && V.length) {
1285
+ if (G.titlePosition == "float") {
1286
+ return '<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">' + V + '</td><td id="fancybox-title-float-right"></td></tr></table>'
1287
+ }
1288
+ return '<div id="fancybox-title-' + G.titlePosition + '">' + V + "</div>"
1289
+ }
1290
+ return false
1291
+ }, l = function() {
1292
+ t = G.title || "";
1293
+ h = 0;
1294
+ A.empty().removeAttr("style").removeClass();
1295
+ if (G.titleShow === false) {
1296
+ A.hide();
1297
+ return
1298
+ }
1299
+ t = B.isFunction(G.titleFormat) ? G.titleFormat(t, y, e, G) : D(t);
1300
+ if (!t || t === "") {
1301
+ A.hide();
1302
+ return
1303
+ }
1304
+ A.addClass("fancybox-title-" + G.titlePosition).html(t).appendTo("body").show();
1305
+ switch (G.titlePosition) {
1306
+ case "inside":
1307
+ A.css({
1308
+ width: c.width - (G.padding * 2),
1309
+ marginLeft: G.padding,
1310
+ marginRight: G.padding
1311
+ });
1312
+ h = A.outerHeight(true);
1313
+ A.appendTo(d);
1314
+ c.height += h;
1315
+ break;
1316
+ case "over":
1317
+ A.css({
1318
+ marginLeft: G.padding,
1319
+ width: c.width - (G.padding * 2),
1320
+ bottom: G.padding
1321
+ }).appendTo(d);
1322
+ break;
1323
+ case "float":
1324
+ A.css("left", parseInt((A.width() - c.width - 40) / 2, 10) * -1).appendTo(M);
1325
+ break;
1326
+ default:
1327
+ A.css({
1328
+ width: c.width - (G.padding * 2),
1329
+ paddingLeft: G.padding,
1330
+ paddingRight: G.padding
1331
+ }).appendTo(M);
1332
+ break
1333
+ }
1334
+ A.hide()
1335
+ }, g = function() {
1336
+ if (G.enableEscapeButton || G.enableKeyboardNav) {
1337
+ B(document).bind("keydown.fb", function(V) {
1338
+ if (V.keyCode == 27 && G.enableEscapeButton) {
1339
+ V.preventDefault();
1340
+ B.fancybox.close()
1341
+ } else {
1342
+ if ((V.keyCode == 37 || V.keyCode == 39) && G.enableKeyboardNav && V.target.tagName !== "INPUT" && V.target.tagName !== "TEXTAREA" && V.target.tagName !== "SELECT") {
1343
+ V.preventDefault();
1344
+ B.fancybox[V.keyCode == 37 ? "prev" : "next"]()
1345
+ }
1346
+ }
1347
+ })
1348
+ }
1349
+ if (!G.showNavArrows) {
1350
+ O.hide();
1351
+ z.hide();
1352
+ return
1353
+ }
1354
+ if ((G.cyclic && y.length > 1) || e !== 0) {
1355
+ O.show()
1356
+ }
1357
+ if ((G.cyclic && y.length > 1) || e != (y.length - 1)) {
1358
+ z.show()
1359
+ }
1360
+ }, v = function() {
1361
+ if (!B.support.opacity) {
1362
+ m.get(0).style.removeAttribute("filter");
1363
+ M.get(0).style.removeAttribute("filter")
1364
+ }
1365
+ if (H.autoDimensions) {
1366
+ m.css("height", "auto")
1367
+ }
1368
+ M.css("height", "auto");
1369
+ if (t && t.length) {
1370
+ A.show()
1371
+ }
1372
+ if (G.showCloseButton) {
1373
+ J.show()
1374
+ }
1375
+ g();
1376
+ if (G.hideOnContentClick) {
1377
+ m.bind("click", B.fancybox.close)
1378
+ }
1379
+ if (G.hideOnOverlayClick) {
1380
+ Q.bind("click", B.fancybox.close)
1381
+ }
1382
+ B(window).bind("resize.fb", B.fancybox.resize);
1383
+ if (G.centerOnScroll) {
1384
+ B(window).bind("scroll.fb", B.fancybox.center)
1385
+ }
1386
+ if (G.type == "iframe") {
1387
+ B('<iframe id="fancybox-frame" name="fancybox-frame' + new Date().getTime() + '" frameborder="0" hspace="0" ' + (B.browser.msie ? 'allowtransparency="true""' : "") + ' scrolling="' + H.scrolling + '" src="' + G.href + '"></iframe>').appendTo(m)
1388
+ }
1389
+ M.show();
1390
+ P = false;
1391
+ B.fancybox.center();
1392
+ G.onComplete(y, e, G);
1393
+ K()
1394
+ }, K = function() {
1395
+ var V, W;
1396
+ if ((y.length - 1) > e) {
1397
+ V = y[e + 1].href;
1398
+ if (typeof V !== "undefined" && V.match(i)) {
1399
+ W = new Image();
1400
+ W.src = V
1401
+ }
1402
+ }
1403
+ if (e > 0) {
1404
+ V = y[e - 1].href;
1405
+ if (typeof V !== "undefined" && V.match(i)) {
1406
+ W = new Image();
1407
+ W.src = V
1408
+ }
1409
+ }
1410
+ }, U = function(W) {
1411
+ var V = {
1412
+ width: parseInt(b.width + (c.width - b.width) * W, 10),
1413
+ height: parseInt(b.height + (c.height - b.height) * W, 10),
1414
+ top: parseInt(b.top + (c.top - b.top) * W, 10),
1415
+ left: parseInt(b.left + (c.left - b.left) * W, 10)
1416
+ };
1417
+ if (typeof c.opacity !== "undefined") {
1418
+ V.opacity = W < 0.5 ? 0.5 : W
1419
+ }
1420
+ M.css(V);
1421
+ m.css({
1422
+ width: V.width - G.padding * 2,
1423
+ height: V.height - (h * W) - G.padding * 2
1424
+ })
1425
+ }, u = function() {
1426
+ return [B(window).width() - (G.margin * 2), B(window).height() - (G.margin * 2), B(document).scrollLeft() + G.margin, B(document).scrollTop() + G.margin]
1427
+ }, R = function() {
1428
+ var V = u(),
1429
+ Z = {}, W = G.autoScale,
1430
+ X = G.padding * 2,
1431
+ Y;
1432
+ if (G.width.toString().indexOf("%") > -1) {
1433
+ Z.width = parseInt((V[0] * parseFloat(G.width)) / 100, 10)
1434
+ } else {
1435
+ Z.width = G.width + X
1436
+ } if (G.height.toString().indexOf("%") > -1) {
1437
+ Z.height = parseInt((V[1] * parseFloat(G.height)) / 100, 10)
1438
+ } else {
1439
+ Z.height = G.height + X
1440
+ } if (W && (Z.width > V[0] || Z.height > V[1])) {
1441
+ if (H.type == "image" || H.type == "swf") {
1442
+ Y = (G.width) / (G.height);
1443
+ if ((Z.width) > V[0]) {
1444
+ Z.width = V[0];
1445
+ Z.height = parseInt(((Z.width - X) / Y) + X, 10)
1446
+ }
1447
+ if ((Z.height) > V[1]) {
1448
+ Z.height = V[1];
1449
+ Z.width = parseInt(((Z.height - X) * Y) + X, 10)
1450
+ }
1451
+ } else {
1452
+ Z.width = Math.min(Z.width, V[0]);
1453
+ Z.height = Math.min(Z.height, V[1])
1454
+ }
1455
+ }
1456
+ Z.top = parseInt(Math.max(V[3] - 20, V[3] + ((V[1] - Z.height - 40) * 0.5)), 10);
1457
+ Z.left = parseInt(Math.max(V[2] - 20, V[2] + ((V[0] - Z.width - 40) * 0.5)), 10);
1458
+ return Z
1459
+ }, q = function(V) {
1460
+ var W = V.offset();
1461
+ W.top += parseInt(V.css("paddingTop"), 10) || 0;
1462
+ W.left += parseInt(V.css("paddingLeft"), 10) || 0;
1463
+ W.top += parseInt(V.css("border-top-width"), 10) || 0;
1464
+ W.left += parseInt(V.css("border-left-width"), 10) || 0;
1465
+ W.width = V.width();
1466
+ W.height = V.height();
1467
+ return W
1468
+ }, I = function() {
1469
+ var Y = H.orig ? B(H.orig) : false,
1470
+ X = {}, W, V;
1471
+ if (Y && Y.length) {
1472
+ W = q(Y);
1473
+ X = {
1474
+ width: W.width + (G.padding * 2),
1475
+ height: W.height + (G.padding * 2),
1476
+ top: W.top - G.padding - 20,
1477
+ left: W.left - G.padding - 20
1478
+ }
1479
+ } else {
1480
+ V = u();
1481
+ X = {
1482
+ width: G.padding * 2,
1483
+ height: G.padding * 2,
1484
+ top: parseInt(V[3] + V[1] * 0.5, 10),
1485
+ left: parseInt(V[2] + V[0] * 0.5, 10)
1486
+ }
1487
+ }
1488
+ return X
1489
+ }, a = function() {
1490
+ if (!T.is(":visible")) {
1491
+ clearInterval(p);
1492
+ return
1493
+ }
1494
+ B("div", T).css("top", (N * -40) + "px");
1495
+ N = (N + 1) % 12
1496
+ };
1497
+ B.fn.fancybox = function(V) {
1498
+ if (!B(this).length) {
1499
+ return this
1500
+ }
1501
+ B(this).data("fancybox", B.extend({}, V, (B.metadata ? B(this).metadata() : {}))).unbind("click.fb").bind("click.fb", function(X) {
1502
+ X.preventDefault();
1503
+ if (P) {
1504
+ return
1505
+ }
1506
+ P = true;
1507
+ B(this).blur();
1508
+ j = [];
1509
+ C = 0;
1510
+ var W = B(this).attr("rel") || "";
1511
+ if (!W || W == "" || W === "nofollow") {
1512
+ j.push(this)
1513
+ } else {
1514
+ j = B("a[rel=" + W + "], area[rel=" + W + "]");
1515
+ C = j.index(this)
1516
+ }
1517
+ w();
1518
+ return
1519
+ });
1520
+ return this
1521
+ };
1522
+ B.fancybox = function(Y) {
1523
+ var X;
1524
+ if (P) {
1525
+ return
1526
+ }
1527
+ P = true;
1528
+ X = typeof arguments[1] !== "undefined" ? arguments[1] : {};
1529
+ j = [];
1530
+ C = parseInt(X.index, 10) || 0;
1531
+ if (B.isArray(Y)) {
1532
+ for (var W = 0, V = Y.length; W < V; W++) {
1533
+ if (typeof Y[W] == "object") {
1534
+ B(Y[W]).data("fancybox", B.extend({}, X, Y[W]))
1535
+ } else {
1536
+ Y[W] = B({}).data("fancybox", B.extend({
1537
+ content: Y[W]
1538
+ }, X))
1539
+ }
1540
+ }
1541
+ j = jQuery.merge(j, Y)
1542
+ } else {
1543
+ if (typeof Y == "object") {
1544
+ B(Y).data("fancybox", B.extend({}, X, Y))
1545
+ } else {
1546
+ Y = B({}).data("fancybox", B.extend({
1547
+ content: Y
1548
+ }, X))
1549
+ }
1550
+ j.push(Y)
1551
+ } if (C > j.length || C < 0) {
1552
+ C = 0
1553
+ }
1554
+ w()
1555
+ };
1556
+ B.fancybox.showActivity = function() {
1557
+ clearInterval(p);
1558
+ T.show();
1559
+ p = setInterval(a, 66)
1560
+ };
1561
+ B.fancybox.hideActivity = function() {
1562
+ T.hide()
1563
+ };
1564
+ B.fancybox.next = function() {
1565
+ return B.fancybox.pos(e + 1)
1566
+ };
1567
+ B.fancybox.prev = function() {
1568
+ return B.fancybox.pos(e - 1)
1569
+ };
1570
+ B.fancybox.pos = function(V) {
1571
+ if (P) {
1572
+ return
1573
+ }
1574
+ V = parseInt(V);
1575
+ j = y;
1576
+ if (V > -1 && V < y.length) {
1577
+ C = V;
1578
+ w()
1579
+ } else {
1580
+ if (G.cyclic && y.length > 1) {
1581
+ C = V >= y.length ? 0 : y.length - 1;
1582
+ w()
1583
+ }
1584
+ }
1585
+ return
1586
+ };
1587
+ B.fancybox.cancel = function() {
1588
+ if (P) {
1589
+ return
1590
+ }
1591
+ P = true;
1592
+ B.event.trigger("fancybox-cancel");
1593
+ r();
1594
+ H.onCancel(j, C, H);
1595
+ P = false
1596
+ };
1597
+ B.fancybox.close = function() {
1598
+ if (P || M.is(":hidden")) {
1599
+ return
1600
+ }
1601
+ P = true;
1602
+ if (G && false === G.onCleanup(y, e, G)) {
1603
+ P = false;
1604
+ return
1605
+ }
1606
+ r();
1607
+ B(J.add(O).add(z)).hide();
1608
+ B(m.add(Q)).unbind();
1609
+ B(window).unbind("resize.fb scroll.fb");
1610
+ B(document).unbind("keydown.fb");
1611
+ m.find("iframe").attr("src", S && /^https/i.test(window.location.href || "") ? "javascript:void(false)" : "about:blank");
1612
+ if (G.titlePosition !== "inside") {
1613
+ A.empty()
1614
+ }
1615
+ M.stop();
1616
+
1617
+ function V() {
1618
+ Q.fadeOut("fast");
1619
+ A.empty().hide();
1620
+ M.hide();
1621
+ B.event.trigger("fancybox-cleanup");
1622
+ m.empty();
1623
+ G.onClosed(y, e, G);
1624
+ y = H = [];
1625
+ e = C = 0;
1626
+ G = H = {};
1627
+ P = false
1628
+ }
1629
+ if (G.transitionOut == "elastic") {
1630
+ b = I();
1631
+ var W = M.position();
1632
+ c = {
1633
+ top: W.top,
1634
+ left: W.left,
1635
+ width: M.width(),
1636
+ height: M.height()
1637
+ };
1638
+ if (G.opacity) {
1639
+ c.opacity = 1
1640
+ }
1641
+ A.empty().hide();
1642
+ s.prop = 1;
1643
+ B(s).animate({
1644
+ prop: 0
1645
+ }, {
1646
+ duration: G.speedOut,
1647
+ easing: G.easingOut,
1648
+ step: U,
1649
+ complete: V
1650
+ })
1651
+ } else {
1652
+ M.fadeOut(G.transitionOut == "none" ? 0 : G.speedOut, V)
1653
+ }
1654
+ };
1655
+ B.fancybox.resize = function() {
1656
+ if (Q.is(":visible")) {
1657
+ Q.css("height", B(document).height())
1658
+ }
1659
+ var W, V;
1660
+ c = R();
1661
+ l();
1662
+ A.show();
1663
+ W = M.position(), b = {
1664
+ top: W.top,
1665
+ left: W.left,
1666
+ width: M.width(),
1667
+ height: M.height()
1668
+ };
1669
+ V = (b.width == c.width && b.height == c.height);
1670
+ if (V) {} else {
1671
+ s.prop = 0;
1672
+ B(s).animate({
1673
+ prop: 1
1674
+ }, {
1675
+ duration: G.changeSpeed,
1676
+ easing: G.easingChange,
1677
+ step: U
1678
+ })
1679
+ }
1680
+ m.css({
1681
+ width: c.width - G.padding * 2,
1682
+ height: H.autoDimensions ? "auto" : c.height - h - G.padding * 2
1683
+ });
1684
+ M.css(c);
1685
+ B.fancybox.center(true)
1686
+ };
1687
+ B.fancybox.center = function() {
1688
+ var V, W;
1689
+ if (P) {
1690
+ return
1691
+ }
1692
+ W = arguments[0] === true ? 1 : 0;
1693
+ V = u();
1694
+ if (!W && (M.width() > V[0] || M.height() > V[1])) {
1695
+ return
1696
+ }
1697
+ M.stop().animate({
1698
+ top: parseInt(Math.max(V[3] - 20, V[3] + ((V[1] - m.height() - 40) * 0.5) - G.padding)),
1699
+ left: parseInt(Math.max(V[2] - 20, V[2] + ((V[0] - m.width() - 40) * 0.5) - G.padding))
1700
+ }, typeof arguments[0] == "number" ? arguments[0] : 200)
1701
+ };
1702
+ B.fancybox.init = function() {
1703
+ if (B("#fancybox-wrap").length) {
1704
+ return
1705
+ }
1706
+ B("body").append(L = B('<div id="fancybox-tmp"></div>'), T = B('<div id="fancybox-loading"><div></div></div>'), Q = B('<div id="fancybox-overlay"></div>'), M = B('<div id="fancybox-wrap"></div>'));
1707
+ d = B('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(M);
1708
+ d.append(m = B('<div id="fancybox-content"></div>'), J = B('<a id="fancybox-close"></a>'), A = B('<div id="fancybox-title"></div>'), O = B('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'), z = B('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));
1709
+ J.click(B.fancybox.close);
1710
+ T.click(B.fancybox.cancel);
1711
+ O.click(function(V) {
1712
+ V.preventDefault();
1713
+ B.fancybox.prev()
1714
+ });
1715
+ z.click(function(V) {
1716
+ V.preventDefault();
1717
+ B.fancybox.next()
1718
+ });
1719
+ if (B.fn.mousewheel) {
1720
+ M.bind("mousewheel.fb", function(V, W) {
1721
+ if (P) {
1722
+ V.preventDefault()
1723
+ } else {
1724
+ if (B(V.target).get(0).clientHeight == 0 || B(V.target).get(0).scrollHeight === B(V.target).get(0).clientHeight) {
1725
+ V.preventDefault();
1726
+ B.fancybox[W > 0 ? "prev" : "next"]()
1727
+ }
1728
+ }
1729
+ })
1730
+ }
1731
+ if (!B.support.opacity) {
1732
+ M.addClass("fancybox-ie")
1733
+ }
1734
+ if (S) {
1735
+ T.addClass("fancybox-ie6");
1736
+ M.addClass("fancybox-ie6");
1737
+ B('<iframe id="fancybox-hide-sel-frame" src="' + (/^https/i.test(window.location.href || "") ? "javascript:void(false)" : "about:blank") + '" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(d)
1738
+ }
1739
+ };
1740
+ B.fn.fancybox.defaults = {
1741
+ padding: 10,
1742
+ margin: 40,
1743
+ opacity: false,
1744
+ modal: false,
1745
+ cyclic: false,
1746
+ scrolling: "auto",
1747
+ width: 560,
1748
+ height: 340,
1749
+ autoScale: true,
1750
+ autoDimensions: true,
1751
+ centerOnScroll: false,
1752
+ ajax: {},
1753
+ swf: {
1754
+ wmode: "transparent"
1755
+ },
1756
+ hideOnOverlayClick: true,
1757
+ hideOnContentClick: false,
1758
+ overlayShow: true,
1759
+ overlayOpacity: 0.7,
1760
+ overlayColor: "#777",
1761
+ titleShow: true,
1762
+ titlePosition: "float",
1763
+ titleFormat: null,
1764
+ titleFromAlt: false,
1765
+ transitionIn: "fade",
1766
+ transitionOut: "fade",
1767
+ speedIn: 300,
1768
+ speedOut: 300,
1769
+ changeSpeed: 300,
1770
+ changeFade: "fast",
1771
+ easingIn: "swing",
1772
+ easingOut: "swing",
1773
+ showCloseButton: true,
1774
+ showNavArrows: true,
1775
+ enableEscapeButton: true,
1776
+ enableKeyboardNav: true,
1777
+ onStart: function() {},
1778
+ onCancel: function() {},
1779
+ onComplete: function() {},
1780
+ onCleanup: function() {},
1781
+ onClosed: function() {},
1782
+ onError: function() {}
1783
+ };
1784
+ B(document).ready(function() {
1785
+ B.fancybox.init()
1786
+ })
1787
+ })(jQuery);
1788
  /*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)
1789
  * Licensed under the MIT License (LICENSE.txt).
1790
  *
1792
  *
1793
  * Requires: jQuery 1.2.2+
1794
  */
1795
+ (function(a) {
1796
+ if (typeof define === "function" && define.amd) {
1797
+ define(["jquery"], a)
1798
+ } else {
1799
+ if (typeof exports === "object") {
1800
+ module.exports = a
1801
+ } else {
1802
+ a(jQuery)
1803
+ }
1804
+ }
1805
+ }(function(c) {
1806
+ var d = ["wheel", "mousewheel", "DOMMouseScroll", "MozMousePixelScroll"],
1807
+ k = ("onwheel" in document || document.documentMode >= 9) ? ["wheel"] : ["mousewheel", "DomMouseScroll", "MozMousePixelScroll"],
1808
+ h = Array.prototype.slice,
1809
+ j, b;
1810
+ if (c.event.fixHooks) {
1811
+ for (var e = d.length; e;) {
1812
+ c.event.fixHooks[d[--e]] = c.event.mouseHooks
1813
+ }
1814
+ }
1815
+ var f = c.event.special.mousewheel = {
1816
+ version: "3.1.9",
1817
+ setup: function() {
1818
+ if (this.addEventListener) {
1819
+ for (var m = k.length; m;) {
1820
+ this.addEventListener(k[--m], l, false)
1821
+ }
1822
+ } else {
1823
+ this.onmousewheel = l
1824
+ }
1825
+ c.data(this, "mousewheel-line-height", f.getLineHeight(this));
1826
+ c.data(this, "mousewheel-page-height", f.getPageHeight(this))
1827
+ },
1828
+ teardown: function() {
1829
+ if (this.removeEventListener) {
1830
+ for (var m = k.length; m;) {
1831
+ this.removeEventListener(k[--m], l, false)
1832
+ }
1833
+ } else {
1834
+ this.onmousewheel = null
1835
+ }
1836
+ },
1837
+ getLineHeight: function(i) {
1838
+ return parseInt(c(i)["offsetParent" in c.fn ? "offsetParent" : "parent"]().css("fontSize"), 10)
1839
+ },
1840
+ getPageHeight: function(i) {
1841
+ return c(i).height()
1842
+ },
1843
+ settings: {
1844
+ adjustOldDeltas: true
1845
+ }
1846
+ };
1847
+ c.fn.extend({
1848
+ mousewheel: function(i) {
1849
+ return i ? this.bind("mousewheel", i) : this.trigger("mousewheel")
1850
+ },
1851
+ unmousewheel: function(i) {
1852
+ return this.unbind("mousewheel", i)
1853
+ }
1854
+ });
1855
+
1856
+ function l(i) {
1857
+ var n = i || window.event,
1858
+ r = h.call(arguments, 1),
1859
+ t = 0,
1860
+ p = 0,
1861
+ o = 0,
1862
+ q = 0;
1863
+ i = c.event.fix(n);
1864
+ i.type = "mousewheel";
1865
+ if ("detail" in n) {
1866
+ o = n.detail * -1
1867
+ }
1868
+ if ("wheelDelta" in n) {
1869
+ o = n.wheelDelta
1870
+ }
1871
+ if ("wheelDeltaY" in n) {
1872
+ o = n.wheelDeltaY
1873
+ }
1874
+ if ("wheelDeltaX" in n) {
1875
+ p = n.wheelDeltaX * -1
1876
+ }
1877
+ if ("axis" in n && n.axis === n.HORIZONTAL_AXIS) {
1878
+ p = o * -1;
1879
+ o = 0
1880
+ }
1881
+ t = o === 0 ? p : o;
1882
+ if ("deltaY" in n) {
1883
+ o = n.deltaY * -1;
1884
+ t = o
1885
+ }
1886
+ if ("deltaX" in n) {
1887
+ p = n.deltaX;
1888
+ if (o === 0) {
1889
+ t = p * -1
1890
+ }
1891
+ }
1892
+ if (o === 0 && p === 0) {
1893
+ return
1894
+ }
1895
+ if (n.deltaMode === 1) {
1896
+ var s = c.data(this, "mousewheel-line-height");
1897
+ t *= s;
1898
+ o *= s;
1899
+ p *= s
1900
+ } else {
1901
+ if (n.deltaMode === 2) {
1902
+ var m = c.data(this, "mousewheel-page-height");
1903
+ t *= m;
1904
+ o *= m;
1905
+ p *= m
1906
+ }
1907
+ }
1908
+ q = Math.max(Math.abs(o), Math.abs(p));
1909
+ if (!b || q < b) {
1910
+ b = q;
1911
+ if (a(n, q)) {
1912
+ b /= 40
1913
+ }
1914
+ }
1915
+ if (a(n, q)) {
1916
+ t /= 40;
1917
+ p /= 40;
1918
+ o /= 40
1919
+ }
1920
+ t = Math[t >= 1 ? "floor" : "ceil"](t / b);
1921
+ p = Math[p >= 1 ? "floor" : "ceil"](p / b);
1922
+ o = Math[o >= 1 ? "floor" : "ceil"](o / b);
1923
+ i.deltaX = p;
1924
+ i.deltaY = o;
1925
+ i.deltaFactor = b;
1926
+ i.deltaMode = 0;
1927
+ r.unshift(i, t, p, o);
1928
+ if (j) {
1929
+ clearTimeout(j)
1930
+ }
1931
+ j = setTimeout(g, 200);
1932
+ return (c.event.dispatch || c.event.handle).apply(this, r)
1933
+ }
1934
+
1935
+ function g() {
1936
+ b = null
1937
+ }
1938
+
1939
+ function a(m, i) {
1940
+ return f.settings.adjustOldDeltas && m.type === "mousewheel" && i % 120 === 0
1941
+ }
1942
+ }));
1943
  // Envira functions.
1944
+ function enviraGetColWidth(a, e) {
1945
+ var d, c = jQuery(window).width(),
1946
+ b = a.data("envira-columns");
1947
+ switch (b) {
1948
+ case 1:
1949
+ d = a.width();
1950
+ break;
1951
+ case 2:
1952
+ if (c <= 480) {
1953
+ d = a.width()
1954
+ } else {
1955
+ d = a.width() / 2
1956
+ }
1957
+ break;
1958
+ case 3:
1959
+ if (c <= 480) {
1960
+ d = a.width()
1961
+ } else {
1962
+ if (c <= 768) {
1963
+ d = a.width() / 2
1964
+ } else {
1965
+ d = a.width() / 3
1966
+ }
1967
+ }
1968
+ case 4:
1969
+ case 5:
1970
+ case 6:
1971
+ if (c <= 480) {
1972
+ d = a.width()
1973
+ } else {
1974
+ if (c <= 768) {
1975
+ d = a.width() / 2
1976
+ } else {
1977
+ if (c <= 1024) {
1978
+ d = a.width() / 3
1979
+ } else {
1980
+ d = a.width() / b
1981
+ }
1982
+ }
1983
+ }
1984
+ break
1985
+ }
1986
+ return parseInt(d - (e * (b - 1)) / b)
1987
+ }
1988
+
1989
+ function enviraSetWidths(a, c) {
1990
+ var b = enviraGetColWidth(a, c);
1991
+ a.children().css({
1992
+ width: b
1993
+ })
1994
+ };
1995
+
1996
+ function enviraIsMobile() {
1997
+ var check = false;
1998
+ (function(a) {
1999
+ if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4))) check = true
2000
+ })(navigator.userAgent || navigator.vendor || window.opera);
2001
+ return check;
2002
+ }
2003
+
2004
+ function enviraThrottle(a, b) {
2005
+ return function() {
2006
+ var d = this,
2007
+ c = [].slice(arguments);
2008
+ clearTimeout(a._throttleTimeout);
2009
+ a._throttleTimeout = setTimeout(function() {
2010
+ a.apply(d, c)
2011
+ }, b)
2012
+ }
2013
+ };
assets/js/min/envira-min.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ function enviraGetColWidth(t,e){var i,n=jQuery(window).width(),o=t.data("envira-columns");switch(o){case 1:i=t.width();break;case 2:i=480>=n?t.width():t.width()/2;break;case 3:i=480>=n?t.width():768>=n?t.width()/2:t.width()/3;case 4:case 5:case 6:i=480>=n?t.width():768>=n?t.width()/2:1024>=n?t.width()/3:t.width()/o}return parseInt(i-e*(o-1)/o)}function enviraSetWidths(t,e){var i=enviraGetColWidth(t,e);t.children().css({width:i})}function enviraIsMobile(){var t=!1;return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0)}(navigator.userAgent||navigator.vendor||window.opera),t}function enviraThrottle(t,e){return function(){var i=this,n=[].slice(arguments);clearTimeout(t._throttleTimeout),t._throttleTimeout=setTimeout(function(){t.apply(i,n)},e)}}!function(t,e,i){var n=t.document,o=n.documentElement,s=t.Modernizr,a=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},r="Moz Webkit O Ms".split(" "),h=function(t){var e=o.style,i;if("string"==typeof e[t])return t;t=a(t);for(var n=0,s=r.length;s>n;n++)if(i=r[n]+t,"string"==typeof e[i])return i},l=h("transform"),d=h("transitionProperty"),c={csstransforms:function(){return!!l},csstransforms3d:function(){var t=!!h("perspective");if(t&&"webkitPerspective"in o.style){var i=e("<style>@media (transform-3d),(-webkit-transform-3d){#modernizr{height:3px}}</style>").appendTo("head"),n=e('<div id="modernizr" />').appendTo("html");t=3===n.height(),n.remove(),i.remove()}return t},csstransitions:function(){return!!d}},u;if(s)for(u in c)s.hasOwnProperty(u)||s.addTest(u,c[u]);else{s=t.Modernizr={_version:"1.6ish: miniModernizr for Isotope"};var f=" ",p;for(u in c)p=c[u](),s[u]=p,f+=" "+(p?"":"no-")+u;e("html").addClass(f)}if(s.csstransforms){var m=s.csstransforms3d?{translate:function(t){return"translate3d("+t[0]+"px, "+t[1]+"px, 0) "},scale:function(t){return"scale3d("+t+", "+t+", 1) "}}:{translate:function(t){return"translate("+t[0]+"px, "+t[1]+"px) "},scale:function(t){return"scale("+t+") "}},g=function(t,i,n){var o=e.data(t,"isoTransform")||{},s={},a,r={},h;s[i]=n,e.extend(o,s);for(a in o)h=o[a],r[a]=m[a](h);var d=r.translate||"",c=r.scale||"",u=d+c;e.data(t,"isoTransform",o),t.style[l]=u};e.cssNumber.scale=!0,e.cssHooks.scale={set:function(t,e){g(t,"scale",e)},get:function(t,i){var n=e.data(t,"isoTransform");return n&&n.scale?n.scale:1}},e.fx.step.scale=function(t){e.cssHooks.scale.set(t.elem,t.now+t.unit)},e.cssNumber.translate=!0,e.cssHooks.translate={set:function(t,e){g(t,"translate",e)},get:function(t,i){var n=e.data(t,"isoTransform");return n&&n.translate?n.translate:[0,0]}}}var y,v;s.csstransitions&&(y={WebkitTransitionProperty:"webkitTransitionEnd",MozTransitionProperty:"transitionend",OTransitionProperty:"oTransitionEnd otransitionend",transitionProperty:"transitionend"}[d],v=h("transitionDuration"));var w=e.event,b=e.event.handle?"handle":"dispatch",x;w.special.smartresize={setup:function(){e(this).bind("resize",w.special.smartresize.handler)},teardown:function(){e(this).unbind("resize",w.special.smartresize.handler)},handler:function(t,e){var i=this,n=arguments;t.type="smartresize",x&&clearTimeout(x),x=setTimeout(function(){w[b].apply(i,n)},"execAsap"===e?0:100)}},e.fn.smartresize=function(t){return t?this.bind("smartresize",t):this.trigger("smartresize",["execAsap"])},e.Isotope=function(t,i,n){this.element=e(i),this._create(t),this._init(n)};var _=["width","height"],C=e(t);e.Isotope.settings={resizable:!0,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:{opacity:0,scale:.001},visibleStyle:{opacity:1,scale:1},containerStyle:{position:"relative",overflow:"hidden"},animationEngine:"best-available",animationOptions:{queue:!1,duration:800},sortBy:"original-order",sortAscending:!0,resizesContainer:!0,transformsEnabled:!0,itemPositionDataEnabled:!1},e.Isotope.prototype={_create:function(t){this.options=e.extend({},e.Isotope.settings,t),this.styleQueue=[],this.elemCount=0;var i=this.element[0].style;this.originalStyle={};var n=_.slice(0);for(var o in this.options.containerStyle)n.push(o);for(var s=0,a=n.length;a>s;s++)o=n[s],this.originalStyle[o]=i[o]||"";this.element.css(this.options.containerStyle),this._updateAnimationEngine(),this._updateUsingTransforms();var r={"original-order":function(t,e){return e.elemCount++,e.elemCount},random:function(){return Math.random()}};this.options.getSortData=e.extend(this.options.getSortData,r),this.reloadItems(),this.offset={left:parseInt(this.element.css("padding-left")||0,10),top:parseInt(this.element.css("padding-top")||0,10)};var h=this;setTimeout(function(){h.element.addClass(h.options.containerClass)},0),this.options.resizable&&C.bind("smartresize.isotope",function(){h.resize()}),this.element.delegate("."+this.options.hiddenClass,"click",function(){return!1})},_getAtoms:function(t){var e=this.options.itemSelector,i=e?t.filter(e).add(t.find(e)):t,n={position:"absolute"};return i=i.filter(function(t,e){return 1===e.nodeType}),this.usingTransforms&&(n.left=0,n.top=0),i.css(n).addClass(this.options.itemClass),this.updateSortData(i,!0),i},_init:function(t){this.$filteredAtoms=this._filter(this.$allAtoms),this._sort(),this.reLayout(t)},option:function(t){if(e.isPlainObject(t)){this.options=e.extend(!0,this.options,t);var i;for(var n in t)i="_update"+a(n),this[i]&&this[i]()}},_updateAnimationEngine:function(){var t=this.options.animationEngine.toLowerCase().replace(/[ _\-]/g,""),e;switch(t){case"css":case"none":e=!1;break;case"jquery":e=!0;break;default:e=!s.csstransitions}this.isUsingJQueryAnimation=e,this._updateUsingTransforms()},_updateTransformsEnabled:function(){this._updateUsingTransforms()},_updateUsingTransforms:function(){var t=this.usingTransforms=this.options.transformsEnabled&&s.csstransforms&&s.csstransitions&&!this.isUsingJQueryAnimation;t||(delete this.options.hiddenStyle.scale,delete this.options.visibleStyle.scale),this.getPositionStyles=t?this._translate:this._positionAbs},_filter:function(t){var e=""===this.options.filter?"*":this.options.filter;if(!e)return t;var i=this.options.hiddenClass,n="."+i,o=t.filter(n),s=o;if("*"!==e){s=o.filter(e);var a=t.not(n).not(e).addClass(i);this.styleQueue.push({$el:a,style:this.options.hiddenStyle})}return this.styleQueue.push({$el:s,style:this.options.visibleStyle}),s.removeClass(i),t.filter(e)},updateSortData:function(t,i){var n=this,o=this.options.getSortData,s,a;t.each(function(){s=e(this),a={};for(var t in o)a[t]=i||"original-order"!==t?o[t](s,n):e.data(this,"isotope-sort-data")[t];e.data(this,"isotope-sort-data",a)})},_sort:function(){var t=this.options.sortBy,e=this._getSorter,i=this.options.sortAscending?1:-1,n=function(n,o){var s=e(n,t),a=e(o,t);return s===a&&"original-order"!==t&&(s=e(n,"original-order"),a=e(o,"original-order")),(s>a?1:a>s?-1:0)*i};this.$filteredAtoms.sort(n)},_getSorter:function(t,i){return e.data(t,"isotope-sort-data")[i]},_translate:function(t,e){return{translate:[t,e]}},_positionAbs:function(t,e){return{left:t,top:e}},_pushPosition:function(t,e,i){e=Math.round(e+this.offset.left),i=Math.round(i+this.offset.top);var n=this.getPositionStyles(e,i);this.styleQueue.push({$el:t,style:n}),this.options.itemPositionDataEnabled&&t.data("isotope-item-position",{x:e,y:i})},layout:function(t,e){var i=this.options.layoutMode;if(this["_"+i+"Layout"](t),this.options.resizesContainer){var n=this["_"+i+"GetContainerSize"]();this.styleQueue.push({$el:this.element,style:n})}this._processStyleQueue(t,e),this.isLaidOut=!0},_processStyleQueue:function(t,i){var n=this.isLaidOut&&this.isUsingJQueryAnimation?"animate":"css",o=this.options.animationOptions,a=this.options.onLayout,r,h,l,d;if(h=function(t,e){e.$el[n](e.style,o)},this._isInserting&&this.isUsingJQueryAnimation)h=function(t,e){r=e.$el.hasClass("no-transition")?"css":n,e.$el[r](e.style,o)};else if(i||a||o.complete){var c=!1,u=[i,a,o.complete],f=this;if(l=!0,d=function(){if(!c){for(var e,i=0,n=u.length;n>i;i++)e=u[i],"function"==typeof e&&e.call(f.element,t,f);c=!0}},this.isUsingJQueryAnimation&&"animate"===n)o.complete=d,l=!1;else if(s.csstransitions){for(var p=0,m=this.styleQueue[0],g=m&&m.$el,w;!g||!g.length;){if(w=this.styleQueue[p++],!w)return;g=w.$el}var b=parseFloat(getComputedStyle(g[0])[v]);b>0&&(h=function(t,e){e.$el[n](e.style,o).one(y,d)},l=!1)}}e.each(this.styleQueue,h),l&&d(),this.styleQueue=[]},resize:function(){this["_"+this.options.layoutMode+"ResizeChanged"]()&&this.reLayout()},reLayout:function(t){this["_"+this.options.layoutMode+"Reset"](),this.layout(this.$filteredAtoms,t)},addItems:function(t,e){var i=this._getAtoms(t);this.$allAtoms=this.$allAtoms.add(i),e&&e(i)},insert:function(t,e){this.element.append(t);var i=this;this.addItems(t,function(t){var n=i._filter(t);i._addHideAppended(n),i._sort(),i.reLayout(),i._revealAppended(n,e)})},appended:function(t,e){var i=this;this.addItems(t,function(t){i._addHideAppended(t),i.layout(t),i._revealAppended(t,e)})},_addHideAppended:function(t){this.$filteredAtoms=this.$filteredAtoms.add(t),t.addClass("no-transition"),this._isInserting=!0,this.styleQueue.push({$el:t,style:this.options.hiddenStyle})},_revealAppended:function(t,e){var i=this;setTimeout(function(){t.removeClass("no-transition"),i.styleQueue.push({$el:t,style:i.options.visibleStyle}),i._isInserting=!1,i._processStyleQueue(t,e)},10)},reloadItems:function(){this.$allAtoms=this._getAtoms(this.element.children())},remove:function(t,e){this.$allAtoms=this.$allAtoms.not(t),this.$filteredAtoms=this.$filteredAtoms.not(t);var i=this,n=function(){t.remove(),e&&e.call(i.element)};t.filter(":not(."+this.options.hiddenClass+")").length?(this.styleQueue.push({$el:t,style:this.options.hiddenStyle}),this._sort(),this.reLayout(n)):n()},shuffle:function(t){this.updateSortData(this.$allAtoms),this.options.sortBy="random",this._sort(),this.reLayout(t)},destroy:function(){var t=this.usingTransforms,e=this.options;this.$allAtoms.removeClass(e.hiddenClass+" "+e.itemClass).each(function(){var e=this.style;e.position="",e.top="",e.left="",e.opacity="",t&&(e[l]="")});var i=this.element[0].style;for(var n in this.originalStyle)i[n]=this.originalStyle[n];this.element.unbind(".isotope").undelegate("."+e.hiddenClass,"click").removeClass(e.containerClass).removeData("isotope"),C.unbind(".isotope")},_getSegments:function(t){var e=this.options.layoutMode,i=t?"rowHeight":"columnWidth",n=t?"height":"width",o=t?"rows":"cols",s=this.element[n](),r,h=this.options[e]&&this.options[e][i]||this.$filteredAtoms["outer"+a(n)](!0)||s;r=Math.floor(s/h),r=Math.max(r,1),this[e][o]=r,this[e][i]=h},_checkIfSegmentsChanged:function(t){var e=this.options.layoutMode,i=t?"rows":"cols",n=this[e][i];return this._getSegments(t),this[e][i]!==n},_masonryReset:function(){this.masonry={},this._getSegments();var t=this.masonry.cols;for(this.masonry.colYs=[];t--;)this.masonry.colYs.push(0)},_masonryLayout:function(t){var i=this,n=i.masonry;t.each(function(){var t=e(this),o=Math.ceil(t.outerWidth(!0)/n.columnWidth);if(o=Math.min(o,n.cols),1===o)i._masonryPlaceBrick(t,n.colYs);else{var s=n.cols+1-o,a=[],r,h;for(h=0;s>h;h++)r=n.colYs.slice(h,h+o),a[h]=Math.max.apply(Math,r);i._masonryPlaceBrick(t,a)}})},_masonryPlaceBrick:function(t,e){for(var i=Math.min.apply(Math,e),n=0,o=0,s=e.length;s>o;o++)if(e[o]===i){n=o;break}var a=this.masonry.columnWidth*n,r=i;this._pushPosition(t,a,r);var h=i+t.outerHeight(!0),l=this.masonry.cols+1-s;for(o=0;l>o;o++)this.masonry.colYs[n+o]=h},_masonryGetContainerSize:function(){var t=Math.max.apply(Math,this.masonry.colYs);return{height:t}},_masonryResizeChanged:function(){return this._checkIfSegmentsChanged()},_fitRowsReset:function(){this.fitRows={x:0,y:0,height:0}},_fitRowsLayout:function(t){var i=this,n=this.element.width(),o=this.fitRows;t.each(function(){var t=e(this),s=t.outerWidth(!0),a=t.outerHeight(!0);0!==o.x&&s+o.x>n&&(o.x=0,o.y=o.height),i._pushPosition(t,o.x,o.y),o.height=Math.max(o.y+a,o.height),o.x+=s})},_fitRowsGetContainerSize:function(){return{height:this.fitRows.height}},_fitRowsResizeChanged:function(){return!0},_cellsByRowReset:function(){this.cellsByRow={index:0},this._getSegments(),this._getSegments(!0)},_cellsByRowLayout:function(t){var i=this,n=this.cellsByRow;t.each(function(){var t=e(this),o=n.index%n.cols,s=Math.floor(n.index/n.cols),a=(o+.5)*n.columnWidth-t.outerWidth(!0)/2,r=(s+.5)*n.rowHeight-t.outerHeight(!0)/2;i._pushPosition(t,a,r),n.index++})},_cellsByRowGetContainerSize:function(){return{height:Math.ceil(this.$filteredAtoms.length/this.cellsByRow.cols)*this.cellsByRow.rowHeight+this.offset.top}},_cellsByRowResizeChanged:function(){return this._checkIfSegmentsChanged()},_straightDownReset:function(){this.straightDown={y:0}},_straightDownLayout:function(t){var i=this;t.each(function(t){var n=e(this);i._pushPosition(n,0,i.straightDown.y),i.straightDown.y+=n.outerHeight(!0)})},_straightDownGetContainerSize:function(){return{height:this.straightDown.y}},_straightDownResizeChanged:function(){return!0},_masonryHorizontalReset:function(){this.masonryHorizontal={},this._getSegments(!0);var t=this.masonryHorizontal.rows;for(this.masonryHorizontal.rowXs=[];t--;)this.masonryHorizontal.rowXs.push(0)},_masonryHorizontalLayout:function(t){var i=this,n=i.masonryHorizontal;t.each(function(){var t=e(this),o=Math.ceil(t.outerHeight(!0)/n.rowHeight);if(o=Math.min(o,n.rows),1===o)i._masonryHorizontalPlaceBrick(t,n.rowXs);else{var s=n.rows+1-o,a=[],r,h;for(h=0;s>h;h++)r=n.rowXs.slice(h,h+o),a[h]=Math.max.apply(Math,r);i._masonryHorizontalPlaceBrick(t,a)}})},_masonryHorizontalPlaceBrick:function(t,e){for(var i=Math.min.apply(Math,e),n=0,o=0,s=e.length;s>o;o++)if(e[o]===i){n=o;break}var a=i,r=this.masonryHorizontal.rowHeight*n;this._pushPosition(t,a,r);var h=i+t.outerWidth(!0),l=this.masonryHorizontal.rows+1-s;for(o=0;l>o;o++)this.masonryHorizontal.rowXs[n+o]=h},_masonryHorizontalGetContainerSize:function(){var t=Math.max.apply(Math,this.masonryHorizontal.rowXs);return{width:t}},_masonryHorizontalResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_fitColumnsReset:function(){this.fitColumns={x:0,y:0,width:0}},_fitColumnsLayout:function(t){var i=this,n=this.element.height(),o=this.fitColumns;t.each(function(){var t=e(this),s=t.outerWidth(!0),a=t.outerHeight(!0);0!==o.y&&a+o.y>n&&(o.x=o.width,o.y=0),i._pushPosition(t,o.x,o.y),o.width=Math.max(o.x+s,o.width),o.y+=a})},_fitColumnsGetContainerSize:function(){return{width:this.fitColumns.width}},_fitColumnsResizeChanged:function(){return!0},_cellsByColumnReset:function(){this.cellsByColumn={index:0},this._getSegments(),this._getSegments(!0)},_cellsByColumnLayout:function(t){var i=this,n=this.cellsByColumn;t.each(function(){var t=e(this),o=Math.floor(n.index/n.rows),s=n.index%n.rows,a=(o+.5)*n.columnWidth-t.outerWidth(!0)/2,r=(s+.5)*n.rowHeight-t.outerHeight(!0)/2;i._pushPosition(t,a,r),n.index++})},_cellsByColumnGetContainerSize:function(){return{width:Math.ceil(this.$filteredAtoms.length/this.cellsByColumn.rows)*this.cellsByColumn.columnWidth}},_cellsByColumnResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_straightAcrossReset:function(){this.straightAcross={x:0}},_straightAcrossLayout:function(t){var i=this;t.each(function(t){var n=e(this);i._pushPosition(n,i.straightAcross.x,0),i.straightAcross.x+=n.outerWidth(!0)})},_straightAcrossGetContainerSize:function(){return{width:this.straightAcross.x}},_straightAcrossResizeChanged:function(){return!0}},e.fn.imagesLoaded=function(t){function i(){t.call(o,s)}function n(t){var o=t.target;o.src!==r&&-1===e.inArray(o,h)&&(h.push(o),--a<=0&&(setTimeout(i),s.unbind(".imagesLoaded",n)))}var o=this,s=o.find("img").add(o.filter("img")),a=s.length,r="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",h=[];return a||i(),s.bind("load.imagesLoaded error.imagesLoaded",n).each(function(){var t=this.src;this.src=r,this.src=t}),o};var A=function(e){t.console&&t.console.error(e)};e.fn.isotope=function(t,i){if("string"==typeof t){var n=Array.prototype.slice.call(arguments,1);this.each(function(){var i=e.data(this,"isotope");return i?e.isFunction(i[t])&&"_"!==t.charAt(0)?void i[t].apply(i,n):void A("no such method '"+t+"' for isotope instance"):void A("cannot call methods on isotope prior to initialization; attempted to call method '"+t+"'")})}else this.each(function(){var n=e.data(this,"isotope");n?(n.option(t),n._init(i)):e.data(this,"isotope",new e.Isotope(t,this,i))});return this}}(window,jQuery),jQuery.Isotope.prototype._getMasonryGutterColumns=function(){var t=this.options.masonry&&this.options.masonry.gutterWidth||0;containerWidth=this.element.width(),this.masonry.columnWidth=this.options.masonry&&this.options.masonry.columnWidth||this.$filteredAtoms.outerWidth(!0)||containerWidth,this.masonry.columnWidth+=t,this.masonry.cols=Math.floor((containerWidth+t)/this.masonry.columnWidth),this.masonry.cols=Math.max(this.masonry.cols,1)},jQuery.Isotope.prototype._masonryReset=function(){this.masonry={},this._getMasonryGutterColumns();var t=this.masonry.cols;for(this.masonry.colYs=[];t--;)this.masonry.colYs.push(0)},jQuery.Isotope.prototype._masonryResizeChanged=function(){var t=this.masonry.cols;return this._getMasonryGutterColumns(),this.masonry.cols!==t},function(t){var e,i,n,o,s,a,r,h,l,d,c=0,u={},f=[],p=0,m={},g=[],y=null,v=new Image,w=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,b=/[^\.]\.(swf)\s*$/i,x,_=1,C=0,A="",k,S,z=!1,I=t.extend(t("<div/>")[0],{prop:0}),M=t.browser.msie&&t.browser.version<7&&!window.XMLHttpRequest,T=function(){i.hide(),v.onerror=v.onload=null,y&&y.abort(),e.empty()},H=function(){return!1===u.onError(f,c,u)?(i.hide(),void(z=!1)):(u.titleShow=!1,u.width="auto",u.height="auto",e.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>'),void O())},D=function(){var n=f[c],o,s,r,h,l,d;if(T(),u=t.extend({},t.fn.fancybox.defaults,"undefined"==typeof t(n).data("fancybox")?u:t(n).data("fancybox")),d=u.onStart(f,c,u),d===!1)return void(z=!1);if("object"==typeof d&&(u=t.extend(u,d)),r=u.title||(n.nodeName?t(n).attr("title"):n.title)||"",n.nodeName&&!u.orig&&(u.orig=t(n).children("img:first").length?t(n).children("img:first"):t(n)),""===r&&u.orig&&u.titleFromAlt&&(r=u.orig.attr("alt")),o=u.href||(n.nodeName?t(n).attr("href"):n.href)||null,(/^(?:javascript)/i.test(o)||"#"==o)&&(o=null),u.type?(s=u.type,o||(o=u.content)):u.content?s="html":o&&(s=o.match(w)?"image":o.match(b)?"swf":t(n).hasClass("iframe")?"iframe":0===o.indexOf("#")?"inline":"ajax"),!s)return void H();switch("inline"==s&&(n=o.substr(o.indexOf("#")),s=t(n).length>0?"inline":"ajax"),u.type=s,u.href=o,u.title=r,u.autoDimensions&&("html"==u.type||"inline"==u.type||"ajax"==u.type?(u.width="auto",u.height="auto"):u.autoDimensions=!1),u.modal&&(u.overlayShow=!0,u.hideOnOverlayClick=!1,u.hideOnContentClick=!1,u.enableEscapeButton=!1,u.showCloseButton=!1),u.padding=parseInt(u.padding,10),u.margin=parseInt(u.margin,10),e.css("padding",u.padding+u.margin),t(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){t(this).replaceWith(a.children())}),s){case"html":e.html(u.content),O();break;case"inline":if(t(n).parent().is("#fancybox-content")===!0)return void(z=!1);t('<div class="fancybox-inline-tmp" />').hide().insertBefore(t(n)).bind("fancybox-cleanup",function(){t(this).replaceWith(a.children())}).bind("fancybox-cancel",function(){t(this).replaceWith(e.children())}),t(n).appendTo(e),O();break;case"image":z=!1,t.fancybox.showActivity(),v=new Image,v.onerror=function(){H()},v.onload=function(){z=!0,v.onerror=v.onload=null,j()},v.src=o;break;case"swf":u.scrolling="no",h='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+u.width+'" height="'+u.height+'"><param name="movie" value="'+o+'"></param>',l="",t.each(u.swf,function(t,e){h+='<param name="'+t+'" value="'+e+'"></param>',l+=" "+t+'="'+e+'"'}),h+='<embed src="'+o+'" type="application/x-shockwave-flash" width="'+u.width+'" height="'+u.height+'"'+l+"></embed></object>",e.html(h),O();break;case"ajax":z=!1,t.fancybox.showActivity(),u.ajax.win=u.ajax.success,y=t.ajax(t.extend({},u.ajax,{url:o,data:u.ajax.data||{},error:function(t,e,i){t.status>0&&H()},success:function(t,n,s){var a="object"==typeof s?s:y;if(200==a.status){if("function"==typeof u.ajax.win){if(d=u.ajax.win(o,t,n,s),d===!1)return void i.hide();("string"==typeof d||"object"==typeof d)&&(t=d)}e.html(t),O()}}}));break;case"iframe":P()}},O=function(){var i=u.width,n=u.height;i=i.toString().indexOf("%")>-1?parseInt((t(window).width()-2*u.margin)*parseFloat(i)/100,10)+"px":"auto"==i?"auto":i+"px",n=n.toString().indexOf("%")>-1?parseInt((t(window).height()-2*u.margin)*parseFloat(n)/100,10)+"px":"auto"==n?"auto":n+"px",e.wrapInner('<div style="width:'+i+";height:"+n+";overflow: "+("auto"==u.scrolling?"auto":"yes"==u.scrolling?"scroll":"hidden")+';position:relative;"></div>'),u.width=e.width(),u.height=e.height(),P()},j=function(){u.width=v.width,u.height=v.height,t("<img />").attr({id:"fancybox-img",src:v.src,alt:u.title}).appendTo(e),P()},P=function(){var s,y;return i.hide(),o.is(":visible")&&!1===m.onCleanup(g,p,m)?(t.event.trigger("fancybox-cancel"),void(z=!1)):(z=!0,t(a.add(n)).unbind(),t(window).unbind("resize.fb scroll.fb"),t(document).unbind("keydown.fb"),o.is(":visible")&&"outside"!==m.titlePosition&&o.css("height",o.height()),g=f,p=c,m=u,m.overlayShow?(n.css({"background-color":m.overlayColor,opacity:m.overlayOpacity,cursor:m.hideOnOverlayClick?"pointer":"auto",height:t(document).height()}),n.is(":visible")||(M&&t("select:not(#fancybox-tmp select)").filter(function(){return"hidden"!==this.style.visibility}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"}),n.show())):n.hide(),S=G(),B(),o.is(":visible")?(t(r.add(l).add(d)).hide(),s=o.position(),k={top:s.top,left:s.left,width:o.width(),height:o.height()},y=k.width==S.width&&k.height==S.height,void a.fadeTo(m.changeFade,.3,function(){var i=function(){a.html(e.contents()).fadeTo(m.changeFade,1,Q)};t.event.trigger("fancybox-change"),a.empty().removeAttr("filter").css({"border-width":m.padding,width:S.width-2*m.padding,height:u.autoDimensions?"auto":S.height-C-2*m.padding}),y?i():(I.prop=0,t(I).animate({prop:1},{duration:m.changeSpeed,easing:m.easingChange,step:E,complete:i}))})):(o.removeAttr("style"),a.css("border-width",m.padding),"elastic"==m.transitionIn?(k=X(),a.html(e.contents()),o.show(),m.opacity&&(S.opacity=0),I.prop=0,void t(I).animate({prop:1},{duration:m.speedIn,easing:m.easingIn,step:E,complete:Q})):("inside"==m.titlePosition&&C>0&&h.show(),a.css({width:S.width-2*m.padding,height:u.autoDimensions?"auto":S.height-C-2*m.padding}).html(e.contents()),void o.css(S).fadeIn("none"==m.transitionIn?0:m.speedIn,Q))))},R=function(t){return t&&t.length?"float"==m.titlePosition?'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+t+'</td><td id="fancybox-title-float-right"></td></tr></table>':'<div id="fancybox-title-'+m.titlePosition+'">'+t+"</div>":!1},B=function(){if(A=m.title||"",C=0,h.empty().removeAttr("style").removeClass(),m.titleShow===!1)return void h.hide();if(A=t.isFunction(m.titleFormat)?m.titleFormat(A,g,p,m):R(A),!A||""===A)return void h.hide();switch(h.addClass("fancybox-title-"+m.titlePosition).html(A).appendTo("body").show(),m.titlePosition){case"inside":h.css({width:S.width-2*m.padding,marginLeft:m.padding,marginRight:m.padding}),C=h.outerHeight(!0),h.appendTo(s),S.height+=C;break;case"over":h.css({marginLeft:m.padding,width:S.width-2*m.padding,bottom:m.padding}).appendTo(s);break;case"float":h.css("left",-1*parseInt((h.width()-S.width-40)/2,10)).appendTo(o);break;default:h.css({width:S.width-2*m.padding,paddingLeft:m.padding,paddingRight:m.padding}).appendTo(o)}h.hide()},L=function(){return(m.enableEscapeButton||m.enableKeyboardNav)&&t(document).bind("keydown.fb",function(e){27==e.keyCode&&m.enableEscapeButton?(e.preventDefault(),t.fancybox.close()):37!=e.keyCode&&39!=e.keyCode||!m.enableKeyboardNav||"INPUT"===e.target.tagName||"TEXTAREA"===e.target.tagName||"SELECT"===e.target.tagName||(e.preventDefault(),t.fancybox[37==e.keyCode?"prev":"next"]())}),m.showNavArrows?((m.cyclic&&g.length>1||0!==p)&&l.show(),void((m.cyclic&&g.length>1||p!=g.length-1)&&d.show())):(l.hide(),void d.hide())},Q=function(){t.support.opacity||(a.get(0).style.removeAttribute("filter"),o.get(0).style.removeAttribute("filter")),u.autoDimensions&&a.css("height","auto"),o.css("height","auto"),A&&A.length&&h.show(),m.showCloseButton&&r.show(),L(),m.hideOnContentClick&&a.bind("click",t.fancybox.close),m.hideOnOverlayClick&&n.bind("click",t.fancybox.close),t(window).bind("resize.fb",t.fancybox.resize),m.centerOnScroll&&t(window).bind("scroll.fb",t.fancybox.center),"iframe"==m.type&&t('<iframe id="fancybox-frame" name="fancybox-frame'+(new Date).getTime()+'" frameborder="0" hspace="0" '+(t.browser.msie?'allowtransparency="true""':"")+' scrolling="'+u.scrolling+'" src="'+m.href+'"></iframe>').appendTo(a),o.show(),z=!1,t.fancybox.center(),m.onComplete(g,p,m),W()},W=function(){var t,e;g.length-1>p&&(t=g[p+1].href,"undefined"!=typeof t&&t.match(w)&&(e=new Image,e.src=t)),p>0&&(t=g[p-1].href,"undefined"!=typeof t&&t.match(w)&&(e=new Image,e.src=t))},E=function(t){var e={width:parseInt(k.width+(S.width-k.width)*t,10),height:parseInt(k.height+(S.height-k.height)*t,10),top:parseInt(k.top+(S.top-k.top)*t,10),left:parseInt(k.left+(S.left-k.left)*t,10)};"undefined"!=typeof S.opacity&&(e.opacity=.5>t?.5:t),o.css(e),a.css({width:e.width-2*m.padding,height:e.height-C*t-2*m.padding})},F=function(){return[t(window).width()-2*m.margin,t(window).height()-2*m.margin,t(document).scrollLeft()+m.margin,t(document).scrollTop()+m.margin]},G=function(){var t=F(),e={},i=m.autoScale,n=2*m.padding,o;return e.width=m.width.toString().indexOf("%")>-1?parseInt(t[0]*parseFloat(m.width)/100,10):m.width+n,e.height=m.height.toString().indexOf("%")>-1?parseInt(t[1]*parseFloat(m.height)/100,10):m.height+n,i&&(e.width>t[0]||e.height>t[1])&&("image"==u.type||"swf"==u.type?(o=m.width/m.height,e.width>t[0]&&(e.width=t[0],e.height=parseInt((e.width-n)/o+n,10)),e.height>t[1]&&(e.height=t[1],e.width=parseInt((e.height-n)*o+n,10))):(e.width=Math.min(e.width,t[0]),e.height=Math.min(e.height,t[1]))),e.top=parseInt(Math.max(t[3]-20,t[3]+.5*(t[1]-e.height-40)),10),e.left=parseInt(Math.max(t[2]-20,t[2]+.5*(t[0]-e.width-40)),10),e},N=function(t){var e=t.offset();return e.top+=parseInt(t.css("paddingTop"),10)||0,e.left+=parseInt(t.css("paddingLeft"),10)||0,e.top+=parseInt(t.css("border-top-width"),10)||0,e.left+=parseInt(t.css("border-left-width"),10)||0,e.width=t.width(),e.height=t.height(),e},X=function(){var e=u.orig?t(u.orig):!1,i={},n,o;return e&&e.length?(n=N(e),i={width:n.width+2*m.padding,height:n.height+2*m.padding,top:n.top-m.padding-20,left:n.left-m.padding-20}):(o=F(),i={width:2*m.padding,height:2*m.padding,top:parseInt(o[3]+.5*o[1],10),left:parseInt(o[2]+.5*o[0],10)}),i},Y=function(){return i.is(":visible")?(t("div",i).css("top",-40*_+"px"),void(_=(_+1)%12)):void clearInterval(x)};t.fn.fancybox=function(e){return t(this).length?(t(this).data("fancybox",t.extend({},e,t.metadata?t(this).metadata():{})).unbind("click.fb").bind("click.fb",function(e){if(e.preventDefault(),!z){z=!0,t(this).blur(),f=[],c=0;var i=t(this).attr("rel")||"";i&&""!=i&&"nofollow"!==i?(f=t("a[rel="+i+"], area[rel="+i+"]"),c=f.index(this)):f.push(this),D()}}),this):this},t.fancybox=function(e){var i;if(!z){if(z=!0,i="undefined"!=typeof arguments[1]?arguments[1]:{},f=[],c=parseInt(i.index,10)||0,t.isArray(e)){for(var n=0,o=e.length;o>n;n++)"object"==typeof e[n]?t(e[n]).data("fancybox",t.extend({},i,e[n])):e[n]=t({}).data("fancybox",t.extend({content:e[n]},i));f=jQuery.merge(f,e)}else"object"==typeof e?t(e).data("fancybox",t.extend({},i,e)):e=t({}).data("fancybox",t.extend({content:e},i)),f.push(e);(c>f.length||0>c)&&(c=0),D()}},t.fancybox.showActivity=function(){clearInterval(x),i.show(),x=setInterval(Y,66)},t.fancybox.hideActivity=function(){i.hide()},t.fancybox.next=function(){return t.fancybox.pos(p+1)},t.fancybox.prev=function(){return t.fancybox.pos(p-1)},t.fancybox.pos=function(t){z||(t=parseInt(t),f=g,t>-1&&t<g.length?(c=t,D()):m.cyclic&&g.length>1&&(c=t>=g.length?0:g.length-1,D()))},t.fancybox.cancel=function(){z||(z=!0,t.event.trigger("fancybox-cancel"),T(),u.onCancel(f,c,u),z=!1)},t.fancybox.close=function(){function e(){n.fadeOut("fast"),h.empty().hide(),o.hide(),t.event.trigger("fancybox-cleanup"),a.empty(),m.onClosed(g,p,m),g=u=[],p=c=0,m=u={},z=!1}if(!z&&!o.is(":hidden")){if(z=!0,m&&!1===m.onCleanup(g,p,m))return void(z=!1);if(T(),t(r.add(l).add(d)).hide(),t(a.add(n)).unbind(),t(window).unbind("resize.fb scroll.fb"),t(document).unbind("keydown.fb"),a.find("iframe").attr("src",M&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank"),"inside"!==m.titlePosition&&h.empty(),o.stop(),"elastic"==m.transitionOut){k=X();var i=o.position();S={top:i.top,left:i.left,width:o.width(),height:o.height()},m.opacity&&(S.opacity=1),h.empty().hide(),I.prop=1,t(I).animate({prop:0},{duration:m.speedOut,easing:m.easingOut,step:E,complete:e})}else o.fadeOut("none"==m.transitionOut?0:m.speedOut,e)}},t.fancybox.resize=function(){n.is(":visible")&&n.css("height",t(document).height());var e,i;S=G(),B(),h.show(),e=o.position(),k={top:e.top,left:e.left,width:o.width(),height:o.height()},i=k.width==S.width&&k.height==S.height,i||(I.prop=0,t(I).animate({prop:1},{duration:m.changeSpeed,easing:m.easingChange,step:E})),a.css({width:S.width-2*m.padding,height:u.autoDimensions?"auto":S.height-C-2*m.padding}),o.css(S),t.fancybox.center(!0)},t.fancybox.center=function(){var t,e;z||(e=arguments[0]===!0?1:0,t=F(),(e||!(o.width()>t[0]||o.height()>t[1]))&&o.stop().animate({top:parseInt(Math.max(t[3]-20,t[3]+.5*(t[1]-a.height()-40)-m.padding)),left:parseInt(Math.max(t[2]-20,t[2]+.5*(t[0]-a.width()-40)-m.padding))},"number"==typeof arguments[0]?arguments[0]:200))},t.fancybox.init=function(){t("#fancybox-wrap").length||(t("body").append(e=t('<div id="fancybox-tmp"></div>'),i=t('<div id="fancybox-loading"><div></div></div>'),n=t('<div id="fancybox-overlay"></div>'),o=t('<div id="fancybox-wrap"></div>')),s=t('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(o),s.append(a=t('<div id="fancybox-content"></div>'),r=t('<a id="fancybox-close"></a>'),h=t('<div id="fancybox-title"></div>'),l=t('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),d=t('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')),r.click(t.fancybox.close),i.click(t.fancybox.cancel),l.click(function(e){e.preventDefault(),t.fancybox.prev()
2
+ }),d.click(function(e){e.preventDefault(),t.fancybox.next()}),t.fn.mousewheel&&o.bind("mousewheel.fb",function(e,i){z?e.preventDefault():(0==t(e.target).get(0).clientHeight||t(e.target).get(0).scrollHeight===t(e.target).get(0).clientHeight)&&(e.preventDefault(),t.fancybox[i>0?"prev":"next"]())}),t.support.opacity||o.addClass("fancybox-ie"),M&&(i.addClass("fancybox-ie6"),o.addClass("fancybox-ie6"),t('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(s)))},t.fn.fancybox.defaults={padding:10,margin:40,opacity:!1,modal:!1,cyclic:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!1,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:.7,overlayColor:"#777",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!1,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}},t(document).ready(function(){t.fancybox.init()})}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t:t(jQuery)}(function(t){function e(e){var o=e||window.event,s=a.call(arguments,1),l=0,d=0,c=0,u=0;if(e=t.event.fix(o),e.type="mousewheel","detail"in o&&(c=-1*o.detail),"wheelDelta"in o&&(c=o.wheelDelta),"wheelDeltaY"in o&&(c=o.wheelDeltaY),"wheelDeltaX"in o&&(d=-1*o.wheelDeltaX),"axis"in o&&o.axis===o.HORIZONTAL_AXIS&&(d=-1*c,c=0),l=0===c?d:c,"deltaY"in o&&(c=-1*o.deltaY,l=c),"deltaX"in o&&(d=o.deltaX,0===c&&(l=-1*d)),0!==c||0!==d){if(1===o.deltaMode){var f=t.data(this,"mousewheel-line-height");l*=f,c*=f,d*=f}else if(2===o.deltaMode){var p=t.data(this,"mousewheel-page-height");l*=p,c*=p,d*=p}return u=Math.max(Math.abs(c),Math.abs(d)),(!h||h>u)&&(h=u,n(o,u)&&(h/=40)),n(o,u)&&(l/=40,d/=40,c/=40),l=Math[l>=1?"floor":"ceil"](l/h),d=Math[d>=1?"floor":"ceil"](d/h),c=Math[c>=1?"floor":"ceil"](c/h),e.deltaX=d,e.deltaY=c,e.deltaFactor=h,e.deltaMode=0,s.unshift(e,l,d,c),r&&clearTimeout(r),r=setTimeout(i,200),(t.event.dispatch||t.event.handle).apply(this,s)}}function i(){h=null}function n(t,e){return d.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120===0}var o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],a=Array.prototype.slice,r,h;if(t.event.fixHooks)for(var l=o.length;l;)t.event.fixHooks[o[--l]]=t.event.mouseHooks;var d=t.event.special.mousewheel={version:"3.1.9",setup:function(){if(this.addEventListener)for(var i=s.length;i;)this.addEventListener(s[--i],e,!1);else this.onmousewheel=e;t.data(this,"mousewheel-line-height",d.getLineHeight(this)),t.data(this,"mousewheel-page-height",d.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=s.length;t;)this.removeEventListener(s[--t],e,!1);else this.onmousewheel=null},getLineHeight:function(e){return parseInt(t(e)["offsetParent"in t.fn?"offsetParent":"parent"]().css("fontSize"),10)},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})});
envira-gallery-lite.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Envira Gallery is best responsive WordPress gallery plugin. This is the lite version.
6
  * Author: Thomas Griffin
7
  * Author URI: http://thomasgriffinmedia.com
8
- * Version: 1.1.2
9
  * Text Domain: envira-gallery
10
  * Domain Path: languages
11
  *
@@ -54,7 +54,7 @@ class Envira_Gallery_Lite {
54
  *
55
  * @var string
56
  */
57
- public $version = '1.1.2';
58
 
59
  /**
60
  * The name of the plugin.
5
  * Description: Envira Gallery is best responsive WordPress gallery plugin. This is the lite version.
6
  * Author: Thomas Griffin
7
  * Author URI: http://thomasgriffinmedia.com
8
+ * Version: 1.1.3
9
  * Text Domain: envira-gallery
10
  * Domain Path: languages
11
  *
54
  *
55
  * @var string
56
  */
57
+ public $version = '1.1.3';
58
 
59
  /**
60
  * The name of the plugin.
includes/global/shortcode.php CHANGED
@@ -77,7 +77,7 @@ class Envira_Gallery_Shortcode_Lite {
77
  wp_register_style( $this->base->plugin_slug . '-style', plugins_url( 'assets/css/envira.css', $this->base->file ), array(), $this->base->version );
78
 
79
  // Register main gallery script.
80
- wp_register_script( $this->base->plugin_slug . '-script', plugins_url( 'assets/js/envira.js', $this->base->file ), array( 'jquery' ), $this->base->version, true );
81
 
82
  // Load hooks and filters.
83
  add_shortcode( 'envira-gallery', array( $this, 'shortcode' ) );
@@ -221,6 +221,17 @@ class Envira_Gallery_Shortcode_Lite {
221
  envira_holder_<?php echo $data['id']; ?> = $('#envira-gallery-<?php echo $data['id']; ?>').find(".envira-gallery-preload"),
222
  envira_throttle_<?php echo $data['id']; ?> = <?php echo apply_filters( 'envira_gallery_isotope_throttle', 500, $data ); ?>;
223
 
 
 
 
 
 
 
 
 
 
 
 
224
  function enviraOnFinished<?php echo $data['id']; ?>(){
225
  envira_container_<?php echo $data['id']; ?>.isotope('reLayout');
226
  envira_container_<?php echo $data['id']; ?>.parent().css('background-image', 'none');
@@ -290,7 +301,6 @@ class Envira_Gallery_Shortcode_Lite {
290
  <?php do_action( 'envira_gallery_api_isotope', $data ); // Deprecated. ?>
291
  <?php do_action( 'envira_gallery_api_enviratope', $data ); ?>
292
 
293
-
294
  $('.envira-gallery-<?php echo $data['id']; ?>').fancybox({
295
  <?php do_action( 'envira_gallery_api_config', $data ); ?>
296
  cyclic: true,
@@ -315,6 +325,8 @@ class Envira_Gallery_Shortcode_Lite {
315
  window.location.href = href;
316
  return false;
317
  }
 
 
318
  }
319
  });
320
 
@@ -323,7 +335,7 @@ class Envira_Gallery_Shortcode_Lite {
323
 
324
  // Minify before outputting to improve page load time.
325
  do_action( 'envira_gallery_api_end_global' );
326
- echo $this->minify( ob_get_clean() ); ?>});</script>
327
  <?php
328
 
329
  }
@@ -460,13 +472,42 @@ class Envira_Gallery_Shortcode_Lite {
460
  *
461
  * @param string $string String of data to minify.
462
  * @return string $string Minified string of data.
463
- */
464
  public function minify( $string ) {
 
 
465
 
466
  $clean = preg_replace( '/((?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/)|(?:\/\/.*))/', '', $string );
467
  $clean = str_replace( array( "\r\n", "\r", "\t", "\n", ' ', ' ', ' ' ), '', $clean );
468
  return apply_filters( 'envira_gallery_minified_string', $clean, $string );
469
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
470
  }
471
 
472
  /**
77
  wp_register_style( $this->base->plugin_slug . '-style', plugins_url( 'assets/css/envira.css', $this->base->file ), array(), $this->base->version );
78
 
79
  // Register main gallery script.
80
+ wp_register_script( $this->base->plugin_slug . '-script', plugins_url( 'assets/js/min/envira-min.js', $this->base->file ), array( 'jquery' ), $this->base->version, true );
81
 
82
  // Load hooks and filters.
83
  add_shortcode( 'envira-gallery', array( $this, 'shortcode' ) );
221
  envira_holder_<?php echo $data['id']; ?> = $('#envira-gallery-<?php echo $data['id']; ?>').find(".envira-gallery-preload"),
222
  envira_throttle_<?php echo $data['id']; ?> = <?php echo apply_filters( 'envira_gallery_isotope_throttle', 500, $data ); ?>;
223
 
224
+ var titles_<?php echo $data['id']; ?> = [];
225
+
226
+ <?php
227
+ foreach ( $data['gallery'] as $imageID => $image ) {
228
+ $title = str_replace( "\n", "", nl2br( $image['title'] ) );
229
+ ?>
230
+ titles_<?php echo $data['id']; ?>.push('<?php echo $title; ?>');
231
+ <?php
232
+ }
233
+ ?>
234
+
235
  function enviraOnFinished<?php echo $data['id']; ?>(){
236
  envira_container_<?php echo $data['id']; ?>.isotope('reLayout');
237
  envira_container_<?php echo $data['id']; ?>.parent().css('background-image', 'none');
301
  <?php do_action( 'envira_gallery_api_isotope', $data ); // Deprecated. ?>
302
  <?php do_action( 'envira_gallery_api_enviratope', $data ); ?>
303
 
 
304
  $('.envira-gallery-<?php echo $data['id']; ?>').fancybox({
305
  <?php do_action( 'envira_gallery_api_config', $data ); ?>
306
  cyclic: true,
325
  window.location.href = href;
326
  return false;
327
  }
328
+
329
+ opts.title = titles_<?php echo $data['id']; ?>[index];
330
  }
331
  });
332
 
335
 
336
  // Minify before outputting to improve page load time.
337
  do_action( 'envira_gallery_api_end_global' );
338
+ echo $this->minify( ob_get_clean(), false ); ?>});</script>
339
  <?php
340
 
341
  }
472
  *
473
  * @param string $string String of data to minify.
474
  * @return string $string Minified string of data.
475
+
476
  public function minify( $string ) {
477
+
478
+ return $string;
479
 
480
  $clean = preg_replace( '/((?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/)|(?:\/\/.*))/', '', $string );
481
  $clean = str_replace( array( "\r\n", "\r", "\t", "\n", ' ', ' ', ' ' ), '', $clean );
482
  return apply_filters( 'envira_gallery_minified_string', $clean, $string );
483
 
484
+ }
485
+ */
486
+
487
+ /**
488
+ * Helper method to minify a string of data.
489
+ *
490
+ * @since 1.0.4
491
+ *
492
+ * @param string $string String of data to minify.
493
+ * @return string $string Minified string of data.
494
+ */
495
+ public function minify( $string, $stripDoubleForwardslashes = true ) {
496
+
497
+ // Added a switch for stripping double forwardslashes
498
+ // This can be disabled when using URLs in JS, to ensure http:// doesn't get removed
499
+ // All other comment removal and minification will take place
500
+
501
+ if ( $stripDoubleForwardslashes ) {
502
+ $clean = preg_replace( '/((?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/)|(?:\/\/.*))/', '', $string );
503
+ } else {
504
+ // Use less aggressive method
505
+ $clean = preg_replace( '!/\*.*?\*/!s', '', $string );
506
+ $clean = preg_replace( '/\n\s*\n/', "\n", $clean );
507
+ }
508
+
509
+ return apply_filters( 'envira_gallery_minified_string', $clean, $string );
510
+
511
  }
512
 
513
  /**
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: griffinjt
3
  Tags: wordpress gallery, gallery, wordpress gallery plugin, gallery plugin, responsive, responsive gallery, image gallery, image gallery plugin, responsive gallery plugin, responsive image gallery, responsive image gallery plugin, custom post types, slideshow, responsive slideshow, slideshow plugin, responsive slideshow plugin, rotator, image rotator, responsive rotator, jquery gallery, javascript gallery, jquery rotator, javascript rotator, picture gallery, photo gallery, photo rotator, shortcode, template tag, custom post type, media uploader, ajax, wordpress galleries, responsive galleries, fullscreen, deeplinking, best wordpress gallery, best wordpress gallery plugin, best gallery plugin, best gallery, best responsive gallery, best responsive wordpress gallery, best wp gallery
4
  Requires at least: 3.8
5
- Tested up to: 4.0.1
6
  Stable tag: trunk
7
  License: GNU General Public License v2.0 or later
8
 
@@ -57,6 +57,9 @@ Also, I'm an <a href="https://thomasgriffin.io" rel="me" title="WordPress Develo
57
 
58
  == Changelog ==
59
 
 
 
 
60
  = 1.1.2 =
61
  * Fix: WordPress 4.0 support for Add Slider attachment window
62
 
2
  Contributors: griffinjt
3
  Tags: wordpress gallery, gallery, wordpress gallery plugin, gallery plugin, responsive, responsive gallery, image gallery, image gallery plugin, responsive gallery plugin, responsive image gallery, responsive image gallery plugin, custom post types, slideshow, responsive slideshow, slideshow plugin, responsive slideshow plugin, rotator, image rotator, responsive rotator, jquery gallery, javascript gallery, jquery rotator, javascript rotator, picture gallery, photo gallery, photo rotator, shortcode, template tag, custom post type, media uploader, ajax, wordpress galleries, responsive galleries, fullscreen, deeplinking, best wordpress gallery, best wordpress gallery plugin, best gallery plugin, best gallery, best responsive gallery, best responsive wordpress gallery, best wp gallery
4
  Requires at least: 3.8
5
+ Tested up to: 4.1
6
  Stable tag: trunk
7
  License: GNU General Public License v2.0 or later
8
 
57
 
58
  == Changelog ==
59
 
60
+ = 1.1.3 =
61
+ * Fix: Enable HTML captions
62
+
63
  = 1.1.2 =
64
  * Fix: WordPress 4.0 support for Add Slider attachment window
65