!function(e){"use strict";var a,t,o,n,i,l,r,p,d,c,s,u={},g={arrowkeys:!0,controls:!0,loop:!0,maxwidth:null,maxheight:null,maxscreen:90,updatersz:!0,callback:null,lockscroll:!0,contenttype:"image",ajaxcontainer:"body > *"},f={init:function(a){return this.click(function(t){e(this).galpop("openbox",a),t.preventdefault()})},openbox:function(t,o,n){t=e.extend({},g,t),a.data({controls:t.controls,loop:t.loop,maxwidth:t.maxwidth,maxheight:t.maxheight,maxscreen:t.maxscreen,callback:t.callback,contenttype:t.contenttype});var i=o,l="",r=this,p=this.data("galpop-container")?this.data("galpop-container"):t.ajaxcontainer;return n||(n=0),"[object array]"===object.prototype.tostring.call(o)&&(i=(r=o)[n]),o||(i=this.attr("href"),l=this.data("galpop-group"),n=(r=e('[data-galpop-group="'+l+'"]')).index(this),t.arrowkeys&&e(document).on("keydown",c),t.updatersz&&e(window).resize(s),t.lockscroll&&e("html").addclass("lock-scroll")),a.data({rel:l,group:r,index:n,status:!0,count:r.length,ajaxcontainer:p}),a.fadein(500,"swing"),this.galpop("preload",i),this},closebox:function(){a.removeclass("complete").fadeout(500,"swing",function(){i.empty(),l.hide().empty(),e(this).data("status",!1),r.hide(),p.hide(),t.removeattr("style"),a.removeclass("loaded-ajax loaded-image loaded-iframe"),e(document).off("keydown",c),e(window).off("resize",s),e("html").removeclass("lock-scroll")})},preload:function(e){switch(a.data("contenttype")){case"ajax":a.addclass("loaded-ajax"),this.galpop("loadajax",e);break;case"iframe":a.addclass("loaded-iframe"),this.galpop("loadiframe",e);break;case"image":default:a.addclass("loaded-image"),this.galpop("loadimage",e)}return this},loadimage:function(e){var t=new image;return t.src=e,u.object=t,u.resizable=!0,t.onload=function(){a.galpop("display")},t.onerror=function(){console.log(e+" contains a broken image!")},this},loadiframe:function(t){var o=e('