/*! fancybox v2.1.4 fancyapps.com | fancyapps.com/fancybox/#license */ (function(c,z,f,r){var q=f(c),n=f(z),b=f.fancybox=function(){b.open.apply(this,arguments)},h=navigator.useragent.match(/msie/),w=null,s=z.createtouch!==r,t=function(a){return a&&a.hasownproperty&&a instanceof f},p=function(a){return a&&"string"===f.type(a)},f=function(a){return p(a)&&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:f.noop,beforeload:f.noop,afterload:f.noop,beforeshow:f.noop,aftershow:f.noop,beforechange:f.noop,beforeclose:f.noop,afterclose:f.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(a,d){if(a&&(f.isplainobject(d)||(d={}),!1!==b.close(!0)))return f.isarray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodetype&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isdom:!0,element:c},f.metadata&&f.extend(!0,k, c.metadata())):k=c);g=d.href||k.href||(p(c)?c:null);h=d.title!==r?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isdom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));p(g)&&(m||(b.isimage(g)?m="image":b.isswf(g)?m="swf":"#"===g.charat(0)?m="inline":p(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(p(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isdom&&(j=c):"html"===m?j=g:!m&&(!g&& k.isdom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==r&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("oncancel")&&(b.hideloading(),b.ajaxload&&b.ajaxload.abort(),b.ajaxload=null,b.imgpreload&&(b.imgpreload.onload=b.imgpreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onreset").remove(),b.coming=null,b.current|| b._afterzoomout(a))},close:function(a){b.cancel();!1!==b.trigger("beforeclose")&&(b.unbindevents(),b.isactive&&(!b.isopen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onreset").remove(),b._afterzoomout()):(b.isopen=b.isopened=!1,b.isclosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeclass("fancybox-opened"),b.transitions[b.current.closemethod]())))},play:function(a){var d=function(){cleartimeout(b.player.timer)},e=function(){d();b.current&&b.player.isactive&&(b.player.timer= settimeout(b.next,b.current.playspeed))},c=function(){d();f("body").unbind(".player");b.player.isactive=!1;b.trigger("onplayend")};if(!0===a||!b.player.isactive&&!1!==a){if(b.current&&(b.current.loop||b.current.index=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==r&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getposition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({}, e.dim,k)))},update:function(a){var d=a&&a.type,e=!d||"orientationchange"===d;e&&(cleartimeout(w),w=null);b.isopen&&!w&&(w=settimeout(function(){var c=b.current;c&&!b.isclosing&&(b.wrap.removeclass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoresize)&&b._setdimension(),"scroll"===d&&c.canshrink||b.reposition(a),b.trigger("onupdate"),w=null)},e&&!s?0:300))},toggle:function(a){b.isopen&&(b.current.fittoview="boolean"===f.type(a)?a:!b.current.fittoview,s&&(b.wrap.removeattr("style").addclass("fancybox-tmp"), b.trigger("onupdate")),b.update())},hideloading:function(){n.unbind(".loading");f("#fancybox-loading").remove()},showloading:function(){var a,d;b.hideloading();a=f('
').click(b.cancel).appendto("body");n.bind("keydown.loading",function(a){if(27===(a.which||a.keycode))a.preventdefault(),b.cancel()});b.defaults.fixed||(d=b.getviewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getviewport:function(){var a=b.current&&b.current.locked|| !1,d={x:q.scrollleft(),y:q.scrolltop()};a?(d.w=a[0].clientwidth,d.h=a[0].clientheight):(d.w=s&&c.innerwidth?c.innerwidth:q.width(),d.h=s&&c.innerheight?c.innerheight:q.height());return d},unbindevents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");n.unbind(".fb");q.unbind(".fb")},bindevents:function(){var a=b.current,d;a&&(q.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autocenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&n.bind("keydown.fb",function(e){var c=e.which||e.keycode,k= e.target||e.srcelement;if(27===c&&b.coming)return!1;!e.ctrlkey&&(!e.altkey&&!e.shiftkey&&!e.metakey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1h[0].clientwidth||h[0].clientheight&&h[0].scrollheight>h[0].clientheight),h=f(h).parent();if(0!==c&&!j&&1g||0>k)b.next(0>g?"up":"right");d.preventdefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isfunction(c[a])&&(e=c[a].apply(c,array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d, e){e&&(b.helpers[d]&&f.isfunction(b.helpers[d][a]))&&(e=f.extend(!0,{},b.helpers[d].defaults,e),b.helpers[d][a](e,c))});f.event.trigger(a+".fb")}},isimage:function(a){return p(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp)((\?|#).*)?$)/i)},isswf:function(a){return p(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&& (d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closebtn:!1,closeclick:!1,nextclick:!1,arrows:!1,mousewheel:!1,keys:null,helpers:{overlay:{closeclick:!1}}});d.autosize&&(d.autowidth=d.autoheight=!0);"auto"===d.width&&(d.autowidth=!0);"auto"===d.height&&(d.autoheight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeload"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isactive= !0;if("image"===c||"swf"===c)d.autoheight=d.autowidth=!1,d.scrolling="visible";"image"===c&&(d.aspectratio=!0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addclass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapcss).appendto(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["top","right","bottom","left"],function(a,b){d.skin.css("padding"+b,x(d.padding[a]))});b.trigger("onready"); if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href");"image"===c?b._loadimage():"ajax"===c?b._loadajax():"iframe"===c?b._loadiframe():b._afterload()}},_error:function(a){f.extend(b.coming,{type:"html",autowidth:!0,autoheight:!0,minwidth:0,minheight:0,scrolling:"no",haserror:a,content:b.coming.tpl.error});b._afterload()},_loadimage:function(){var a=b.imgpreload=new image;a.onload=function(){this.onload=this.onerror=null;b.coming.width= this.width;b.coming.height=this.height;b._afterload()};a.onerror=function(){this.onload=this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showloading()},_loadajax:function(){var a=b.coming;b.showloading();b.ajaxload=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideloading()},success:function(d,e){"success"===e&&(a.content=d,b._afterload())}}))},_loadiframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g, (new date).gettime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href);f(a.wrap).bind("onreset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showloading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeclass("fancybox-tmp").show();b._afterload()}));a.content=d.appendto(a.inner);a.iframe.preload||b._afterload()},_preloadimages:function(){var a= b.group,d=b.current,e=a.length,c=d.preload?math.min(d.preload,e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new image).src=f.href)},_afterload:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideloading();if(a&&!1!==b.isactive)if(!1===b.trigger("afterload",a,d))a.wrap.stop(!0).trigger("onreset").remove(),b.coming=null;else{d&&(b.trigger("beforechange",d),d.wrap.stop(!0).removeclass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindevents(); e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("
").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('
').insertafter(e).hide()),e=e.show().detach(),a.wrap.bind("onreset",function(){f(this).find(e).length&&e.hide().replaceall(e.data("fancybox-placeholder")).data("fancybox-placeholder", !1)}));break;case "image":e=a.tpl.image.replace("{href}",g);break;case "swf":e='',h="",f.each(a.swf,function(a,b){e+='';h+=" "+a+'="'+b+'"'}),e+='"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeshow"); a.inner.css("overflow","yes"===k?"scroll":"no"===k?"hidden":k);b._setdimension();b.reposition();b.isopen=!1;b.coming=null;b.bindevents();if(b.isopened){if(d.prevmethod)b.transitions[d.prevmethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onreset").remove();b.transitions[b.isopened?a.nextmethod:a.openmethod]();b._preloadimages()}},_setdimension:function(){var a=b.getviewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minwidth,u=h.minheight,n=h.maxwidth, v=h.maxheight,s=h.scrolling,q=h.scrolloutside?h.scrollbarwidth:0,y=h.margin,p=l(y[1]+y[3]),r=l(y[0]+y[2]),z,a,t,d,b,g,c,e,w;e.add(k).add(g).width("auto").height("auto").removeclass("fancybox-tmp");y=l(k.outerwidth(!0)-k.width());z=l(k.outerheight(!0)-k.height());a=p+y;t=r+z;d=f(c)?(a.w-a)*l(c)/100:c;b=f(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(w=h.content,h.autoheight&&1===w.data("ready"))try{w[0].contentwindow.document.location&&(g.width(d).height(9999),g=w.contents().find("body"),q&&g.css("overflow-x", "hidden"),b=g.height())}catch(h){}}else if(h.autowidth||h.autoheight)g.addclass("fancybox-tmp"),h.autowidth||g.width(d),h.autoheight||g.height(b),h.autowidth&&(d=g.width()),h.autoheight&&(b=g.height()),g.removeclass("fancybox-tmp");c=l(d);j=l(b);e=d/b;m=l(f(m)?l(m,"w")-a:m);n=l(f(n)?l(n,"w")-a:n);u=l(f(u)?l(u,"h")-t:u);v=l(f(v)?l(v,"h")-t:v);g=n;c=v;h.fittoview&&(n=math.min(a.w-a,n),v=math.min(a.h-t,v));a=a.w-p;r=a.h-r;h.aspectratio?(c>n&&(c=n,j=l(c/e)),j>v&&(j=v,c=l(j*e)),ca||p>r)&&(c>m&&j>u)&&!(19n&&(c=n,j=l(c/e)),g.width(c).height(j),e.width(c+y),a=e.width(),p=e.height();else c=math.max(m,math.min(c,c-(a-a))),j=math.max(u,math.min(j,j-(p-r)));q&&("auto"===s&&ja||p>r)&&c>m&&j>u;c=h.aspectratio?cu&&j
').appendto("body"); this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addclass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(q.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeclick&&this.overlay.bind("click.overlay",function(a){f(a.target).hasclass("fancybox-overlay")&&(b.isactive?b.close():d.close())});this.overlay.css(a.css).show()}, close:function(){f(".fancybox-overlay").remove();q.unbind("resize.overlay");this.overlay=null;!1!==this.margin&&(f("body").css("margin-right",this.margin),this.margin=!1);this.el&&this.el.removeclass("fancybox-lock")},update:function(){var a="100%",b;this.overlay.width(a).height("100%");h?(b=math.max(z.documentelement.offsetwidth,z.body.offsetwidth),n.width()>b&&(a=n.width())):n.width()>q.width()&&(a=n.width());this.overlay.width(a).height(n.height())},onready:function(a,b){f(".fancybox-overlay").stop(!0, !0);this.overlay||(this.margin=n.height()>q.height()||"scroll"===f("body").css("overflow-y")?f("body").css("margin-right"):!1,this.el=z.all&&!z.queryselector?f("html"):f("body"),this.create(a));a.locked&&this.fixed&&(b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showearly&&this.beforeshow.apply(this,arguments)},beforeshow:function(a,b){b.locked&&(this.el.addclass("fancybox-lock"));this.open(a)},onupdate:function(){this.fixed|| this.update()},afterclose:function(a){this.overlay&&!b.isactive&&this.overlay.fadeout(a.speedout,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeshow:function(a){var d=b.current,e=d.title,c=a.type;f.isfunction(e)&&(e=e.call(d.element,d));if(p(e)&&""!==f.trim(e)){d=f('
'+e+"
");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendto("body"), h&&d.width(d.width()),d.wrapinner(''),b.current.margin[2]+=math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependto":"appendto"](c)}}};f.fn.fancybox=function(a){var d,e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlkey&&(!g.altkey&&!g.shiftkey&&!g.metakey)&&!h.is(".fancybox-wrap")&&(k=a.groupattr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+ '"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventdefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):n.undelegate(c,"click.fb-start").delegate(c+":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};n.ready(function(){f.scrollbarwidth===r&&(f.scrollbarwidth=function(){var a=f('
').appendto("body"),b=a.children(), b=b.innerwidth()-b.height(99).innerwidth();a.remove();return b});if(f.support.fixedposition===r){var a=f.support,d=f('
').appendto("body"),e=20===d[0].offsettop||15===d[0].offsettop;d.remove();a.fixedposition=e}f.extend(b.defaults,{scrollbarwidth:f.scrollbarwidth(),fixed:f.support.fixedposition,parent:f("body")})})})(window,document,jquery);