/*! fancyBox v2.1.4 fancyapps.com | fancyapps.com/fancybox/#license */ (function(c,j,i,a){var d=i(c),g=i(j),k=i.fancybox=function(){k.open.apply(this,arguments)},u=navigator.userAgent.match(/msie/),o=null,A=j.createTouch!==a,y=function(b){return b&&b.hasOwnProperty&&b instanceof i},e=function(b){return b&&"string"===i.type(b)},v=function(b){return e(b)&&0
',image:'',iframe:'",error:'

The requested content cannot be loaded.
Please try again later.

',closeBtn:'',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeChange:i.noop,beforeClose:i.noop,afterClose:i.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(b,f){if(b&&(i.isPlainObject(f)||(f={}),!1!==k.close(!0))){return i.isArray(b)||(b=y(b)?i(b).get():[b]),i.each(b,function(w,x){var q={},t,s,r,n,p;"object"===i.type(x)&&(x.nodeType&&(x=i(x)),y(x)?(q={href:x.data("fancybox-href")||x.attr("href"),title:x.data("fancybox-title")||x.attr("title"),isDom:!0,element:x},i.metadata&&i.extend(!0,q,x.metadata())):q=x);t=f.href||q.href||(e(x)?x:null);s=f.title!==a?f.title:q.title||"";n=(r=f.content||q.content)?"html":f.type||q.type;!n&&q.isDom&&(n=x.data("fancybox-type"),n||(n=(n=x.prop("class").match(/fancybox\.(\w+)/))?n[1]:null));e(t)&&(n||(k.isImage(t)?n="image":k.isSWF(t)?n="swf":"#"===t.charAt(0)?n="inline":e(x)&&(n="html",r=x)),"ajax"===n&&(p=t.split(/\s+/,2),t=p.shift(),p=p.shift()));r||("inline"===n?t?r=i(e(t)?t.replace(/.*(?=#[^\s]+$)/,""):t):q.isDom&&(r=x):"html"===n?r=t:!n&&(!t&&q.isDom)&&(n="inline",r=x));i.extend(q,{href:t,type:n,content:r,title:s,selector:p});b[w]=q}),k.opts=i.extend(!0,{},k.defaults,f),f.keys!==a&&(k.opts.keys=f.keys?i.extend({},k.defaults.keys,f.keys):!1),k.group=b,k._start(k.opts.index)}},cancel:function(){var b=k.coming;b&&!1!==k.trigger("onCancel")&&(k.hideLoading(),k.ajaxLoad&&k.ajaxLoad.abort(),k.ajaxLoad=null,k.imgPreload&&(k.imgPreload.onload=k.imgPreload.onerror=null),b.wrap&&b.wrap.stop(!0,!0).trigger("onReset").remove(),k.coming=null,k.current||k._afterZoomOut(b))},close:function(b){k.cancel();!1!==k.trigger("beforeClose")&&(k.unbindEvents(),k.isActive&&(!k.isOpen||!0===b?(i(".fancybox-wrap").stop(!0).trigger("onReset").remove(),k._afterZoomOut()):(k.isOpen=k.isOpened=!1,k.isClosing=!0,i(".fancybox-item, .fancybox-nav").remove(),k.wrap.stop(!0,!0).removeClass("fancybox-opened"),k.transitions[k.current.closeMethod]())))},play:function(b){var l=function(){clearTimeout(k.player.timer)},f=function(){l();k.current&&k.player.isActive&&(k.player.timer=setTimeout(k.next,k.current.playSpeed))},n=function(){l();i("body").unbind(".player");k.player.isActive=!1;k.trigger("onPlayEnd")};if(!0===b||!k.player.isActive&&!1!==b){if(k.current&&(k.current.loop||k.current.index=n.index?"next":"prev"],k.router=f||"jumpto",n.loop&&(0>b&&(b=n.group.length+b%n.group.length),b%=n.group.length),n.group[b]!==a&&(k.cancel(),k._start(b)))},reposition:function(b,n){var l=k.current,p=l?l.wrap:null,f;p&&(f=k._getPosition(n),b&&"scroll"===b.type?(delete f.position,p.stop(!0,!0).animate(f,200)):(p.css(f),l.pos=i.extend({},l.dim,f)))},update:function(b){var l=b&&b.type,f=!l||"orientationchange"===l;f&&(clearTimeout(o),o=null);k.isOpen&&!o&&(o=setTimeout(function(){var n=k.current;n&&!k.isClosing&&(k.wrap.removeClass("fancybox-tmp"),(f||"load"===l||"resize"===l&&n.autoResize)&&k._setDimension(),"scroll"===l&&n.canShrink||k.reposition(b),k.trigger("onUpdate"),o=null)},f&&!A?0:300))},toggle:function(b){k.isOpen&&(k.current.fitToView="boolean"===i.type(b)?b:!k.current.fitToView,A&&(k.wrap.removeAttr("style").addClass("fancybox-tmp"),k.trigger("onUpdate")),k.update())},hideLoading:function(){g.unbind(".loading");i("#fancybox-loading").remove()},showLoading:function(){var b,f;k.hideLoading();b=i('
').click(k.cancel).appendTo("body");g.bind("keydown.loading",function(l){if(27===(l.which||l.keyCode)){l.preventDefault(),k.cancel()}});k.defaults.fixed||(f=k.getViewport(),b.css({position:"absolute",top:0.5*f.h+f.y,left:0.5*f.w+f.x}))},getViewport:function(){var b=k.current&&k.current.locked||!1,f={x:d.scrollLeft(),y:d.scrollTop()};b?(f.w=b[0].clientWidth,f.h=b[0].clientHeight):(f.w=A&&c.innerWidth?c.innerWidth:d.width(),f.h=A&&c.innerHeight?c.innerHeight:d.height());return f},unbindEvents:function(){k.wrap&&y(k.wrap)&&k.wrap.unbind(".fb");g.unbind(".fb");d.unbind(".fb")},bindEvents:function(){var b=k.current,f;b&&(d.bind("orientationchange.fb"+(A?"":" resize.fb")+(b.autoCenter&&!b.locked?" scroll.fb":""),k.update),(f=b.keys)&&g.bind("keydown.fb",function(n){var p=n.which||n.keyCode,l=n.target||n.srcElement;if(27===p&&k.coming){return !1}!n.ctrlKey&&(!n.altKey&&!n.shiftKey&&!n.metaKey&&(!l||!l.type&&!i(l).is("[contenteditable]")))&&i.each(f,function(r,q){if(1p[0].clientWidth||p[0].clientHeight&&p[0].scrollHeight>p[0].clientHeight),p=i(p).parent()}if(0!==s&&!n&&1q||0>l){k.next(0>q?"up":"right")}}r.preventDefault()}}))},trigger:function(b,l){var f,n=l||k.coming||k.current;if(n){i.isFunction(n[b])&&(f=n[b].apply(n,Array.prototype.slice.call(arguments,1)));if(!1===f){return !1}n.helpers&&i.each(n.helpers,function(q,p){p&&(k.helpers[q]&&i.isFunction(k.helpers[q][b]))&&(p=i.extend(!0,{},k.helpers[q].defaults,p),k.helpers[q][b](p,n))});i.event.trigger(b+".fb")}},isImage:function(b){return e(b)&&b.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?$)/i)},isSWF:function(b){return e(b)&&b.match(/\.(swf)((\?|#).*)?$/i)},_start:function(b){var l={},f,n;b=h(b);f=k.group[b]||null;if(!f){return !1}l=i.extend(!0,{},k.opts,f);f=l.margin;n=l.padding;"number"===i.type(f)&&(l.margin=[f,f,f,f]);"number"===i.type(n)&&(l.padding=[n,n,n,n]);l.modal&&i.extend(!0,l,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});l.autoSize&&(l.autoWidth=l.autoHeight=!0);"auto"===l.width&&(l.autoWidth=!0);"auto"===l.height&&(l.autoHeight=!0);l.group=k.group;l.index=b;k.coming=l;if(!1===k.trigger("beforeLoad")){k.coming=null}else{n=l.type;f=l.href;if(!n){return k.coming=null,k.current&&k.router&&"jumpto"!==k.router?(k.current.index=b,k[k.router](k.direction)):!1}k.isActive=!0;if("image"===n||"swf"===n){l.autoHeight=l.autoWidth=!1,l.scrolling="visible"}"image"===n&&(l.aspectRatio=!0);"iframe"===n&&A&&(l.scrolling="scroll");l.wrap=i(l.tpl.wrap).addClass("fancybox-"+(A?"mobile":"desktop")+" fancybox-type-"+n+" fancybox-tmp "+l.wrapCSS).appendTo(l.parent||"body");i.extend(l,{skin:i(".fancybox-skin",l.wrap),outer:i(".fancybox-outer",l.wrap),inner:i(".fancybox-inner",l.wrap)});i.each(["Top","Right","Bottom","Left"],function(q,p){l.skin.css("padding"+p,m(l.padding[q]))});k.trigger("onReady");if("inline"===n||"html"===n){if(!l.content||!l.content.length){return k._error("content")}}else{if(!f){return k._error("href")}}"image"===n?k._loadImage():"ajax"===n?k._loadAjax():"iframe"===n?k._loadIframe():k._afterLoad()}},_error:function(b){i.extend(k.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:b,content:k.coming.tpl.error});k._afterLoad()},_loadImage:function(){var b=k.imgPreload=new Image;b.onload=function(){this.onload=this.onerror=null;k.coming.width=this.width;k.coming.height=this.height;k._afterLoad()};b.onerror=function(){this.onload=this.onerror=null;k._error("image")};b.src=k.coming.href;!0!==b.complete&&k.showLoading()},_loadAjax:function(){var b=k.coming;k.showLoading();k.ajaxLoad=i.ajax(i.extend({},b.ajax,{url:b.href,error:function(f,l){k.coming&&"abort"!==l?k._error("ajax",f):k.hideLoading()},success:function(l,f){"success"===f&&(b.content=l,k._afterLoad())}}))},_loadIframe:function(){var b=k.coming,f=i(b.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",A?"auto":b.iframe.scrolling).attr("src",b.href);i(b.wrap).bind("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(l){}});b.iframe.preload&&(k.showLoading(),f.one("load",function(){i(this).data("ready",1);A||i(this).bind("load.fb",k.update);i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();k._afterLoad()}));b.content=f.appendTo(b.inner);b.iframe.preload||k._afterLoad()},_preloadImages:function(){var b=k.group,q=k.current,p=b.length,r=q.preload?Math.min(q.preload,p-1):0,n,l;for(l=1;l<=r;l+=1){n=b[(q.index+l)%p],"image"===n.type&&n.href&&((new Image).src=n.href)}},_afterLoad:function(){var b=k.coming,q=k.current,p,r,f,n,l;k.hideLoading();if(b&&!1!==k.isActive){if(!1===k.trigger("afterLoad",b,q)){b.wrap.stop(!0).trigger("onReset").remove(),k.coming=null}else{q&&(k.trigger("beforeChange",q),q.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());k.unbindEvents();p=b.content;r=b.type;f=b.scrolling;i.extend(k,{wrap:b.wrap,skin:b.skin,outer:b.outer,inner:b.inner,current:b,previous:q});n=b.href;switch(r){case"inline":case"ajax":case"html":b.selector?p=i("
").html(p).find(b.selector):y(p)&&(p.data("fancybox-placeholder")||p.data("fancybox-placeholder",i('
').insertAfter(p).hide()),p=p.show().detach(),b.wrap.bind("onReset",function(){i(this).find(p).length&&p.hide().replaceAll(p.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case"image":p=b.tpl.image.replace("{href}",n);break;case"swf":p='',l="",i.each(b.swf,function(t,s){p+='';l+=" "+t+'="'+s+'"'}),p+='"}(!y(p)||!p.parent().is(b.inner))&&b.inner.append(p);k.trigger("beforeShow");b.inner.css("overflow","yes"===f?"scroll":"no"===f?"hidden":f);k._setDimension();k.reposition();k.isOpen=!1;k.coming=null;k.bindEvents();if(k.isOpened){if(q.prevMethod){k.transitions[q.prevMethod]()}}else{i(".fancybox-wrap").not(b.wrap).stop(!0).trigger("onReset").remove()}k.transitions[k.isOpened?b.nextMethod:b.openMethod]();k._preloadImages()}}},_setDimension:function(){var ad=k.getViewport(),ab=0,aa=!1,ac=!1,aa=k.wrap,W=k.skin,Z=k.inner,Y=k.current,ac=Y.width,X=Y.height,V=Y.minWidth,J=Y.minHeight,U=Y.maxWidth,I=Y.maxHeight,N=Y.scrolling,R=Y.scrollOutside?Y.scrollbarWidth:0,f=Y.margin,T=h(f[1]+f[3]),P=h(f[0]+f[2]),b,S,L,M,Q,F,O,K,x;aa.add(W).add(Z).width("auto").height("auto").removeClass("fancybox-tmp");f=h(W.outerWidth(!0)-W.width());b=h(W.outerHeight(!0)-W.height());S=T+f;L=P+b;M=v(ac)?(ad.w-S)*h(ac)/100:ac;Q=v(X)?(ad.h-L)*h(X)/100:X;if("iframe"===Y.type){if(x=Y.content,Y.autoHeight&&1===x.data("ready")){try{x[0].contentWindow.document.location&&(Z.width(M).height(9999),F=x.contents().find("body"),R&&F.css("overflow-x","hidden"),Q=F.height())}catch(l){}}}else{if(Y.autoWidth||Y.autoHeight){Z.addClass("fancybox-tmp"),Y.autoWidth||Z.width(M),Y.autoHeight||Z.height(Q),Y.autoWidth&&(M=Z.width()),Y.autoHeight&&(Q=Z.height()),Z.removeClass("fancybox-tmp")}}ac=h(M);X=h(Q);K=M/Q;V=h(v(V)?h(V,"w")-S:V);U=h(v(U)?h(U,"w")-S:U);J=h(v(J)?h(J,"h")-L:J);I=h(v(I)?h(I,"h")-L:I);F=U;O=I;Y.fitToView&&(U=Math.min(ad.w-S,U),I=Math.min(ad.h-L,I));S=ad.w-T;P=ad.h-P;Y.aspectRatio?(ac>U&&(ac=U,X=h(ac/K)),X>I&&(X=I,ac=h(X*K)),acS||T>P)&&(ac>V&&X>J)&&!(19U&&(ac=U,X=h(ac/K)),Z.width(ac).height(X),aa.width(ac+f),ad=aa.width(),T=aa.height()}}else{ac=Math.max(V,Math.min(ac,ac-(ad-S))),X=Math.max(J,Math.min(X,X-(T-P)))}}R&&("auto"===N&&XS||T>P)&&ac>V&&X>J;ac=Y.aspectRatio?acJ&&X
').appendTo("body");this.fixed=!1;b.fixed&&k.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(b){var f=this;b=i.extend({},this.defaults,b);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(b);this.fixed||(d.bind("resize.overlay",i.proxy(this.update,this)),this.update());b.closeClick&&this.overlay.bind("click.overlay",function(l){i(l.target).hasClass("fancybox-overlay")&&(k.isActive?k.close():f.close())});this.overlay.css(b.css).show()},close:function(){i(".fancybox-overlay").remove();d.unbind("resize.overlay");this.overlay=null;!1!==this.margin&&(i("body").css("margin-right",this.margin),this.margin=!1);this.el&&this.el.removeClass("fancybox-lock")},update:function(){var l="100%",f;this.overlay.width(l).height("100%");u?(f=Math.max(j.documentElement.offsetWidth,j.body.offsetWidth),g.width()>f&&(l=g.width())):g.width()>d.width()&&(l=g.width());this.overlay.width(l).height(g.height())},onReady:function(l,f){i(".fancybox-overlay").stop(!0,!0);this.overlay||(this.margin=g.height()>d.height()||"scroll"===i("body").css("overflow-y")?i("body").css("margin-right"):!1,this.el=j.all&&!j.querySelector?i("html"):i("body"),this.create(l));l.locked&&this.fixed&&(f.locked=this.overlay.append(f.wrap),f.fixed=!1);!0===l.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(l,f){f.locked&&(this.el.addClass("fancybox-lock"),!1!==this.margin&&i("body").css("margin-right",h(this.margin)+f.scrollbarWidth));this.open(l)},onUpdate:function(){this.fixed||this.update()},afterClose:function(b){this.overlay&&!k.isActive&&this.overlay.fadeOut(b.speedOut,i.proxy(this.close,this))}};k.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(b){var l=k.current,f=l.title,n=b.type;i.isFunction(f)&&(f=f.call(l.element,l));if(e(f)&&""!==i.trim(f)){l=i('
'+f+"
");switch(n){case"inside":n=k.skin;break;case"outside":n=k.wrap;break;case"over":n=k.inner;break;default:n=k.skin,l.appendTo("body"),u&&l.width(l.width()),l.wrapInner(''),k.current.margin[2]+=Math.abs(h(l.css("margin-bottom")))}l["top"===b.position?"prependTo":"appendTo"](n)}}};i.fn.fancybox=function(b){var n,l=i(this),p=this.selector||"",f=function(w){var t=i(this).blur(),s=n,r,q;!w.ctrlKey&&(!w.altKey&&!w.shiftKey&&!w.metaKey)&&!t.is(".fancybox-wrap")&&(r=b.groupAttr||"data-fancybox-group",q=t.attr(r),q||(r="rel",q=t.get(0)[r]),q&&(""!==q&&"nofollow"!==q)&&(t=p.length?i(p):l,t=t.filter("["+r+'="'+q+'"]'),s=t.index(this)),b.index=s,!1!==k.open(t,b)&&w.preventDefault())};b=b||{};n=b.index||0;!p||!1===b.live?l.unbind("click.fb-start").bind("click.fb-start",f):g.undelegate(p,"click.fb-start").delegate(p+":not('.fancybox-item, .fancybox-nav')","click.fb-start",f);this.filter("[data-fancybox-start=1]").trigger("click");return this};g.ready(function(){i.scrollbarWidth===a&&(i.scrollbarWidth=function(){var p=i('
').appendTo("body"),n=p.children(),n=n.innerWidth()-n.height(99).innerWidth();p.remove();return n});if(i.support.fixedPosition===a){var b=i.support,l=i('
').appendTo("body"),f=20===l[0].offsetTop||15===l[0].offsetTop;l.remove();b.fixedPosition=f}i.extend(k.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i("body")})})})(window,document,jQuery);