/*! fancybox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */ (function(r,g,f,v){var j=f("html"),n=f(r),p=f(g),b=f.fancybox=function(){b.open.apply(this,arguments)},i=navigator.useragent.match(/msie/i),b=null,s=g.createtouch!==v,t=function(a){return a&&a.hasownproperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},e=function(a){return q(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("data-title")||c.attr("title"),isdom:!0,element:c},f.metadata&&f.extend(!0,k, c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?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));q(g)&&(m||(b.isimage(g)?m="image":b.isswf(g)?m="swf":"#"===g.charat(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(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!==v&&(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();p.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]!==v&&(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(b),b=null);b.isopen&&!b&&(b=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"),b=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(){p.unbind(".loading");f("#fancybox-loading").remove()},showloading:function(){var a,d;b.hideloading();a=f('
').click(b.cancel).appendto("body");p.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:n.scrollleft(), y:n.scrolltop()};a?(d.w=a[0].clientwidth,d.h=a[0].clientheight):(d.w=s&&r.innerwidth?r.innerwidth:n.width(),d.h=s&&r.innerheight?r.innerheight:n.height());return d},unbindevents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindevents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autocenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.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){if(e&&b.helpers[d]&&f.isfunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0, {},b.helpers[d].defaults,e),c)});p.trigger(a)}},isimage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isswf:function(a){return q(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,w(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.opts.pixelratio;b.coming.height=this.height/b.opts.pixelratio;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,p=h.maxheight,s=h.scrolling,q=h.scrolloutside? h.scrollbarwidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,c,a,f,b,d,h;e.add(k).add(g).width("auto").height("auto").removeclass("fancybox-tmp");x=l(k.outerwidth(!0)-k.width());v=l(k.outerheight(!0)-k.height());z=y+x;t=r+v;c=e(c)?(a.w-z)*l(c)/100:c;a=e(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(h=h.content,h.autoheight&&1===h.data("ready"))try{h[0].contentwindow.document.location&&(g.width(c).height(9999),f=h.contents().find("body"),q&&f.css("overflow-x","hidden"),a=f.outerheight(!0))}catch(g){}}else if(h.autowidth|| h.autoheight)g.addclass("fancybox-tmp"),h.autowidth||g.width(c),h.autoheight||g.height(a),h.autowidth&&(c=g.width()),h.autoheight&&(a=g.height()),g.removeclass("fancybox-tmp");c=l(c);j=l(a);d=c/a;m=l(e(m)?l(m,"w")-z:m);n=l(e(n)?l(n,"w")-z:n);u=l(e(u)?l(u,"h")-t:u);p=l(e(p)?l(p,"h")-t:p);f=n;b=p;h.fittoview&&(n=math.min(a.w-z,n),p=math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectratio?(c>n&&(c=n,j=l(c/d)),j>p&&(j=p,c=l(j*d)),cz||y>r)&&(c>m&&j>u)&&!(19n&&(c=n,j=l(c/d)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=math.max(m,math.min(c,c-(a-z))),j=math.max(u,math.min(j,j-(y-r)));q&&("auto"===s&&jz||y>r)&&c>m&&j>u;c=h.aspectratio?cu&&j
').appendto(b.coming?b.coming.parent:a.parent);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||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeclick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasclass("fancybox-overlay"))return b.isactive? b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasclass("fancybox-lock")&&(f(".fancybox-margin").removeclass("fancybox-margin"),a=n.scrolltop(),b=n.scrollleft(),this.el.removeclass("fancybox-lock"),n.scrolltop(a).scrollleft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");i?(b=math.max(g.documentelement.offsetwidth,g.body.offsetwidth), p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onready:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showearly&&this.beforeshow.apply(this,arguments)},beforeshow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"=== f(this).css("position")&&!f(this).hasclass("fancybox-overlay")&&!f(this).hasclass("fancybox-wrap")}).addclass("fancybox-margin"),this.el.addclass("fancybox-margin")),e=n.scrolltop(),c=n.scrollleft(),this.el.addclass("fancybox-lock"),n.scrolltop(e).scrollleft(c));this.open(a)},onupdate:function(){this.fixed||this.update()},afterclose:function(a){this.overlay&&!b.coming&&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(q(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"),i&&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):p.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};p.ready(function(){var a,d;f.scrollbarwidth===v&&(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===v){a=f.support;d=f('
').appendto("body");var 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")});a=f(r).width();j.addclass("fancybox-lock-test");d=f(r).width();j.removeclass("fancybox-lock-test");f("").appendto("head")})})(window,document,jquery);