").append(b.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o||[e.responseText,t,e])}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){b.fn[t]=function(e){return this.on(t,e)}}),b.each(["get","post"],function(e,n){b[n]=function(e,r,i,o){return b.isFunction(r)&&(o=o||i,i=r,r=t),b.ajax({url:e,type:n,dataType:o,data:r,success:i})}}),b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET",isLocal:Nn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Mn(Mn(e,b.ajaxSettings),t):Mn(b.ajaxSettings,e)},ajaxPrefilter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e=t),n=n||{};var r,i,o,a,s,u,l,c,p=b.ajaxSetup({},n),f=p.context||p,d=p.context&&(f.nodeType||f.jquery)?b(f):b.event,h=b.Deferred(),g=b.Callbacks("once memory"),m=p.statusCode||{},y={},v={},x=0,T="canceled",N={readyState:0,getResponseHeader:function(e){var t;if(2===x){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===x?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return x||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return x||(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>x)for(t in e)m[t]=[m[t],e[t]];else N.always(e[N.status]);return this},abort:function(e){var t=e||T;return l&&l.abort(t),k(0,t),this}};if(h.promise(N).complete=g.add,N.success=N.done,N.error=N.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=b.trim(p.dataType||"*").toLowerCase().match(w)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.crossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?80:443))==(mn[3]||("http:"===mn[1]?80:443)))),p.data&&p.processData&&"string"!=typeof p.data&&(p.data=b.param(p.data,p.traditional)),qn(An,p,n,N),2===x)return N;u=p.global,u&&0===b.active++&&b.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Cn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_="+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(b.lastModified[o]&&N.setRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&N.setRequestHeader("If-None-Match",b.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.contentType)&&N.setRequestHeader("Content-Type",p.contentType),N.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)N.setRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,N,p)===!1||2===x))return N.abort();T="abort";for(i in{success:1,error:1,complete:1})N[i](p[i]);if(l=qn(jn,p,n,N)){N.readyState=1,u&&d.trigger("ajaxSend",[N,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){N.abort("timeout")},p.timeout));try{x=1,l.send(y,k)}catch(C){if(!(2>x))throw C;k(-1,C)}}else k(-1,"No Transport");function k(e,n,r,i){var c,y,v,w,T,C=n;2!==x&&(x=2,s&&clearTimeout(s),l=t,a=i||"",N.readyState=e>0?4:0,r&&(w=_n(p,N,r)),e>=200&&300>e||304===e?(p.ifModified&&(T=N.getResponseHeader("Last-Modified"),T&&(b.lastModified[o]=T),T=N.getResponseHeader("etag"),T&&(b.etag[o]=T)),204===e?(c=!0,C="nocontent"):304===e?(c=!0,C="notmodified"):(c=Fn(p,w),C=c.state,y=c.data,v=c.error,c=!v)):(v=C,(e||!C)&&(C="error",0>e&&(e=0))),N.status=e,N.statusText=(n||C)+"",c?h.resolveWith(f,[y,C,N]):h.rejectWith(f,[N,C,v]),N.statusCode(m),m=t,u&&d.trigger(c?"ajaxSuccess":"ajaxError",[N,p,c?y:v]),g.fireWith(f,[N,C]),u&&(d.trigger("ajaxComplete",[N,p]),--b.active||b.event.trigger("ajaxStop")))}return N},getScript:function(e,n){return b.get(e,t,n,"script")},getJSON:function(e,t,n){return b.get(e,t,n,"json")}});function _n(e,n,r){var i,o,a,s,u=e.contents,l=e.dataTypes,c=e.responseFields;for(s in c)s in r&&(n[c[s]]=r[s]);while("*"===l[0])l.shift(),o===t&&(o=e.mimeType||n.getResponseHeader("Content-Type"));if(o)for(s in u)if(u[s]&&u[s].test(o)){l.unshift(s);break}if(l[0]in r)a=l[0];else{for(s in r){if(!l[0]||e.converters[s+" "+l[0]]){a=s;break}i||(i=s)}a=a||i}return a?(a!==l[0]&&l.unshift(a),r[a]):t}function Fn(e,t){var n,r,i,o,a={},s=0,u=e.dataTypes.slice(),l=u[0];if(e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u[1])for(i in e.converters)a[i.toLowerCase()]=e.converters[i];for(;r=u[++s];)if("*"!==r){if("*"!==l&&l!==r){if(i=a[l+" "+r]||a["* "+r],!i)for(n in a)if(o=n.split(" "),o[1]===r&&(i=a[l+" "+o[0]]||a["* "+o[0]])){i===!0?i=a[n]:a[n]!==!0&&(r=o[0],u.splice(s--,0,r));break}if(i!==!0)if(i&&e["throws"])t=i(t);else try{t=i(t)}catch(c){return{state:"parsererror",error:i?c:"No conversion from "+l+" to "+r}}}l=r}return{state:"success",data:t}}b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),b.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=o.head||b("head")[0]||o.documentElement;return{send:function(t,i){n=o.createElement("script"),n.async=!0,e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0)}}}});var On=[],Bn=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=On.pop()||b.expando+"_"+vn++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",function(n,r,i){var o,a,s,u=n.jsonp!==!1&&(Bn.test(n.url)?"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Bn.test(n.data)&&"data");return u||"jsonp"===n.dataTypes[0]?(o=n.jsonpCallback=b.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,u?n[u]=n[u].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return s||b.error(o+" was not called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.always(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,On.push(o)),s&&b.isFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&function(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpRequest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}b.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&In()||zn()}:In,Rn=b.ajaxSettings.xhr(),b.support.cors=!!Rn&&"withCredentials"in Rn,Rn=b.support.ajax=!!Rn,Rn&&b.ajaxTransport(function(n){if(!n.crossDomain||b.support.cors){var r;return{send:function(i,o){var a,s,u=n.xhr();if(n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n.xhrFields)for(s in n.xhrFields)u[s]=n.xhrFields[s];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");try{for(s in i)u.setRequestHeader(s,i[s])}catch(l){}u.send(n.hasContent&&n.data||null),r=function(e,i){var s,l,c,p;try{if(r&&(i||4===u.readyState))if(r=t,a&&(u.onreadystatechange=b.noop,$n&&delete Pn[a]),i)4!==u.readyState&&u.abort();else{p={},s=u.status,l=u.getAllResponseHeaders(),"string"==typeof u.responseText&&(p.text=u.responseText);try{c=u.statusText}catch(f){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d){i||o(-1,d)}p&&o(s,c,p,l)},n.async?4===u.readyState?setTimeout(r):(a=++Wn,$n&&(Pn||(Pn={},b(e).unload($n)),Pn[a]=r),u.onreadystatechange=r):r()},abort:function(){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)("+x+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n,r,i=this.createTween(e,t),o=Yn.exec(t),a=i.cur(),s=+a||0,u=1,l=20;if(o){if(n=+o[2],r=o[3]||(b.cssNumber[e]?"":"px"),"px"!==r&&s){s=b.css(i.elem,e,!0)||n||1;do u=u||".5",s/=u,b.style(i.elem,e,s+r);while(u!==(u=i.cur()/a)&&1!==u&&--l)}i.unit=r,i.start=s,i.end=o[1]?s+(o[1]+1)*n:n}return i}]};function Kn(){return setTimeout(function(){Xn=t}),Xn=b.now()}function Zn(e,t){b.each(t,function(t,n){var r=(Qn[t]||[]).concat(Qn["*"]),i=0,o=r.length;for(;o>i;i++)if(r[i].call(e,t,n))return})}function er(e,t,n){var r,i,o=0,a=Gn.length,s=b.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;for(;u>a;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),1>o&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,tweens:[],createTween:function(t,n){var r=b.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return t?s.resolveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),c=l.props;for(tr(c,l.opts.specialEasing);a>o;o++)if(r=Gn[o].call(l,e,c,l.opts))return r;return Zn(l,c),b.isFunction(l.opts.start)&&l.opts.start.call(e,l),b.fx.timer(b.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function tr(e,t){var n,r,i,o,a;for(i in e)if(r=b.camelCase(i),o=t[r],n=e[i],b.isArray(n)&&(o=n[1],n=e[i]=n[0]),i!==r&&(e[r]=n,delete e[i]),a=b.cssHooks[r],a&&"expand"in a){n=a.expand(n),delete e[r];for(i in n)i in e||(e[i]=n[i],t[i]=o)}else t[r]=o}b.Animation=b.extend(er,{tweener:function(e,t){b.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.length;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,u,l,c,p,f=this,d=e.style,h={},g=[],m=e.nodeType&&nn(e);n.queue||(c=b._queueHooks(e,"fx"),null==c.unqueued&&(c.unqueued=0,p=c.empty.fire,c.empty.fire=function(){c.unqueued||p()}),c.unqueued++,f.always(function(){f.always(function(){c.unqueued--,b.queue(e,"fx").length||c.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===b.css(e,"display")&&"none"===b.css(e,"float")&&(b.support.inlineBlockNeedsLayout&&"inline"!==un(e.nodeName)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",b.support.shrinkWrapBlocks||f.always(function(){d.overflow=n.overflow[0],d.overflowX=n.overflow[1],d.overflowY=n.overflow[2]}));for(i in t)if(a=t[i],Vn.exec(a)){if(delete t[i],u=u||"toggle"===a,a===(m?"hide":"show"))continue;g.push(i)}if(o=g.length){s=b._data(e,"fxshow")||b._data(e,"fxshow",{}),"hidden"in s&&(m=s.hidden),u&&(s.hidden=!m),m?b(e).show():f.done(function(){b(e).hide()}),f.done(function(){var t;b._removeData(e,"fxshow");for(t in h)b.style(e,t,h[t])});for(i=0;o>i;i++)r=g[i],l=f.createTween(r,m?s[r]:0),h[r]=s[r]||b.style(e,r),r in s||(s[r]=l.start,m&&(l.end=l.start,l.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i){return new rr.prototype.init(e,t,n,r,i)}b.Tween=rr,rr.prototype={constructor:rr,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssNumber[n]?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(this):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.prop];return this.pos=t=this.options.duration?b.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=b.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){b.fx.step[e.prop]?b.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[b.cssProps[e.prop]]||b.cssHooks[e.prop])?b.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrollTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},b.each(["toggle","show","hide"],function(e,t){var n=b.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ir(t,!0),e,r,i)}}),b.fn.extend({fadeTo:function(e,t,n,r){return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=b.isEmptyObject(e),o=b.speed(t,n,r),a=function(){var t=er(this,b.extend({},e),o);a.finish=function(){t.stop(!0)},(i||b._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=b.timers,a=b._data(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].anim.stop(r),t=!1,o.splice(n,1));(t||!r)&&b.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=b._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=b.timers,a=r?r.length:0;for(n.finish=!0,b.queue(this,e,[]),i&&i.cur&&i.cur.finish&&i.cur.finish.call(this),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}b.each({slideDown:ir("show"),slideUp:ir("hide"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){b.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({},e):{complete:n||!n&&t||b.isFunction(e)&&e,duration:e,easing:n&&t||t&&!b.isFunction(t)&&t};return r.duration=b.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in b.fx.speeds?b.fx.speeds[r.duration]:b.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){b.isFunction(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},b.timers=[],b.fx=rr.prototype.init,b.fx.tick=function(){var e,n=b.timers,r=0;for(Xn=b.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||b.fx.stop(),Xn=t},b.fx.timer=function(e){e()&&b.timers.push(e)&&b.fx.start()},b.fx.interval=13,b.fx.start=function(){Un||(Un=setInterval(b.fx.tick,b.fx.interval))},b.fx.stop=function(){clearInterval(Un),Un=null},b.fx.speeds={slow:600,fast:200,_default:400},b.fx.step={},b.expr&&b.expr.filters&&(b.expr.filters.animated=function(e){return b.grep(b.timers,function(t){return e===t.elem}).length}),b.fn.offset=function(e){if(arguments.length)return e===t?this:this.each(function(t){b.offset.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocument;if(s)return n=s.documentElement,b.contains(n,a)?(typeof a.getBoundingClientRect!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},b.offset={setOffset:function(e,t,n){var r=b.css(e,"position");"static"===r&&(e.style.position="relative");var i=b(e),o=i.offset(),a=b.css(e,"top"),s=b.css(e,"left"),u=("absolute"===r||"fixed"===r)&&b.inArray("auto",[a,s])>-1,l={},c={},p,f;u?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0),b.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(l.top=t.top-o.top+p),null!=t.left&&(l.left=t.left-o.left+f),"using"in t?t.using.call(e,l):i.css(l)}},b.fn.extend({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===b.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),b.nodeName(e[0],"html")||(n=e.offset()),n.top+=b.css(e[0],"borderTopWidth",!0),n.left+=b.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-b.css(r,"marginTop",!0),left:t.left-n.left-b.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||o.documentElement;while(e&&!b.nodeName(e,"html")&&"static"===b.css(e,"position"))e=e.offsetParent;return e||o.documentElement})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,n){var r=/Y/.test(n);b.fn[e]=function(i){return b.access(this,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElement[i]:e[i]:(a?a.scrollTo(r?b(a).scrollLeft():o,r?o:b(a).scrollTop()):e[i]=o,t)},e,i,arguments.length,null)}});function or(e){return b.isWindow(e)?e:9===e.nodeType?e.defaultView||e.parentWindow:!1}b.each({Height:"height",Width:"width"},function(e,n){b.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){b.fn[i]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o===!0?"margin":"border");return b.access(this,function(n,r,i){var o;return b.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):i===t?b.css(n,r,s):b.style(n,r,i,s)},n,a?i:t,a,null)}})}),e.jQuery=e.$=b,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return b})})(window); const accessibilityMenuStyles=":root { --acc_color_1: #000; --acc_color_2: #fff; --border_radius: 25px;}.font-size-3 #art-main * {font-size: 1.3rem !important;}.font-size-5 #art-main * {font-size: 1.5rem !important;}.font-size-8 #art-main * {font-size: 1.8rem !important;}.hidden { display: none !important;}#accessibility-modal,#accessibility-modal * { transition: all 0.3s ease 0s; font-family: 'calibri', sans-serif; font-size: 16px; line-height: 1; letter-spacing: 0; text-align: center; user-select: none;}#accessibility-modal { position: fixed; top: 5vh; left: 0; width: 98%; max-width: 500px; height: auto; max-height: 90vh; background: var(--acc_color_2); z-index: 1000; justify-content: center; border-radius: 0 var(--border_radius) var(--border_radius) 0; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); overflow: clip; display: flex; flex-direction: column;}#accessibility-modal #closeBtn { position: absolute; width: 50px; height: 50px; border-radius: var(--border_radius); background: var(--acc_color_1); color: var(--acc_color_2); cursor: pointer; overflow: clip; border: none; outline: none; display: flex; justify-content: center; align-items: center; transform: translate(0,-4px);}#accessibility-modal.left #closeBtn { top: 0; right: 0; margin: 15px;}#accessibility-modal.right #closeBtn { top: 0; left: 0; margin: 15px;}#accessibility-modal.top #closeBtn { top: 0; left: 0; margin: 15px;}#accessibility-modal.bottom #closeBtn { top: 0; left: 0; margin: 15px;}#accessibility-modal.left { left: 0; right: auto; border-radius: 0 var(--border_radius) var(--border_radius) 0;}#accessibility-modal.right { right: 0; left: auto; border-radius: var(--border_radius) 0 0 var(--border_radius);}#accessibility-modal.top { top: 0; left: 1%; height: auto; max-height: 90vh; border-radius: 0 0 var(--border_radius) var(--border_radius);}#accessibility-modal.bottom { top: auto; bottom: 0; left: 1%; height: auto; max-height: 90vh; border-radius: var(--border_radius) var(--border_radius) 0 0;}#accessibility-modal.close { width: 50px; height: 50px; border-radius: var(--border_radius); cursor: pointer; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); overflow: clip; margin: 5px; padding: 0;}#accessibility-modal.close .acc-item { opacity: 0;}#accessibility-modal.close #closeBtn { position: absolute; width: 50px; height: 50px; border: none; background: none; color: var(--acc_color_2); background: var(--acc_color_1); font-size: 20px; cursor: pointer; margin: 0; transform: translate(0,0);}#accessibility-modal #closeBtn svg { width: 20px; height: 20px;}#accessibility-modal.close #closeBtn svg { width: 40px; height: 40px;}#accessibility-modal.close:hover #closeBtn { filter: opacity(0.8);}#accessibility-modal #headerContent { position: relative; display: flex; justify-content: center; align-items: center; width: calc(100% - 80px); height: 50px; background: var(--acc_color_1); color: var(--acc_color_2); border-radius: var(--border_radius); margin: 10px 10px 10px 70px;}#accessibility-modal.left #headerContent { margin: 10px 70px 10px 10px;}#accessibility-modal.right #headerContent { margin: 10px 10px 10px 70px;}#accessibility-modal #headerContent p { font-size: 20px; font-weight: 600;}#accessibility-modal.close #headerContent { display: none;}#accessibility-tools { display: flex; flex-wrap: wrap; justify-content: center; align-items: start; width: 100%; height: auto; transition: all 0.3s ease 2s; overflow-y: auto; margin-bottom: 140px;}#accessibility-tools::-webkit-scrollbar { width: 10px; background: var(--acc_color_2);}#accessibility-tools::-webkit-scrollbar-thumb { background: var(--acc_color_1); border-radius: 10px;}.acc-item { min-width: 120px; width: 33%; max-width: 200px; height: auto; margin: 0; cursor: pointer;}.acc-item:hover .acc-child { box-shadow: 0 0 5px rgba(0, 0, 0, .5);}.acc-item:hover .acc-child.active { filter: opacity(0.8); border: 1px solid var(--acc_color_2); color: var(--acc_color_2);}.acc-child { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; width: auto; height: auto; aspect-ratio: 1/1; background: var(--acc_color_2); border-radius: var(--border_radius); margin: 10px; padding: 10px 10px 0; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); border: 1px solid var(--acc_color_1); color: var(--acc_color_1);}.acc-child.active { background: var(--acc_color_1); color: var(--acc_color_2); box-shadow: none; border: 1px solid var(--acc_color_1);}.acc-progress-parent { display: flex; justify-content: space-between; width: 100%; padding-bottom: 10px;}.acc-progress-child { min-width: 30%; width: 48%; max-width: 48%; height: 3px; margin: 0 1%; background: var(--acc_color_1); border-radius: 5px;}.acc-child.active .acc-progress-child { background: var(--acc_color_2); opacity: 0.5;}.acc-child.active .acc-progress-child.active { opacity: 1;}#accessibility-tools svg,#accessibility-tools img { width: 30px; height: 30px; margin-bottom: 10px;}#change-positions { display: flex; align-items: bottom; width: fit-content; background: var(--acc_color_1); border-top-right-radius: var(--border_radius);}#change-positions button { width: auto; height: 50px; border: none; background: var(--acc_color_1); color: var(--acc_color_2); cursor: pointer; display: flex; justify-content: center; align-items: center; aspect-ratio: 1/1; padding: 20px; margin: 10px; border-radius: var(--border_radius);}#change-positions button svg { scale: 1.3; fill: var(--acc_color_2);}#change-positions button:hover { background: var(--acc_color_2);}#change-positions button:hover svg { scale: 1.8; fill: var(--acc_color_1);}#change-positions button.active { background: var(--acc_color_2);}#change-positions button.active svg { fill: var(--acc_color_1);}#acc-footer { display: flex; flex-direction: column; width: 100%; position: absolute; bottom: 0; left: 0; background: var(--acc_color_2);}#reset-all { width: calc(100% - 20px); height: 50px; background: var(--acc_color_1); color: var(--acc_color_2); border-radius: var(--border_radius); cursor: pointer; display: flex; justify-content: center; align-items: center; margin: 10px;}#reset-all:hover { filter: opacity(0.8);}/*Accessibility Tools*/.invert { filter: invert(1);}.grayscale { filter: grayscale(1);}.low-saturation { filter: saturate(20%);}.high-saturation { filter: saturate(200%);}.underline-style-0 a { text-decoration: none; background: black !important; color: yellow !important; font-weight: bolder;}.underline-style-0 a:hover,.underline-style-2 a:hover,.underline-style-1 a:hover { text-decoration: underline !important;}.underline-style-1 a { text-decoration: none; background: #FFD740 !important; color: #005A9C !important; font-weight: bolder;}.underline-style-2 a { text-decoration: none; background: white !important; color: black !important; font-weight: bolder;}.contrast-style-0 { filter: contrast(0.5);}.contrast-style-1 { filter: contrast(1.5);}.contrast-style-2 { filter: contrast(2);}/*Apply Two or more filters*/.invert.grayscale { filter: invert(1) grayscale(1);}.invert.low-saturation { filter: invert(1) saturate(20%);}.invert.high-saturation { filter: invert(1) saturate(200%);}.invert.contrast-style-0 { filter: invert(1) contrast(0.5);}.invert.contrast-style-1 { filter: invert(1) contrast(1.5);}.invert.contrast-style-2 { filter: invert(1) contrast(2);}.grayscale.low-saturation { filter: grayscale(1) saturate(20%);}.grayscale.high-saturation { filter: grayscale(1) saturate(200%);}.grayscale.contrast-style-0 { filter: grayscale(1) contrast(0.5);}.grayscale.contrast-style-1 { filter: grayscale(1) contrast(1.5);}.grayscale.contrast-style-2 { filter: grayscale(1) contrast(2);}.low-saturation.high-saturation { filter: saturate(20%) saturate(200%);}.low-saturation.contrast-style-0 { filter: saturate(20%) contrast(0.5);}.low-saturation.contrast-style-1 { filter: saturate(20%) contrast(1.5);}.low-saturation.contrast-style-2 { filter: saturate(20%) contrast(2);}.high-saturation.contrast-style-0 { filter: saturate(200%) contrast(0.5);}.high-saturation.contrast-style-1 { filter: saturate(200%) contrast(1.5);}.high-saturation.contrast-style-2 { filter: saturate(200%) contrast(2);}.contrast-style-0.contrast-style-1 { filter: contrast(0.5) contrast(1.5);}.contrast-style-0.contrast-style-2 { filter: contrast(0.5) contrast(2);}.contrast-style-1.contrast-style-2 { filter: contrast(1.5) contrast(2);}.invert.grayscale.low-saturation { filter: invert(1) grayscale(1) saturate(20%);}.invert.grayscale.high-saturation { filter: invert(1) grayscale(1) saturate(200%);}.invert.grayscale.contrast-style-0 { filter: invert(1) grayscale(1) contrast(0.5);}.invert.grayscale.contrast-style-1 { filter: invert(1) grayscale(1) contrast(1.5);}.invert.grayscale.contrast-style-2 { filter: invert(1) grayscale(1) contrast(2);}.invert.low-saturation.high-saturation { filter: invert(1) saturate(20%) saturate(200%);}.invert.low-saturation.contrast-style-0 { filter: invert(1) saturate(20%) contrast(0.5);}.invert.low-saturation.contrast-style-1 { filter: invert(1) saturate(20%) contrast(1.5);}.invert.low-saturation.contrast-style-2 { filter: invert(1) saturate(20%) contrast(2);}.invert.high-saturation.contrast-style-0 { filter: invert(1) saturate(200%) contrast(0.5);}.invert.high-saturation.contrast-style-1 { filter: invert(1) saturate(200%) contrast(1.5);}.invert.high-saturation.contrast-style-2 { filter: invert(1) saturate(200%) contrast(2);}.invert.contrast-style-0.contrast-style-1 { filter: invert(1) contrast(0.5) contrast(1.5);}.invert.contrast-style-0.contrast-style-2 { filter: invert(1) contrast(0.5) contrast(2);}.invert.contrast-style-1.contrast-style-2 { filter: invert(1) contrast(1.5) contrast(2);}.grayscale.low-saturation.high-saturation { filter: grayscale(1) saturate(20%) saturate(200%);}.grayscale.low-saturation.contrast-style-0 { filter: grayscale(1) saturate(20%) contrast(0.5);}.grayscale.low-saturation.contrast-style-1 { filter: grayscale(1) saturate(20%) contrast(1.5);}.grayscale.low-saturation.contrast-style-2 { filter: grayscale(1) saturate(20%) contrast(2);}.grayscale.high-saturation.contrast-style-0 { filter: grayscale(1) saturate(200%) contrast(0.5);}.grayscale.high-saturation.contrast-style-1 { filter: grayscale(1) saturate(200%) contrast(1.5);}.grayscale.high-saturation.contrast-style-2 { filter: grayscale(1) saturate(200%) contrast(2);}.grayscale.contrast-style-0.contrast-style-1 { filter: grayscale(1) contrast(0.5) contrast(1.5);}.grayscale.contrast-style-0.contrast-style-2 { filter: grayscale(1) contrast(0.5) contrast(2);}.grayscale.contrast-style-1.contrast-style-2 { filter: grayscale(1) contrast(1.5) contrast(2);}.low-saturation.high-saturation.contrast-style-0 { filter: saturate(20%) saturate(200%) contrast(0.5);}.low-saturation.high-saturation.contrast-style-1 { filter: saturate(20%) saturate(200%) contrast(1.5);}.low-saturation.high-saturation.contrast-style-2 { filter: saturate(20%) saturate(200%) contrast(2);}.low-saturation.contrast-style-0.contrast-style-1 { filter: saturate(20%) contrast(0.5) contrast(1.5);}.low-saturation.contrast-style-0.contrast-style-2 { filter: saturate(20%) contrast(0.5) contrast(2);}.low-saturation.contrast-style-1.contrast-style-2 { filter: saturate(20%) contrast(1.5) contrast(2);}.high-saturation.contrast-style-0.contrast-style-1 { filter: saturate(200%) contrast(0.5) contrast(1.5);}.high-saturation.contrast-style-0.contrast-style-2 { filter: saturate(200%) contrast(0.5) contrast(2);}.high-saturation.contrast-style-1.contrast-style-2 { filter: saturate(200%) contrast(1.5) contrast(2);}.contrast-style-0.contrast-style-1.contrast-style-2 { filter: contrast(0.5) contrast(1.5) contrast(2);}.invert.grayscale.low-saturation.high-saturation { filter: invert(1) grayscale(1) saturate(20%) saturate(200%);}.invert.grayscale.low-saturation.contrast-style-0 { filter: invert(1) grayscale(1) saturate(20%) contrast(0.5);}.invert.grayscale.low-saturation.contrast-style-1 { filter: invert(1) grayscale(1) saturate(20%) contrast(1.5);}.invert.grayscale.low-saturation.contrast-style-2 { filter: invert(1) grayscale(1) saturate(20%) contrast(2);}.invert.grayscale.high-saturation.contrast-style-0 { filter: invert(1) grayscale(1) saturate(200%) contrast(0.5);}.invert.grayscale.high-saturation.contrast-style-1 { filter: invert(1) grayscale(1) saturate(200%) contrast(1.5);}.invert.grayscale.high-saturation.contrast-style-2 { filter: invert(1) grayscale(1) saturate(200%) contrast(2);}.invert.low-saturation.high-saturation.contrast-style-0 { filter: invert(1) saturate(20%) saturate(200%) contrast(0.5);}.invert.low-saturation.high-saturation.contrast-style-1 { filter: invert(1) saturate(20%) saturate(200%) contrast(1.5);}.invert.low-saturation.high-saturation.contrast-style-2 { filter: invert(1) saturate(20%) saturate(200%) contrast(2);}.invert.low-saturation.contrast-style-0.contrast-style-1 { filter: invert(1) saturate(20%) contrast(0.5) contrast(1.5);}.invert.low-saturation.contrast-style-0.contrast-style-2 { filter: invert(1) saturate(20%) contrast(0.5) contrast(2);}.invert.low-saturation.contrast-style-1.contrast-style-2 { filter: invert(1) saturate(20%) contrast(1.5) contrast(2);}.invert.high-saturation.contrast-style-0.contrast-style-1 { filter: invert(1) saturate(200%) contrast(0.5) contrast(1.5);}.invert.high-saturation.contrast-style-0.contrast-style-2 { filter: invert(1) saturate(200%) contrast(0.5) contrast(2);}.invert.high-saturation.contrast-style-1.contrast-style-2 { filter: invert(1) saturate(200%) contrast(1.5) contrast(2);}.grayscale.low-saturation.high-saturation.contrast-style-0 { filter: grayscale(1) saturate(20%) saturate(200%) contrast(0.5);}.grayscale.low-saturation.high-saturation.contrast-style-1 { filter: grayscale(1) saturate(20%) saturate(200%) contrast(1.5);}.grayscale.low-saturation.high-saturation.contrast-style-2 { filter: grayscale(1) saturate(20%) saturate(200%) contrast(2);}.grayscale.low-saturation.contrast-style-0.contrast-style-1 { filter: grayscale(1) saturate(20%) contrast(0.5) contrast(1.5);}.grayscale.low-saturation.contrast-style-0.contrast-style-2 { filter: grayscale(1) saturate(20%) contrast(0.5) contrast(2);}.grayscale.low-saturation.contrast-style-1.contrast-style-2 { filter: grayscale(1) saturate(20%) contrast(1.5) contrast(2);}.grayscale.high-saturation.contrast-style-0.contrast-style-1 { filter: grayscale(1) saturate(200%) contrast(0.5) contrast(1.5);}.grayscale.high-saturation.contrast-style-0.contrast-style-2 { filter: grayscale(1) saturate(200%) contrast(0.5) contrast(2);}.grayscale.high-saturation.contrast-style-1.contrast-style-2 { filter: grayscale(1) saturate(200%) contrast(1.5) contrast(2);}.low-saturation.high-saturation.contrast-style-0.contrast-style-1 { filter: saturate(20%) saturate(200%) contrast(0.5) contrast(1.5);}.low-saturation.high-saturation.contrast-style-0.contrast-style-2 { filter: saturate(20%) saturate(200%) contrast(0.5) contrast(2);}.low-saturation.high-saturation.contrast-style-1.contrast-style-2 { filter: saturate(20%) saturate(200%) contrast(1.5) contrast(2);}.hide-images img { display: none !important;}.hide-video video { display: none;}.line-height-0 * { line-height: 1.5;}.line-height-1 * { line-height: 1.8;}.line-height-2 * { line-height: 2;}#cursor { position: fixed; z-index: 999999999; pointer-events: none; top: 0; left: 0;}#cursor.cursor-0 { width: 50px; height: auto; aspect-ratio: 1/1; background: rgba(255, 0, 0, 0.5); border: 2px solid var(--acc_color_2); box-shadow: 0 0 20px 0 var(--acc_color_2); border-radius: 50%; mix-blend-mode: difference; transition: all 0.1s ease; transform-origin: center; transform: translate(-50%, -50%);}#cursor.cursor-1 { width: 100%; height: 15vh; background: transparent; border: 10px solid var(--acc_color_2); border-left: 0; border-right: 0; box-shadow: 0 0 0 100vh rgb(0 0 0 / 50%); transition: none; transform: translate(0, -50%);}#cursor.cursor-2 { width: 25vw; height: 8px; background: var(--acc_color_1); border: yellow 2px solid; transition: all 0.1s ease; transform-origin: center; transform: translate(-50%, 50%);}#triangle-cursor { width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-bottom: 10px solid yellow; position: fixed; top: 0; left: 0; transform: translate(-50%, -50%); transition: all 0.1s ease; z-index: 999999998; pointer-events: none; display: none;}",accessibilityMenuHTML='
';document.addEventListener("DOMContentLoaded",function(){function e(){r.classList.toggle("close"),a.innerHTML=r.classList.contains("close")?'
':r.classList.contains("top")?'
':r.classList.contains("bottom")?'
':r.classList.contains("left")?'
':r.classList.contains("right")?'
':""}function t(){r.classList.contains("left")?(l.classList.add("active"),o.classList.remove("active"),d.classList.remove("active"),v.classList.remove("active")):r.classList.contains("top")?(o.classList.add("active"),l.classList.remove("active"),d.classList.remove("active"),v.classList.remove("active")):r.classList.contains("bottom")?(d.classList.add("active"),o.classList.remove("active"),l.classList.remove("active"),v.classList.remove("active")):r.classList.contains("right")&&(v.classList.add("active"),o.classList.remove("active"),d.classList.remove("active"),l.classList.remove("active"))}function s(){localStorage.setItem("accessibility-settings",JSON.stringify({invertColors:i.classList.contains("invert"),grayscale:i.classList.contains("grayscale"),highSaturation:i.classList.contains("high-saturation"),lowSaturation:i.classList.contains("low-saturation"),underlineStyle0:i.classList.contains("underline-style-0"),underlineStyle1:i.classList.contains("underline-style-1"),underlineStyle2:i.classList.contains("underline-style-2"),fontSize:i.style.fontSize,lineHeight0:i.classList.contains("line-height-0"),lineHeight1:i.classList.contains("line-height-1"),lineHeight2:i.classList.contains("line-height-2"),letterSpacing:i.style.letterSpacing,textAlign:i.style.textAlign,contrast:i.classList.contains("contrast"),contrastStyle0:i.classList.contains("contrast-style-0"),contrastStyle1:i.classList.contains("contrast-style-1"),contrastStyle2:i.classList.contains("contrast-style-2"),hideImages:i.classList.contains("hide-images"),hideVideo:i.classList.contains("hide-video"),cursor0:S.classList.contains("cursor-0"),cursor1:S.classList.contains("cursor-1"),cursor2:S.classList.contains("cursor-2"),accPosition:r.classList.contains("left")?"left":r.classList.contains("top")?"top":r.classList.contains("bottom")?"bottom":r.classList.contains("right")?"right":""}))}const c=document.createElement("style");c.innerHTML=accessibilityMenuStyles,document.head.appendChild(c),document.body.insertAdjacentHTML("beforeend",accessibilityMenuHTML);const r=document.getElementById("accessibility-modal"),a=document.getElementById("closeBtn");document.getElementById("accessibility-tools");a.addEventListener("click",()=>{e()});const n=document.querySelectorAll(".acc-item");n.forEach(e=>{e.addEventListener("click",()=>{e.querySelector(".acc-child").classList.toggle("active"),e.querySelectorAll("path").forEach(t=>{t.style.fill=e.querySelector(".acc-child").classList.contains("active")?"var(--acc_color_2)":"var(--acc_color_1)"})})});const i=document.querySelector("html"),l=document.getElementById("align-acc-left"),o=document.getElementById("align-acc-top"),d=document.getElementById("align-acc-bottom"),v=document.getElementById("align-acc-right");t(),l.addEventListener("click",()=>{e(),r.classList.remove("top"),r.classList.remove("bottom"),r.classList.remove("right"),r.classList.add("left"),t()}),o.addEventListener("click",()=>{e(),r.classList.remove("left"),r.classList.remove("bottom"),r.classList.remove("right"),r.classList.add("top"),t()}),d.addEventListener("click",()=>{e(),r.classList.remove("left"),r.classList.remove("top"),r.classList.remove("right"),r.classList.add("bottom"),t()}),v.addEventListener("click",()=>{e(),r.classList.remove("left"),r.classList.remove("top"),r.classList.remove("bottom"),r.classList.add("right"),t()}),document.querySelector("#invert-colors").addEventListener("click",()=>{document.querySelector("#invert-colors");i.classList.toggle("invert")}),document.querySelector("#grayscale").addEventListener("click",()=>{document.querySelector("#grayscale");i.classList.toggle("grayscale")});let h=0;document.querySelector("#saturation").addEventListener("click",()=>{const e=document.querySelector("#saturation");2===h?(h=0,e.querySelector("p").innerText="Low Saturation",e.querySelector(".acc-progress-parent").classList.add("hidden"),e.classList.add("active"),i.classList.remove("high-saturation"),i.classList.remove("low-saturation")):(e.classList.remove("active"),0===h?(i.classList.add("low-saturation"),e.querySelector("p").innerText="Low Saturation",e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.add("active"),e.querySelector(".acc-progress-child-2").classList.remove("active")):1===h&&(i.classList.remove("low-saturation"),i.classList.add("high-saturation"),e.querySelector("p").innerText="High Saturation",e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.add("active")),h++)});let g=0;document.querySelector("#underline").addEventListener("click",()=>{const e=document.querySelector("#underline");3===g?(g=0,e.querySelector(".acc-progress-parent").classList.add("hidden"),e.classList.add("active"),i.classList.remove("underline"),i.classList.remove("underline-style-0"),i.classList.remove("underline-style-1"),i.classList.remove("underline-style-2")):(e.classList.remove("active"),0===g?(i.classList.add("underline"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.add("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.remove("active"),i.classList.add("underline-style-0"),i.classList.remove("underline-style-1"),i.classList.remove("underline-style-2")):1===g?(i.classList.remove("underline-style-0"),i.classList.add("underline-style-1"),i.classList.remove("underline-style-2"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.add("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):2===g&&(i.classList.remove("underline-style-0"),i.classList.remove("underline-style-1"),i.classList.add("underline-style-2"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.add("active")),g++)});let u=0;document.querySelector("#font-size").addEventListener("click",()=>{const e=document.querySelector("#font-size");3===u?(u=0,e.querySelector(".acc-progress-parent").classList.add("hidden"),e.classList.add("active"),i.style.fontSize="",i.classList.remove('font-size-3'),i.classList.remove('font-size-5'),i.classList.remove('font-size-8')):(e.classList.remove("active"),0===u?(i.style.fontSize="1.3rem",e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.add("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.remove("active"),i.classList.add('font-size-3'),i.classList.remove('font-size-5'),i.classList.remove('font-size-8')):1===u?(i.style.fontSize="1.5rem",e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.add("active"),e.querySelector(".acc-progress-child-3").classList.remove("active"),i.classList.remove('font-size-3'),i.classList.add('font-size-5'),i.classList.remove('font-size-8')):2===u&&(i.style.fontSize="1.8rem",e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.add("active"),i.classList.remove('font-size-3'),i.classList.remove('font-size-5'),i.classList.add('font-size-8')),u++)});let y=0;document.querySelector("#line-height").addEventListener("click",()=>{const e=document.querySelector("#line-height");3===y?(y=0,e.querySelector(".acc-progress-parent").classList.add("hidden"),e.classList.add("active"),i.classList.remove("line-height-0"),i.classList.remove("line-height-1"),i.classList.remove("line-height-2")):(e.classList.remove("active"),0===y?(i.classList.add("line-height-0"),i.classList.remove("line-height-1"),i.classList.remove("line-height-2"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.add("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):1===y?(i.classList.remove("line-height-0"),i.classList.add("line-height-1"),i.classList.remove("line-height-2"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.add("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):2===y&&(i.classList.remove("line-height-0"),i.classList.remove("line-height-1"),i.classList.add("line-height-2"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.add("active")),y++)});let p=0;document.querySelector("#letter-spacing").addEventListener("click",()=>{const e=document.querySelector("#letter-spacing");3===p?(p=0,e.querySelector(".acc-progress-parent").classList.add("hidden"),e.classList.add("active"),i.style.letterSpacing=""):(e.classList.remove("active"),0===p?(i.style.letterSpacing="0.1rem",e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.add("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):1===p?(i.style.letterSpacing="0.2rem",e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.add("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):2===p&&(i.style.letterSpacing="0.3rem",e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.add("active")),p++)});let L=0;document.querySelector("#text-align").addEventListener("click",()=>{const e=document.querySelector("#text-align");3===L?(L=0,e.querySelector(".acc-progress-parent").classList.add("hidden"),e.classList.add("active"),i.style.textAlign=""):(e.classList.remove("active"),0===L?(i.style.textAlign="left",e.parentElement.querySelector("svg").innerHTML='
',e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.add("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):1===L?(i.style.textAlign="center",e.parentElement.querySelector("svg").innerHTML='
',e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.add("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):2===L&&(i.style.textAlign="right",e.parentElement.querySelector("svg").innerHTML='
',e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.add("active")),L++)});let m=0;document.querySelector("#contrast").addEventListener("click",()=>{const e=document.querySelector("#contrast");3===m?(m=0,e.querySelector(".acc-progress-parent").classList.add("hidden"),e.classList.add("active"),i.classList.remove("contrast"),i.classList.remove("contrast-style-0"),i.classList.remove("contrast-style-1"),i.classList.remove("contrast-style-2")):(e.classList.remove("active"),0===m?(i.classList.add("contrast"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.add("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.remove("active"),i.classList.add("contrast-style-0"),i.classList.remove("contrast-style-1"),i.classList.remove("contrast-style-2")):1===m?(i.classList.remove("contrast-style-0"),i.classList.add("contrast-style-1"),i.classList.remove("contrast-style-2"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.add("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):2===m&&(i.classList.remove("contrast-style-0"),i.classList.remove("contrast-style-1"),i.classList.add("contrast-style-2"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.add("active")),m++)}),document.querySelector("#hide-images").addEventListener("click",()=>{i.classList.toggle("hide-images")}),document.querySelector("#hide-video").addEventListener("click",()=>{i.classList.toggle("hide-video")});let f=0;document.querySelector("#change-cursor").addEventListener("click",()=>{const e=document.querySelector("#change-cursor"),t=document.querySelector("#cursor"),s=document.getElementById("triangle-cursor");s&&(s.style.display="none"),3===f?(f=0,e.querySelector(".acc-progress-parent").classList.add("hidden"),e.classList.add("active"),t.classList.remove("cursor-0"),t.classList.remove("cursor-1"),t.classList.remove("cursor-2"),i.style.cursor=""):(e.classList.remove("active"),0===f?(t.classList.add("cursor-0"),t.classList.remove("cursor-1"),t.classList.remove("cursor-2"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.add("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.remove("active"),t.style.width="50px",t.style.height="50px"):1===f?(t.classList.remove("cursor-0"),t.classList.add("cursor-1"),t.classList.remove("cursor-2"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.add("active"),e.querySelector(".acc-progress-child-3").classList.remove("active"),t.style.width="100%",t.style.height="15vh"):2===f&&(t.classList.remove("cursor-0"),t.classList.remove("cursor-1"),t.classList.add("cursor-2"),i.style.cursor="none",e.querySelector(".acc-progress-parent").classList.remove("hidden"),e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.add("active"),s.style.display="block",t.style.width="25vw",t.style.height="8px"),f++)});const S=document.getElementById("cursor");document.addEventListener("mousemove",e=>{if(S.classList.contains("cursor-0"))S.style.top=e.clientY+"px",S.style.left=e.clientX+"px";else if(S.classList.contains("cursor-1"))S.style.top=e.clientY+"px",S.style.left=0;else if(S.classList.contains("cursor-2")){S.style.top=e.clientY+"px",e.clientX
window.innerWidth-window.innerWidth/8?S.style.left=window.innerWidth-window.innerWidth/8+"px":S.style.left=e.clientX+"px";const t=document.getElementById("triangle-cursor");t.style.top=e.clientY+"px",t.style.left=e.clientX+"px"}}),document.querySelectorAll("a,button").forEach(e=>{e.addEventListener("mouseover",()=>{S.classList.contains("cursor-0")&&(S.style.width="100px",S.style.height="100px")}),e.addEventListener("mouseleave",()=>{S.classList.contains("cursor-0")&&(S.style.width="50px",S.style.height="50px")})}),document.querySelector("#reset-all").addEventListener("click",()=>{const e=document.querySelector("#cursor");i.classList.remove("invert"),i.classList.remove("grayscale"),i.classList.remove("high-saturation"),i.classList.remove("low-saturation"),i.classList.remove("underline-style-0"),i.classList.remove("underline-style-1"),i.classList.remove("underline-style-2"),i.style.fontSize="",i.classList.remove("line-height-0"),i.classList.remove("line-height-1"),i.classList.remove("line-height-2"),i.style.letterSpacing="",i.style.textAlign="",i.classList.remove("contrast"),i.classList.remove("contrast-style-0"),i.classList.remove("contrast-style-1"),i.classList.remove("contrast-style-2"),i.classList.remove("hide-images"),i.classList.remove("hide-video"),e.classList.remove("cursor-0"),e.classList.remove("cursor-1"),e.classList.remove("cursor-2"),i.style.cursor="";const t=document.getElementById("triangle-cursor");t&&(t.style.display="none"),document.querySelectorAll(".acc-progress-parent").forEach(e=>{e.classList.add("hidden")}),document.querySelectorAll(".acc-child").forEach(e=>{e.classList.remove("active"),e.querySelectorAll("path").forEach(e=>{e.style.fill="var(--acc_color_1)"})}),h=0,g=0,u=0,y=0,p=0,L=0,m=0,f=0}),window.addEventListener("beforeunload",s);const w=JSON.parse(localStorage.getItem("accessibility-settings"));if(w&&(w.invertColors&&i.classList.add("invert"),w.grayscale&&i.classList.add("grayscale"),w.highSaturation&&i.classList.add("high-saturation"),w.lowSaturation&&i.classList.add("low-saturation"),w.underlineStyle0&&i.classList.add("underline-style-0"),w.underlineStyle1&&i.classList.add("underline-style-1"),w.underlineStyle2&&i.classList.add("underline-style-2"),w.fontSize&&(i.style.fontSize=w.fontSize),w.lineHeight0&&i.classList.add("line-height-0"),w.lineHeight1&&i.classList.add("line-height-1"),w.lineHeight2&&i.classList.add("line-height-2"),w.letterSpacing&&(i.style.letterSpacing=w.letterSpacing),w.textAlign&&(i.style.textAlign=w.textAlign),w.contrast&&i.classList.add("contrast"),w.contrastStyle0&&i.classList.add("contrast-style-0"),w.contrastStyle1&&i.classList.add("contrast-style-1"),w.contrastStyle2&&i.classList.add("contrast-style-2"),w.hideImages&&i.classList.add("hide-images"),w.hideVideo&&i.classList.add("hide-video"),w.cursor0&&S.classList.add("cursor-0"),w.cursor1&&S.classList.add("cursor-1"),w.cursor2&&S.classList.add("cursor-2"),r.classList.contains("left")?r.classList.remove("left"):r.classList.contains("top")?r.classList.remove("top"):r.classList.contains("bottom")?r.classList.remove("bottom"):r.classList.contains("right")&&r.classList.remove("right"),"left"===w.accPosition?r.classList.add("left"):"top"===w.accPosition?r.classList.add("top"):"bottom"===w.accPosition?r.classList.add("bottom"):"right"===w.accPosition&&r.classList.add("right"),t()),i.classList.contains("invert")&&document.querySelector("#invert-colors").classList.add("active"),i.classList.contains("grayscale")&&document.querySelector("#grayscale").classList.add("active"),i.classList.contains("high-saturation")||i.classList.contains("low-saturation")){const e=document.querySelector("#saturation");e.classList.add("active"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),i.classList.contains("high-saturation")?(e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.add("active")):i.classList.contains("low-saturation")&&(e.querySelector(".acc-progress-child-1").classList.add("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"))}if(i.classList.contains("underline-style-0")||i.classList.contains("underline-style-1")||i.classList.contains("underline-style-2")){const e=document.querySelector("#underline");e.classList.add("active"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),i.classList.contains("underline-style-0")?(e.querySelector(".acc-progress-child-1").classList.add("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):i.classList.contains("underline-style-1")?(e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.add("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):i.classList.contains("underline-style-2")&&(e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.add("active"))}if(i.style.fontSize){const e=document.querySelector("#font-size");e.classList.add("active"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),"1.3rem"===i.style.fontSize?(e.querySelector(".acc-progress-child-1").classList.add("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):"1.5rem"===i.style.fontSize?(e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.add("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):"1.8rem"===i.style.fontSize&&(e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.add("active"))}if(i.classList.contains("line-height-0")||i.classList.contains("line-height-1")||i.classList.contains("line-height-2")){const e=document.querySelector("#line-height");e.classList.add("active"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),i.classList.contains("line-height-0")?(e.querySelector(".acc-progress-child-1").classList.add("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):i.classList.contains("line-height-1")?(e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.add("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):i.classList.contains("line-height-2")&&(e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.add("active"))}if(i.style.letterSpacing){const e=document.querySelector("#letter-spacing");e.classList.add("active"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),"0.1rem"===i.style.letterSpacing?(e.querySelector(".acc-progress-child-1").classList.add("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):"0.2rem"===i.style.letterSpacing?(e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.add("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):"0.3rem"===i.style.letterSpacing&&(e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.add("active"))}if(i.style.textAlign){const e=document.querySelector("#text-align");e.classList.add("active"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),"left"===i.style.textAlign?(e.querySelector(".acc-progress-child-1").classList.add("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):"center"===i.style.textAlign?(e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.add("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):"right"===i.style.textAlign&&(e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.add("active"))}if(i.classList.contains("contrast-style-0")||i.classList.contains("contrast-style-1")||i.classList.contains("contrast-style-2")){const e=document.querySelector("#contrast");e.classList.add("active"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),i.classList.contains("contrast-style-0")?(e.querySelector(".acc-progress-child-1").classList.add("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):i.classList.contains("contrast-style-1")?(e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.add("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):i.classList.contains("contrast-style-2")&&(e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.add("active"))}if(i.classList.contains("hide-images")&&document.querySelector("#hide-images").classList.add("active"),i.classList.contains("hide-video")&&document.querySelector("#hide-video").classList.add("active"),S.classList.contains("cursor-0")||S.classList.contains("cursor-1")||S.classList.contains("cursor-2")){const e=document.querySelector("#change-cursor"),t=document.getElementById("triangle-cursor");t.style.display="none",e.classList.add("active"),e.querySelector(".acc-progress-parent").classList.remove("hidden"),S.classList.contains("cursor-0")?(e.querySelector(".acc-progress-child-1").classList.add("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):S.classList.contains("cursor-1")?(e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.add("active"),e.querySelector(".acc-progress-child-3").classList.remove("active")):S.classList.contains("cursor-2")&&(e.querySelector(".acc-progress-child-1").classList.remove("active"),e.querySelector(".acc-progress-child-2").classList.remove("active"),e.querySelector(".acc-progress-child-3").classList.add("active"),t.style.display="block")}n.forEach(e=>{e.querySelectorAll("path").forEach(t=>{t.style.fill=e.querySelector(".acc-child").classList.contains("active")?"var(--acc_color_2)":"var(--acc_color_1)"})})}); function slideSwitch(){var $active=jQuery('#cabecera_slide canvas.active');if($active.length==0)$active=jQuery('#cabecera_slide canvas:last');var $next=$active.next().length?$active.next():jQuery('#cabecera_slide canvas:first');$active.addClass('last-active');$next.css({opacity:0.0}).addClass('active').animate({opacity:1.0},1000,function(){$active.removeClass('active last-active');});}
jQuery(function(){jQuery.each(jQuery('ul.art-menu'),function(i,val){var cambiado=false;var m=jQuery(val);var links=m.find('a');for(var i=0;i50){jQuery('#uparrow').fadeIn();}else{jQuery('#uparrow').fadeOut();}});jQuery('#uparrow').click(function(){jQuery('body,html').animate({scrollTop:0},800);return false;});});jQuery('.countAnimated').each(function(){$(this).prop('Counter',0).animate({Counter:$(this).text()},{duration:4000,easing:'swing',step:function(now){$(this).text(Math.ceil(now));}});});});jQuery(document).ready(function(){if(typeof(ajaxImage)=='undefined')
ajaxImage='/images/ajax/cart-pack.gif';jQuery(".btn_add_carrito").on("click",function(event){$.blockUI({message:' Actualizando el carrito... '});var cantidad=$(this).attr("cantidad");if(cantidad==''||cantidad==0||cantidad==undefined)
cantidad=1;refreshCart($(this).attr("producto"),$(this).attr("atributos"),cantidad,false,'relativo','',$(this).data("from"),$(this).data("to"));event.preventDefault();if($(this).attr("data-goto-cart")=="true"){setTimeout(function(){window.location.href="carrito";},2000);}else{$.unblockUI();}});jQuery(".btn_add_carrito_fly").on("click",function(event){var cart=$('#miniCart');var imgtofly=jQuery("#product_"+jQuery(this).attr("producto")+" .product_img");if(imgtofly){var imgclone=imgtofly.clone().offset({top:imgtofly.offset().top,left:imgtofly.offset().left}).css({'opacity':'0.8','position':'absolute','border':'2px solid gray','border-radius':'5px','width':'auto','z-index':'1000'}).appendTo(jQuery('body')).animate({'top':cart.offset().top+10,'left':cart.offset().left+30,'width':55,'height':55},1000,'easeInElastic');imgclone.animate({'width':0,'height':0},function(){jQuery(this).detach()});}
event.preventDefault();});initRefreshCart();});function initRefreshCart(){jQuery(".btn_del_carrito").on("click",function(event){event.preventDefault();refreshCart($(this).attr("producto"),$(this).attr("atributos"),-1,$(this).attr("rel")=="reload",'relativo','',$(this).data("from"),$(this).data("to"));});}
function refreshCart(producto,atributos,cantidad,recargar,modo,ejecuta,dateFrom,dateTo){jQuery.ajax({contentType:"application/x-www-form-urlencoded",type:"POST",async:false,url:"add_cart?clean=1",data:"id_producto="+producto+"&atributos="+atributos+"&cantidad="+cantidad+"&modo="+modo+"&date_from="+dateFrom+"&date_to="+dateTo,success:function(datos){jQuery("#miniCartDiv").html(datos.message);jQuery(".divCarritoCantidad").html(parentOpen+datos.num_productos+parentClose);initRefreshCart();if(recargar)
location.reload();if(ejecuta)
eval(ejecuta);}});}
var megaMenuCreate=(function($){"use strict";return function(){var sheet=$(".art-sheet");var sheetLeft=sheet.offset().left;var sheetWidth=sheet.width();try{sheetWidth-=(parseInt($(".art-hmenu").parents("nav").css("padding-left").replace("px",""),10)||0)*2;}catch(e){}
$(".art-hmenu .art-hmenu-mega-menu").css("width","").css("left","").css("right","").removeAttr("data-ext-l").removeAttr("data-ext-r").children("li").css("width","").css("margin-left","").css("margin-right","").siblings("li.cleared").remove();$(".art-hmenu-mega-menu").each(function(){var ul=$(this);var ltr=!ul.hasClass("art-hmenu-right-to-left");var widths=[];var horizontalMargin=6;ul.children("li").each(function(){widths.push($(this).width());});var maxWidth=Math.max.apply(window,widths);var submenusWidth=maxWidth*widths.length;var minMegaMenuWidth=Math.min(sheetWidth,submenusWidth);var colsPerRow=parseInt(minMegaMenuWidth/maxWidth,10);var megaMenuWidth=(maxWidth*colsPerRow)+(horizontalMargin>0?horizontalMargin*colsPerRow-1:colsPerRow-1);var parentWidth=ul.parent("li").children("a").outerWidth(false);if(submenusWidth>ul.parent("li").children("a").outerWidth(false)){ul.children("li").css("width",Math.round(parseFloat(maxWidth,10))+"px");ul.css("width",Math.round(parseFloat(megaMenuWidth,10))+"px");}
ul.children("li").each(function(index){if(index%colsPerRow!==0)
$(this).css("margin-left",horizontalMargin+"px");});if(submenusWidth>sheetWidth){var newlineLis=[];ul.children("li").each(function(index){if((index+1)%colsPerRow===0){newlineLis.push($(this));}});}
sheetWidth=sheet.outerWidth(false);var li=ul.parent("li");var ulLeft=li.offset().left;var ulWidth=ul.outerWidth(false)-60;if(ltr){var leftOffset=0;if(ulLeft+ulWidth>sheetLeft+sheetWidth){leftOffset=(ulLeft+ulWidth)-(sheetLeft+sheetWidth);ul.css("left","-"+Math.round(parseFloat(leftOffset,10))+"px");ul.attr("data-ext-l",Math.round(parseFloat(leftOffset,10)));ul.attr("data-ext-r",Math.round(parseFloat(ulWidth-leftOffset-li.outerWidth(false),10)));}}else{var rightOffset=0;ulLeft=ulLeft+li.outerWidth(false)-ulWidth;if(ulLeftli.mega").each(function(i,v){var itm=$(this);var subm=itm.children("ul");if(subm.length===0){return;}
itm.removeClass("ext ext-r ext-l");itm.css("width","").find(".ext-off,.ext-m,.ext-l,.ext-r").remove();subm.children("li").children("a").css("width","");var lw=0,rw=0;if(typeof subm.attr("data-ext-l")!=="undefined"&&typeof subm.attr("data-ext-r")!=="undefined"){lw=parseInt(subm.attr("data-ext-l"),10)+0;rw=parseInt(subm.attr("data-ext-r"),10)+0;itm.addClass("ext-r").addClass("ext-l");}else{var ltr=!subm.hasClass("art-hmenu-right-to-left");itm.addClass(ltr?"ext-r":"ext-l");}
var shadow=0;if(subm.length>0){var lnk=itm.children("a");var lnkWidth=lnk.outerWidth(false);itm.css("width",Math.round(parseFloat(lnkWidth,10))+"px");var menubarMargin=5*2;var menubarBorder=0*2;var submWidth=subm.width()+shadow+menubarMargin+menubarBorder;var w=submWidth-lnkWidth;$("
").insertBefore(lnk);if(w<0){var submA=subm.children("li").children("a");var pL=parseInt(submA.css("padding-left").replace("px",""),10)||0;var pR=parseInt(submA.css("padding-right").replace("px",""),10)||0;var bL=parseInt(submA.css("border-left").replace("px",""),10)||0;var bR=parseInt(submA.css("border-right").replace("px",""),10)||0;subm.children("li").children("a").css("width",(lnkWidth-pL-pR-bL-bR)+"px");submWidth=subm.width()+shadow+menubarMargin+menubarBorder;w=submWidth-lnkWidth;}
$("0?lw:Math.round(parseFloat(w,10)))+"px;\">
").insertBefore(lnk);$("0?rw:Math.round(parseFloat(w,10)))+"px;\">
").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 isiPhone(){return((navigator.platform.indexOf("iPhone")!=-1)||(navigator.platform.indexOf("iPod")!=-1));} !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=' '+a.fixedCookieTypeLabel+" ";preferences=JSON.parse(p),e.each(a.cookieTypes,function(e,o){if(""!==o.type&&""!==o.value){var t="";!1!==o.description&&(t=' title="'+o.description+'"'),l+=' "+o.type+" "}});var u=''+a.title+" "+a.message+' '+a.moreInfoLabel+'
";u+="
",u+=''+a.acceptBtnLabel+" ",!0===a.rejectButton&&(u+=''+a.rejectBtnLabel+" "),u+=''+a.advancedBtnLabel+" ",u+="
",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;i
';document.addEventListener("DOMContentLoaded",function(){function e(){r.classList.toggle("close"),a.innerHTML=r.classList.contains("close")?'