/*
 * AnythingSlider Slide FX 1.5.2 minified for AnythingSlider v1.5.8+
 * By Rob Garrison (aka Mottie & Fudgey)
 * Dual licensed under the MIT and GPL licenses.
 */
(function(h){h.fn.anythingSliderFx=function(q,r){var i=h(this).closest(".anythingSlider"),g=i.width(),o=i.height(),p=function(a){return{top:[{inFx:{top:0},outFx:{top:"-"+(a||o)}}],bottom:[{inFx:{top:0},outFx:{top:a||o}}],left:[{inFx:{left:0},outFx:{left:"-"+(a||g)}}],right:[{inFx:{left:0},outFx:{left:a||g}}],fade:[{inFx:{opacity:1},outFx:{opacity:0}}],expand:[{inFx:{width:"100%",top:"0%",left:"0%"},outFx:{width:a||"10%",top:"50%",left:"50%"}}],listLR:[{inFx:{left:0,opacity:1},outFx:[{left:a||g,opacity:0}, {left:"-"+(a||g),opacity:0}],selector:[":odd",":even"]}],listRL:[{inFx:{left:0,opacity:1},outFx:[{left:a||g,opacity:0},{left:"-"+(a||g),opacity:0}],selector:[":even",":odd"]}],"caption-Top":[{inFx:{top:0,opacity:0.8},outFx:{top:"-"+a||-50,opacity:0}}],"caption-Right":[{inFx:{right:0,opacity:0.8},outFx:{right:"-"+a||-150,opacity:0}}],"caption-Bottom":[{inFx:{bottom:0,opacity:0.8},outFx:{bottom:"-"+a||-50,opacity:0}}],"caption-Left":[{inFx:{left:0,opacity:0.8},outFx:{left:"-"+a||-150,opacity:0}}]}}; return this.each(function(){h(this).data("AnythingSlider").fx=q;var a=h.extend({easing:"swing",timeIn:400,timeOut:350},r),g=p(),l=function(a,b,e,d){if(!(a.length===0||typeof b==="undefined")){var f=b[0]||b,c=f[1]||"",d=d||parseInt(c===""?f.duration:f[0].duration,10);if(e&&(a.css("position")!=="absolute"&&a.css({position:"relative"}),a.stop(),c!=="")){a.filter(b[1][0]).animate(f[0],{queue:!1,duration:d,easing:f[0].easing});a.filter(b[1][1]).animate(c,{queue:!0,duration:d,easing:f[0].easing});return}a.animate(f, {queue:!0,duration:d,easing:f.easing})}},i=function(j,b){var e,d,f=b?"outFx":"inFx",c={},m=b?a.timeOut:a.timeIn,k=h.trim(j[0].replace(/\s+/g," ")).split(" ");if(b&&k.length===1&&g.hasOwnProperty(k)&&typeof g[k][0].selector!=="undefined")return d=g[k][0].outFx,d[0].duration=j[2]||a.timeOut,d[0].easing=j[3]||a.easing,[d,g[k][0].selector||[]];h.each(k,function(d,k){if(g.hasOwnProperty(k)){var i=typeof j[1]==="undefined"||j[1]==="",l=k==="fade"?1:2;e=i?g:p(j[1]);h.extend(!0,c,e[k][0][f]);i=j[l]||c.duration|| m;c.duration=b?i/2:i;c.easing=isNaN(j[l+1])?j[l+1]||a.easing:j[l+2]||a.easing}});return[c]},n=h(this).bind("slide_init",function(g,b){var e,d,f,c=b.$lastPage.add(b.$items.eq(b.exactPage)).add(b.$targetPage),m=h(this).data("AnythingSlider").fx;b.exactPage===0&&(c=c.add(b.$items.eq(b.pages)));b.options.animationTime<a.timeOut&&(f=b.options.animationTime||1);c=c.find("*").andSelf();for(e in m)if(e==="outFx")for(d in m.outFx)c.filter(d).length&&l(c.filter(d),m.outFx[d],!0);else e!=="inFx"&&h.isArray(m[e])&& c.filter(e).length&&l(c.filter(e),i(m[e],!0),!0,f)}).bind("slide_complete",function(a,b){var e,d,f=b.$currentPage.add(b.$items.eq(b.exactPage)),c=h(this).data("AnythingSlider").fx,f=f.find("*").andSelf();for(e in c)if(e==="inFx")for(d in c.inFx)f.filter(d).length&&l(f.filter(d),c.inFx[d],!1);else e!=="outFx"&&h.isArray(c[e])&&f.filter(e).length&&l(f.filter(e),i(c[e],!1),!1)}).data("AnythingSlider");n.gotoPage(n.currentPage,n.playing)})}})(jQuery);

