News & Events
Aperte le iscrizioni per il corso macchine agricole
- 19 Settembre 2016
- Posted by: superadmin
- Category: News

L’appuntamento è per domenica 8 ottobre dalle ore 8.00 in poi.
ADESIONI APERTE fino a mercoledì 5 ottobre.
Tutti gli interessati possono chiedere info direttamente in sede, chiamando lo 0341.576224 oppure scrivendo a bolis@sermetra.it
Il Corso di formazione all’uso di macchine agricole prevede prove teoriche e pratiche per tutti gli operatori addetti tenuti per legge a conseguire l’abilitazione. Rientrano nella categoria di macchine agricole tutti i veicoli riconducibili all’art. 57 del codice della strada, ovvero trattori agricoli e forestali e carrelli semoventi a braccio telescopico, se omologati come macchine agricole (anche nel caso di noleggio). Info e dettagli su iscrizioni, orari e costi allo 0341.576224
/**handles:fancyboxjs**/
!function(e,t,i,n){“use strict”;var o=i(“html”),a=i(e),r=i(t),s=i.fancybox=function(){s.open.apply(this,arguments)},l=navigator.userAgent.match(/msie/i),c=null,d=t.createTouch!==n,p=function(e){return e&&e.hasOwnProperty&&e instanceof i},h=function(e){return e&&”string”===i.type(e)},f=function(e){return h(e)&&e.indexOf(“%”)>0},u=function(e){return e&&!(e.style.overflow&&”hidden”===e.style.overflow)&&(e.clientWidth&&e.scrollWidth>e.clientWidth||e.clientHeight&&e.scrollHeight>e.clientHeight)},g=function(e,t){var i=parseInt(e,10)||0;return t&&f(e)&&(i=s.getViewport()[t]/100*i),Math.ceil(i)},m=function(e,t){return g(e,t)+”px”};i.extend(s,{version:”2.1.5″,defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!d,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:”auto”,wrapCSS:””,arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:”html”,headers:{“X-fancyBox”:!0}},iframe:{scrolling:”auto”,preload:!0},swf:{wmode:”transparent”,allowfullscreen:”true”,allowscriptaccess:”always”},keys:{next:{13:”left”,34:”up”,39:”left”,40:”up”},prev:{8:”right”,33:”down”,37:”right”,38:”down”},close:[27],play:[32],toggle:[70]},direction:{next:”left”,prev:”right”},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:’
‘,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(e,t){if(e)return i.isPlainObject(t)||(t={}),!1===s.close(!0)?void 0:(i.isArray(e)||(e=p(e)?i(e).get():[e]),i.each(e,function(o,a){var r={},l,c,d,f,u,g,m;”object”===i.type(a)&&(a.nodeType&&(a=i(a)),p(a)?(r={href:a.data(“fancybox-href”)||a.attr(“href”),title:a.data(“fancybox-title”)||a.attr(“title”),isDom:!0,element:a},i.metadata&&i.extend(!0,r,a.metadata())):r=a),l=t.href||r.href||(h(a)?a:null),c=t.title!==n?t.title:r.title||””,d=t.content||r.content,f=d?”html”:t.type||r.type,!f&&r.isDom&&(f=a.data(“fancybox-type”),f||(u=a.prop(“class”).match(/fancybox.(w+)/),f=u?u[1]:null)),h(l)&&(f||(s.isImage(l)?f=”image”:s.isSWF(l)?f=”swf”:”#”===l.charAt(0)?f=”inline”:h(a)&&(f=”html”,d=a)),”ajax”===f&&(g=l.split(/s+/,2),l=g.shift(),m=g.shift())),d||(“inline”===f?l?d=i(h(l)?l.replace(/.*(?=#[^s]+$)/,””):l):r.isDom&&(d=a):”html”===f?d=l:f||l||!r.isDom||(f=”inline”,d=a)),i.extend(r,{href:l,type:f,content:d,title:c,selector:m}),e[o]=r}),s.opts=i.extend(!0,{},s.defaults,t),t.keys!==n&&(s.opts.keys=!!t.keys&&i.extend({},s.defaults.keys,t.keys)),s.group=e,s._start(s.opts.index))},cancel:function(){var e=s.coming;e&&!1!==s.trigger(“onCancel”)&&(s.hideLoading(),s.ajaxLoad&&s.ajaxLoad.abort(),s.ajaxLoad=null,s.imgPreload&&(s.imgPreload.onload=s.imgPreload.onerror=null),e.wrap&&e.wrap.stop(!0,!0).trigger(“onReset”).remove(),s.coming=null,s.current||s._afterZoomOut(e))},close:function(e){s.cancel(),!1!==s.trigger(“beforeClose”)&&(s.unbindEvents(),s.isActive)&&(s.isOpen&&e!==!0?(s.isOpen=s.isOpened=!1,s.isClosing=!0,i(“.fancybox-item, .fancybox-nav”).remove(),s.wrap.stop(!0,!0).removeClass(“fancybox-opened”),s.transitions[s.current.closeMethod]()):(i(“.fancybox-wrap”).stop(!0).trigger(“onReset”).remove(),s._afterZoomOut()))},play:function(e){var t=function(){clearTimeout(s.player.timer)},i=function(){t(),s.current&&s.player.isActive&&(s.player.timer=setTimeout(s.next,s.current.playSpeed))},n=function(){t(),r.unbind(“.player”),s.player.isActive=!1,s.trigger(“onPlayEnd”)},o=function(){s.current&&(s.current.loop||s.current.index=o.index?”next”:”prev”],s.router=i||”jumpto”,o.loop&&(e<0&&(e=o.group.length+e%o.group.length),e%=o.group.length),o.group[e]!==n&&(s.cancel(),s._start(e)))},reposition:function(e,t){var n=s.current,o=n?n.wrap:null,a;o&&(a=s._getPosition(t),e&&"scroll"===e.type?(delete a.position,o.stop(!0,!0).animate(a,200)):(o.css(a),n.pos=i.extend({},n.dim,a)))},update:function(e){var t=e&&e.type,i=!t||"orientationchange"===t;i&&(clearTimeout(c),c=null),s.isOpen&&!c&&(c=setTimeout(function(){var n=s.current;n&&!s.isClosing&&(s.wrap.removeClass("fancybox-tmp"),(i||"load"===t||"resize"===t&&n.autoResize)&&s._setDimension(),"scroll"===t&&n.canShrink||s.reposition(e),s.trigger("onUpdate"),c=null)},i&&!d?0:300))},toggle:function(e){s.isOpen&&(s.current.fitToView="boolean"===i.type(e)?e:!s.current.fitToView,d&&(s.wrap.removeAttr("style").addClass("fancybox-tmp"),s.trigger("onUpdate")),s.update())},hideLoading:function(){r.unbind(".loading"),i("#fancybox-loading").remove()},showLoading:function(){var e,t;s.hideLoading(),e=i('
‘).click(s.cancel).appendTo(“body”),r.bind(“keydown.loading”,function(e){27===(e.which||e.keyCode)&&(e.preventDefault(),s.cancel())}),s.defaults.fixed||(t=s.getViewport(),e.css({position:”absolute”,top:.5*t.h+t.y,left:.5*t.w+t.x}))},getViewport:function(){var t=s.current&&s.current.locked||!1,i={x:a.scrollLeft(),y:a.scrollTop()};return t?(i.w=t[0].clientWidth,i.h=t[0].clientHeight):(i.w=d&&e.innerWidth?e.innerWidth:a.width(),i.h=d&&e.innerHeight?e.innerHeight:a.height()),i},unbindEvents:function(){s.wrap&&p(s.wrap)&&s.wrap.unbind(“.fb”),r.unbind(“.fb”),a.unbind(“.fb”)},bindEvents:function(){var e=s.current,t;e&&(a.bind(“orientationchange.fb”+(d?””:” resize.fb”)+(e.autoCenter&&!e.locked?” scroll.fb”:””),s.update),t=e.keys,t&&r.bind(“keydown.fb”,function(o){var a=o.which||o.keyCode,r=o.target||o.srcElement;return(27!==a||!s.coming)&&void(o.ctrlKey||o.altKey||o.shiftKey||o.metaKey||r&&(r.type||i(r).is(“[contenteditable]”))||i.each(t,function(t,r){return e.group.length>1&&r[a]!==n?(s[t](r[a]),o.preventDefault(),!1):i.inArray(a,r)>-1?(s[t](),o.preventDefault(),!1):void 0}))}),i.fn.mousewheel&&e.mouseWheel&&s.wrap.bind(“mousewheel.fb”,function(t,n,o,a){for(var r=t.target||null,l=i(r),c=!1;l.length&&!(c||l.is(“.fancybox-skin”)||l.is(“.fancybox-wrap”));)c=u(l[0]),l=i(l).parent();0===n||c||s.group.length>1&&!e.canShrink&&(a>0||o>0?s.prev(a>0?”down”:”left”):(a<0||o<0)&&s.next(a<0?"up":"right"),t.preventDefault())}))},trigger:function(e,t){var n,o=t||s.coming||s.current;if(o){if(i.isFunction(o[e])&&(n=o[e].apply(o,Array.prototype.slice.call(arguments,1))),n===!1)return!1;o.helpers&&i.each(o.helpers,function(t,n){n&&s.helpers[t]&&i.isFunction(s.helpers[t][e])&&s.helpers[t][e](i.extend(!0,{},s.helpers[t].defaults,n),o)}),r.trigger(e)}},isImage:function(e){return h(e)&&e.match(/(^data:image/.*,)|(.(jp(e|g|eg)|gif|png|bmp|webp|svg)((?|#).*)?$)/i)},isSWF:function(e){return h(e)&&e.match(/.(swf)((?|#).*)?$/i)},_start:function(e){var t={},n,o,a,r,l;if(e=g(e),n=s.group[e]||null,!n)return!1;if(t=i.extend(!0,{},s.opts,n),r=t.margin,l=t.padding,"number"===i.type(r)&&(t.margin=[r,r,r,r]),"number"===i.type(l)&&(t.padding=[l,l,l,l]),t.modal&&i.extend(!0,t,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),t.autoSize&&(t.autoWidth=t.autoHeight=!0),"auto"===t.width&&(t.autoWidth=!0),"auto"===t.height&&(t.autoHeight=!0),t.group=s.group,t.index=e,s.coming=t,!1===s.trigger("beforeLoad"))return void(s.coming=null);if(a=t.type,o=t.href,!a)return s.coming=null,!(!s.current||!s.router||"jumpto"===s.router)&&(s.current.index=e,s[s.router](s.direction));if(s.isActive=!0,("image"===a||"swf"===a)&&(t.autoHeight=t.autoWidth=!1,t.scrolling="visible"),"image"===a&&(t.aspectRatio=!0),"iframe"===a&&d&&(t.scrolling="scroll"),t.wrap=i(t.tpl.wrap).addClass("fancybox-"+(d?"mobile":"desktop")+" fancybox-type-"+a+" fancybox-tmp "+t.wrapCSS).appendTo(t.parent||"body"),i.extend(t,{skin:i(".fancybox-skin",t.wrap),outer:i(".fancybox-outer",t.wrap),inner:i(".fancybox-inner",t.wrap)}),i.each(["Top","Right","Bottom","Left"],function(e,i){t.skin.css("padding"+i,m(t.padding[e]))}),s.trigger("onReady"),"inline"===a||"html"===a){if(!t.content||!t.content.length)return s._error("content")}else if(!o)return s._error("href");"image"===a?s._loadImage():"ajax"===a?s._loadAjax():"iframe"===a?s._loadIframe():s._afterLoad()},_error:function(e){i.extend(s.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:e,content:s.coming.tpl.error}),s._afterLoad()},_loadImage:function(){var e=s.imgPreload=new Image;e.onload=function(){this.onload=this.onerror=null,s.coming.width=this.width/s.opts.pixelRatio,s.coming.height=this.height/s.opts.pixelRatio,s._afterLoad()},e.onerror=function(){this.onload=this.onerror=null,s._error("image")},e.src=s.coming.href,e.complete!==!0&&s.showLoading()},_loadAjax:function(){var e=s.coming;s.showLoading(),s.ajaxLoad=i.ajax(i.extend({},e.ajax,{url:e.href,error:function(e,t){s.coming&&"abort"!==t?s._error("ajax",e):s.hideLoading()},success:function(t,i){"success"===i&&(e.content=t,s._afterLoad())}}))},_loadIframe:function(){var e=s.coming,t=i(e.tpl.iframe.replace(/{rnd}/g,(new Date).getTime())).attr("scrolling",d?"auto":e.iframe.scrolling).attr("src",e.href);i(e.wrap).bind("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(e){}}),e.iframe.preload&&(s.showLoading(),t.one("load",function(){i(this).data("ready",1),d||i(this).bind("load.fb",s.update),i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),s._afterLoad()})),e.content=t.appendTo(e.inner),e.iframe.preload||s._afterLoad()},_preloadImages:function(){for(var e=s.group,t=s.current,i=e.length,n=t.preload?Math.min(t.preload,i-1):0,o,a=1;a<=n;a+=1)o=e[(t.index+a)%i],"image"===o.type&&o.href&&((new Image).src=o.href)},_afterLoad:function(){var e=s.coming,t=s.current,n="fancybox-placeholder",o,a,r,l,c,d;if(s.hideLoading(),e&&s.isActive!==!1){if(!1===s.trigger("afterLoad",e,t))return e.wrap.stop(!0).trigger("onReset").remove(),void(s.coming=null);switch(t&&(s.trigger("beforeChange",t),t.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),s.unbindEvents(),o=e,a=e.content,r=e.type,l=e.scrolling,i.extend(s,{wrap:o.wrap,skin:o.skin,outer:o.outer,inner:o.inner,current:o,previous:t}),c=o.href,r){case"inline":case"ajax":case"html":o.selector?a=i("
‘).insertAfter(a).hide()),a=a.show().detach(),o.wrap.bind(“onReset”,function(){i(this).find(a).length&&a.hide().replaceAll(a.data(n)).data(n,!1)}));break;case”image”:a=o.tpl.image.replace(“{href}”,c);break;case”swf”:a=”,d=””,i.each(o.swf,function(e,t){a+=”,d+=” “+e+’=”‘+t+'”‘}),a+='”}p(a)&&a.parent().is(o.inner)||o.inner.append(a),s.trigger(“beforeShow”),o.inner.css(“overflow”,”yes”===l?”scroll”:”no”===l?”hidden”:l),s._setDimension(),s.reposition(),s.isOpen=!1,s.coming=null,s.bindEvents(),s.isOpened?t.prevMethod&&s.transitions[t.prevMethod]():i(“.fancybox-wrap”).not(o.wrap).stop(!0).trigger(“onReset”).remove(),s.transitions[s.isOpened?o.nextMethod:o.openMethod](),s._preloadImages()}},_setDimension:function(){var e=s.getViewport(),t=0,n=!1,o=!1,a=s.wrap,r=s.skin,l=s.inner,c=s.current,d=c.width,p=c.height,h=c.minWidth,u=c.minHeight,y=c.maxWidth,x=c.maxHeight,v=c.scrolling,w=c.scrollOutside?c.scrollbarWidth:0,b=c.margin,k=g(b[1]+b[3]),C=g(b[0]+b[2]),O,W,_,S,T,L,E,R,j,P,H,M,A,I,D;if(a.add(r).add(l).width(“auto”).height(“auto”).removeClass(“fancybox-tmp”),O=g(r.outerWidth(!0)-r.width()),W=g(r.outerHeight(!0)-r.height()),_=k+O,S=C+W,T=f(d)?(e.w-_)*g(d)/100:d,L=f(p)?(e.h-S)*g(p)/100:p,”iframe”===c.type){if(I=c.content,c.autoHeight&&1===I.data(“ready”))try{I[0].contentWindow.document.location&&(l.width(T).height(9999),D=I.contents().find(“body”),w&&D.css(“overflow-x”,”hidden”),L=D.outerHeight(!0))}catch(e){}}else(c.autoWidth||c.autoHeight)&&(l.addClass(“fancybox-tmp”),c.autoWidth||l.width(T),c.autoHeight||l.height(L),c.autoWidth&&(T=l.width()),c.autoHeight&&(L=l.height()),l.removeClass(“fancybox-tmp”));if(d=g(T),p=g(L),j=T/L,h=g(f(h)?g(h,”w”)-_:h),y=g(f(y)?g(y,”w”)-_:y),u=g(f(u)?g(u,”h”)-S:u),x=g(f(x)?g(x,”h”)-S:x),E=y,R=x,c.fitToView&&(y=Math.min(e.w-_,y),x=Math.min(e.h-S,x)),M=e.w-k,A=e.h-C,c.aspectRatio?(d>y&&(d=y,p=g(d/j)),p>x&&(p=x,d=g(p*j)),d<h&&(d=h,p=g(d/j)),pM||H>A)&&d>h&&p>u&&!(t++>19);)p=Math.max(u,Math.min(x,p-10)),d=g(p*j),dy&&(d=y,p=g(d/j)),l.width(d).height(p),a.width(d+O),P=a.width(),H=a.height();else d=Math.max(h,Math.min(d,d-(P-M))),p=Math.max(u,Math.min(p,p-(H-A)));w&&”auto”===v&&p<L&&d+O+wM||H>A)&&d>h&&p>u,o=c.aspectRatio?d<E&&p<R&&d<T&&p<L:(d<E||p<R)&&(d<T||pu&&p<x&&!o&&l.height("auto")},_getPosition:function(e){var t=s.current,i=s.getViewport(),n=t.margin,o=s.wrap.width()+n[1]+n[3],a=s.wrap.height()+n[0]+n[2],r={position:"absolute",top:n[0],left:n[3]};return t.autoCenter&&t.fixed&&!e&&a<=i.h&&o1)&&s.inner.css(“cursor”,”pointer”).bind(“click.fb”,function(t){i(t.target).is(“a”)||i(t.target).parent().is(“a”)||(t.preventDefault(),s[e.closeClick?”close”:”next”]())}),e.closeBtn&&i(e.tpl.closeBtn).appendTo(s.skin).bind(“click.fb”,function(e){e.preventDefault(),s.close()}),e.arrows&&s.group.length>1&&((e.loop||e.index>0)&&i(e.tpl.prev).appendTo(s.outer).bind(“click.fb”,s.prev),(e.loop||e.index<s.group.length-1)&&i(e.tpl.next).appendTo(s.outer).bind("click.fb",s.next)),s.trigger("afterShow"),e.loop||e.index!==e.group.length-1?s.opts.autoPlay&&!s.player.isActive&&(s.opts.autoPlay=!1,s.play()):s.play(!1))},_afterZoomOut:function(e){e=e||s.current,i(".fancybox-wrap").trigger("onReset").remove(),i.extend(s,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),s.trigger("afterClose",e)}}),s.transitions={getOrigPosition:function(){var e=s.current,t=e.element,i=e.orig,n={},o=50,a=50,r=e.hPadding,l=e.wPadding,c=s.getViewport();return!i&&e.isDom&&t.is(":visible")&&(i=t.find("img:first"),i.length||(i=t)),p(i)?(n=i.offset(),i.is("img")&&(o=i.outerWidth(),a=i.outerHeight())):(n.top=c.y+(c.h-a)*e.topRatio,n.left=c.x+(c.w-o)*e.leftRatio),("fixed"===s.wrap.css("position")||e.locked)&&(n.top-=c.y,n.left-=c.x),{top:m(n.top-r*e.topRatio),left:m(n.left-l*e.leftRatio),width:m(o+l),height:m(a+r)}},step:function(e,t){var i,n,o,a=t.prop,r=s.current,l=r.wrapSpace,c=r.skinSpace;("width"===a||"height"===a)&&(i=t.end===t.start?1:(e-t.start)/(t.end-t.start),s.isClosing&&(i=1-i),n="width"===a?r.wPadding:r.hPadding,o=e-n,s.skin[a](g("width"===a?o:o-l*i)),s.inner[a](g("width"===a?o:o-l*i-c*i)))},zoomIn:function(){var e=s.current,t=e.pos,n=e.openEffect,o="elastic"===n,a=i.extend({opacity:1},t);delete a.position,o?(t=this.getOrigPosition(),e.openOpacity&&(t.opacity=.1)):"fade"===n&&(t.opacity=.1),s.wrap.css(t).animate(a,{duration:"none"===n?0:e.openSpeed,easing:e.openEasing,step:o?this.step:null,complete:s._afterZoomIn})},zoomOut:function(){var e=s.current,t=e.closeEffect,i="elastic"===t,n={opacity:.1};i&&(n=this.getOrigPosition(),e.closeOpacity&&(n.opacity=.1)),s.wrap.animate(n,{duration:"none"===t?0:e.closeSpeed,easing:e.closeEasing,step:i?this.step:null,complete:s._afterZoomOut})},changeIn:function(){var e=s.current,t=e.nextEffect,i=e.pos,n={opacity:1},o=s.direction,a=200,r;i.opacity=.1,"elastic"===t&&(r="down"===o||"up"===o?"top":"left","down"===o||"right"===o?(i[r]=m(g(i[r])-a),n[r]="+="+a+"px"):(i[r]=m(g(i[r])+a),n[r]="-="+a+"px")),"none"===t?s._afterZoomIn():s.wrap.css(i).animate(n,{duration:e.nextSpeed,easing:e.nextEasing,complete:s._afterZoomIn})},changeOut:function(){var e=s.previous,t=e.prevEffect,n={opacity:.1},o=s.direction;"elastic"===t&&(n["down"===o||"up"===o?"top":"left"]=("up"===o||"left"===o?"-":"+")+"=200px"),e.wrap.animate(n,{duration:"none"===t?0:e.prevSpeed,easing:e.prevEasing,complete:function(){i(this).trigger("onReset").remove()}})}},s.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!d,fixed:!0},overlay:null,fixed:!1,el:i("html"),create:function(e){e=i.extend({},this.defaults,e),this.overlay&&this.close(),this.overlay=i('
‘).appendTo(s.coming?s.coming.parent:e.parent),this.fixed=!1,e.fixed&&s.defaults.fixed&&(this.overlay.addClass(“fancybox-overlay-fixed”),this.fixed=!0)},open:function(e){var t=this;e=i.extend({},this.defaults,e),this.overlay?this.overlay.unbind(“.overlay”).width(“auto”).height(“auto”):this.create(e),this.fixed||(a.bind(“resize.overlay”,i.proxy(this.update,this)),this.update()),e.closeClick&&this.overlay.bind(“click.overlay”,function(e){if(i(e.target).hasClass(“fancybox-overlay”))return s.isActive?s.close():t.close(),!1}),this.overlay.css(e.css).show()},close:function(){var e,t;a.unbind(“resize.overlay”),this.el.hasClass(“fancybox-lock”)&&(i(“.fancybox-margin”).removeClass(“fancybox-margin”),e=a.scrollTop(),t=a.scrollLeft(),this.el.removeClass(“fancybox-lock”),a.scrollTop(e).scrollLeft(t)),i(“.fancybox-overlay”).remove().hide(),i.extend(this,{overlay:null,fixed:!1})},update:function(){var e=”100%”,i;this.overlay.width(e).height(“100%”),l?(i=Math.max(t.documentElement.offsetWidth,t.body.offsetWidth),r.width()>i&&(e=r.width())):r.width()>a.width()&&(e=r.width()),this.overlay.width(e).height(r.height())},onReady:function(e,t){var n=this.overlay;i(“.fancybox-overlay”).stop(!0,!0),n||this.create(e),e.locked&&this.fixed&&t.fixed&&(n||(this.margin=r.height()>a.height()&&i(“html”).css(“margin-right”).replace(“px”,””)),t.locked=this.overlay.append(t.wrap),t.fixed=!1),e.showEarly===!0&&this.beforeShow.apply(this,arguments)},beforeShow:function(e,t){var n,o;t.locked&&(this.margin!==!1&&(i(“*”).filter(function(){return”fixed”===i(this).css(“position”)&&!i(this).hasClass(“fancybox-overlay”)&&!i(this).hasClass(“fancybox-wrap”)}).addClass(“fancybox-margin”),this.el.addClass(“fancybox-margin”)),n=a.scrollTop(),o=a.scrollLeft(),this.el.addClass(“fancybox-lock”),a.scrollTop(n).scrollLeft(o)),this.open(e)},onUpdate:function(){this.fixed||this.update()},afterClose:function(e){this.overlay&&!s.coming&&this.overlay.fadeOut(e.speedOut,i.proxy(this.close,this))}},s.helpers.title={defaults:{type:”float”,position:”bottom”},beforeShow:function(e){var t=s.current,n=t.title,o=e.type,a,r;if(i.isFunction(n)&&(n=n.call(t.element,t)),h(n)&&””!==i.trim(n)){switch(a=i(‘
“),o){case”inside”:r=s.skin;break;case”outside”:r=s.wrap;break;case”over”:r=s.inner;break;default:r=s.skin,a.appendTo(“body”),l&&a.width(a.width()),a.wrapInner(‘‘),s.current.margin[2]+=Math.abs(g(a.css(“margin-bottom”)))}a[“top”===e.position?”prependTo”:”appendTo”](r)}}},i.fn.fancybox=function(e){var t,n=i(this),o=this.selector||””,a=function(a){var r=i(this).blur(),l=t,c,d;a.ctrlKey||a.altKey||a.shiftKey||a.metaKey||r.is(“.fancybox-wrap”)||(c=e.groupAttr||”data-fancybox-group”,d=r.attr(c),d||(c=”rel”,d=r.get(0)[c]),d&&””!==d&&”nofollow”!==d&&(r=o.length?i(o):n,r=r.filter(“[“+c+’=”‘+d+'”]’),l=r.index(this)),e.index=l,s.open(r,e)!==!1&&a.preventDefault())};return e=e||{},t=e.index||0,o&&e.live!==!1?r.undelegate(o,”click.fb-start”).delegate(o+”:not(‘.fancybox-item, .fancybox-nav’)”,”click.fb-start”,a):n.unbind(“click.fb-start”).bind(“click.fb-start”,a),this.filter(“[data-fancybox-start=1]”).trigger(“click”),this},r.ready(function(){var t,a;i.scrollbarWidth===n&&(i.scrollbarWidth=function(){var e=i(‘
‘).appendTo(“body”),t=e.children(),n=t.innerWidth()-t.height(99).innerWidth();return e.remove(),n}),i.support.fixedPosition===n&&(i.support.fixedPosition=function(){var e=i(‘
‘).appendTo(“body”),t=20===e[0].offsetTop||15===e[0].offsetTop;return e.remove(),t}()),i.extend(s.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i(“body”)}),t=i(e).width(),o.addClass(“fancybox-lock-test”),a=i(e).width(),o.removeClass(“fancybox-lock-test”),i(“.fancybox-margin{margin-right:”+(a-t)+”px;}”).appendTo(“head”)})}(window,document,jQuery);