/**
* Featherlight Gallery – an extension for the ultra slim jQuery lightbox
* Version 0.3.1 - http://noelboss.github.io/featherlight/
*
* Copyright 2014, Noël Raoul Bossart (http://www.noelboss.com)
* MIT Licensed.
**/!function(a){"use strict";if("undefined"!==a){if("function"!=typeof a.featherlight&&"object"==typeof window.console)return window.console.log("Load the featherlight plugin before the gallery plugin"),void 0;a.fn.featherlightGallery=function(b){var c=a(this),d={gallery:{previous:"◀",next:"▶",fadeIn:100,fadeOut:300},type:{image:!0},open:function(b){a.proxy(a.featherlight.methods.open,this,b)();var d=this,e=d.$instance.find("img");e.load(function(){e.stop().fadeTo(d.config.gallery.fadeIn,1).nextAll().remove();var b=this,f=function(a){e.fadeTo(d.config.gallery.fadeOut,.2),d.$elm=a,b.src=a.attr("href")},g=a(''+d.config.gallery.next+"").click(function(){var a=c.eq(c.index(d.$elm)+1);a.length<1&&(a=c.first()),f(a)}),h=a(''+d.config.gallery.previous+"").click(function(){var a=c.eq(c.index(d.$elm)-1);a.length<1&&(a=c.last()),f(a)});e.after(h).after(g)})}};c.featherlight(a.extend(!0,{},d,b))},a.featherlightGallery=function(b,c){"object"!=typeof b&&(b=a(b)),b.featherlightGallery(c)}}}("function"==typeof jQuery?jQuery:console.error("Too much lightness, Featherlight needs jQuery."));