").insertBefore(lnk);itm.addClass("ext");}});};})(jQuery);jQuery(window).load(menuExtendedCreate);function openMenuMobile(){return;jQuery(".responsive .art-menu li").on("click",function(e){jQuery(this).addClass("active");});}
jQuery(document).ready(function(){jQuery(".responsive .art-nav ul.art-hmenu li").on("click",function(e){jQuery(this).find("ul").addClass("visibleSubMenu");});setTimeout("openMenuMobile();",1500);});function removeQueryStringParameter(url,key){var urlparts=url.split('?');if(urlparts.length>=2){var prefix=encodeURIComponent(key)+'=';var pars=urlparts[1].split(/[&]/g);for(var i=pars.length;i-->0;)
if(pars[i].indexOf(prefix,0)==0)
pars.splice(i,1);if(pars.length>0)
return urlparts[0]+'?'+pars.join('&');else
return urlparts[0];}else
return url;}
function updateQueryStringParameter(uri,key,value){var re=new RegExp("([?&])"+key+"=.*?(&|#|$)","i");if(uri.match(re)){return uri.replace(re,'$1'+key+"="+value+'$2');}else{var hash='';if(uri.indexOf('#')!==-1){hash=uri.replace(/.*#/,'#');uri=uri.replace(/#.*/,'');}
var separator=uri.indexOf('?')!==-1?"&":"?";return uri+separator+key+"="+value+hash;}}
function getSearchParams(k){var p={};location.search.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(s,k,v){p[k]=v})
return k?p[k]:p;}
function pushLocalStorage(variable,data){var a=[];a=JSON.parse(localStorage.getItem(variable))||[];a.push(data);localStorage.setItem(variable,JSON.stringify(a));}
function DrawCirclePoints(points,radius,x,y){slice=2*3.1416/points;for(i=0;i Puede encontrar toda la información en nuestra Política de Cookies.',delay:600,expires:30,link:'politica-de-cookies?clean=1',onAccept:function(){var myPreferences=jQuery.fn.ihavecookies.cookie();jQuery(".cookie-wrap").fadeOut("slow",function(){jQuery(this).remove();});},onReject:function(){var myPreferences=jQuery.fn.ihavecookies.cookie();jQuery(".cookie-wrap").fadeOut("slow",function(){jQuery(this).remove();});},onLoad:function(){jQuery(".cookie-wrap").show();},uncheckBoxes:true,acceptBtnLabel:'Aceptar',rejectBtnLabel:'Rechazar',moreInfoLabel:'Más información',advancedBtnLabel:'Personalizar',cookieTypesTitle:'Selecciona las cookies que quieres aceptar',fixedCookieTypeLabel:'Esenciales',fixedCookieTypeDesc:'Estas son las cookies esenciales para el correcto funcionamiento de la web.',cookieTypes:[{type:'Preferencia del sitio',value:'preferences',description:'Estas son cookies que están relacionadas con las preferencias de su sitio, p. Ej. recordar su nombre de usuario, colores del sitio, etc.'},{type:'Análisis',value:'analytics',description:'Cookies relacionadas con visitas al sitio, tipos de navegador, etc.'},{type:'Marketing',value:'marketing',description:'Cookies relacionadas con el marketing, p. Ej. boletines, redes sociales, etc.'}]}
jQuery(document).ready(function(){setTimeout('launchIHaveCookies()',3000);});function launchIHaveCookies(){jQuery('.cookie-wrap').ihavecookies(optionsIHaveCookies);if(jQuery.fn.ihavecookies.preference('marketing')===true){}
jQuery('#ihavecookiesBtn').on('click',function(){jQuery('.cookie-wrap').ihavecookies(optionsIHaveCookies,'reinit');});setTimeout('jQuery("div#gdpr-cookie-message a").colorbox({maxHeight:"600px", maxWidth:"700px", height:"80%", width:"80%"});',1000);} !function(e){e.fn.ihavecookies=function(n,c){var r=e(this),a=e.extend({cookieTypes:[{type:"Site Preferences",value:"preferences",description:"These are cookies that are related to your site preferences, e.g. remembering your username, site colours, etc."},{type:"Analytics",value:"analytics",description:"Cookies related to site visits, browser types, etc."},{type:"Marketing",value:"marketing",description:"Cookies related to marketing, e.g. newsletters, social media, etc"}],title:"Cookies & Privacy",message:"Cookies enable you to use shopping carts and to personalize your experience on our sites, tell us which parts of our websites people have visited, help us measure the effectiveness of ads and web searches, and give us insights into user behavior so we can improve our communications and products.",link:"/privacy-policy",delay:2e3,expires:30,moreInfoLabel:"More information",acceptBtnLabel:"Accept Cookies",rejectBtnLabel:"Rechazar Cookies",advancedBtnLabel:"Customise Cookies",cookieTypesTitle:"Select cookies to accept",fixedCookieTypeLabel:"Necessary",fixedCookieTypeDesc:"These are cookies that are essential for the website to work correctly.",onAccept:function(){},onReject:function(){},onLoad:function(){},rejectButton:!0,uncheckBoxes:!1},n),s=i("cookieControl"),p=i("cookieControlPrefs");if(s&&p&&"reinit"!=c){var d=!0;"false"==s&&(d=!1),o(d,a.expires)}else{e("#gdpr-cookie-message").remove();var l='
",setTimeout(function(){e(r).append(u),e("#gdpr-cookie-message").hide().fadeIn("slow",function(){"reinit"==c&&(e("#gdpr-cookie-advanced").trigger("click"),e.each(preferences,function(o,t){e("input#gdpr-cookietype-"+t).prop("checked",!0)}))}),a.onLoad.call(this)},a.delay),e("body").on("click","#gdpr-cookie-accept",function(){o(!0,a.expires),e('input[name="gdpr[]"][data-auto="on"]').prop("checked",!0);var i=[];e.each(e('input[name="gdpr[]"]').serializeArray(),function(e,o){i.push(o.value)}),t("cookieControlPrefs",encodeURIComponent(JSON.stringify(i)),365),a.onAccept.call(this)}),e("body").on("click","#gdpr-cookie-reject",function(){o(!0,a.expires),e('input[name="gdpr[]"]').prop("checked",!1);var i=[];e.each(e('input[name="gdpr[]"]').serializeArray(),function(e,o){i.push(o.value)}),t("cookieControlPrefs",encodeURIComponent(JSON.stringify(i)),365),a.onReject.call(this)}),e("body").on("click","#gdpr-cookie-advanced",function(){e('input[name="gdpr[]"]:not(:disabled)').attr("data-auto","off").prop("checked",!1),e("#gdpr-cookie-types").slideDown("fast",function(){e("#gdpr-cookie-advanced").prop("disabled",!0)})})}!0===a.uncheckBoxes&&e('input[type="checkbox"].ihavecookies').prop("checked",!1)},e.fn.ihavecookies.cookie=function(){var e=i("cookieControlPrefs");return JSON.parse(e)},e.fn.ihavecookies.preference=function(e){var o=i("cookieControl"),t=i("cookieControlPrefs");return t=JSON.parse(t),!1!==o&&(!1!==t&&-1!==t.indexOf(e))};var o=function(o,i){t("cookieControl",o,i),e("#gdpr-cookie-message").fadeOut("fast",function(){e(this).remove()})},t=function(e,o,t){var n=new Date;n.setTime(n.getTime()+24*t*60*60*1e3);var c="expires="+n.toUTCString();return document.cookie=e+"="+o+";"+c+";path=/",i(e)},i=function(e){for(var o=e+"=",t=decodeURIComponent(document.cookie).split(";"),i=0;i1?yt("initialPosition must be of type number and the value must be between 0 to 1"):a.initialPosition<.01?a.initialPosition=.01:a.initialPosition>.99&&(a.initialPosition=.99),"string"!=typeof a.width?yt("width must be of type string"):a.width=a.width.toLowerCase(),a.width.indexOf("px")<0&&a.width.indexOf("pt")<0&&a.width.indexOf("%")<0&&a.width.indexOf("em")<0&&a.width.indexOf("vw")<0&&yt("width must be given in px, pt, %, em or vw"),"string"!=typeof a.backgroundColor?yt("backgroundColor must be of type string"):a.backgroundColor=a.backgroundColor.toLowerCase(),a.backgroundColor.indexOf("none")<0&&a.backgroundColor.indexOf("#")<0&&a.backgroundColor.indexOf("rgb")<0&&yt("backgroundColor must be none, hex, rgb or rgba value"),"boolean"!=typeof a.onPointerDown&&yt("onPointerDown must be of type boolean"),"string"!=typeof a.cursor&&yt("cursor must be of type string"),"string"==typeof a.cursor&&a.cursor.length>0&&""!==a.cursor&&" "!==a.cursor){var y=["ew-resize","ns-resize","grab","grabbing","w-resize","s-resize","e-resize","n-resize","row-resize","col-resize","all-scroll","move","crosshair","pointer","default","auto","inherit","initial","unset","none"],h=!0;for(var b in y)a.cursor===y[b]&&(h=!1);!0===h&&a.cursor.indexOf("url")>-1&&a.cursor.indexOf(".cur")>-1&&(h=!1),!0===h&&yt("cursor must contain one of the following values: "+y.join(", ")+', url("http://yourcursor.cur") 0 0, auto')}if("string"!=typeof a.dividingLine&&yt("dividingLine must be of type string"),a.dividingLine.length<4&&yt("dividingLine should look for example as follows: solid 1px rgba(255, 255, 255, .5) or none"),"number"!=typeof a.followEasingFactor&&yt("followEasingFactor must be of type number"),(a.followEasingFactor<0||a.followEasingFactor>100)&&yt("followEasingFactor must be between 0 and 100"),"boolean"!=typeof a.interactive&&yt("interactive must be of type boolean"),"boolean"!=typeof a.autoAnimation&&yt("autoAnimation must be of type boolean"),"number"!=typeof a.autoAnimationSpeed&&!0===a.autoAnimation&&yt("autoAnimationSpeed must be of type number"),a.autoAnimationSpeed<1&&!0===a.autoAnimation&&yt("autoAnimationSpeed must be 1 or higher"),"number"!=typeof a.autoAnimationPause&&!0===a.autoAnimation&&yt("autoAnimationPause must be of type number"),a.autoAnimationPause<0&&!0===a.autoAnimation&&yt("autoAnimationPause must be 0 or higher"),!0===a.autoAnimation){var v=["linear","inQuad","outQuad","inOutQuad","inCubic","outCubic","inOutCubic","inQuart","outQuart","inOutQuart","inQuint","outQuint","inOutQuint","inSine","outSine","inOutSine"],w=!0;for(var A in v)a.autoAnimationEasing===v[A]&&(w=!1);!0===w&&yt("autoAnimationEasing must contain one of the following values: "+v.join(", "))}"boolean"!=typeof a.controlOthers&&yt("controlOthers must be of type boolean"),"boolean"!=typeof a.controlledByOthers&&yt("controlledByOthers must be of type boolean"),"boolean"!=typeof a.controlledReverse&&yt("controlledReverse must be of type boolean"),"string"!=typeof a.group&&yt("group must be of type string"),"boolean"!=typeof a.groupSync&&yt("groupSync must be of type boolean"),"string"!=typeof a.loading&&yt("loading must be of type string"),"lazy"!==a.loading&&"eager"!==a.loading&&yt("loading must be given in either lazy or eager"),"lazy"===a.loading&&("string"!=typeof a.viewportOffset&&yt("viewportOffset must be of type string"),-1!==a.viewportOffset.indexOf("px")&&"px"===a.viewportOffset.slice(a.viewportOffset.indexOf("px"))||yt("viewportOffset must be given in px")),"boolean"!=typeof a.sleepMode&&yt("sleepMode must be of type boolean"),"function"!=typeof a.onReady&&yt("onReady must be of type function"),t||yt("No slider div element found");var x=a.group.length>0?i+"-"+a.group:i,O=this;t.setAttribute(r,x),!0!==a.controlOthers&&!0!==a.groupSync||(t.aics=O),O.loaded=!1;var C={HORIZONTAL:"horizontal",VERTICAL:"vertical"},E=!1,S=!1,I=!!document.attachEvent,R=I?"attachEvent":"addEventListener",P=I?"detachEvent":"removeEventListener",L=!1,N=!1,T={x:-1,y:-1},B={x:0,y:0},H=null,M=null,F=-1,k=.0166666666666667,z=a.autoAnimationSpeed,W=z,Q=a.autoAnimationPause,V=t.getElementsByClassName("ui")[0],D=null,Z=null,q=null;void 0!==V&&(D=V.getElementsByClassName("button-lft")[0]||V.getElementsByClassName("button-top")[0],Z=V.getElementsByClassName("button-rgt")[0]||V.getElementsByClassName("button-btm")[0],q=V.getElementsByClassName("dragger")[0]);var j=t.getElementsByClassName("images")[0],_=j.getElementsByClassName("image-lft")[0]||j.getElementsByClassName("image-top")[0],X=j.getElementsByClassName("image-rgt")[0]||j.getElementsByClassName("image-btm")[0],Y=0,G=2,J=function(t){++Y===G&&(U.width===$.width&&U.height===$.height||yt("Images must have same dimensions"),O.loaded=!0,function(){if(!0===a.groupSync){H=wt();var t=setInterval(function(){for(var e=0,o=0,n=H.length;o.5&&(ot=!0);var nt=0,it=0,rt=0,at=0,st={linear:function(t,e,o,n){return o*t/n+e},inQuad:function(t,e,o,n){return o*(t/=n)*t+e},outQuad:function(t,e,o,n){return-o*(t/=n)*(t-2)+e},inOutQuad:function(t,e,o,n){return(t/=n/2)<1?o/2*t*t+e:-o/2*(--t*(t-2)-1)+e},inCubic:function(t,e,o,n){return o*(t/=n)*t*t+e},outCubic:function(t,e,o,n){return t/=n,o*(--t*t*t+1)+e},inOutCubic:function(t,e,o,n){return(t/=n/2)<1?o/2*t*t*t+e:o/2*((t-=2)*t*t+2)+e},inQuart:function(t,e,o,n){return o*(t/=n)*t*t*t+e},outQuart:function(t,e,o,n){return t/=n,-o*(--t*t*t*t-1)+e},inOutQuart:function(t,e,o,n){return(t/=n/2)<1?o/2*t*t*t*t+e:-o/2*((t-=2)*t*t*t-2)+e},inQuint:function(t,e,o,n){return o*(t/=n)*t*t*t*t+e},outQuint:function(t,e,o,n){return t/=n,o*(--t*t*t*t*t+1)+e},inOutQuint:function(t,e,o,n){return(t/=n/2)<1?o/2*t*t*t*t*t+e:o/2*((t-=2)*t*t*t*t+2)+e},inSine:function(t,e,o,n){return-o*Math.cos(t/n*(Math.PI/2))+o+e},outSine:function(t,e,o,n){return o*Math.sin(t/n*(Math.PI/2))+e},inOutSine:function(t,e,o,n){return-o/2*(Math.cos(Math.PI*t/n)-1)+e}},lt={};function ut(){var e=function(e){var o=function(e,o){var n={};return n.x=Math.min(Math.max(e,0),t.offsetWidth),n.y=Math.min(Math.max(o,0),t.offsetHeight),n}(e.offsetX||e.layerX,e.offsetY||e.layerY);(!0===a.onPointerDown&&!0===N||!1===a.onPointerDown&&!1===N)&&(T.x=o.x,T.y=o.y,!0===a.controlOthers&&bt(!0))},o=function(t){(!0===a.onPointerDown&&!0===N||!1===a.onPointerDown&&!1===N)&&(L=!0),e(t)},n=function(t){(!0===a.onPointerDown&&!0===N||!1===a.onPointerDown&&!1===N)&&(L=!1,F=-1,Q=a.autoAnimationPause,!0===a.controlOthers&&bt(!1))},i=function(t){!0===a.onPointerDown&&("grab"===a.cursor&&"grab"===_.style.cursor&&"grab"===X.style.cursor&&(_.style.cursor="grabbing",X.style.cursor="grabbing"),L=!0,N=!0,e(t))},r=function(t){!0===a.onPointerDown&&("grab"===a.cursor&&"grabbing"===_.style.cursor&&"grabbing"===X.style.cursor&&(_.style.cursor="grab",X.style.cursor="grab"),n(),L=!1,N=!1)};if(a.interactive&&(window.PointerEvent?(j[R](I?"onpointermove":"pointermove",e),j[R](I?"onpointerenter":"pointerenter",o),j[R](I?"onpointerleave":"pointerleave",n),j[R](I?"onpointerdown":"pointerdown",i),j[R](I?"onpointerup":"pointerup",r)):(j[R](I?"onmousemove":"mousemove",e),j[R](I?"onmouseover":"mouseover",o),j[R](I?"onmouseout":"mouseout",n),j[R](I?"onmousedown":"mousedown",i),j[R](I?"onmouseup":"mouseup",r))),j.style.position="relative",j.style.overflow="hidden",_.style.backgroundImage='url("'+_.getAttribute("data-src")+'")',_.style.backgroundRepeat="no-repeat",_.style.backgroundSize="cover",_.style.position="absolute",_.style.cursor=!0===a.interactive?a.cursor:"default",_.style.touchAction=!0===a.interactive?"none":"auto",a.orientation===C.HORIZONTAL?_.style.borderRight=a.dividingLine:a.orientation===C.VERTICAL&&(_.style.borderBottom=a.dividingLine),X.style.backgroundImage='url("'+X.getAttribute("data-src")+'")',X.style.backgroundRepeat="no-repeat",X.style.backgroundSize="cover",X.style.position="absolute",X.style.cursor=!0===a.interactive?a.cursor:"default",X.style.touchAction=!0===a.interactive?"none":"auto",void 0!==V){var s=function(t,e,o){t.style.pointerEvents="auto",t.style.position="absolute",t.style.backgroundColor="rgba(0, 0, 0, 0.6)",t.style.color="#fff",t.style.fontFamily="Arial, sans-serif",t.style.fontSize="12px",t.style.fontWeight="bold",t.style.minWidth="70px",t.style.textAlign="center",t.style.lineHeight="26px",t.style.textDecoration="none",t.style.transition="all ease-in-out .3s",t.setAttribute("href",e.getAttribute("data-src")),"tl"===o?t.style.borderRadius="0 0 4px 0":"tr"===o?(t.style.right="0px",t.style.borderRadius="0 0 0 4px"):"bl"===o?(t.style.bottom="0px",t.style.borderRadius="0 4px 0 0"):"br"===o&&(t.style.bottom="0px",t.style.right="0px",t.style.borderRadius="4px 0 0 0"),window.PointerEvent?(t[R](I?"onpointerenter":"pointerenter",l),t[R](I?"onpointerleave":"pointerleave",u)):(t[R](I?"onmouseover":"mouseover",l),t[R](I?"onmouseout":"mouseout",u))},l=function(t){t.target.style.backgroundColor="rgba(0, 0, 0, 0.8)",t.target.style.color="#ddd"},u=function(t){t.target.style.backgroundColor="rgba(0, 0, 0, 0.6)",t.target.style.color="#fff"};V.style.position="absolute",V.style.pointerEvents="none",V.style.top="0px",V.style.left="0px",void 0!==D&&s(D,_,"tl"),void 0!==Z&&(a.orientation===C.HORIZONTAL?s(Z,X,"tr"):a.orientation===C.VERTICAL&&s(Z,X,"bl")),void 0!==q?q.style.position="absolute":q=null}window[R](I?"onresize":"resize",gt),mt(),!0===a.controlOthers&&null===H&&(H=wt()),a.initialPosition>0&&(a.orientation===C.HORIZONTAL?T.x=ft(a.initialPosition,t.offsetWidth):a.orientation===C.VERTICAL&&(T.y=ft(a.initialPosition,t.offsetHeight)),B.x=T.x,B.y=T.y,ot=null),null!=M&&cancelAnimFrame(M),M=requestAnimFrame(ct),a.onReady()}function dt(t,e){var o={};return o.v=t/e,o}function ft(t,e){!0===a.controlledReverse&&(t=1-t);var o={};return o.v=t*e,o.v}function pt(t,e,o,n){var i=t-e,r=o-n;return Math.sqrt(i*i+r*r)}function ct(e){var o=!0;if(!0===E&&(o=!1),!0===a.sleepMode&&!1===S&&(o=!1),!0===o){if(!0===L&&(0===a.followEasingFactor?(B.x=T.x,B.y=T.y):(B.x+=(T.x-B.x)/a.followEasingFactor,B.y+=(T.y-B.y)/a.followEasingFactor),ot=null),!1===L&&!0===a.autoAnimation){if(0===F){var n=0,i=0;if(a.orientation===C.HORIZONTAL){if(null===ot){n=B.x,B.x>=t.offsetWidth/2?(i=it,ot=!0):(i=nt,ot=!1);var r=1-Math.abs(pt(B.x,t.offsetWidth/2,0,0))/(t.offsetWidth/2);W=z*r}else W=z,!0===ot?(n=it,i=nt):(n=nt,i=it),ot=!ot;lt.init([{from:n,to:i,property:"x"}],W)}else if(a.orientation===C.VERTICAL){if(null===ot){n=B.y,B.y>=t.offsetHeight/2?(i=at,ot=!0):(i=rt,ot=!1);r=1-Math.abs(pt(0,0,B.y,t.offsetHeight/2))/(t.offsetHeight/2);W=z*r}else W=z,!0===ot?(n=at,i=rt):(n=rt,i=at),ot=!ot;lt.init([{from:n,to:i,property:"y"}],W)}}F>=0&&(lt.props[0].from!==lt.props[0].to?(lt.run(F),F+=k):F=W+1),F>W&&(F=-1,Q=a.autoAnimationPause),-1===F&&(Q-=k),Q<=0&&-1===F&&(F=0)}a.orientation===C.HORIZONTAL?(B.x>t.offsetWidth?B.x=t.offsetWidth:B.x<1&&(B.x=1),_.style.width=B.x+"px",null!==q&&(q.style.left=B.x-q.offsetWidth/2+"px")):a.orientation===C.VERTICAL&&(B.y>t.offsetHeight?B.y=t.offsetHeight:B.y<1&&(B.y=1),_.style.height=B.y+"px",null!==q&&(q.style.top=B.y-q.offsetHeight/2+"px"))}M=requestAnimFrame(ct)}function gt(t){mt()}function mt(){t.style.width=a.width,tt="100%",et=Math.round(U.height/(U.width/t.offsetWidth)).toString()+"px",t.style.height=et,void 0!==V&&(V.style.width=tt,V.style.height=et),j.style.width=tt,j.style.height=et,a.orientation===C.HORIZONTAL?(_.style.width=T.x+"px",_.style.height=et,null!==q&&(q.style.top=t.offsetHeight/2-q.offsetHeight/2+"px",q.style.left=T.x-q.offsetWidth/2+"px")):a.orientation===C.VERTICAL&&(_.style.width=tt,_.style.height=T.y+"px",null!==q&&(q.style.left=t.offsetWidth/2-q.offsetWidth/2+"px",q.style.top=T.y-q.offsetHeight/2+"px")),X.style.width=tt,X.style.height=et,it=Math.round(t.offsetWidth),at=Math.round(U.height/(U.width/t.offsetWidth))-1,F=0,Q=0}function yt(t){throw Error('\nSlider (id="'+n+'") reports following error: '+t)}function ht(e,o){!0!==E&&!0===a.controlledByOthers&&(!0===e?(L=!0,a.orientation===C.HORIZONTAL?T.x=ft(o.v,t.offsetWidth):a.orientation===C.VERTICAL&&(T.y=ft(o.v,t.offsetHeight))):(L=!1,F=-1,Q=a.autoAnimationPause))}function bt(e){for(var o=0,n=H.length;o=0&&a.left<=(window.innerWidth||document.documentElement.clientWidth)+i&&a.left+a.width+i>=0)&&(!0===e&&window[P](I?"onscroll":"scroll",r),o&&o())};window[R](I?"onscroll":"scroll",r),r()}}function wt(){var t=i+"-"+a.group,e=null,o=[];if(document.querySelectorAll)if(Array.from)o=Array.from(document.body.querySelectorAll("*["+r+'="'+t+'"]:not([id="'+n+'"])'));else for(var s=0,l=(e=document.body.querySelectorAll("*["+r+'="'+t+'"]:not([id="'+n+'"])')).length;sn?i=t.offsetWidth/(o/n):o0&&i.id.indexOf("aics")>-1&&i.id.indexOf("autostart")>-1&&new e(i)}},"loading"!==document.readyState?t():document.addEventListener?document.addEventListener("DOMContentLoaded",t):document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&t()})}(),"undefined"!=typeof jQuery&&function(t){t.fn.anyImageComparisonSlider=function(e){var o=arguments;return this.each(function(){if(t.data(this,"plugin_AnyImageComparisonSlider")){var n=t.data(this,"plugin_AnyImageComparisonSlider");if(n[e]){var i=Array.prototype.slice.call(o,1);"function"==typeof i[i.length-1]?i[i.length-1](n[e].apply(this,Array.prototype.slice.call(i,0,i.length-1))):n[e].apply(this,i)}else t.error("Method "+e+" does not exist on jQuery.anyImageComparisonSlider")}else t.data(this,"plugin_AnyImageComparisonSlider",new AnyImageComparisonSlider(this,e))})}}(jQuery); !function(a){a.fn.viewportChecker=function(b){var c={classToAdd:"visible",classToRemove:"invisible",classToAddForFullView:"full-visible",removeClassAfterAnimation:!1,offset:100,repeat:!1,invertBottomOffset:!0,callbackFunction:function(a,b){},scrollHorizontal:!1,scrollBox:window};a.extend(c,b);var d=this,e={height:a(c.scrollBox).height(),width:a(c.scrollBox).width()};return this.checkElements=function(){var b,f;c.scrollHorizontal?(b=Math.max(a("html").scrollLeft(),a("body").scrollLeft(),a(window).scrollLeft()),f=b+e.width):(b=Math.max(a("html").scrollTop(),a("body").scrollTop(),a(window).scrollTop()),f=b+e.height),d.each(function(){var d=a(this),g={},h={};if(d.data("vp-add-class")&&(h.classToAdd=d.data("vp-add-class")),d.data("vp-remove-class")&&(h.classToRemove=d.data("vp-remove-class")),d.data("vp-add-class-full-view")&&(h.classToAddForFullView=d.data("vp-add-class-full-view")),d.data("vp-keep-add-class")&&(h.removeClassAfterAnimation=d.data("vp-remove-after-animation")),d.data("vp-offset")&&(h.offset=d.data("vp-offset")),d.data("vp-repeat")&&(h.repeat=d.data("vp-repeat")),d.data("vp-scrollHorizontal")&&(h.scrollHorizontal=d.data("vp-scrollHorizontal")),d.data("vp-invertBottomOffset")&&(h.scrollHorizontal=d.data("vp-invertBottomOffset")),a.extend(g,c),a.extend(g,h),!d.data("vp-animated")||g.repeat){String(g.offset).indexOf("%")>0&&(g.offset=parseInt(g.offset)/100*e.height);var i=g.scrollHorizontal?d.offset().left:d.offset().top,j=g.scrollHorizontal?i+d.width():i+d.height(),k=Math.round(i)+g.offset,l=g.scrollHorizontal?k+d.width():k+d.height();g.invertBottomOffset&&(l-=2*g.offset),kb?(d.removeClass(g.classToRemove),d.addClass(g.classToAdd),g.callbackFunction(d,"add"),j<=f&&i>=b?d.addClass(g.classToAddForFullView):d.removeClass(g.classToAddForFullView),d.data("vp-animated",!0),g.removeClassAfterAnimation&&d.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){d.removeClass(g.classToAdd)})):d.hasClass(g.classToAdd)&&g.repeat&&(d.removeClass(g.classToAdd+" "+g.classToAddForFullView),g.callbackFunction(d,"remove"),d.data("vp-animated",!1))}})},("ontouchstart"in window||"onmsgesturechange"in window)&&a(document).bind("touchmove MSPointerMove pointermove",this.checkElements),a(c.scrollBox).bind("load scroll",this.checkElements),a(window).resize(function(b){e={height:a(c.scrollBox).height(),width:a(c.scrollBox).width()},d.checkElements()}),this.checkElements(),this}}(jQuery);