/*!
 * jQuery imagesLoaded plugin v1.0.3
 * http://github.com/desandro/imagesloaded
 *
 * MIT License. by Paul Irish et al.
 */
(function(a,b){a.fn.imagesLoaded=function(i){var g=this,e=g.find("img").add(g.filter("img")),c=e.length,h="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==";function f(){i.call(g,e)}function d(){if(--c<=0&&this.src!==h){setTimeout(f);e.unbind("load error",d)}}if(!c){f()}e.bind("load error",d).each(function(){if(this.complete||this.complete===b){var j=this.src;
this.src=h;this.src=j}});return g}})(jQuery);
/*!
 * Portfolio Slideshow Pro
 */
(function(a){a(window).load(function(){var d,b,c;currSlide=new Array();d=portfolioSlideshowOptions.psLoader;c=portfolioSlideshowOptions.psFluid;b=portfolioSlideshowOptions.psHash;if(jQuery.browser.msie&&parseInt(jQuery.browser.version)<8){ie=true}else{ie=false}if(d===true){a(".slideshow-wrapper").delay(1000).queue(function(){a(".portfolio-slideshow, .slideshow-nav, .pager").css("visibility","visible");a(this).removeClass("showloader")
})}a("div[id^=portfolio-slideshow]").each(function(){var j=this.id.match(/portfolio-slideshow(\d+)/)[1];var h=a("#slideshow-wrapper"+j);var i=a("#slideshow-nav"+j);var o=a("#portfolio-slideshow"+j);var k=o.find(".slideshow-content img");var f=h.find(".show");var m=h.find(".hide");var n=h.find(".pscarousel");var g=i.find(".play");var l=i.find(".pause");var e=i.find(".restart");if(ie===true){h.addClass("ie")}a(function(){var s=0,t=window.location.hash;if(/\d+/.exec(t)){s=/\d+/.exec(t)[0];s=(parseInt(s)||1)-1
}a.fn.cycle.updateActivePagerLink=function(w,x){a(w).find("img").removeClass("activeSlide").filter("#pager"+j+" img:eq("+x+")").addClass("activeSlide")};function u(){o.cycle({fx:psTrans[j],speed:psSpeed[j],timeout:psTimeout[j],nowrap:psNoWrap[j],next:"#slideshow-wrapper"+j+" a.slideshow-next, #slideshow-wrapper"+j+" #psnext"+j,startingSlide:s,prev:"#slideshow-wrapper"+j+" a.slideshow-prev , #slideshow-wrapper"+j+" #psprev"+j,before:v,after:p,end:r,slideExpr:".slideshow-content",manualTrump:true,slideResize:false,containerResize:false,pager:"#pager"+j,cleartypeNoBg:true,pagerAnchorBuilder:q})
}u();k.each(function(){a(this).attr("src",a(this).attr("data-img"))});if(psAutoplay[j]===false){o.cycle("pause")}else{g.fadeOut(100,function(){l.fadeIn(10)})}l.click(function(){a(this).fadeOut(100,function(){g.fadeIn(10)});o.cycle("pause")});g.click(function(){o.cycle("resume");a(this).fadeOut(100,function(){l.fadeIn(10)})});e.click(function(){a("#pager"+j+" .numbers").empty();a(this).fadeOut(100,function(){l.fadeIn(10)});u()});a(window).resize(function(){o.css("width","").css("height","");var w,x;
w=o.find(".slideshow-content").eq(currSlide[j]).outerHeight();x=o.find(".slideshow-content").eq(currSlide[j]).width();o.css("height",w).css("width",x)});function q(x,w){return"#pager"+j+" img:eq("+(x)+")"}function v(B,y,z){var x=a(this);var w,A;w=x.height();A=x.width();o.height(w).width(A);x.find("img").imagesLoaded(function(){var C,D;C=x.parents(".slideshow-content").height();D=x.parents(".slideshow-content").width();o.height(C).width(D)})}function p(C,z,A){var x=a(this);currSlide[j]=A.currSlide;
var w,B;w=x.height();B=x.width();if(ie===true){o.height(w).width(B)}if(psNoWrap[j]===true){if(A.currSlide===0){i.find(".slideshow-prev, .sep").addClass("inactive")}else{i.find(".slideshow-prev, .sep").removeClass("inactive")}if(A.currSlide===A.slideCount-1){i.find(".slideshow-next, .sep").addClass("inactive")}else{i.find(".slideshow-next").removeClass("inactive")}}if(b===true){window.location.hash=A.currSlide+1}var y=(A.currSlide+1)+" of "+A.slideCount;a(".slideshow-info"+j).html(y)}function r(){i.find(".slideshow-next, .sep").addClass("inactive");
l.hide();g.hide();e.show()}})})})})(jQuery);
