/*
 * AnythingSlider Slide FX 1.4 minified for AnythingSlider v1.5.8+
 * By Rob Garrison (aka Mottie & Fudgey)
 * Dual licensed under the MIT and GPL licenses.
 */
(function(j){j.fn.anythingSliderFx=function(i){var l=j(this).closest(".anythingSlider"),h=l.width(),m=l.height(),o=function(a){return{top:[{inFx:{top:0},outFx:{top:"-"+(a||m)}}],bottom:[{inFx:{bottom:0},outFx:{bottom:a||m}}],left:[{inFx:{left:0},outFx:{left:"-"+(a||h)}}],right:[{inFx:{right:0},outFx:{right:a||h}}],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|| h,opacity:0},{left:"-"+(a||h),opacity:0}],selector:[":odd",":even"]}],listRL:[{inFx:{left:0,opacity:1},outFx:[{left:a||h,opacity:0},{left:"-"+(a||h),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(){var a=o(),h={easing:"swing",timeIn:400,timeOut:350},l=function(d){d.each(function(){j(this).closest(".panel").is(".activePage")||j(this).css("visibility","hidden")})},n=function(d,b,c,a){if(!(d.length===0||typeof b==="undefined")){var e=b[0]||b,g=e[1]||"",h=parseInt(g===""?e.duration:e[0].duration,10);if(c&&(d.css("position")!=="absolute"&&d.css({position:"relative"}),d.stop(),g!=="")){d.filter(b[1][0]).animate(e[0],{queue:!1,duration:(a||h)/4,easing:e[0].easing});d.filter(b[1][1]).animate(g, {queue:!0,duration:(a||h)/4,easing:e[0].easing,complete:function(){setTimeout(function(){l(d)},0)}});return}c||d.css("visibility","visible").show();d.animate(e,{queue:!0,duration:a||h,easing:e.easing,complete:function(){c&&setTimeout(function(){l(d)},0)}})}},m=function(d,b){var c,f,e=b?"outFx":"inFx",g={},i=b?h.timeOut:h.timeIn,k=j.trim(d[0].replace(/\s+/g," ")).split(" ");if(b&&k.length===1&&a.hasOwnProperty(k)&&typeof a[k][0].selector!=="undefined")return f=a[k][0].outFx,f[0].duration=d[2]||h.timeOut, f[0].easing=d[3]||h.easing,[f,a[k][0].selector||[]];j.each(k,function(b,f){if(a.hasOwnProperty(f)){var k=f==="fade"?1:2;c=typeof d[1]==="undefined"?a:o(d[1]);j.extend(!0,g,c[f][0][e]);g.duration=d[k]||g.duration||i;g.easing=d[k+1]||h.easing}});return[g]};j(this).bind("slide_init",function(a,b){var c,f,e,g=b.$lastPage.add(b.$items.eq(b.exactPage));b.exactPage===0&&(g=g.add(b.$items.eq(b.pages)));b.options.animationTime<h.timeOut&&(e=b.options.animationTime||1);g=g.find("*").andSelf();for(c in i)if(c=== "outFx")for(f in i.outFx)g.filter(f).length&&n(g.filter(f),i.outFx[f],!0);else c!=="inFx"&&j.isArray(i[c])&&g.filter(c).length&&n(g.filter(c),m(i[c],!0),!0,e)}).bind("slide_complete",function(a,b){var c,f,e=b.$currentPage.add(b.$items.eq(b.exactPage)),e=e.find("*").andSelf();for(c in i)if(c==="inFx")for(f in i.inFx)e.filter(f).length&&n(e.filter(f),i.inFx[f],!1);else c!=="outFx"&&j.isArray(i[c])&&e.filter(c).length&&n(e.filter(c),m(i[c],!1),!1)})})}})(jQuery);

