/home/vianto5/cititower.mx/wp-content/plugins/easy-fancybox/fancybox/1.3.28
Edit: /home/vianto5/cititower.mx/wp-content/plugins/easy-fancybox/fancybox/1.3.28/jquery.fancybox.min.js (19325B)
!function(e){var t,i,n,o,a,d,r,c,s,l,h,f,p,g,b=0,u={},y=[],m=0,w={},v=[],x=null,_=new Image,C=/\.(jpg|gif|png|bmp|jpeg|webp)(.*)?$/i,k=/[^\.]\.(swf)\s*$/i,I=/[^\.]\.(svg)\s*$/i,O=/[^\.]\.(pdf)\s*$/i,j=1,T=0,N="",A=!1,E=e.extend(e("
")[0],{prop:0}),D=/MSIE|Trident/.test(window.navigator.userAgent),S=D&&!window.XMLHttpRequest,z=void 0!==document.createTouch;_abort=function(){e.fancybox.hideActivity(),_.onerror=_.onload=null,x&&x.abort(),t.empty()},_error=function(i){if(!1===u.onError(y,b,u))return e.fancybox.hideActivity(),void(A=!1);void 0===i&&(i="Please try again later."),u.titleShow=!1,u.width="auto",u.height="auto",t.html('
The requested content cannot be loaded.
'+i+"
"),_process_inline()},_start=function(){var i,n,o,a,r,c,s=y[b];if(_abort(),u=e.extend({},e.fn.fancybox.defaults,void 0===e(s).data("fancybox")?u:e(s).data("fancybox")),document.documentElement.clientWidth
0?"inline":"ajax"),u.type=n,u.href=i,u.title=o,u.autoDimensions&&("html"==u.type||"inline"==u.type||"ajax"==u.type?(u.width="auto",u.height="auto"):u.autoDimensions=!1),u.modal&&(u.overlayShow=!0,u.hideOnOverlayClick=!1,u.hideOnContentClick=!1,u.enableEscapeButton=!1,u.showCloseButton=!1),u.padding=parseInt(u.padding,10),u.margin=parseInt(u.margin,10),t.css("padding",u.padding+u.margin),e(".fancybox-inline-tmp").off("fancybox-cancel").on("fancybox-change",(function(){e(this).replaceWith(d.children())})),n){case"html":t.html(u.content),_process_inline();break;case"inline":if(!0===e(s).parent().is("#fancybox-content"))return void(A=!1);e('').hide().insertBefore(e(s)).on("fancybox-cleanup",(function(){e(this).replaceWith(d.find(s))})).on("fancybox-cancel",(function(){e(this).replaceWith(t.find(s))})),e(s).appendTo(t),_process_inline();break;case"image":u.keepRatio=!0,A=!1,e.fancybox.showActivity(),(_=new Image).onerror=function(){_error("No image found.")},_.onload=function(){A=!0,_.onerror=_.onload=null,_process_image()},_.src=i;break;case"swf":u.scrolling="no",u.keepRatio=!0,a='",t.html(a),_process_inline();break;case"svg":u.scrolling="no",u.keepRatio=!0,a='',t.html(a),_process_inline();break;case"pdf":u.scrolling="no",u.enableKeyboardNav=!1,u.showNavArrows=!1,a='",t.html(a),_process_inline();break;case"ajax":A=!1,e.fancybox.showActivity(),u.ajax.win=u.ajax.success,x=e.ajax(e.extend({},u.ajax,{url:i,data:u.ajax.data||{},error:function(e,t,i){e.status>0&&_error(i)},success:function(n,o,a){if(200==("object"==typeof a?a:x).status){if("function"==typeof u.ajax.win){if(!1===(c=u.ajax.win(i,n,o,a)))return void e.fancybox.hideActivity();"string"!=typeof c&&"object"!=typeof c||(n=c)}n.indexOf("-1||n.indexOf("-1||n.indexOf("-1?_error("Unexpected response."):(t.html(n),_process_inline())}}}));break;case"iframe":u.enableKeyboardNav=!1,u.showNavArrows=!1,e.fancybox.showActivity(),_show()}else _error("No content type found.");else A=!1},_process_inline=function(){var i=u.width,n=u.height,o=0==e(window).width()?window.innerWidth:e(window).width(),a=0==e(window).height()?window.innerHeight:e(window).height();i=i.toString().indexOf("%")>-1?parseInt((o-2*u.margin)*parseFloat(i)/100,10)+"px":"auto"==i?"auto":i+"px",n=n.toString().indexOf("%")>-1?parseInt((a-2*u.margin)*parseFloat(n)/100,10)+"px":"auto"==n?"auto":n+"px",t.wrapInner(''),u.width=Math.ceil(t.width()),u.height=Math.ceil(t.height()),_show()},_process_image=function(){u.width=_.width,u.height=_.height,e("
").attr({id:"fancybox-img",src:_.src,alt:u.title}).appendTo(t),_show()},_show=function(){var i,a;return"iframe"!==u.type&&e.fancybox.hideActivity(),o.is(":visible")&&!1===w.onCleanup(v,m,w)?(e(".fancybox-inline-tmp").trigger("fancybox-cancel"),void(A=!1)):(A=!0,e(d.add(n)).off(),e(window).off("orientationchange.fb resize.fb scroll.fb"),e(document).off("keydown.fb"),o.is(":visible")&&"outside"!==w.titlePosition&&o.css("height",o.height()),v=y,m=b,(w=u).overlayShow?(n.css({"background-color":w.overlayColor,opacity:w.overlayOpacity,cursor:w.hideOnOverlayClick?"pointer":"auto",height:e(document).height()}),n.is(":visible")||(S&&e("select:not(#fancybox-tmp select)").filter((function(){return"hidden"!==this.style.visibility})).css({visibility:"hidden"}).one("fancybox-cleanup",(function(){this.style.visibility="inherit"})),n.show())):n.hide(),g=_get_zoom_to(),_process_title(),o.is(":visible")?(e(r.add(s).add(l)).hide(),i=o.position(),p={top:i.top,left:i.left,width:o.width(),height:o.height()},a=p.width==g.width&&p.height==g.height,void d.fadeTo(w.changeFade,.3,(function(){var i=function(){d.html(t.contents()).fadeTo(w.changeFade,1,_finish)};e(".fancybox-inline-tmp").trigger("fancybox-change"),d.empty().removeAttr("filter").css({"border-width":w.padding,width:g.width-2*w.padding,height:w.autoDimensions?"auto":g.height-T-2*w.padding}),a?i():(E.prop=0,e(E).animate({prop:1},{duration:w.changeSpeed,easing:w.easingChange,step:_draw,complete:i}))}))):(o.removeAttr("style"),d.css("border-width",w.padding),"elastic"==w.transitionIn?(p=_get_zoom_from(),d.html(t.contents()),o.show(),w.opacity&&(g.opacity=0),E.prop=0,void e(E).animate({prop:1},{duration:w.speedIn,easing:w.easingIn,step:_draw,complete:_finish})):("inside"==w.titlePosition&&T>0&&c.show(),d.css({width:g.width-2*w.padding,height:w.autoDimensions?"auto":g.height-T-2*w.padding}).html(t.contents()),void o.css(g).fadeIn("none"==w.transitionIn?0:w.speedIn,_finish))))},_format_title=function(e){return!(!e||!e.length)&&("float"==w.titlePosition?'':''+e+"
")},_process_title=function(){if(N=w.title||"",T=0,c.empty().removeAttr("style").removeClass(),!1!==w.titleShow)if((N=e.isFunction(w.titleFormat)?w.titleFormat(N,v,m,w):_format_title(N))&&""!==N){switch(c.addClass("fancybox-title-"+w.titlePosition).html(N).appendTo("body").show(),w.titlePosition){case"inside":c.css({width:g.width-2*w.padding,marginLeft:w.padding,marginRight:w.padding}).appendTo(a),T=c.outerHeight(!0),g.height+=T;break;case"over":c.css({marginLeft:w.padding,width:g.width-2*w.padding,bottom:w.padding}).appendTo(a);break;case"float":c.css("left",-1*parseInt((c.width()-g.width)/2,10)).appendTo(o);break;default:c.css({width:g.width-2*w.padding,paddingLeft:w.padding,paddingRight:w.padding}).appendTo(o)}c.hide()}else c.hide();else c.hide()},_set_navigation=function(){if((w.enableEscapeButton||w.enableKeyboardNav)&&e(document).on("keydown.fb",(function(t){27==t.keyCode&&w.enableEscapeButton?(t.preventDefault(),e.fancybox.close()):37!=t.keyCode&&39!=t.keyCode||!w.enableKeyboardNav||"INPUT"===t.target.tagName||"TEXTAREA"===t.target.tagName||"SELECT"===t.target.tagName?9==t.keyCode&&w.enableKeyboardNav&&"INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName&&"SELECT"!==t.target.tagName&&(t.preventDefault(),e.fancybox[t.shiftKey?"prev":"next"]()):(t.preventDefault(),e.fancybox[37==t.keyCode?"prev":"next"]())})),!w.showNavArrows)return s.hide(),void l.hide();(w.cyclic&&v.length>1||0!==m)&&s.show(),(w.cyclic&&v.length>1||m!=v.length-1)&&l.show()},_finish=function(){D&&(d.css("filter",0),o.css("filter",0)),w.autoDimensions&&d.css("height","auto"),o.css("height","auto"),N&&N.length&&c.show(),w.showCloseButton&&r.show(),_set_navigation(),w.hideOnContentClick&&d.on("click",e.fancybox.close),w.hideOnOverlayClick&&n.on("click",e.fancybox.close),w.autoResize&&e(window).on("resize.fb",e.fancybox.resize),w.centerOnScroll&&!z&&e(window).on("scroll.fb",e.fancybox.center),e.fn.mousewheel&&o.on("mousewheel.fb",(function(t,i){A?t.preventDefault():"image"!=w.type||0!=e(t.target).outerHeight()&&e(t.target).prop("scrollHeight")!==e(t.target).outerHeight()||(t.preventDefault(),e.fancybox[i>0?"prev":"next"]())})),"iframe"==w.type&&e('').appendTo(d).on("load",(function(){e.fancybox.hideActivity()})).focus(),o.show(),A=!1,e.fancybox.center(),e(document).trigger("fancybox-complete",[v,m,w]),w.onComplete(v,m,w),v.length>1&&(_preload_next(),_preload_prev())},_preload_next=function(){var e="number"==typeof arguments[0]?arguments[0]:m+1;if(e>=v.length){if(!w.cyclic)return;e=0}if(e==m)return w.enableKeyboardNav=!1,o.off("mousewheel.fb"),void l.hide();_preload_image(e)||_preload_next(e+1)},_preload_prev=function(){var e="number"==typeof arguments[0]?arguments[0]:m-1;if(e<0){if(!w.cyclic)return;e=v.length-1}if(e==m)return w.enableKeyboardNav=!1,o.off("mousewheel.fb"),void s.hide();_preload_image(e)||_preload_prev(e-1)},_preload_image=function(t){var i=v[t];return!(void 0===i||void 0===i.href||i.href===w.href||!i.href.match(C)&&!e(i).hasClass("image"))&&((new Image).src=i.href,!0)},_draw=function(e){var t={width:parseInt(p.width+(g.width-p.width)*e,10),height:parseInt(p.height+(g.height-p.height)*e,10),top:parseInt(p.top+(g.top-p.top)*e,10),left:parseInt(p.left+(g.left-p.left)*e,10)};void 0!==g.opacity&&(t.opacity=e<.5?.5:e),o.css(t),d.css({width:t.width-2*w.padding,height:t.height-T*e-2*w.padding})},_get_viewport=function(){var t,i=!z&&window.innerWidth&&document.documentElement.clientWidth?Math.min(window.innerWidth,document.documentElement.clientWidth):window.innerWidth||document.documentElement.clientWidth||document.getElementsByTagName("body")[0].clientWidth,n=!z&&window.innerHeight&&document.documentElement.clientHeight?Math.min(window.innerHeight,document.documentElement.clientHeight):window.innerHeight||document.documentElement.clientHeight||document.getElementsByTagName("body")[0].clientHeight;return[i-2*(t=!0===arguments[0]?0:w.margin),n-2*t,e(document).scrollLeft()+t,e(document).scrollTop()+t]},_get_zoom_to=function(){var e,t=_get_viewport(),i={},n=2*w.padding;return w.width.toString().indexOf("%")>-1?i.width=parseInt(t[0]*parseFloat(w.width)/100,10):i.width=w.width+n,w.height.toString().indexOf("%")>-1?i.height=parseInt(t[1]*parseFloat(w.height)/100,10):i.height=w.height+n,w.autoScale&&(i.width>t[0]||i.height>t[1])&&(w.keepRatio?(e=w.width/w.height,i.width>t[0]&&(i.width=t[0],i.height=parseInt((i.width-n)/e+n,10)),i.height>t[1]&&(i.height=t[1],i.width=parseInt((i.height-n)*e+n,10))):(i.width=Math.min(i.width,t[0]),i.height=Math.min(i.height,t[1]))),i.top=parseInt(Math.max(t[3]-20,t[3]+.5*(t[1]-i.height-40)),10),i.left=parseInt(Math.max(t[2]-20,t[2]+.5*(t[0]-i.width-40)),10),i},_get_obj_pos=function(e){var t=e.offset();return t.top+=parseInt(e.css("paddingTop"),10)||0,t.left+=parseInt(e.css("paddingLeft"),10)||0,t.top+=parseInt(e.css("border-top-width"),10)||0,t.left+=parseInt(e.css("border-left-width"),10)||0,t.width=e.width(),t.height=e.height(),t},_get_zoom_from=function(){var t,i,n=!!u.orig&&e(u.orig),o={};return n&&n.length?o={width:(t=_get_obj_pos(n)).width+2*w.padding,height:t.height+2*w.padding,top:t.top-w.padding-20,left:t.left-w.padding-20}:(i=_get_viewport(),o={width:2*w.padding,height:2*w.padding,top:parseInt(.5*(i[3]+i[1]),10),left:parseInt(.5*(i[2]+i[0]),10)}),o},_animate_loading=function(){i.is(":visible")?(e("div",i).css("top",-40*j+"px"),j=(j+1)%12):clearInterval(f)},e.fn.fancybox=function(t){return e(this).length?(e(this).data("fancybox",e.extend({},t,e.metadata?e(this).metadata():{})).off("click.fb").on("click.fb",(function(t){if(t.preventDefault(),!A){A=!0,e(this).blur(),y=[],b=0;var i=e(this).attr("rel")||"";return""==i||""==i.replace(/alternate|external|help|license|nofollow|noreferrer|noopener|\s+/gi,"")?y.push(this):(y=e('a[rel="'+i+'"], area[rel="'+i+'"]'),b=y.index(this)),_start(),!1}})),this):this},e.fancybox=function(t){var i;if(!A){if(A=!0,i=void 0!==arguments[1]?arguments[1]:{},y=[],b=parseInt(i.index,10)||0,e.isArray(t)){for(var n=0,o=t.length;ny.length||b<0)&&(b=0),_start()}},e.fancybox.showActivity=function(){clearInterval(f),i.show(),f=setInterval(_animate_loading,66)},e.fancybox.hideActivity=function(){i.hide()},e.fancybox.next=function(){var t,i="number"==typeof arguments[0]?arguments[0]:m+1;if(i>=v.length){if(!w.cyclic)return;i=0}t=v[i],i!=m&&void 0!==t&&void 0!==t.href&&t.href===w.href?e.fancybox.next(i+1):e.fancybox.pos(i)},e.fancybox.prev=function(){var t,i="number"==typeof arguments[0]?arguments[0]:m-1;if(i<0){if(!w.cyclic)return;i=v.length-1}t=v[i],i!=m&&void 0!==t&&void 0!==t.href&&t.href===w.href?e.fancybox.prev(i-1):e.fancybox.pos(i)},e.fancybox.pos=function(e){A||(e=parseInt(e),y=v,e>-1&&ee[0]||o.height()+40>e[1])||o.stop().animate({top:parseInt(Math.max(e[3]-20,e[3]+.5*(e[1]-d.height()-40)-w.padding)),left:parseInt(Math.max(e[2]-20,e[2]+.5*(e[0]-d.width()-40)-w.padding))},"number"==typeof arguments[0]?arguments[0]:300))},e.fancybox.init=function(){e("#fancybox-wrap").length||(e("body").append(t=e(''),i=e(''),n=e(''),o=e('')),(a=e('').append('').appendTo(o)).append(d=e(''),r=e(``),c=e(''),s=e(``),l=e(``)),r.on("click",e.fancybox.close),i.on("click",e.fancybox.cancel),s.on("click",(function(t){t.preventDefault(),e.fancybox.prev()})),l.on("click",(function(t){t.preventDefault(),e.fancybox.next()})),D&&o.addClass("fancybox-ie"),S&&(i.addClass("fancybox-ie6"),o.addClass("fancybox-ie6"),e('').prependTo(a)))},e.fn.fancybox.defaults={padding:10,margin:40,opacity:!1,modal:!1,cyclic:!1,allowfullscreen:!1,scrolling:"auto",width:560,height:340,autoScale:!0,autoDimensions:!0,centerOnScroll:!1,autoResize:!0,keepRatio:!1,minViewportWidth:0,ajax:{},swf:{wmode:"opaque"},svg:{wmode:"opaque"},hideOnOverlayClick:!0,hideOnContentClick:!1,overlayShow:!0,overlayOpacity:.7,overlayColor:"#777",titleShow:!0,titlePosition:"float",titleFormat:null,titleFromAlt:!0,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:!0,showNavArrows:!0,enableEscapeButton:!0,enableKeyboardNav:!0,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}},e(document).ready((function(){e.fancybox.init()}))}(jQuery);