Modificare il file:
\res\x5engine.deferrable.js
/*minified*/ !function(e,i){"use strict";e.extend(i,{imAccess:{showLogout:function(){var t=e(".imLogout");0!==t.length&&(t.empty(),i.utils.isOnline()?null!==e.imCookie("im_access_cookie_uid")&&""!==e.imCookie("im_access_cookie_uid")&&t.append('<a class="imLogoutLink" href="'+i.settings.currentPath+'res/imlogout.php">'+i.l10n.get("private_area_logout")+"</a>"):t.append('<a class="imLogoutLink" href="#">'+i.l10n.get("private_area_logout")+"</a>"))}}})}(_jq,x5engine),!function(u,h){"use strict";u.extend(h,{imAdv:{showAdv:function(t){var e=new Date,e=new Date(e.getTime()+6e4*e.getTimezoneOffset());u.extend(!0,{start:new Date(e.getTime()-1),end:new Date(e.getTime()+1),delay:0,callback:null},t);return e>t.start&&e<t.end&&u.isFunction(t.callback)?setTimeout(t.callback,t.delay):-1},showCorner:function(t){var o=u.extend(!0,{position:"right-top",attentionSeeker:{media:null,effect:"",interval:1e3},sound:null,message:{media:null,effect:""},margin:20},h.settings.imAdv,t),a=null,r=null,s=h.responsive,l=o.attentionSeeker.media.load,c=u("body"),d=u(window),a=new h.mediaObject(u.extend(o.attentionSeeker.media,{load:function(t){var e=u('<div id="adv-attention-seeker" style="overflow: hidden; cursor: pointer;"/>'),i=!1;switch(o.position){case"right-top":e.css({position:"absolute",top:o.margin,right:o.margin});break;case"right-bottom":e.css({position:"absolute",bottom:o.margin,right:o.margin});break;case"left-top":e.css({position:"absolute",top:o.margin,left:o.margin});break;case"left-bottom":e.css({position:"absolute",bottom:o.margin,left:o.margin})}c.append(e),e.width(t.Width()).height(t.Height()),t.AppendTo(e,function(){e.add(t.DOMObject()).css("zIndex",h.settings.zIndex.popup),t.DOMObject().height(t.Height()).width(t.Width()),e.addClass(o.attentionSeeker.effect),e.on("mouseenter",function(){i||(r=setTimeout(function(){i=!0,e.fadeOut(),h.imShowBox({media:[o.message.media],effect:"custom",customEffect:o.message.effect,sound:o.sound,fullScreenEnabled:!1,zoomEnabled:!1,showThumbs:!1,onClose:function(){e.fadeIn(250,function(){i=!1})}})},250))}).on("mouseleave",function(){clearTimeout(r)}),u.isFunction(l)&&l(t)});function n(){var t=s.getCurrentBreakPoint();!s.isDesktopMode()&&t&&t.start<a.Width()?e.hide(0):e.show(0)}n(),d.on("resize",n)}}))}}})}(_jq,x5engine),!function(s,r){"use strict";s.extend(r,{imAdvertising:{cookieId:"",clUnroll:"",clClose:"",delay:0,timerClose:null,showPopup:function(e){e=s.extend({id:"imAdvertisingPopup",offlineTimeStamp:0,delay:5e3,position:"right",priority:0,text:"",acceptButton:!1,textButton:"",actionButton:"",effect:"bounce",margin:10,backgroundColor:"#37474f",textColor:"#fff"},e),r.imAdvertising.clUnroll="unroll-"+e.position,r.imAdvertising.clClose="close-"+e.position,r.imAdvertising.delay=e.delay,r.imAdvertising.cookieId="imAdvertising_pop_up_yes"+(r.utils.isOnline()?"":"_"+e.offlineTimeStamp),r.imAdvertising.createContainer(e);function t(t){t?setTimeout(function(){t?s("#"+e.id+" #"+e.id+"-child .contText span").addClass("hid"):s("#"+e.id+" #"+e.id+"-child .contText span").removeClass("hid")},100):s("#"+e.id+" #"+e.id+"-child .contText span").removeClass("hid")}function i(){n.removeClass(r.imAdvertising.clUnroll).addClass(e.effect),t(!0)}var n=s("#"+e.id),o=s("#"+e.id+" #"+e.id+"-child"),a=(n.addClass(r.imAdvertising.clClose),n.css({zIndex:r.settings.zIndex.advertising+e.priority,transition:e.position+" .3s cubic-bezier(.4,0,.2,1)"}),Math.min(o.outerWidth()+2*e.margin,s(window).width()),Math.min(o.outerWidth()+2*e.margin,s(window).width()-60)),o=(n.css("width",60),o.css({width:a,color:e.textColor,background:e.backgroundColor}),document.createElement("style"));o.innerHTML="#"+e.id+"."+r.imAdvertising.clUnroll+" { "+e.position+": "+(a-60)+"px; }",document.getElementsByTagName("head")[0].appendChild(o);n.mouseenter(function(){t(!1),s(this).addClass(r.imAdvertising.clUnroll).removeClass(e.effect),window.clearTimeout(r.imAdvertising.timerClose)}),n.mouseleave(function(){r.imAdvertising.timerClose=window.setTimeout(i,r.imAdvertising.delay)}),setTimeout(function(){var t=r.imAdvertising.alreadyVisited();t||(s("#"+e.id+" #"+e.id+"-child .contText span").removeClass("hid"),n.addClass("unroll-"+e.position),s.imCookie(r.imAdvertising.cookieId,1,{expires:365,path:"/"}),r.imAdvertising.activateScripts()),r.imAdvertising.timerClose=window.setTimeout(i,t?0:5e3)},5e3)},createContainer:function(t){var e=s('<div id="'+t.id+'">'),i=s('<div id="'+t.id+'-child"></div>'),n=s('<div class="contIcon"></div>'),o=s('<svg xmlns="http://www.w3.org/2000/svg" width="30px" height="30px" viewBox="0 0 114.98 114.98"> <defs> <style> .a { fill: #f1f1f1; } .b { fill: #232323; } </style> </defs> <circle class="a" cx="57.49" cy="57.49" r="57.49" /> <path class="b" d="M96.34,38.74a3.29,3.29,0,0,0,0-6.58H80.7a3,3,0,0,0-.67.07l-.16,0-.14,0-.21.08-.09,0-.2.09-.09,0-.16.09-.11.07-.13.09-.13.1a.39.39,0,0,1-.1.08l-.14.14a.46.46,0,0,0-.07.07l-.15.16a.56.56,0,0,0-.05.08,1.15,1.15,0,0,0-.14.17.75.75,0,0,1-.07.12l-.09.15a3.38,3.38,0,0,0-.26.62L73.33,48.05a3.29,3.29,0,0,0,2.17,4.12l.08,0a3.49,3.49,0,0,0,1.08.17h.21a13.11,13.11,0,0,1,12.64,9.76,13.31,13.31,0,0,1,.43,3.34,13.09,13.09,0,0,1-9.75,12.64,13.06,13.06,0,0,1-15.76-8.58c0-.15-11.7-35.1-11.7-35.1l0-.07-.06-.16L52.57,34a.91.91,0,0,0-.07-.14l-.08-.15a1,1,0,0,0-.08-.11,1,1,0,0,0-.1-.15l-.09-.11L52,33.23a1.14,1.14,0,0,1-.11-.11L51.81,33l-.13-.11-.11-.09-.15-.1-.11-.07-.15-.09L51,32.48l-.15-.06-.16-.07-.07,0-.07,0-.18-.05-.14,0-.17,0-.15,0h-.65l-.15,0-.18,0-.14,0-.18.05-.07,0-.06,0-.17.06-.14.06-.14.08-.15.08-.12.08-.15.1-.11.09-.13.11-.11.11-.11.11-.11.13-.09.11-.1.15-.08.12-.08.15a.91.91,0,0,0-.07.14.61.61,0,0,1-.07.14l-.06.17a.14.14,0,0,0,0,.07L34.17,71.63,21.77,34.41a3.29,3.29,0,0,0-6.24,2.08L31.06,83.1l0,.07a1.22,1.22,0,0,0,.07.17l.06.14s.05.09.07.14l.09.15.07.12.1.15.09.11.11.13a1.14,1.14,0,0,1,.11.11l.12.11.13.11.11.09.15.1.11.08a.8.8,0,0,0,.16.08l.13.07.15.07.16.06.07,0,.07,0,.18.05.14,0,.17,0,.15,0h.65l.15,0,.18,0,.14,0,.18,0,.06,0,.07,0,.17-.07L35.6,85l.14-.07.15-.09L36,84.8l.15-.1.11-.09.13-.12a1.14,1.14,0,0,0,.11-.11l.11-.11.11-.13.09-.11.1-.15.08-.11a1.19,1.19,0,0,0,.08-.16.83.83,0,0,0,.07-.13l.07-.15.06-.16,0-.07L49.62,45.87l8.22,24.58h0a19.66,19.66,0,0,0,38.68-5,19.77,19.77,0,0,0-.65-5A19.7,19.7,0,0,0,80.8,46.18l2.31-7.44Z" /> </svg>'),a=s('<div class="contText"></div>'),r=s('<span class="hid">'+t.text+"</span>");i.append(n.append(o)).append(a.append(r)),1==t.acceptButton&&a.append(s("<button onclick=\"window.open('"+t.actionButton+"','_blank');\" >"+t.textButton+"</button>")),e.append(i).appendTo("body")},activateScripts:function(){s("#imContent").trigger("x5ActivateCookieScripts")},alreadyVisited:function(){return!!s.imCookie(r.imAdvertising.cookieId)}}})}(_jq,x5engine),!function(k,_){"use strict";k.extend(_,{alertBox:function(i){function n(){i.sound&&i.sound&&new Audio(i.sound).play()}function o(){i.link&&u.find(".target-image, .mediaTarget").click(function(){k.isFunction(i.link)?i.link.call(this):location.href=i.link}).css("cursor","pointer")}function a(){i.cookie&&k.imCookie(C,"true",{expires:0,path:"/"})}function t(t){27==t.keyCode&&p()}var e,r,s,l,c='<img class="imCloseInn" src=\''+_.settings.currentPath+"res/imClose.png' style='width: 20px;' alt='"+_.l10n.get("showbox_tip_close","Close")+"' />",d=(i=k.extend(!0,{id:"",effect:"",link:"",priority:0,cookie:!1,position:"top",text:"",image:"",media:null,sound:"",acceptButton:!1,elementClose:c,onClose:null,offlineTimeStamp:0},i)).id,u=null,h=null,p=null,f=k("body"),g=null,m=null,v=null,w=null,b=0,y=null,x=null,C="cookie-"+i.id+(!_.utils.isOnline()&&i.offlineTimeStamp?"_"+i.offlineTimeStamp:""),c='<div id="'+d+'" class="alertbox" data-position="'+i.position+'" data-priority="'+i.priority+'"><div class="message-container"><div class="wrapper-content">'+i.text+(i.image?'<img class="target-image" alt="" />':"")+(i.media?'<div class="mediaTarget" />':"")+"</div></div>";""!==i.elementClose&&(c+='<div class="close-button close">'+i.elementClose+"</div>"),c+="</div>";return f.keydown(t),(!i.cookie||"true"!=k.imCookie(C))&&("top"==i.position?(b=1e6,k('[data-priority][data-position="top"]').each(function(){var t=+k(this).attr("data-priority");!isNaN(t)&&t>i.priority&&t<b&&(w=k(this),b=t)}),w?w.after(c):f.prepend(c),g=k("#"+d+" .target-image"),0<(u=k("#"+d)).length&&(u.slideUp(0),e=k("#imHeaderBg"),r=function(){},p=function(){a(),f.off("keydown",t),k.isFunction(i.onClose)&&i.onClose(),v&&v.Stop(),u.slideUp({duration:500,step:r,complete:function(){u.remove(),+e.css("margin-top").replace(/px/g,"")<2&&e.css("margin-top",0)}})},h=function(t){var e;u.css({position:"fixed",top:0,left:0,right:0,"border-top-width":0,zIndex:_.settings.zIndex.popup}),i.effect&&"fromtop"==i.effect&&(e={left:0,top:0},u.css({top:-k(window).height()+u.height()}),u.fadeIn(0),u.animate(e,{duration:500,complete:t})),n(),o(),u.slideDown({duration:500,step:r,complete:function(){u.outerHeight(!0),k.isFunction(t)&&t()}})},g&&g.length?(g.one("load",h),g.mouseenter(function(){g.attr("src",i.image).mouseleave(function(){g.attr("src",i.image).off("mouseleave")})}).attr("src",i.image)):i.media?(x=i.media.load,y=new _.mediaObject(k.extend(i.media,{load:function(t){t.AppendTo(k(".mediaTarget")),t.DOMObject().css("position","").height(t.Height()),h(function(){k.isFunction(x)&&x(t)})}}))):h(),u.find(".close").click(p))):"bottom"==i.position&&((s=k("#bottom-alertbox-container")).length||(s=k('<div id="bottom-alertbox-container" />').css({position:"fixed",bottom:0,left:0,right:0,"z-index":_.settings.zIndex.popup}),f.append(s)),b=0,s.find("[data-priority]").each(function(){var t=+k(this).attr("data-priority");!isNaN(t)&&t<i.priority&&b<=t&&(w=k(this),b=t)}),w?w.before(c):s.append(c),u=k("#"+d),g=u.find(".target-image"),m=u.find(".message-container"),0<u.length)&&(u.css({position:"relative",zIndex:_.settings.zIndex.splashBox}),h=function(t){i.sound&&(v=_.mediaPlayer({url:i.sound,target:u.find(".alertbox-mediaplayer"),type:"audio",width:1,height:1,loop:!0,autoplay:!0})),u.css({bottom:i.image?-k("#"+d+" img").outerHeight():y?-y.Height():"auto","border-bottom-width":0});var e=0<g.length?g.outerHeight():y?y.Height():"auto";m.css({height:e}),u.stop(!0,!0).animate({bottom:0,height:e},{duration:500,complete:t}),i.effect&&"frombottom"==i.effect&&(e={left:0,top:0},u.css({top:k(window).height()-u.height()}),u.fadeIn(0),u.animate(e,{duration:500,complete:t})),n(),o(),a()},p=function(){k.isFunction(i.onClose)&&i.onClose(),v&&v.Stop(),u.slideUp(500,function(){u.remove()}),a()},l=function(){g.off("load mouseleave").attr("src",i.image),k([m,u]).animate({height:g.outerHeight()})},g&&g.length?(g.one("load",h),i.img_big&&g.mouseenter(function(){g.one("load",function(){k([m,u]).stop(!1,!1).animate({height:g.outerHeight()}),g.mouseleave(l)}).attr("src",i.img_big)}),g.attr("src",i.image)):i.media?(x=i.media.load,y=new _.mediaObject(k.extend(i.media,{load:function(t){t.AppendTo(k(".mediaTarget")),t.DOMObject().css("position","").width("auto").height("auto").fadeIn(0),h(function(){k.isFunction(x)&&x(t)})}}))):h(),u.find(".close").click(p)),{close:function(){k.isFunction(p)&&p()}})}})}(_jq,x5engine),!function(s,t,l){"use strict";s.extend(t,{analytics:{setPageView:function(t){t=s.extend(!0,{cookie:{name:"wsx5analytics",expiration:1800},postUrl:"analytics/wsx5analytics.php"},t);var i,e=l.imStorage,n=t.cookie.name,o=e.getItem(n),a=+e.getItem(n+"ex"),r=new Date;(!o||a<r.getTime())&&(i=(new Date).getTime(),o="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=(i+16*Math.random())%16|0;return i=Math.floor(i/16),("x"==t?e:3&e|8).toString(16)})),e.setItem(n,o),e.setItem(n+"ex",r.setTime(r.getTime()+1e3*t.cookie.expiration)),"/"==(a=location.pathname).charAt(a.length-1)&&-1==a.indexOf("/index.html")&&(a+="index.html"),s.ajax({url:t.postUrl,type:"POST",data:{uid:o,url:a,lang:navigator.language||navigator.userLanguage}})}}})}(_jq,x5engine,window),!function(a){"use strict";var r="x5enginepause",s=1,l={},c=a.fn.animate;function d(){return(new Date).getTime()}a.fn.animate=function(e,t,i,n){var o=a.speed(t,i,n);return o.complete=o.old,this.each(function(){this[r]||(this[r]=s++);var t=a.extend({},o);c.apply(a(this),[e,t]),l[this[r]]={start:d(),run:!0,opt:t,prop:e,done:0}})},a.fn.pauseAnim=function(){return this.each(function(){this[r]||(this[r]=s++);var t=l[this[r]];t&&t.run&&(t.done+=d()-t.start,t.done>t.opt.duration?delete l[this[r]]:(a(this).stop(),t.run=!1))})},a.fn.resAnim=function(){return this.each(function(){this[r]||(this[r]=s++);var t=l[this[r]];t&&!t.run&&(t.opt.duration-=t.done,t.done=0,t.run=!0,t.start=d(),c.apply(a(this),[t.prop,t.opt]))})}}(_jq),!function(p,f){"use strict";p.extend(f,{bgStretch:function(t,e,i){i=p('<div id="imFixedDivBg" />').css({position:"fixed",top:0,left:0,bottom:0,right:0,"z-index":i});p("body").prepend(i),f.divBgStretch(i,t,!1,"top")},divBgStretch:function(e,t,i,n){var o,a,r,s=0,l=0,c=0,d=0,u=0,h=0;i=null==i||i,n=n||"center",f.utils.supportsCSS("backgroundSize")&&!/(iPad|iPhone|android)/i.test(navigator.userAgent)||(e=p(e),(o=p("<div />").css("overflow","hidden")).css("display",f.responsive.isDesktopMode()?"block":"none"),p("#imContent").on("breakpointChanged",function(){o.css("display",f.responsive.isDesktopMode()?"block":"none")}),a=p("<img />").css({position:"absolute",top:-1e4}),p("body").append(a),a.one("load",function(){c=e.width(),d=e.height(),h=c,u=d,r=a.height()/a.width(),a.detach(),e.prepend(o),o.append(a),function t(){"static"==e.css("position")&&e.css("position","relative"),e.children().each(function(){var t=p(this);"static"==t.css("position")&&t.css("position","relative")}),o.width(h).height(u).css({position:"absolute",top:0,left:0}),i?a.css({top:0,left:0}).width(h).height(u):((l=(s=h)*r)<u&&(s=(l=u)/r),a.width(s).height(l).css({top:"top"==n?0:(u-l)/2,left:(h-s)/2}),setTimeout(function(){h=e.width(),u=e.height(),h==c&&u==d||(t(),c=h,d=u)},250))}()}).attr("src",t))},eventBinder:function(a,r,n,o,s){var l=!1;p(a).each(function(){var e=p(this),i=function(t){if(isNaN(t.clientX)||isNaN(t.clientY)||0===t.clientX&&0===t.clientY)return!1;for(var e=document.elementsFromPoint(t.clientX,t.clientY),i=!1,n=!1,o=0;o<e.length&&!i&&!n;o++)p(e[o]).is(a)&&(i=!0),r&&(p(e[o]).is(r)||p(t.target).is(r))&&(n=!0);return i&&!n};n&&e.on("click",function(t){i(t)&&(p.isFunction(n)?n.apply(e):"string"==typeof n&&0===n.indexOf("http")&&(location.href=n))}),(o||s)&&p("body").on("mousemove",function(t){i(t)?l||(l=!0,p.isFunction(o)?o.apply(e):"string"==typeof o&&0===o.indexOf("http")&&(location.href=o)):l&&(l=!1,p.isFunction(s))&&s()})})}})}(_jq,x5engine),!function(o,t,e){"use strict";function i(){d=[],o(".imBlogHighlightedCards").each(function(){var t,e=o(this),i=e.find(".imBlogPostCard"),n=i.length||0;0!=n&&(t=e.width(),e=e.width()*(n-1),d.push({cards:i,current:0,step:t,end:e}),o.each(i,function(t,e){o(e).css("transform","translateX(0px)")}))})}function n(){o.each(d,function(t,i){i.current==i.end?i.current=0:i.current+=i.step,o.each(i.cards,function(t,e){o(e).css("transform","translateX(-"+i.current+"px)")})}),c()}function a(){o.each(d,function(t,i){0==i.current?i.current=i.end:i.current-=i.step,o.each(i.cards,function(t,e){o(e).css("transform","translateX(-"+i.current+"px)")})}),c()}function r(t){p=!1,1==t.touches.length&&(p=f={x:t.touches[0].pageX,y:t.touches[0].pageY})}function s(t){var e,i;1==t.touches.length&&(e=t.touches[0].pageX-p.x,i=t.touches[0].pageY-p.y,f=Math.abs(i)>Math.abs(e)?p=!1:{x:t.touches[0].pageX,y:t.touches[0].pageY})}function l(t){var e,i;p&&f&&(e=f.x-p.x,i=f.y-p.y,0!=e&&Math.abs(i)<Math.abs(e)&&(t.preventDefault(),(0<e?a:n)()),p=f=!1)}function c(){u&&clearTimeout(u),u=setTimeout(function(){n()},h)}var d,u,h,p,f;o.extend(t,{blogHighlightedSlideshow:(d=[],u=null,f=p=!(h=5e3),{start:function(t){h=t||5e3,i(),0<d.length&&(o(e).resize(i),o("html").hasClass("touchevents")?(o(".imBlogHighlightedCards").on("touchstart",r),o(".imBlogHighlightedCards").on("touchmove",s),o(".imBlogHighlightedCards").on("touchend",l),o(".imBlogHighlightedBefore").css("display","none"),o(".imBlogHighlightedAfter").css("display","none")):(o(".imBlogHighlightedBefore").click(a),o(".imBlogHighlightedAfter").click(n)),c())}})})}(_jq,x5engine,window),!function(t,e){"use strict";t.extend(e,{captcha:{instance:null}})}(_jq,x5engine),!function(a,t){"use strict";a.extend(!0,t,{captcha:{recaptcha:function(o){o=a.extend({sitekey:""},o),this.create=function(t){var e=a(t).find(".recaptcha"),i=-1;if(!e.length)return!1;!function t(){"undefined"==typeof grecaptcha||void 0===grecaptcha.render?setTimeout(t,50):i=grecaptcha.render(e[0],{sitekey:o.sitekey})}();function n(t){"console"in window&&console.log(t)}return{remove:function(){e.empty()},reset:function(){"number"==typeof i&&grecaptcha.reset(i)},check:function(){var t,e;return"number"==typeof i&&!!(t=grecaptcha.getResponse(i))&&(!x5engine.utils.isOnline()||(e=!1,a.ajax({url:x5engine.settings.currentPath+o.phpfile,async:!1,type:"POST",data:{rsp:t},dataType:"json",success:function(t){e=t.success,!t.success&&t["error-codes"]&&t["error-codes"].length&&n("reCaptcha error: "+t["error-codes"][0])},error:function(t,e,i){n("reCatpcha error: "+e+i)}}),e))},getCaptchaField:function(){return e}}}}}})}(_jq,x5engine),!function(n,t){"use strict";n.extend(!0,t,{captcha:{recaptchav3:function(i){i=n.extend({sitekey:""},i),this.create=function(t){return{remove:function(){},reset:function(){},check:function(){return!0},canSubmit:async function(){var t=await grecaptcha.execute(i.sitekey,{action:"submit"}),e=!1;return n.ajax({url:x5engine.settings.currentPath+i.phpfile,async:!1,type:"POST",data:{rsp:t},dataType:"json",success:function(t){e=t.success},error:function(t,e,i){console.log("errorThrown"),console.log(i)}}),e},getCaptchaField:function(){return null}}}}}})}(_jq,x5engine),!function(u,t){"use strict";u.extend(!0,t,{captcha:{x5captcha:function(d){d=u.extend({length:5,phpfile:"captcha/5captcha.php",offlineCodes:[]},d),this.create=function(t){function e(){for(c.val(""),o=n="",a=0;a<s;a++){for(var t;t=parseInt(9*Math.random(),10),-1<n.indexOf(t););n+=t}if(x5engine.utils.isOnline())l=u('<iframe class="captcha-container" src="'+r+d.phpfile+"?action=show&code="+n+'" frameborder="0" marginwidth="0" marginheight="0" width="120" height="24" scrolling="no"></iframe>'),c.before(l);else{var e='<div class="captcha-container">';for(a=0;a<n.length;a++)e+='<img src="'+r+d.offlineCodes[parseInt(n.charAt(a),10)].path+'" alt="" />';for(l=u(e+="</div>"),c.before(l),a=0;a<n.length;a++)o+=d.offlineCodes[parseInt(n.charAt(a),10)].letter}u("#imContent").change()}function i(){l&&l.remove()}var n,o,a,r=x5engine.settings.currentPath,s=d.length,l=null,c=u(t).find(".imCpt");return!!c.length&&(e(),{remove:i,reset:function(){i(),e()},check:function(){var t=c.val(),e=!1;return x5engine.utils.isOnline()?u.ajax({url:r+d.phpfile+"?action=check&code="+n+"&ans="+t,async:!1,cache:!1,success:function(t){e="-1"!=t}}):e=t.toLowerCase()==o.toLowerCase(),e},getCaptchaField:function(){return c}})}}}})}(_jq,x5engine),!function(y,x){"use strict";y.extend(x,{cms:{initialize:function(e,i){var t=y(e);i=y.extend({autoGrow:!1,css:"style/style.css",imageuploadurl:"res/imageupload.php"},i),t.css("cursor","pointer").one("click",function(t){y(t.target).is("a")||x.cms.edit(e,i)}).hover(function(){t.css({border:"1px dashed gray",overflow:x.utils.imHasScrollBar(t)?"auto":"hidden"}).width(t.width()-2).height(t.height()-2)},function(){t.css({border:"none",overflow:"auto"}).width("auto").height(i.autoGrow?"auto":t.height()+2)})},edit:function(t,e){var i=y(t),n=i.find("form"),t=i.find(".dynamicText"),o=i.find(".staticText"),a=t.find("textarea");i.css({border:"none",cursor:"auto",overflow:""}).off("mouseenter mouseleave"),e.autoGrow&&(i.height("auto"),a.height(Math.max(i.height(),200))),o.hide(0),t.show(0),e.autoGrow=!1,a.html(a.html().replace(/imCssLink/g,"")),n.one("submit",function(t){t.preventDefault();t=a.wysiwyg("getContent"),t=y("<div />").html(t);t.find("a").addClass("imCssLink"),a.after('<textarea name="'+a.attr("name")+'" style="display:none;">'+t.html()+"</textarea>"),a.attr("name","donotuse"),n.submit()}),e.autoGrow||i.on("ready.jwysiwyg",function(){var t=i.find(".wysiwyg").find(".toolbar").outerHeight(),t=(t+=i.find(".wysiwyg-buttons").outerHeight())+ +i.find(".wysiwyg").css("margin-bottom").replace(/px/g,"")+2;i.find(".wysiwyg").find("iframe").height(i.height()-t),i.css("width","100%")}),a.wysiwyg(e)}}});var a=window.console||{log:y.noop,error:function(t){y.error(t)}},t="prop"in y.fn&&"removeProp"in y.fn,n=x.l10n.get,C=/MSIE/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/MSHTML/i.test(navigator.userAgent),s=/opera/i.test(navigator.userAgent),r=/firefox/i.test(navigator.userAgent),k=/safari/i.test(navigator.userAgent)&&!/chrome/i.test(navigator.userAgent);function o(){this.controls={bold:{groupIndex:1,visible:!0,tags:["b","strong"],css:{fontWeight:"bold"},tooltip:n("wysiwyg_bold","Bold"),hotkey:{ctrl:1,key:66}},copy:{groupIndex:0,visible:!1,hasState:!1,tooltip:n("wysiwyg_copy","Copy")},createLink:{groupIndex:6,visible:!0,exec:function(){var t=this;y.wysiwyg.controls&&y.wysiwyg.controls.link?y.wysiwyg.controls.link.init(this):y.wysiwyg.autoload?y.wysiwyg.autoload.control("wysiwyg.link.js",function(){t.controls.createLink.exec.apply(t)}):a.error("$.wysiwyg.controls.link not defined. You need to include wysiwyg.link.js file")},tags:["a"],tooltip:n("wysiwyg_add_link","Create link")},unLink:{groupIndex:6,hasState:!1,visible:!0,exec:function(){this.editorDoc.execCommand("unlink",!1,null)},tooltip:n("wysiwyg_remove_link","Remove link")},cut:{groupIndex:0,visible:!1,hasState:!1,tooltip:n("wysiwyg_cut","Cut")},decreaseFontSize:{groupIndex:9,visible:!1,hasState:!1,tags:["small"],tooltip:"Decrease font size",exec:function(){this.decreaseFontSize()}},h1:{groupIndex:7,visible:!1,className:"h1",command:C||k?"FormatBlock":"heading",arguments:C||k?"<h1>":"h1",tags:["h1"],tooltip:"Header 1"},h2:{groupIndex:7,visible:!1,className:"h2",command:C||k?"FormatBlock":"heading",arguments:C||k?"<h2>":"h2",tags:["h2"],tooltip:"Header 2"},h3:{groupIndex:7,visible:!1,className:"h3",command:C||k?"FormatBlock":"heading",arguments:C||k?"<h3>":"h3",tags:["h3"],tooltip:"Header 3"},highlight:{tooltip:"Highlight",className:"highlight",groupIndex:1,visible:!1,css:{backgroundColor:"rgb(255, 255, 102)"},exec:function(){var t,e,i=C||k?"backcolor":"hilitecolor";if(C)t=this.getInternalRange().parentElement();else for(t=(e=this.getInternalSelection()).extentNode||e.focusNode;void 0===t.style;)if((t=t.parentNode).tagName&&"body"===t.tagName.toLowerCase())return;e="rgb(255, 255, 102)"===t.style.backgroundColor||"#ffff66"===t.style.backgroundColor?"#ffffff":"#ffff66",this.editorDoc.execCommand(i,!1,e)}},html:{groupIndex:10,visible:!0,exec:function(){var t;this.options.resizeOptions&&y.fn.resizable&&(t=this.element.height()),this.viewHTML?(this.setContent(this.original.value),y(this.original).hide(),this.editor.show(),this.options.resizeOptions&&y.fn.resizable&&(t===this.element.height()&&this.element.height(t+this.editor.height()),this.element.resizable(y.extend(!0,{alsoResize:this.editor},this.options.resizeOptions))),this.ui.toolbar.find("li").each(function(){var t=y(this);t.hasClass("html")||t.removeClass("disabled")})):(this.saveContent(),y(this.original).css({width:this.element.outerWidth()-6,height:this.element.height()-this.ui.toolbar.height()-10,resize:"none"}).show(),this.editor.hide(),this.options.resizeOptions&&y.fn.resizable&&(t===this.element.height()&&this.element.height(this.ui.toolbar.height()),this.element.resizable("destroy")),this.ui.toolbar.find("li").each(function(){var t=y(this);t.hasClass("html")||!1!==t.hasClass("fullscreen")||t.removeClass("active").addClass("disabled")})),this.viewHTML=!this.viewHTML},tooltip:"View source code"},increaseFontSize:{groupIndex:9,visible:!1,hasState:!1,tags:["big"],tooltip:"Increase font size",exec:function(){this.increaseFontSize()}},indent:{groupIndex:2,hasState:!1,visible:!1,tooltip:"Indent"},insertHorizontalRule:{groupIndex:6,visible:!1,hasState:!1,tags:["hr"],tooltip:"Insert Horizontal Rule"},insertImage:{groupIndex:6,hasState:!1,visible:!0,exec:function(){var t=this;y.wysiwyg.controls&&y.wysiwyg.controls.image?y.wysiwyg.controls.image.init(this):y.wysiwyg.autoload?y.wysiwyg.autoload.control("wysiwyg.image.js",function(){t.controls.insertImage.exec.apply(t)}):a.error("$.wysiwyg.controls.image not defined. You need to include wysiwyg.image.js file")},tags:["img"],tooltip:n("wysiwyg_image","Insert image")},insertOrderedList:{groupIndex:5,visible:!0,tags:["ol"],tooltip:n("wysiwyg_ol","Insert Ordered List")},insertTable:{groupIndex:6,hasState:!1,visible:!1,exec:function(){var t=this;y.wysiwyg.controls&&y.wysiwyg.controls.table?y.wysiwyg.controls.table(this):y.wysiwyg.autoload?y.wysiwyg.autoload.control("wysiwyg.table.js",function(){t.controls.insertTable.exec.apply(t)}):a.error("$.wysiwyg.controls.table not defined. You need to include wysiwyg.table.js file")},tags:["table"],tooltip:"Insert table"},insertUnorderedList:{groupIndex:5,visible:!0,tags:["ul"],tooltip:n("wysiwyg_ul","Insert Unordered List")},italic:{groupIndex:1,visible:!0,tags:["i","em"],css:{fontStyle:"italic"},tooltip:n("wysiwyg_italic","Italic"),hotkey:{ctrl:1,key:73}},justifyCenter:{groupIndex:2,visible:!0,exclusive:!0,tags:["center"],css:{textAlign:"center"},tooltip:n("wysiwyg_justify_center","Justify Center")},justifyFull:{groupIndex:2,visible:!0,exclusive:!0,css:{textAlign:"justify"},tooltip:n("wysiwyg_justify_full","Justify Full")},justifyLeft:{visible:!0,groupIndex:2,exclusive:!0,css:{textAlign:"left"},tooltip:n("wysiwyg_justify_left","Justify Left")},justifyRight:{groupIndex:2,visible:!0,exclusive:!0,css:{textAlign:"right"},tooltip:n("wysiwyg_justify_right","Justify Right")},ltr:{groupIndex:10,visible:!1,exec:function(){var t=this.dom.getElement("p");return!!t&&(y(t).attr("dir","ltr"),!0)},tooltip:"Left to Right"},outdent:{groupIndex:2,visible:!1,tooltip:"Outdent"},paragraph:{groupIndex:7,visible:!1,className:"paragraph",command:"FormatBlock",arguments:C||k?"<p>":"p",tags:["p"],tooltip:"Paragraph"},paste:{groupIndex:0,hasState:!1,visible:!1,tooltip:n("wysiwyg_paste","Paste")},undo:{groupIndex:3,hasState:!1,visible:!0,tooltip:n("wysiwyg_undo","Undo")},redo:{groupIndex:3,hasState:!1,visible:!0,tooltip:n("wysiwyg_redo","Redo")},removeFormat:{groupIndex:10,visible:!0,exec:function(){this.removeFormat()},tooltip:n("wysiwyg_reset","Remove formatting")},rtl:{groupIndex:10,visible:!1,exec:function(){var t=this.dom.getElement("p");return!!t&&(y(t).attr("dir","rtl"),!0)},tooltip:"Right to Left"},strikeThrough:{groupIndex:1,visible:!0,tags:["s","strike"],css:{textDecoration:"line-through"},tooltip:n("wysiwyg_strike","Strike-through")},subscript:{groupIndex:3,visible:!1,tags:["sub"],tooltip:"Subscript"},superscript:{groupIndex:3,visible:!1,tags:["sup"],tooltip:"Superscript"},underline:{groupIndex:1,visible:!0,tags:["u"],css:{textDecoration:"underline"},tooltip:n("wysiwyg_underline","Underline"),hotkey:{ctrl:1,key:85}},code:{visible:!1,groupIndex:6,tooltip:"Code snippet",exec:function(){var t=this.getInternalRange(),e=y(t.commonAncestorContainer),t=t.commonAncestorContainer.nodeName.toLowerCase();e.parent("code").length?e.unwrap():"body"!==t&&e.wrap("<code/>")}},cssWrap:{visible:!1,groupIndex:6,tooltip:"CSS Wrapper",exec:function(){y.wysiwyg.controls.cssWrap.init(this)}}},this.defaults={html:'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" style="margin:0;background-image:none;"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body style="margin:0;">INITIAL_CONTENT</body></html>',debug:!1,controls:{},availableFonts:[],defaultFontFamily:"Tahoma",defaultFontSize:10,css:{},events:{},autoGrow:!1,autoSave:!0,brIE:!1,formHeight:270,formWidth:440,iFrameClass:null,initialContent:"<p>"+n("wysiwyg_default_text","Click here to edit this text!")+"</p>",maxHeight:1e4,maxLength:0,messages:{nonSelection:"Select the text you wish to link"},toolbarHtml:'<ul role="menu" class="toolbar"></ul>',removeHeadings:!1,replaceDivWithP:!1,resizeOptions:!1,rmUnusedControls:!1,rmUnwantedBr:!0,tableFiller:"Lorem ipsum",initialMinHeight:null,controlImage:{forceRelativeUrls:!1},controlLink:{forceRelativeUrls:!1},plugins:{autoload:!1,i18n:!1,rmFormat:{rmMsWordMarkup:!1}},dialog:"default"},this.availableControlProperties=["arguments","callback","className","command","hasState","exclusive","css","custom","exec","groupIndex","hotkey","icon","tags","tooltip","visible"],this.editor=null,this.editorDoc=null,this.element=null,this.options={},this.original=null,this.savedRange=null,this.timers=[],this.validKeyCodes=[8,9,13,16,17,18,19,20,27,33,34,35,36,37,38,39,40,45,46],this.isDestroyed=!1,this.dom={ie:{parent:null},w3c:{parent:null}},(this.dom.parent=this).dom.ie.parent=this.dom,this.dom.w3c.parent=this.dom,this.ui={},(this.ui.self=this).ui.toolbar=null;var t,e,i=this.ui.initialHeight=null;window.getSelection?(t=function(t){var e=t.getSelection(),i=[];if(e.rangeCount)for(var n=0,o=e.rangeCount;n<o;++n)i.push(e.getRangeAt(n));return i},e=function(t,e){var i=t.getSelection();i.removeAllRanges();for(var n=0,o=e.length;n<o;++n)i.addRange(e[n])}):document.selection&&document.selection.createRange&&(t=function(t){t=t.document.selection;return"None"!=t.type?t.createRange():null},e=function(t,e){e&&e.select()}),this.saveSelection=function(){i=t(this.editor[0].contentWindow)},this.restoreSelection=function(){i&&e(this.editor[0].contentWindow,i)},this.dom.getAncestor=function(t,e){for(e=e.toLowerCase();t&&void 0!==t.tagName&&"body"!==t.tagName.toLowerCase();){if(e===t.tagName.toLowerCase())return t;t=t.parentNode}if(!t.tagName&&(t.previousSibling||t.nextSibling)){if(t.previousSibling&&t.previousSibling.tagName.toLowerCase()==e)return t.previousSibling;if(t.nextSibling&&t.nextSibling.tagName.toLowerCase()==e)return t.nextSibling}return null},this.dom.getElement=function(t){return t=t.toLowerCase(),(window.getSelection?this.w3c:this.ie).getElement(t)},this.dom.ie.getElement=function(t){var e,i=this.parent,n=i.parent.getInternalSelection(),o=n.createRange();if("Control"===n.type){if(1!==o.length)return null;e=o.item(0)}else e=o.parentElement();return i.getAncestor(e,t)},this.dom.w3c.getElement=function(t){var e,i=this.parent,n=i.parent.getInternalRange();if(!n)return null;if(!(e=3===(e=n.commonAncestorContainer).nodeType?e.parentNode:e))return null;if(!(e=e===n.startContainer?e.childNodes[n.startOffset]:e))return null;if(!e.tagName&&(e.previousSibling||e.nextSibling)){if(e.previousSibling&&e.previousSibling.tagName.toLowerCase()==t)return e.previousSibling;if(e.nextSibling&&e.nextSibling.tagName.toLowerCase()==t)return e.nextSibling}return i.getAncestor(e,t)},this.ui.addHoverClass=function(){y(this).addClass("wysiwyg-button-hover")},this.ui.appendControls=function(){function t(t,e){e.visible&&(s!=e.groupIndex&&a&&(i.appendItemSeparator(),a=!1),s=e.groupIndex,a=!0,e.custom?i.appendItemCustom(t,e):i.appendItem(t,e))}var i=this,r=this.self,e=r.parseControls(),n=[],o={},a=!1,s=-1;for(y.each(e,function(t,e){var i="empty";void 0!==e.groupIndex&&(i=""===e.groupIndex?"empty":e.groupIndex),void 0===o[i]&&(n.push(i),o[i]={}),o[i][t]=e}),n.sort(function(t,e){return"number"==typeof t&&typeof t==typeof e?t-e:(t=t.toString(),(e=e.toString())<t?1:t===e?0:-1)}),0<n.length&&(s=n[0]),f=0;f<n.length;f+=1)y.each(o[n[f]],t);a&&i.appendItemSeparator();function l(t,e,i){function n(){a&&a.hidePicker(),o&&o.remove()}var o=y('<input id="colorPickerInput" style="visibility: hidden; width: 1px; height: 100%;"/>').appendTo(t),a=(x.jscolor.dir="images/",new x.jscolor.color(document.getElementById("colorPickerInput"),{}));"string"==(typeof e).toLowerCase()?a.fromString(e):"object"==(typeof e).toLowerCase()&&a.fromRGB(e.r,e.g,e.b),a.showPicker(),setTimeout(function(){y(x.jscolor.picker.box).on("click",function(t){t.stopPropagation()}),y("body").add(r.editorDoc).one("click",function(t){a&&n()}).one("keydown",function(t){!a||27!=t.keyCode&&13!=t.keyCode||(t.preventDefault(),t.stopPropagation(),n())})},100),i&&y.isFunction(i)&&o.on("change",function(){i(o.val())})}function c(t){return t?0===t.indexOf("#")?t.substring(1):0===t.indexOf("rgb(")?{r:+(t=(t=(t=t.substring(4)).substring(0,t.length-1)).split(","))[0].trim()/255,g:+t[1].trim()/255,b:+t[2].trim()/255}:void 0:"000000"}var d,u,h=i.appendItemCustom("fontFamily",{event:"change",onControlAppended:function(t){t.parent("ul").find("li.bold").before(t.detach())},exec:function(){d=h.find("select").val(),r.editorDoc.execCommand("fontname",!1,d)}});if(h.append('<select unselectable="on" id="font-family" style="width:100px;" />').css("text-indent",0).width(100).parent("li").width("auto"),r.options.availableFonts.length)for(var p=h.find("select"),f=0;f<r.options.availableFonts.length;f++)p.append('<option value="'+r.options.availableFonts[f]+'">'+r.options.availableFonts[f]+"</option>");var g=i.appendItemCustom("fontSize",{event:"change",onControlAppended:function(t){t.parent("ul").find("li.bold").before(t.detach())},exec:function(){u=g.find("select").val(),C||r.editorDoc.execCommand("styleWithCSS",!1,!0),r.editorDoc.execCommand("fontSize",!1,1),C||r.editorDoc.execCommand("styleWithCSS",!1,!1),y(r.editorDoc).find("[style*=small] span, [size=1] span").css("font-size",""),y(r.editorDoc).find("[style*=small]").css("font-size",u+"pt"),y(r.editorDoc).triggerHandler("mouseup")}}),m=(g.after('<li role="separator" class="separator"></li>'),g.append('<select id="font-family" style="width:40px;" />').css("text-indent",0).width(40).parent("li").width("auto"),g.find("select")),v=[8,9,10,12,14,16,18,20,22,24,26,28,36,42,48,54,60,66,72];for(f=0;f<v.length;f++)m.append('<option value="'+v[f]+'">'+v[f]+"</option>");var w=i.appendItemCustom("colorpicker",{onControlAppended:function(t){t.parent("ul").find("li.underline").after(t.detach())},exec:function(){w.css("text-indent",0);var t=r.getInternalSelection(),e="000000";t.focusNode&&t.focusNode.parentNode&&(e=c(y(t.focusNode.parentNode).css("color"))),l(w,e,function(t){C||r.editorDoc.execCommand("styleWithCSS",!1,!0),r.editorDoc.execCommand("foreColor",!1,"#"+t),C||r.editorDoc.execCommand("styleWithCSS",!1,!1)})}}),b=i.appendItemCustom("highlight",{onControlAppended:function(t){t.parent("ul").find("li.colorpicker").after(t.detach())},exec:function(){b.css("text-indent",0);var t=r.getInternalSelection(),e="000000";t.focusNode&&t.focusNode.parentNode&&(e=c(y(t.focusNode.parentNode).css("background-color"))),l(b,e,function(t){var e=C||k?"backcolor":"hilitecolor";C||r.editorDoc.execCommand("styleWithCSS",!1,!0),r.editorDoc.execCommand(e,!1,"#"+t),C||r.editorDoc.execCommand("styleWithCSS",!1,!1)})}});y(r.element).on("initFrame.wysiwyg",function(){y(r.editorDoc).on("keydown mouseout mouseup",function(){var t;r.editorDoc.queryCommandValue&&(y(r.editorDoc).find("font").each(function(){var t=y(this),e=t.attr("style")||"";t.attr("face")&&(e+="font-family: '"+t.attr("face")+"';"),t.attr("color")&&(e+="color: "+t.attr("color")+";"),t.attr("size")&&u&&(e+="font-size: "+u+"pt;"),t.wrap('<span style="'+e+'" />'),t.contents().unwrap()}),r.options.availableFonts.length&&(t=r.getInternalSelection())&&(0<(t=(t=y(t.focusNode)).is("span")?t:t.parent("span")).length?p.val(t.css("font-family").replace(/['"]/g,"")):p.val(r.options.defaultFontFamily)),t=r.getInternalSelection())&&(0<(t=(t=y(t.focusNode)).is("span")?t:t.parent("span")).length?m.val((parseFloat(t.css("font-size").replace("pt","").replace("px",""))/1.3333).toFixed(0)):m.val(r.options.defaultFontSize))})})},this.ui.appendItem=function(n,o){var a=this.self,t=o.className||o.command||n||"empty",r=!("hasState"in o)||o.hasState,s="exclusive"in o&&o.exclusive,e=o.tooltip||o.command||n||"";return y('<li role="menuitem" unselectable="on">'+t+"</li>").addClass(t).attr("title",e).hover(this.addHoverClass,this.removeHoverClass).on("click",function(t){if(y(this).hasClass("disabled"))return!1;a.triggerControl.apply(a,[n,o]);var e,i=y(t.target);for(e in a.controls)s&&r&&a.controls[e].groupIndex==o.groupIndex&&a.ui.toolbar.find("."+e).removeClass("active"),i.hasClass(e)&&(r&&a.ui.toolbar.find("."+e).toggleClass("active"),a.editorDoc.rememberCommand=!0);return this.blur(),a.ui.returnRange(),a.ui.focus(),!0}).on("selectstart mousedown",function(){return!1}).appendTo(a.ui.toolbar)},this.ui.appendItemCustom=function(t,e){var i=this.self,n=e.tooltip||e.command||t||"",n=(e.event||(e.event="click"),e.callback&&y(window).on("trigger-"+t+".wysiwyg",e.callback),y('<li role="menuitem" unselectable="on" '+(e.icon?"style=\"background: url('"+e.icon+"') no-repeat;\")":"")+"></li>").addClass("custom-command-"+t).addClass("wysiwyg-custom-command").addClass(t).attr("title",n).hover(this.addHoverClass,this.removeHoverClass).on(e.event,function(){return!y(this).hasClass("disabled")&&(i.triggerControl.apply(i,[t,e]),C||(this.blur(),i.ui.returnRange(),i.ui.focus()),i.triggerControlCallback(t),!0)}).appendTo(i.ui.toolbar));return e.onControlAppended&&y.isFunction(e.onControlAppended)&&e.onControlAppended(n),n},this.ui.appendItemSeparator=function(){var t=this.self;return y('<li role="separator" class="separator"></li>').appendTo(t.ui.toolbar)},this.autoSaveFunction=function(){this.saveContent()},this.ui.checkTargets=function(s){var l=this.self;y.each(l.options.controls,function(t,e){var i,n,o,a,r=e.className||e.command||t||"empty";if("fullscreen"!==r&&l.ui.toolbar.find("."+r).removeClass("active"),e.tags||e.options&&e.options.tags)for(i=e.tags||e.options&&e.options.tags,n=s;n&&1===n.nodeType;)-1!==y.inArray(n.tagName.toLowerCase(),i)&&l.ui.toolbar.find("."+r).addClass("active"),n=n.parentNode;if(e.css||e.options&&e.options.css)for(o=e.css||e.options&&e.options.css,a=y(s);a&&1===a[0].nodeType;)!function(t){var i=0,n=0;y.each(t,function(t,e){"function"==typeof e?e.apply(l,[a.css(t).toString().toLowerCase(),l])&&(i+=1):a.css(t).toString().toLowerCase()===e&&(i+=1),n+=1}),n===i&&l.ui.toolbar.find("."+r).addClass("active")}(o),a=a.parent()})},this.ui.designMode=function(){var e=this.self,i=function(t){if("on"===e.editorDoc.designMode)e.timers.designMode&&window.clearTimeout(e.timers.designMode),e.innerDocument()!==e.editorDoc&&e.ui.initFrame();else{try{e.editorDoc.designMode="on"}catch(t){}0<--t&&(e.timers.designMode=window.setTimeout(function(){i(t)},100))}};i(3)},this.destroy=function(){this.isDestroyed=!0;for(var t=this.element.closest("form"),e=0;e<this.timers.length;e+=1)window.clearTimeout(this.timers[e]);return t.off(".wysiwyg"),this.element.remove(),y.removeData(this.original,"wysiwyg"),y(this.original).show(),this},this.getRangeText=function(){var t=this.getInternalRange();if(t)return t.toString?t=t.toString():t.text&&(t=t.text),t},this.execute=function(t,e){this.editorDoc.execCommand(t,!1,e=void 0===e?null:e)},this.extendOptions=function(e){var i={};return"object"==typeof e.controls&&(i=e.controls,delete e.controls),(e=y.extend(!0,{},this.defaults,e)).controls=y.extend(!0,{},i,this.controls,i),e.rmUnusedControls&&y.each(e.controls,function(t){i[t]||delete e.controls[t]}),e},this.ui.focus=function(){var t=this.self;return t.editor.get(0).contentWindow.focus(),t},this.ui.returnRange=function(){var t,e=this.self;if(null!==e.savedRange){if(window.getSelection){0<(t=window.getSelection()).rangeCount&&t.removeAllRanges();try{t.addRange(e.savedRange)}catch(t){a.error(t)}}else window.document.createRange?window.getSelection().addRange(e.savedRange):window.document.selection&&e.savedRange.select();e.savedRange=null}},this.increaseFontSize=function(){var t,e,i,n,o;r||s?this.editorDoc.execCommand("increaseFontSize",!1,null):k?(t=this.getInternalRange(),e=this.getInternalSelection(),i=this.editorDoc.createElement("big"),!0===t.collapsed&&3===t.commonAncestorContainer.nodeType?(n=(o=t.commonAncestorContainer.nodeValue.toString()).lastIndexOf(" ",t.startOffset)+1,o=-1===o.indexOf(" ",t.startOffset)?o:o.indexOf(" ",t.startOffset),t.setStart(t.commonAncestorContainer,n),t.setEnd(t.commonAncestorContainer,o),t.surroundContents(i)):(t.surroundContents(i),e.removeAllRanges()),e.addRange(t)):a.error("Internet Explorer?")},this.decreaseFontSize=function(){var t,e,i,n,o;r||s?this.editorDoc.execCommand("decreaseFontSize",!1,null):k?(t=this.getInternalRange(),e=this.getInternalSelection(),i=this.editorDoc.createElement("small"),!0===t.collapsed&&3===t.commonAncestorContainer.nodeType?(n=(o=t.commonAncestorContainer.nodeValue.toString()).lastIndexOf(" ",t.startOffset)+1,o=-1===o.indexOf(" ",t.startOffset)?o:o.indexOf(" ",t.startOffset),t.setStart(t.commonAncestorContainer,n),t.setEnd(t.commonAncestorContainer,o),t.surroundContents(i)):(t.surroundContents(i),e.removeAllRanges()),e.addRange(t)):a.error("Internet Explorer?")},this.getContent=function(){return this.viewHTML&&this.setContent(this.original.value),this.events.filter("getContent",this.editorDoc.body.innerHTML)},this.events={_events:{},bind:function(t,e){"object"!=typeof this._events.eventName&&(this._events[t]=[]),this._events[t].push(e)},trigger:function(t,i){var n;"object"==typeof this._events.eventName&&(n=this.editor,y.each(this._events[t],function(t,e){"function"==typeof e&&e.apply(n,i)}))},filter:function(t,i){var n,o;return"object"==typeof this._events[t]&&(n=this.editor,o=Array.prototype.slice.call(arguments,1),y.each(this._events[t],function(t,e){"function"==typeof e&&(i=e.apply(n,o))})),i}},this.getElementByAttributeValue=function(t,e,i){for(var n,o=this.editorDoc.getElementsByTagName(t),a=0;a<o.length;a+=1)if(n=o[a].getAttribute(e),(n=C?n.substr(n.length-i.length):n)===i)return o[a];return!1},this.getInternalRange=function(){var t=this.getInternalSelection();return t?t.rangeCount&&0<t.rangeCount?t.getRangeAt(0):t.createRange?t.createRange():null:null},this.getInternalSelection=function(){if(this.editor.get(0).contentWindow){if(this.editor.get(0).contentWindow.getSelection)return this.editor.get(0).contentWindow.getSelection();if(this.editor.get(0).contentWindow.selection)return this.editor.get(0).contentWindow.selection}return this.editorDoc.getSelection?this.editorDoc.getSelection():this.editorDoc.selection||null},this.getRange=function(){var t=this.getSelection();if(t)if(t.rangeCount&&0<t.rangeCount)t.getRangeAt(0);else if(t.createRange)return t.createRange();return null},this.getSelection=function(){return window.getSelection?window.getSelection():window.document.selection},this.ui.grow=function(){var t=this.self,e=y(t.editorDoc.body),i=C?e[0].scrollHeight:e.height()+2+20,n=t.ui.initialHeight,i=Math.max(i,n),i=Math.min(i,t.options.maxHeight);return t.editor.attr("scrolling",i<t.options.maxHeight?"no":"auto"),e.css("overflow",i<t.options.maxHeight?"hidden":""),t.editor.get(0).height=i,t},this.init=function(t,e){var i=this,n=y(t).closest("form"),o=t.width||t.clientWidth||0,a=t.height||t.clientHeight||0;this.options=this.extendOptions(e),this.original=t,this.ui.toolbar=y(this.options.toolbarHtml),0===o&&t.cols&&t.cols,0===a&&t.rows&&(a=16*t.rows+16),this.editor=y("https:"===window.location.protocol?'<iframe src="javascript:false;"></iframe>':"<iframe></iframe>").attr("frameborder","0"),this.options.iFrameClass?this.editor.addClass(this.options.iFrameClass):this.editor.css({minHeight:(a-6).toString()+"px"}),t.id&&(e=t.id+"-wysiwyg-iframe",document.getElementById(e)||this.editor.attr("id",e)),this.editor.attr("tabindex",y(t).attr("tabindex")),this.element=y("<div/>").addClass("wysiwyg"),y(t).hide().before(this.element),this.viewHTML=!1,this.initialContent=y(t).val(),this.ui.initFrame(),this.options.resizeOptions&&y.fn.resizable&&this.element.resizable(y.extend(!0,{alsoResize:this.editor},this.options.resizeOptions)),this.options.autoSave&&n.on("submit.wysiwyg",function(){i.autoSaveFunction()}),n.on("reset.wysiwyg",function(){i.resetFunction()})},this.ui.initFrame=function(){var e,t,r=this.self;if(r.ui.appendControls(),r.element.append(r.ui.toolbar).append(y("<div>\x3c!-- --\x3e</div>").css({clear:"both"})).append(r.editor),r.editorDoc=r.innerDocument(),r.isDestroyed)return null;r.ui.designMode(),r.editorDoc.open(),r.editorDoc.write(r.options.html.replace(/INITIAL_CONTENT/,function(){return r.wrapInitialContent()})),r.editorDoc.close(),y.wysiwyg.plugin.bind(r),y(r.editorDoc).add(r.element).trigger("initFrame.wysiwyg"),y(r.editorDoc).on("click.wysiwyg",function(t){r.ui.checkTargets(t.target||t.srcElement)}),setInterval(function(){var t=null;try{var e=r.getInternalRange();e&&(t={range:e,parent:"endContainer"in e?e.endContainer.parentNode:e.parentElement(),width:("startOffset"in e?e.startOffset-e.endOffset:e.boundingWidth)||0})}catch(t){a.error(t)}t&&0===t.width&&!r.editorDoc.rememberCommand&&r.ui.checkTargets(t.parent)},400),y(r.original).focus(function(){0===y(this).filter(":visible").length||s||r.ui.focus()}),y(r.editorDoc).keydown(function(t){return 8===t.keyCode&&/^<([\w]+)[^>]*>(<br\/?>)?<\/\1>$/.test(r.getContent())?(t.stopPropagation(),!1):!(r.editorDoc.rememberCommand=!1)}),C||y(r.editorDoc).keydown(function(t){var e,i;if(t.ctrlKey||t.metaKey)for(e in r.options.controls)if((i=r.options.controls[e]).hotkey&&i.hotkey.ctrl&&t.keyCode===i.hotkey.key)return r.triggerControl.apply(r,[e,i]),!1;return!0}),r.options.brIE&&y(r.editorDoc).keydown(function(t){if(13!==t.keyCode)return!0;if(C||s){t=r.getRange();t?(t.pasteHTML("<br/>"),t.collapse(!1),t.select()):r.insertHtml("<br/>")}else{t=r.editorDoc.getSelection();if(!(t&&t.getRangeAt&&t.rangeCount))return!0;var e=t.getRangeAt(0);if(!e)return!0;e.deleteContents();for(var i,n,o=document.createElement("div"),a=(o.innerHTML="<br/>",document.createDocumentFragment());i=o.firstChild;)n=a.appendChild(i);e.insertNode(a),n&&((e=e.cloneRange()).setStartAfter(n),e.collapse(!0),t.removeAllRanges(),t.addRange(e))}return!1}),r.options.plugins.rmFormat.rmMsWordMarkup&&y(r.editorDoc).on("keyup.wysiwyg",function(t){(t.ctrlKey||t.metaKey)&&86===t.keyCode&&y.wysiwyg.rmFormat&&("object"==typeof r.options.plugins.rmFormat.rmMsWordMarkup?y.wysiwyg.rmFormat.run(r,{rules:{msWordMarkup:r.options.plugins.rmFormat.rmMsWordMarkup}}):y.wysiwyg.rmFormat.run(r,{rules:{msWordMarkup:{enabled:!0}}}))}),r.options.autoSave&&y(r.editorDoc).keydown(function(){r.autoSaveFunction()}).keyup(function(){r.autoSaveFunction()}).mousedown(function(){r.autoSaveFunction()}).on(y.support.noCloneEvent?"input.wysiwyg":"paste.wysiwyg",function(){r.autoSaveFunction()}),r.options.autoGrow?(null!==r.options.initialMinHeight?r.ui.initialHeight=r.options.initialMinHeight:r.ui.initialHeight=y(r.editorDoc).height(),y(r.editorDoc.body).css("border","1px solid white"),t=function(){r.ui.grow()},y(r.editorDoc).keyup(t),y(r.editorDoc).on("editorRefresh.wysiwyg",t),r.ui.grow()):(t=y(r.editor).parents(".dynamicText").parent(),t=y(r.editor).height()-(t.find(".toolbar").outerHeight(!0)-21),y(r.editor).css("min-height",t+"px").height(t));function i(t){if(C)try{e=r.editorDoc.createStyleSheet(t),y(e).attr({media:"all"})}catch(t){}else e=y("<link/>").attr({href:t,media:"all",rel:"stylesheet"}),y(r.editorDoc).find("head").append(e)}var n;if(r.options.css)if(String===r.options.css.constructor)i(r.options.css);else if("[object Array]"===Object.prototype.toString.call(r.options.css))for(var o=0;o<r.options.css.length;o++)i(r.options.css[o]);else r.timers.initFrame_Css=window.setTimeout(function(){y(r.editorDoc.body).css(r.options.css)},0);0===r.initialContent.length&&("function"==typeof r.options.initialContent?r.setContent(r.options.initialContent()):r.setContent(r.options.initialContent)),0<r.options.maxLength&&y(r.editorDoc).keydown(function(t){y(r.editorDoc).text().length>=r.options.maxLength&&-1===y.inArray(t.which,r.validKeyCodes)&&t.preventDefault()}),y.each(r.options.events,function(t,e){y(r.editorDoc).on(t+".wysiwyg",function(t){e.apply(r.editorDoc,[t,r])})}),C?y(r.editorDoc).on("beforedeactivate.wysiwyg",function(){r.savedRange=r.getInternalRange()}):y(r.editorDoc).on("blur.wysiwyg",function(){r.savedRange=r.getInternalRange()}),y(r.editorDoc.body).addClass("wysiwyg"),r.options.events&&r.options.events.save&&(t=r.options.events.save,y(r.editorDoc).on("keyup.wysiwyg",t),y(r.editorDoc).on("change.wysiwyg",t),y.support.noCloneEvent?y(r.editorDoc).on("input.wysiwyg",t):(y(r.editorDoc).on("paste.wysiwyg",t),y(r.editorDoc).on("cut.wysiwyg",t))),r.options.xhtml5&&r.options.unicode&&(n={ne:8800,le:8804,para:182,xi:958,darr:8595,nu:957,oacute:243,Uacute:218,omega:969,prime:8242,pound:163,igrave:236,thorn:254,forall:8704,emsp:8195,lowast:8727,brvbar:166,alefsym:8501,nbsp:160,delta:948,clubs:9827,lArr:8656,Omega:937,Auml:196,cedil:184,and:8743,plusmn:177,ge:8805,raquo:187,uml:168,equiv:8801,laquo:171,rdquo:8221,Epsilon:917,divide:247,fnof:402,chi:967,Dagger:8225,iacute:237,rceil:8969,sigma:963,Oslash:216,acute:180,frac34:190,lrm:8206,upsih:978,Scaron:352,part:8706,exist:8707,nabla:8711,image:8465,prop:8733,zwj:8205,omicron:959,aacute:225,Yuml:376,Yacute:221,weierp:8472,rsquo:8217,otimes:8855,kappa:954,thetasym:977,harr:8596,Ouml:214,Iota:921,ograve:242,sdot:8901,copy:169,oplus:8853,acirc:226,sup:8835,zeta:950,Iacute:205,Oacute:211,crarr:8629,Nu:925,bdquo:8222,lsquo:8216,apos:39,Beta:914,eacute:233,egrave:232,lceil:8968,Kappa:922,piv:982,Ccedil:199,ldquo:8220,Xi:926,cent:162,uarr:8593,hellip:8230,Aacute:193,ensp:8194,sect:167,Ugrave:217,aelig:230,ordf:170,curren:164,sbquo:8218,macr:175,Phi:934,Eta:919,rho:961,Omicron:927,sup2:178,euro:8364,aring:229,Theta:920,mdash:8212,uuml:252,otilde:245,eta:951,uacute:250,rArr:8658,nsub:8836,agrave:224,notin:8713,ndash:8211,Psi:936,Ocirc:212,sube:8838,szlig:223,micro:181,not:172,sup1:185,middot:183,iota:953,ecirc:234,lsaquo:8249,thinsp:8201,sum:8721,ntilde:241,scaron:353,cap:8745,atilde:227,lang:10216,__replacement:65533,isin:8712,gamma:947,Euml:203,ang:8736,upsilon:965,Ntilde:209,hearts:9829,Alpha:913,Tau:932,spades:9824,dagger:8224,THORN:222,int:8747,lambda:955,Eacute:201,Uuml:220,infin:8734,rlm:8207,Aring:197,ugrave:249,Egrave:200,Acirc:194,rsaquo:8250,ETH:208,oslash:248,alpha:945,Ograve:210,Prime:8243,mu:956,ni:8715,real:8476,bull:8226,beta:946,icirc:238,eth:240,prod:8719,larr:8592,ordm:186,perp:8869,Gamma:915,reg:174,ucirc:251,Pi:928,psi:968,tilde:732,asymp:8776,zwnj:8204,Agrave:192,deg:176,AElig:198,times:215,Delta:916,sim:8764,Otilde:213,Mu:924,uArr:8657,circ:710,theta:952,Rho:929,sup3:179,diams:9830,tau:964,Chi:935,frac14:188,oelig:339,shy:173,or:8744,dArr:8659,phi:966,iuml:239,Lambda:923,rfloor:8971,iexcl:161,cong:8773,ccedil:231,Icirc:206,frac12:189,loz:9674,rarr:8594,cup:8746,radic:8730,frasl:8260,euml:235,OElig:338,hArr:8660,Atilde:195,Upsilon:933,there4:8756,ouml:246,oline:8254,Ecirc:202,yacute:253,auml:228,permil:8240,sigmaf:962,iquest:191,empty:8709,pi:960,Ucirc:219,supe:8839,Igrave:204,yen:165,rang:10217,trade:8482,lfloor:8970,minus:8722,Zeta:918,sub:8834,epsilon:949,yuml:255,Sigma:931,Iuml:207,ocirc:244},r.events.on("getContent",function(t){return t.replace(/&(?:amp;)?(?!amp|lt|gt|quot)([a-z][a-z0-9]*);/gi,function(t,e){return n[e]||(e=e.toLowerCase(),n[e])||(e="__replacement"),String.fromCharCode(n[e])})})),y(r.original).trigger("ready.jwysiwyg",[r.editorDoc,r])},this.innerDocument=function(){var t=this.editor.get(0);if("iframe"===t.nodeName.toLowerCase()){if(t.contentDocument)return t.contentDocument;if(t.contentWindow)return t.contentWindow.document;if(this.isDestroyed)return null;a.error("Unexpected error in innerDocument")}return t},this.insertHtml=function(t){var e;return t&&0!==t.length&&(C?(this.ui.focus(),this.editorDoc.execCommand("insertImage",!1,"http://images.com/image.jpg"),(e=this.getElementByAttributeValue("img","src","http://images.com/image.jpg"))&&y(e).replaceWith(t)):r?1===y(t).length?((e=this.getInternalRange()).deleteContents(),e.insertNode(y(t).get(0))):this.editorDoc.execCommand("insertHTML",!1,t):this.editorDoc.execCommand("insertHTML",!1,t)||(this.editor.focus(),this.editorDoc.execCommand("insertHTML",!1,t)),this.saveContent()),this},this.parseControls=function(){var i=this;return y.each(this.options.controls,function(e,t){y.each(t,function(t){if(-1===y.inArray(t,i.availableControlProperties))throw e+'["'+t+'"]: property "'+t+'" not exists in Wysiwyg.availableControlProperties'})}),this.options.parseControls?this.options.parseControls.call(this):this.options.controls},this.removeFormat=function(){return C&&this.ui.focus(),this.options.removeHeadings&&this.editorDoc.execCommand("formatBlock",!1,"<p>"),this.editorDoc.execCommand("removeFormat",!1,null),this.editorDoc.execCommand("unlink",!1,null),y.wysiwyg.rmFormat&&y.wysiwyg.rmFormat.enabled&&("object"==typeof this.options.plugins.rmFormat.rmMsWordMarkup?y.wysiwyg.rmFormat.run(this,{rules:{msWordMarkup:this.options.plugins.rmFormat.rmMsWordMarkup}}):y.wysiwyg.rmFormat.run(this,{rules:{msWordMarkup:{enabled:!0}}})),this},this.ui.removeHoverClass=function(){y(this).removeClass("wysiwyg-button-hover")},this.resetFunction=function(){this.setContent(this.initialContent)},this.saveContent=function(){var t,e;if(!this.viewHTML)return this.original&&(e=this.getContent(),this.options.rmUnwantedBr&&(e=e.replace(/<br\/?>$/,"")),this.options.replaceDivWithP&&((t=y("<div/>").addClass("temp").append(e)).children("div").each(function(){var t,e=y(this),i=e.find("p");if(0===i.length){if(i=y("<p></p>"),0<this.attributes.length)for(t=0;t<this.attributes.length;t+=1)i.attr(this.attributes[t].name,e.attr(this.attributes[t].name));i.append(e.html()),e.replaceWith(i)}}),e=t.html()),y(this.original).val(e).change(),this.options.events)&&this.options.events.save&&this.options.events.save.call(this),this},this.setContent=function(t){return this.editorDoc.body.innerHTML=t,this.saveContent(),this},this.triggerControl=function(t,e){var t=e.command||t,i=e.arguments||[];if(e.exec)e.exec.apply(this);else{this.ui.focus(),this.ui.withoutCss();try{this.editorDoc.execCommand(t,!1,i)}catch(t){a.error(t)}}this.options.autoSave&&this.autoSaveFunction()},this.triggerControlCallback=function(t){y(window).trigger("trigger-"+t+".wysiwyg",[this])},this.ui.withoutCss=function(){var e=this.self;if(r)try{e.editorDoc.execCommand("styleWithCSS",!1,!1)}catch(t){try{e.editorDoc.execCommand("useCSS",!1,!0)}catch(t){}}return e},this.wrapInitialContent=function(){return this.initialContent}}y.wysiwyg={messages:{noObject:"Something goes wrong, check object"},addControl:function(t,i,n){return t.each(function(){var t=y(this).data("wysiwyg"),e={};if(!t)return this;e[i]=y.extend(!0,{visible:!0,custom:!0},n),y.extend(!0,t.options.controls,e),e=y(t.options.toolbarHtml),t.ui.toolbar.replaceWith(e),t.ui.toolbar=e,t.ui.appendControls()})},clear:function(t){return t.each(function(){var t=y(this).data("wysiwyg");if(!t)return this;t.setContent("")})},console:a,destroy:function(t){return t.each(function(){var t=y(this).data("wysiwyg");if(!t)return this;t.destroy()})},document:function(t){t=t.data("wysiwyg");if(t)return y(t.editorDoc)},focus:function(t){var e=t.data("wysiwyg");if(e)return e.ui.focus(),t},getContent:function(t){t=t.data("wysiwyg");if(t)return t.getContent()},getSelection:function(t){t=t.data("wysiwyg");if(t)return t.getRangeText()},init:function(t,i){return t.each(function(){var t,e=y.extend(!0,{},i);"textarea"!==this.nodeName.toLowerCase()||y(this).data("wysiwyg")||((t=new o).init(this,e),y.data(this,"wysiwyg",t),y(t.editorDoc).trigger("afterInit.wysiwyg"))})},insertHtml:function(t,e){return t.each(function(){var t=y(this).data("wysiwyg");if(!t)return this;t.insertHtml(e)})},plugin:{listeners:{},bind:function(o){var a=this;y.each(this.listeners,function(t,e){for(var i,n=0;n<e.length;n+=1)i=a.parseName(e[n]),y(o.editorDoc).on(t+".wysiwyg",{plugin:i},function(t){y.wysiwyg[t.data.plugin.name][t.data.plugin.method].apply(y.wysiwyg[t.data.plugin.name],[o])})})},exists:function(t){return"string"==typeof t&&(t=this.parseName(t),!(!y.wysiwyg[t.name]||!y.wysiwyg[t.name][t.method]))},listen:function(t,e){var i=this.parseName(e);return!(!y.wysiwyg[i.name]||!y.wysiwyg[i.name][i.method]||(this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push(e),0))},parseName:function(t){return"string"==typeof t&&!((t=t.split(".")).length<2)&&{name:t[0],method:t[1]}},register:function(e){return e.name||a.error("Plugin name missing"),y.each(y.wysiwyg,function(t){t===e.name&&a.error("Plugin with name '"+e.name+"' was already registered")}),y.wysiwyg[e.name]=e,!0}},removeFormat:function(t){return t.each(function(){var t=y(this).data("wysiwyg");if(!t)return this;t.removeFormat()})},save:function(t){return t.each(function(){var t=y(this).data("wysiwyg");if(!t)return this;t.saveContent()})},selectAll:function(t){var e,t=t.data("wysiwyg");if(!t)return this;e=t.editorDoc.body,window.getSelection?t.getInternalSelection().selectAllChildren(e):((t=e.createTextRange()).moveToElementText(e),t.select())},setContent:function(t,e){return t.each(function(){var t=y(this).data("wysiwyg");if(!t)return this;t.setContent(e)})},triggerControl:function(t,e){return t.each(function(){var t=y(this).data("wysiwyg");if(!t)return this;t.controls[e]||a.error("Control '"+e+"' not exists"),t.triggerControl.apply(t,[e,t.controls[e]])})},support:{prop:t},utils:{extraSafeEntities:[["<",">","'",'"'," "],[32]],encodeEntities:function(t){var i,n=this,o=[];return 0===this.extraSafeEntities[1].length&&y.each(this.extraSafeEntities[0],function(t,e){n.extraSafeEntities[1].push(e.charCodeAt(0))}),i=t.split(""),y.each(i,function(t){var e=i[t].charCodeAt(0);y.inArray(e,n.extraSafeEntities[1])&&(e<65||127<e||90<e&&e<97)?o.push("&#"+e+";"):o.push(i[t])}),o.join("")}}},y.wysiwyg.dialog=function(e,t){var i=e&&e.options&&e.options.dialog?e.options.dialog:t.theme||"default",n=new y.wysiwyg.dialog.createDialog(i),o=this,a=y(o);return this.options={modal:!0,draggable:!0,title:"Title",content:"Content",width:"auto",height:"auto",zIndex:x.settings.zIndex.popup,open:!1,close:!1},this.isOpen=!1,y.extend(this.options,t),this.object=n,this.open=function(){this.isOpen=!0,n.init.apply(o,[]);var t=n.show.apply(o,[]);a.trigger("afterOpen",[t])},this.show=function(){this.isOpen=!0,a.trigger("beforeShow");n.show.apply(o,[]);a.trigger("afterShow")},this.hide=function(){this.isOpen=!1,a.trigger("beforeHide");var t=n.hide.apply(o,[]);a.trigger("afterHide",[t])},this.close=function(){this.isOpen=!1;var t=n.hide.apply(o,[]);a.trigger("beforeClose",[t]),n.destroy.apply(o,[]),a.trigger("afterClose",[t]),e.ui.focus()},this.options.open&&a.on("afterOpen",this.options.open),this.options.close&&a.on("afterClose",this.options.close),this},y.extend(!0,y.wysiwyg.dialog,{_themes:{},_theme:"",register:function(t,e){y.wysiwyg.dialog._themes[t]=e},deregister:function(t){delete y.wysiwyg.dialog._themes[t]},createDialog:function(t){return new y.wysiwyg.dialog._themes[t]},getDimensions:function(){var t=document.body.scrollWidth,e=document.body.scrollHeight;return[t,e=s?Math.max(y(document).height(),y(window).height(),document.documentElement.clientHeight):e]}}),y(function(){y.ui&&y.wysiwyg.dialog.register("jqueryui",function(){var i=this;this._$dialog=null,this.init=function(){var t=this.options.content,t=("object"==typeof t&&("function"==typeof t.html?t=t.html():"function"==typeof t.toString&&(t=t.toString())),i._$dialog=y("<div></div>").attr("title",this.options.title).html(t),"auto"==this.options.height?300:this.options.height),e="auto"==this.options.width?450:this.options.width;return i._$dialog.dialog({modal:this.options.modal,draggable:this.options.draggable,height:t,width:e}),i._$dialog},this.show=function(){return i._$dialog.dialog("open"),i._$dialog},this.hide=function(){return i._$dialog.dialog("close"),i._$dialog},this.destroy=function(){return i._$dialog.dialog("destroy"),i._$dialog}}),y.wysiwyg.dialog.register("default",function(){var o=this;this._$dialog=null,this.init=function(){var t=this,e=this.options.content,i=("object"==typeof e&&("function"==typeof e.html?e=e.html():"function"==typeof e.toString&&(e=e.toString())),o._$dialog=y('<div class="wysiwyg-dialog"></div>').css({"z-index":this.options.zIndex}),y('<div class="wysiwyg-dialog-topbar"><div class="wysiwyg-dialog-close-wrapper"></div><div class="wysiwyg-dialog-title">'+this.options.title+"</div></div>")),n=y('<a href="#" class="wysiwyg-dialog-close-button">X</a>'),n=(n.click(function(){t.close()}),i.find(".wysiwyg-dialog-close-wrapper").prepend(n),y('<div class="wysiwyg-dialog-content">'+e+"</div>")),e=(o._$dialog.append(i).append(n),"auto"==this.options.height?300:this.options.height),i="auto"==this.options.width?450:this.options.width;return o._$dialog.hide().css({width:i,height:e,left:(y(window).width()-i)/2,top:(y(window).height()-e)/3}),y("body").append(o._$dialog),o._$dialog},this.show=function(){var t,a;return this.options.modal&&(t=y.wysiwyg.dialog.getDimensions(),t=y('<div class="wysiwyg-dialog-modal-div"></div>').css({width:t[0],height:t[1]}),o._$dialog.wrap(t)),this.options.draggable&&(a=!1,o._$dialog.find("div.wysiwyg-dialog-topbar").on("mousedown",function(t){t.preventDefault(),y(this).css({cursor:"move"});var e=y(this),i=y(this).parents(".wysiwyg-dialog"),n=t.pageX-parseInt(i.css("left"),10),o=t.pageY-parseInt(i.css("top"),10);a=!0,y(this).css({cursor:"move"}),y(document).on("mousemove",function(t){t.preventDefault(),a&&i.css({top:t.pageY-o,left:t.pageX-n})}).on("mouseup",function(t){t.preventDefault(),a=!1,e.css({cursor:"auto"}),y(document).off("mousemove").off("mouseup")})})),o._$dialog.show(),o._$dialog},this.hide=function(){return o._$dialog.hide(),o._$dialog},this.destroy=function(){return this.options.modal&&o._$dialog.unwrap(),this.options.draggable&&o._$dialog.find("div.wysiwyg-dialog-topbar").off("mousedown"),o._$dialog.remove(),o._$dialog}})}),y.fn.wysiwyg=function(t){var e,i=arguments;return void 0!==y.wysiwyg[t]?(i=Array.prototype.concat.call([i[0]],[this],Array.prototype.slice.call(i,1)),y.wysiwyg[t].apply(y.wysiwyg,Array.prototype.slice.call(i,1))):"object"!=typeof t&&t?y.wysiwyg.plugin.exists(t)?(e=y.wysiwyg.plugin.parseName(t),i=Array.prototype.concat.call([i[0]],[this],Array.prototype.slice.call(i,1)),y.wysiwyg[e.name][e.method].apply(y.wysiwyg[e.name],Array.prototype.slice.call(i,1))):void a.error("Method '"+t+"' does not exist on jQuery.wysiwyg.\nTry to include some extra controls or plugins"):(Array.prototype.unshift.call(i,this),y.wysiwyg.init.apply(y.wysiwyg,i))},y.fn.getWysiwyg=function(){return this.data("wysiwyg")}}(_jq,x5engine),!function(u){"use strict";if(void 0===u.wysiwyg)throw"wysiwyg.link.js depends on $.wysiwyg";u.wysiwyg.controls||(u.wysiwyg.controls={});var h=x5engine.l10n.get,p=/MSIE/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/MSHTML/i.test(navigator.userAgent);/opera/i.test(navigator.userAgent),/firefox/i.test(navigator.userAgent),/safari/i.test(navigator.userAgent)&&/chrome/i.test(navigator.userAgent);u.wysiwyg.controls.link={init:function(o){var t,a,r,e,i,n,s,l=x5engine.utils.trim,c={legend:l(h("wysiwyg_add_link","Insert Link")," :"),url:"URL",title:l(h("wysiwyg_image_title","Title")," :"),target:"Target",submit:l(h("wysiwyg_add_link","Insert Link")," :"),reset:l(h("dynamicobj_cancel","Cancel")," :")},d='<form class="wysiwyg"><fieldset><div class="form-row"><label for="linkhref">{url}:</label><div class="form-row-value"><input type="text" name="linkhref" value=""/></div></div><div class="form-row"><label for="linkhref">{title}:</label><div class="form-row-value"><input type="text" name="linktitle" value=""/></div></div><div class="form-row"><label for="linkhref">{target}:</label><div class="form-row-value"><input type="text" name="linktarget" value=""/></div></div><div class="form-row" style="text-align: center;"><input type="submit" class="button" value="{submit}"/> <input type="reset" value="{reset}"/></fieldset></form></div>';for(e in c)u.wysiwyg.i18n&&((i=u.wysiwyg.i18n.t(c[e],"dialogs.link"))===c[e]&&(i=u.wysiwyg.i18n.t(c[e],"dialogs")),c[e]=i),i=new RegExp("{"+e+"}","g"),d=d.replace(i,c[e]);(a={self:o.dom.getElement("a"),href:"http://",title:"",target:""}).self&&(a.href=a.self.href||a.href,a.title=a.self.title||"",a.target=a.self.target||""),u.wysiwyg.dialog?(s=new u.wysiwyg.dialog(o,{title:c.legend,content:d}),p&&o.saveSelection(),u(s).on("afterOpen",function(t,e){var i=u("form.wysiwyg");i.find("input[name=linkhref]").val(a.href),i.find("input[name=linktitle]").val(a.title),i.find("input[name=linktarget]").val(a.target),i.find("[type=submit]").click(function(t){p&&o.restoreSelection(),t.preventDefault();var e,t=u('form.wysiwyg input[name="linkhref"]').val(),i=u('form.wysiwyg input[name="linktitle"]').val(),n=u('form.wysiwyg input[name="linktarget"]').val();return o.options.controlLink.forceRelativeUrls&&(e=window.location.protocol+"//"+window.location.hostname,0===t.indexOf(e))&&(t=t.substr(e.length)),a.self?"string"==typeof t&&(0<t.length?u(a.self).attr("href",t).attr("title",i).attr("target",n):u(a.self).replaceWith(a.self.innerHTML)):(p&&o.ui.returnRange(),r=o.getRangeText(),e=o.dom.getElement("img"),r&&0<r.length||e?(p&&o.ui.focus(),"string"==typeof t&&(0<t.length?o.editorDoc.execCommand("createLink",!1,t):o.editorDoc.execCommand("unlink",!1,null)),a.self=o.dom.getElement("a"),u(a.self).attr("href",t).attr("title",i),u(a.self).attr("target",n)):o.options.messages.nonSelection&&window.alert(o.options.messages.nonSelection)),o.saveContent(),s.close(),!1}),u("form.wysiwyg").find("[type=reset]").click(function(){s.close()})}),s.open()):(a.self?(t=window.prompt("URL",a.href),"string"==typeof(t=o.options.controlLink.forceRelativeUrls&&(n=window.location.protocol+"//"+window.location.hostname,0===t.indexOf(n))?t.substr(n.length):t)&&(0<t.length?u(a.self).attr("href",t):u(a.self).replaceWith(a.self.innerHTML))):(r=o.getRangeText(),l=o.dom.getElement("img"),r&&0<r.length||l?p?(o.ui.focus(),o.editorDoc.execCommand("createLink",!0,null)):(t=window.prompt(c.url,a.href),"string"==typeof(t=o.options.controlLink.forceRelativeUrls&&(n=window.location.protocol+"//"+window.location.hostname,0===t.indexOf(n))?t.substr(n.length):t)&&(0<t.length?o.editorDoc.execCommand("createLink",!1,t):o.editorDoc.execCommand("unlink",!1,null))):o.options.messages.nonSelection&&window.alert(o.options.messages.nonSelection)),o.saveContent()),u(o.editorDoc).trigger("editorRefresh.wysiwyg")}},u.wysiwyg.createLink=function(t,o,a){return t.each(function(){var t,e,i,n=u(this).data("wysiwyg");return n&&o&&0!==o.length&&(t=n.getRangeText(),e=!1,(i=n.getInternalRange())&&i.extractContents&&null!==(i=i.cloneContents())&&i.childNodes&&0<i.childNodes.length&&(e=!0),t&&0<t.length||e?(p&&n.ui.focus(),n.editorDoc.execCommand("unlink",!1,null),n.editorDoc.execCommand("createLink",!1,o)):a?n.insertHtml('<a href="'+o+'">'+a+"</a>"):n.options.messages.nonSelection&&window.alert(n.options.messages.nonSelection)),this})}}(_jq),!function(w,b){"use strict";if(void 0===w.wysiwyg)throw"wysiwyg.image.js depends on $.wysiwyg";w.wysiwyg.controls||(w.wysiwyg.controls={});var c=b.l10n.get,d=/MSIE/i.test(navigator.userAgent)||/trident/i.test(navigator.userAgent)||/MSHTML/i.test(navigator.userAgent);/opera/i.test(navigator.userAgent),/firefox/i.test(navigator.userAgent),/safari/i.test(navigator.userAgent)&&/chrome/i.test(navigator.userAgent);w.wysiwyg.controls.image={groupIndex:6,visible:!0,exec:function(){w.wysiwyg.controls.image.init(this)},tags:["img"],tooltip:"Insert image",init:function(i){var n,t,e,o=this,a=b.utils.trim,r={alt:"",self:i.dom?i.dom.getElement("img"):null,src:"http://",title:""},s={legend:a(c("wysiwyg_image","Insert Image")," :"),preview:a(c("wysiwyg_preview","Preview")," :"),url:a(c("wysiwyg_image_url","URL")," :"),local_file:a(c("wysiwyg_local_file","Local file")," :"),title:a(c("wysiwyg_image_title","Title")," :"),description:a(c("wysiwyg_image_description","Description")," :"),width:a(c("wysiwyg_image_width","Width")," :"),height:a(c("wysiwyg_image_height","Height")," :"),original:a(c("wysiwyg_image_original","Original W x H")," :"),float:a(c("wysiwyg_image_float","Float")," :"),floatNone:a(c("wysiwyg_image_float_none","None")," :"),floatLeft:a(c("wysiwyg_image_float_left","Left")," :"),floatRight:a(c("wysiwyg_image_float_right","Right")," :"),submit:a(c("form_submit")," :"),reset:a(c("form_reset")," :"),fileManagerIcon:"Select file from server"},l='<form class="wysiwyg" id="wysiwyg-addImage"><fieldset><div class="form-row"><label for="file_type_local"><input type="radio" name="file_type" id="file_type_local" value="local" checked/>{local_file}:</label><div class="form-row-value"><input type="file" name="file" id="file"/></div></div><div class="form-row"><label for="file_type_remote"><input type="radio" name="file_type" id="file_type_remote" value="remote" />{url}:</label><div class="form-row-value"><input type="text" name="src" value="" disabled/></div></div><div class="form-row"><label for="name">{title}:</label><div class="form-row-value"><input type="text" name="imgtitle" value=""/></div></div><div class="form-row"><label for="description">{description}:</label><div class="form-row-value"><input type="text" name="description" value=""/></div></div><div class="form-row"><label for="width">{width} x {height}:</label><div class="form-row-value"><input type="text" name="width" value="" class="width-small"/> x <input type="text" name="height" value="" class="width-small"/></div></div><div class="form-row"><label for="name">{float}:</label><div class="form-row-value"><select name="float"><option value="">{floatNone}</option><option value="left">{floatLeft}</option><option value="right">{floatRight}</option></select></div></div><div class="form-row form-row-last"><label for="name"></label><div class="form-row-value"><input type="submit" class="button" value="{submit}"/> <input type="reset" value="{reset}"/></div></div></fieldset></form>';for(t in s)w.wysiwyg.i18n&&((e=w.wysiwyg.i18n.t(s[t],"dialogs.image"))===s[t]&&(e=w.wysiwyg.i18n.t(s[t],"dialogs")),s[t]=e),e=new RegExp("{"+t+"}","g"),l=l.replace(e,s[t]);r.self&&(r.src=r.self.src||"",r.alt=r.self.alt||"",r.title=r.self.title||"",r.width=r.self.width||"",r.height=r.self.height||"",r.styleFloat=w(r.self).css("float")),n=new w.wysiwyg.dialog(i,{title:s.legend,content:l,width:650}),d&&i.saveSelection(),w(n).on("afterOpen",function(t,e){e.find("form#wysiwyg-addImage").submit(function(t){return d&&i.restoreSelection(),t.preventDefault(),o.processInsert(e.container,i,r),n.close(),!1}),w.wysiwyg.fileManager&&w("div.wysiwyg-fileManager").on("click",function(){w.wysiwyg.fileManager.init(function(t){e.find("input[name=src]").val(t),e.find("input[name=src]").trigger("change")})}),w("input:reset",e).click(function(t){return n.close(),!1}),w("fieldset",e).click(function(t){t.stopPropagation()}),o.makeForm(e,r)}),n.open(),w(i.editorDoc).trigger("editorRefresh.wysiwyg")},processInsert:function(t,e,i){function n(t){i.self?(w(i.self).attr("src",t).attr("title",d).attr("alt",u).css("float",f),h.toString().match(/^[0-9]+(px|%)?$/)?w(i.self).css("width",h):w(i.self).css("width",""),p.toString().match(/^[0-9]+(px|%)?$/)?w(i.self).css("height",p):w(i.self).css("height",""),e.saveContent()):((o=h.toString().match(/^[0-9]+(px|%)?$/))&&(o[1]?m.push("width: "+h+";"):m.push("width: "+h+"px;")),(o=p.toString().match(/^[0-9]+(px|%)?$/))&&(o[1]?m.push("height: "+p+";"):m.push("height: "+p+"px;")),0<f.length&&m.push("float: "+f+";"),0<m.length&&(v=' style="'+m.join(" ")+'"'),o="<img src='"+t+"' title='"+d+"' alt='"+u+"'"+v+"/>",e.insertHtml(o))}var o,a,r,s,l,c=w('input[name="src"]',t).val(),d=w('input[name="imgtitle"]',t).val(),u=w('input[name="description"]',t).val(),h=w('input[name="width"]',t).val(),p=w('input[name="height"]',t).val(),f=w('select[name="float"]',t).val(),g=w('input[name="file"]',t),m=[],v="";w("#file_type_local",t).prop("checked")?e.options.imageuploadurl?window.FileReader?((a=new FileReader).onload=function(){n(a.result)},a.readAsDataURL(g.get(0).files[0])):b.settings.islocal?alert(b.l10n.get("blog_offline_message")):(l=g.val(),r=w('<iframe id="upload_iframe" />'),s=!1,"jpeg"!=(l="jpg"==(l=l.substr(l.lastIndexOf(".")+1))?"jpeg":l)&&"png"!=l&&"gif"!=l&&"bmp"!=l?alert("Cannot upload the image: unsupported format."):(l="image/"+l,r.load(function(){var t;s?((t=r.contents().find("body").text()).length&&n("data:"+l+";base64,"+t),r.remove()):(t=w('<form enctype="multipart/form-data" method="post" action="'+e.options.imageuploadurl+'" />'),r.contents().find("body").append(t),t.append(g).submit(function(){s=!0}).submit())}),w("body").append(r),r.attr("src","#"))):alert("Cannot upload the image: upload url not found."):w("#file_type_remote",t).prop("checked")&&n(c)},makeForm:function(t,e){return t.find("input[name=src]").val(e.src),t.find("input[name=imgtitle]").val(e.title),t.find("input[name=description]").val(e.alt),t.find('input[name="width"]').val(e.width),t.find('input[name="height"]').val(e.height),t.find('select[name="float"]').val(e.styleFloat),t.find("img").attr("src",e.src),t.find("input[type=radio]").click(function(){("local"==w(this).attr("value")?(t.find('[name="file"]').removeAttr("disabled"),t.find('[name="src"]')):(t.find('[name="src"]').removeAttr("disabled").focus(),t.find('[name="file"]'))).attr("disabled","true")}),t}},w.wysiwyg.insertImage=function(t,n,o){return t.each(function(){var t,e,i=w(this).data("wysiwyg");if(i&&n&&0!==n.length){if(d&&i.ui.focus(),o){if(i.editorDoc.execCommand("insertImage",!1,"http://emptyvalue"),t=i.getElementByAttributeValue("img","src","http://emptyvalue"))for(e in t.src=n,o)o.hasOwnProperty(e)&&t.setAttribute(e,o[e])}else i.editorDoc.execCommand("insertImage",!1,n);i.saveContent(),w(i.editorDoc).trigger("editorRefresh.wysiwyg")}return this})}}(_jq,x5engine),!function(a,r){"use strict";function F(t,e){for(var i=t.classList,n=0;n<e.length;n++)i.add(e[n])}function E(t,e){for(var i=t.classList,n=0;n<e.length;n++)i.remove(e[n])}function s(o){function i(t,e,i){E(p[t.last],[D.classes.slideOut,D.classes.slideOut+D.classes.prev,D.classes.slideOut+D.classes.next]),E(p[t.current],[D.classes.defaultSlide,D.classes.slideIn,D.classes.slideIn+D.classes.prev,D.classes.slideIn+D.classes.next]),t.last=t.current,t.current=e,i=i||function(t,e){e-=t;return 0<e^Math.abs(e)>p.length/2?D.classes.next:D.classes.prev}(t.last,t.current),F(p[t.last],[D.classes.slideOut,D.classes.slideOut+i]),F(p[t.current],[D.classes.slideIn,D.classes.slideIn+i])}function n(t){var e;document.getElementById((e=t.current,o.id+D.classes.radioIdSeparator+e)).checked=!0,a(t,t.current)}function a(t,e){D.config.radioSliding&&D.config.radioSliding.enabled&&p.length>D.radio.visibleNumber&&(e=C(e))!==t.radioBarIndex&&(t.radioBarIndex=e,x(t))}function e(t){return 0==(t=(w-t)*D.radio.size)?t:t+"px"}function r(t,e){(e?_:k)(t)}function s(){M||(O&&(clearTimeout(O),O=null),!D.config.ctrlHidingDuringAnimations||!D.config.ctrlHidingDuringAnimations.enabled||D.config.ctrlHidingDuringAnimations.animations&&D.config.ctrlHidingDuringAnimations.animations.length&&!S(D.config.ctrlHidingDuringAnimations.animations)||k(f),M=!0)}function l(t){T(A.next)}function c(t){var e;return!y&&0<(e=t.getElementsByClassName(D.classes.animated)).length?e[e.length-1]:t}var t,d,u,h,p=o.getElementsByClassName(D.classes.slide),f=o.getElementsByClassName(D.classes.ctrlContainer)[0],g=!!f&&f.getElementsByClassName(D.classes.radioBar)[0],m=!!f&&f.getElementsByClassName(D.classes.radioBarNext)[0],v=!!f&&f.getElementsByClassName(D.classes.radioBarPrev)[0],w=(D.radio.visibleNumber-1)/2,b=p.length-w-1,y=!!o.getElementsByClassName(D.classes.noElementEffect).length,x=function(t){g&&(t.vertical?(g.style.top=e(t.radioBarIndex),g.style.left=0):(g.style.top=0,g.style.left=e(t.radioBarIndex))),r(m,t.radioBarIndex<b),r(v,t.radioBarIndex>w)},C=function(t){return Math.max(w,Math.min(b,t))},k=function(t){t&&t.classList.remove(D.classes.ctrlVisible)},_=function(t){t&&t.classList.add(D.classes.ctrlVisible)},S=function(t){for(var e=!1,i=0;!e&&i<t.length;i++)var n=o.getElementsByClassName(t[i]),e=n&&n.length;return!!e},M=!1,I=0,O=null,T=function(t){s(),0<I&&(O=setTimeout(t,I)),_(f),M=!1},A=(d=function(t){0<t?A.prev():A.next()},(t=o).addEventListener("touchstart",function(t){u=t.changedTouches[0].pageX,h=(new Date).getTime()},!1),t.addEventListener("touchend",function(t){t=t.changedTouches[0].pageX-u;(new Date).getTime()-h<=D.swipe.maxTime&&Math.abs(t)>=D.swipe.requiredDistance&&d(t)},!1),{current:0,last:0,vertical:!1,radioBarIndex:w,goTo:function(t,e){var t=function(t,e){for(;t<0;)t+=e;return t%e}(t,p.length);t!=A.current&&(s(),i(A,t,e),c(p[(t=A).last]).removeEventListener("animationend",l),c(p[t.current]).addEventListener("animationend",l),n(A))},next:function(){return A.goTo(A.current+1,D.classes.next)},prev:function(){return A.goTo(A.current-1,D.classes.prev)},autoplay:function(t){I=t,T(A.next)},radioBarNext:function(){a(A,A.radioBarIndex+D.radio.slideBarGap)},radioBarPrev:function(){a(A,A.radioBarIndex-D.radio.slideBarGap)}});return A}var D,l;a.extend(r,{contentSlider:(D={swipe:{requiredDistance:150,maxTime:300}},l={init:function(t){a.extend(!0,D,t||{});for(var e=r.responsive.isMobileDevice(),t="Apple Safari"===r.utils.getCurrentBrowser(),i=document.getElementsByClassName(D.classes.root),n=0;n<i.length;n++)l[i[n].id]=s(i[n]),e&&i[n].classList.add(D.classes.ctrlVisibleOnMobile);if(t)for(var o=document.getElementsByClassName(D.classes.container),n=0;n<o.length;n++)o[n].classList.contains(D.classes.cubeEffect)&&(o[n].classList.remove(D.classes.cubeEffect),o[n].classList.add(D.classes.fadeEffect));return 0<i.length}})})}(_jq,x5engine,window),!function(s,l){"use strict";s(".imMnMnTxt img").css("position");var c=null,d=s(window),u=s("#imContent"),h=s("#imFooPad"),t=u.css("padding-bottom"),p=t?+t.replace(/px/g,""):0;s.extend(l,{content:{getContentHeight:function(){c=(h.length?h:u).height()},setNewHeight:function(){var t=s("#imContentContainer"),e=s("#imMnMn"),i=s("#imPgMn"),n=s("#imBtMnContainer"),o=0,a=0,r=0;e.attr("data-verticalscroll")&&(o+=+e.children("ul").css("margin-top").replace(/px/g,""),d.one("scroll",l.content.setNewHeight)),e.find("ul").length&&"fixed"!=e.children("ul").css("position")&&(a=o+e.outerHeight()),i.length&&(r=i.outerHeight(!0),r=(r+=+i.css("padding-top").replace(/px/g,""))+ +i.css("margin-top").replace(/px/g,"")),o=Math.max(c,a,r,u.outerHeight(!0)),e=!!h.length&&!!n.length&&a>u.outerHeight(!0),t.css("min-height",o+"px"),e&&h.height(o-n.outerHeight(!0)-2*p)}}}),l.settings.autoHeight.enabled&&(u.on("change breakpointChangedOrFluid",function(){u.add(h).height(""),s("#imContentContainer").css("min-height",""),setTimeout(function(){l.content.getContentHeight(),l.content.setNewHeight()},200)}),u.trigger("change"))}(_jq,x5engine),!function(d,u){"use strict";d.imCookie=function(t,e,i){var n=u.settings.siteId+"_"+t;if(null==e){var o=null;if(document.cookie&&""!==document.cookie)for(var a=document.cookie.split(";"),r=0;r<a.length;r++){var s=d.trim(a[r]);if(s.substring(0,n.length+1)==n+"="){o=decodeURIComponent(s.substring(n.length+1));break}}return o}null!==(i=i||{}).expires&&void 0!==i.expires||(i.expires=60),null===e&&(e="",i.expires=-1);var t="",l=(i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(l=new Date).setTime(l.getTime()+24*i.expires*60*60*1e3):l=i.expires,t="; expires="+l.toUTCString()),i.path?"; path="+i.path:""),c=i.domain?"; domain="+i.domain:";",i=i.secure?"; secure":"";document.cookie=[n,"=",encodeURIComponent(e),t,l,c,i].join("")}}(_jq,x5engine),!function(n,o){"use strict";n.extend(o,{cookielaw:{cookieId:"",showBanner:function(t){var e;if(t=n.extend({id:"cookiebanner",offlineTimeStamp:0,bannerStyle:"bar",position:"top",texts:[],acceptButton:!1,priority:2,acceptOnScroll:!1,elementClose:'<svg class="svgClose imCloseInn" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path d="M1490 1322q0 40-28 68l-136 136q-28 28-68 28t-68-28l-294-294-294 294q-28 28-68 28t-68-28l-136-136q-28-28-28-68t28-68l294-294-294-294q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 294 294-294q28-28 68-28t68 28l136 136q28 28 28 68t-28 68l-294 294 294 294q28 28 28 68z"/></svg>',effect:"fade",margin:10},t),o.cookielaw.cookieId="cookie_law_yes"+(o.utils.isOnline()?"":"_"+t.offlineTimeStamp),t.onClose=function(){n.imCookie(o.cookielaw.cookieId,1,{expires:365,path:"/"}),o.cookielaw.activateScripts()},o.cookielaw.accepted())o.cookielaw.activateScripts();else{switch(t.position){case"bottom":t.effect="frombottom";break;case"center":case"top":t.effect="fromtop";break;case"center-right":case"bottom-right":case"top-right":t.effect="fromright";break;case"center-left":case"bottom-left":case"top-left":t.effect="fromleft"}t.text="";for(var i=0;i<t.texts.length&&!t.text;i++)t.texts[i].basepath==o.settings.currentPath&&(t.text=t.texts[i].text);t.acceptButton&&(t.text="box"==t.bannerStyle?t.text+="</br>":t.text,t.text+='<div class="imClose close"><div class="imCloseInn">'+o.l10n.get("privacy_button_agree")+"</div></div>",t.elementClose=""),e="box"==t.bannerStyle?o.imSplashBox(t):o.alertBox(t),t.acceptOnScroll&&n(window).one("scroll",function(){e.close()})}},activateScripts:function(){n("#imContent").trigger("x5ActivateCookieScripts")},accepted:function(){return!!n.imCookie(o.cookielaw.cookieId)}}})}(_jq,x5engine),!function(c,d){"use strict";c.extend(d,{imCover:function(e){e=c.extend(!0,{id:"cover",cookie:!1,priority:0,link:"",scrollImage:"",onClose:null,offlineTimeStamp:0},e);var i,n,o,a,t,r=1e3,s="cookie-"+e.id+(!d.utils.isOnline()&&e.offlineTimeStamp?"_"+e.offlineTimeStamp:""),l=c(window);return(!e.cookie||"true"!=c.imCookie(s))&&(o=function(t){c.isFunction(e.onClose)&&e.onClose(),i.animate({top:"-100%"},r,function(){i.remove()}),a.animate({opacity:"0"},r,function(){a.remove()}),t&&t.stopPropagation()},a=c('<div id="im-cover-overlay"></div>'),c("body").append(a),t='<div id="'+e.id+'" class="im-cover '+(""!==e.link?"im-cover-clickable":"")+'" style="">',t=(t+=d.settings.imLoadingAnimation)+(e.scrollImage?'<img class="scroll-image close-element" alt="scroll down" src="'+e.scrollImage+'"></div>':"")+"</div>\n",c("body").append(t),i=c("#"+e.id).css({zIndex:d.settings.zIndex.cover+e.priority}),e.media?(e.media.load,new d.mediaObject(c.extend(e.media,{load:function(t){setTimeout(function(){"image"==e.media.type&&(n=c('<div class="cover-bg" style="background: url(\''+e.media.url+"') center center/cover no-repeat; filter: blur(10px); transition: filter 500ms ease-out;\"></div>")),i.find(".imLoadAnim").remove(),n.appendTo(i),setTimeout(function(){n.css({filter:"blur(0)"})},50),i.find(".close-element").click(function(t){t.stopPropagation(),o()}),l.one("scroll",o),i.one("mousewheel touchmove",o),i.click(function(){c.isFunction(e.link)?e.link.call(i):""!==e.link&&(location.href=e.link)}),e.cookie&&c.imCookie(s,"true",{expires:0,path:"/"})},100)}}))):o(),{close:function(){c.isFunction(o)&&o()}})}})}(_jq,x5engine),!function(w,b){"use strict";w.extend(b,{imDatePicker:function(t,u){function e(t,e){(i=r())&&(u.date.setFullYear(i.getFullYear()),u.date.setMonth(i.getMonth()),u.date.setDate(i.getDate()),c.setFullYear(i.getFullYear()),c.setMonth(i.getMonth()),c.setDate(i.getDate()));var i='<div class="date-picker date-picker-popup">',i=(u.vDay,u.vMonths,(i=(i+='<div class="header"><div class="year"></div><div class="date"></div></div>')+'<div class="container month-container"><span class="arrow">⟨</span><span class="month-text"></span><span class="arrow">⟩</span></div>'+'<div class="container year-container"><span class="arrow">⟨</span><span class="year-text"></span><span class="arrow">⟩</span></div>')+('<div class="calendar">'+s()+"</div>")+"</div>");w("body").append('<div class="date-picker-background"></div>'),(n=w(".date-picker-background")).css({position:"fixed",width:w(window).width(),height:w(window).height(),top:0,left:0,zIndex:b.settings.zIndex.datePicker+1}).on("click",v),w("body").append(i),o=w(".date-picker.date-picker-popup"),m(),o.find(".month-container .arrow").first().on("click",function(){f(-1)}),o.find(".month-container .arrow").last().on("click",function(){f(1)}),o.find(".year-container .arrow").first().on("click",function(){g(-1)}),o.find(".year-container .arrow").last().on("click",function(){g(1)}),w(".day").on("click",l),t+o.width()>w(window).width()+w(window).scrollLeft()&&(t=w(window).width()-o.outerWidth()-5+w(window).scrollLeft()),e+o.height()>w(window).height()+w(window).scrollTop()&&(e=w(window).height()-o.outerHeight()-5+w(window).scrollTop()),o.fadeOut(0).css({top:e,left:t,zIndex:b.settings.zIndex.datePicker+2}).fadeIn(200)}function i(t){0<o.length?o.fadeOut(200,function(){o.remove(),e(t.pageX,t.pageY)}):e(t.pageX,t.pageY)}var c,n=w(),o=w(),h=w(t),a=b.l10n.get("date_full_months"),d=b.l10n.get("date_days"),p=function(t,e){for(var i,n=[],o=!1,a=0;!o&&a<e.length;)-1!=t.indexOf(e.charAt(a))&&(o=!0),a++;if(!o||0===e.length)return[t];for(i=t.split(e.charAt(0)),a=0;a<i.length;a++)n=n.concat(p(i[a],e.substring(1)));return n},r=function(){var t,e=h.val(),i=u.format;if(""===e)return!1;if(t=i.replace(/\//g,"\\/").replace(/\s/g,"\\s+").replace(/\-/g,"\\-").replace(/\./g,"\\.").replace(/\,/g,"\\,").replace(/dddd/g,"[\\wìòà ùèé']+").replace(/ddd/g,"[\\wìòà ùèé']+").replace(/d{1,2}/g,"\\d{1,2}").replace(/yyyy/g,"\\d{4}").replace(/yy/g,"\\d{2}").replace(/MMMM/g,"[\\wìòà ùèé']+").replace(/MMM/g,"[\\wìòà ùèé']+").replace(/MM/g,"\\d{2}").replace(/M/g,"\\d{1,2}"),!new RegExp("^"+t+"$").test(e))return!1;for(var n,o,i=i.replaceAll("yy","").replaceAll("M","").replaceAll("d",""),a=p(u.format,i),r=p(e,i),s="",l="",c="",d=0;d<a.length;d++)switch(a[d]){case"yyyy":c=r[d];break;case"yy":c="20"+r[d];break;case"MMMM":for(n=b.l10n.get("date_full_months"),o=0;o<n.length;o++)n[o].toLowerCase()==r[d].toLowerCase()&&(s=o+1);break;case"MMM":for(n=b.l10n.get("date_months"),o=0;o<n.length;o++)n[o].toLowerCase()==r[d].toLowerCase()&&(s=o+1);break;case"MM":case"M":s=r[d];break;case"dd":case"d":l=r[d]}return new Date(c,s-1,l)},s=function(){var t,e="<table>";e+="<tr>";for(var i=0;i<d.length;i++)6<(t=i+u.start)&&(t-=7),e+='<td class="table-header">'+d[t]+"</td>";e+="</tr>";for(var n=new Date(u.date.getYear(),u.date.getMonth(),u.date.getDate()),o=(n.setFullYear(u.date.getFullYear()),n.setDate(1),parseInt(n.getDay(),10)),a=((o-=u.start)<=0&&(o+=7),parseInt(n.getMonth(),10)),r=0;n.getMonth()==a;){for(e+="<tr>",i=1;i<=7;i++){var s,l="day";o<=i+7*r&&n.getMonth()==a?((s=i-o+1+7*r)==c.getDate()&&n.getMonth()==c.getMonth()&&(l+=" selDay"),e+='<td class="'+l+'">'+s+"</td>",n.setDate(n.getDate()+1)):e+="<td></td>"}e+="</tr>",r++}return e+="</table>"},l=function(t,e,i){"boolean"!=typeof i&&(i=!0),e?(u.date.setFullYear(e.getFullYear()),u.date.setMonth(e.getMonth()),u.date.setDate(e.getDate()),c.setFullYear(e.getFullYear()),c.setMonth(e.getMonth()),c.setDate(e.getDate())):(u.date.setDate(w(this).text()),c.setFullYear(u.date.getFullYear()),c.setMonth(u.date.getMonth()),c.setDate(w(this).text()));e=b.utils.formatDate(u.date,!1,u.format);h.val(e),h.data("data-was-set",!0),v(),i&&w.isFunction(u.onChange)&&u.onChange()},f=function(t){u.date.setDate(1),u.date.setMonth(u.date.getMonth()+t),m()},g=function(t){u.date.setFullYear(u.date.getFullYear()+t),m()},m=function(){var t;o.find(".calendar").empty().append(s()),o.find(".month-text").empty().append(a[parseInt(u.date.getMonth(),10)]),o.find(".year-text").empty().append(u.date.getFullYear().toString()),o.find(".header .year").html(u.date.getFullYear().toString()),"toLocaleDateString"in u.date?(t=u.date.toLocaleDateString(b.l10n.get("lang_code"),{weekday:"long",month:"short",day:"numeric"}),o.find(".header .date").html(t)):o.find(".header .date").html(u.date.toDateString().replace(u.date.getFullYear().toString(),"")),o.find(".day").click(l)},v=function(){n.remove(),o.fadeOut(200,function(){o.remove()})};return(u=w.extend({icon:!0,start:0,float:"left",format:b.l10n.get("date_format"),date:null,setInitial:!1,onChange:null},u)).start<0&&(u.start=Math.abs(u.start)%7),u.date?"string"==typeof u.date&&(u.date=new Date(u.date.substring(6),parseInt(u.date.substring(3,5),10)-1,u.date.substring(0,2))):u.date=new Date,c=new Date(u.date.getFullYear(),u.date.getMonth(),u.date.getDate()),(u.icon?h.next(".imDatePickerIcon"):h).click(i),h.on("change",function(){var t=r();!1!==t&&(l(null,t),w.isFunction(u.onChange))&&u.onChange()}),h.click(function(){w(this).removeClass(b.imForm.constants.mark)}),u.setInitial&&l(null,u.date,!1),{date:function(){return u.date}}}})}(_jq,x5engine),!function(o,a){"use strict";o.extend(a,{setupDateTime:function(){var t=a.dateTime;t(o(".imHour"),"hour"),t(o(".imNow"),"now")},dateTime:function(i,t){i=o(i);var e,n=a.utils.imFormatInt;if("hour"!=t&&"now"!=t)i.html(t);else switch(t){case"hour":!function t(){var e=new Date;i.html(n(e.getHours())+":"+n(e.getMinutes())+":"+n(e.getSeconds())+" "),setTimeout(t,1e3)}();break;case"now":!function t(){e=a.utils.formatDate(new Date,!0),i.html(e),setTimeout(t,6e4)}()}}})}(_jq,x5engine),!function(f,g){"use strict";f.fn.loudStop=function(t,e){return f(this).trigger("loudStop").stop(t,e),this},f.extend(f.easing,{iOsSwing:function(t,e,i,n,o){return e==o?i+n:n*(1-Math.pow(2,-10*e/o))+i},elasticIn:function(t,e,i,n,o){var a=1.70158,r=0,s=n;return 0===e?i:1==(e/=o)?i+n:(r=r||.3*o,a=s<Math.abs(n)?(s=n,r/4):r/(2*Math.PI)*Math.asin(n/s),s*Math.pow(2,-11*e)*Math.sin((e*o-a)*(2*Math.PI)/r)+n+i)},elasticOut:function(t,e,i,n,o){var a=1.70158,r=0,s=n;return 0===e?i:1==(e/=o)?i+n:(r=r||.3*o,a=s<Math.abs(n)?(s=n,r/4):r/(2*Math.PI)*Math.asin(n/s),-(s*Math.pow(2,11*--e)*Math.sin((e*o-a)*(2*Math.PI)/r))+i)},bounceIn:function(t,e,i,n,o){return n-f.easing.bounceOut(t,o-e,0,n,o)+i},bounceOut:function(t,e,i,n,o){return(e/=o)<1/2.75?n*(7.5625*e*e)+i:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+i:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+i:n*(7.5625*(e-=2.625/2.75)*e+.984375)+i},easeInOutSwing:function(t,e,i,n,o){return 0===e?i:e==o?i+n:(e/=o/2)<1?n/2*Math.pow(2,10*(e-1))+i:n/2*(2-Math.pow(2,-10*--e))+i},imBounce:function(t,e,i,n,o){return(e/=o)<1/2.75?n*(7.5625*e*e)+i:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+i:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+i:n*(7.5625*(e-=2.625/2.75)*e+.984375)+i}}),f.extend(!0,g,{effects:{none:{animateIn:function(t,e,i,n,o){t.DOMObject().width(e.width).height(e.height).css({position:"absolute",top:e.y,left:e.x}).loudStop(!1,!1).show(0),f.isFunction(n)&&n(t)},animateOut:function(t,e,i,n){t.DOMObject().loudStop(!1,!1).hide(0),f.isFunction(i)&&i(t)}},fade:{animateIn:function(t,e,i,n,o){i=f(i),t.DOMObject().width(e.width).height(e.height).css({position:"absolute",top:e.y,left:e.x,display:"none"}).loudStop(!1,!1).fadeIn(500,function(){f.isFunction(n)&&n(t)})},animateOut:function(t,e,i,n){t.DOMObject().loudStop(!1,!1).fadeOut(500,function(){f.isFunction(i)&&i(t)})}},horizontalSlide:{animateIn:function(t,e,i,n,o){i=f(i),t.DOMObject().width(e.width).height(e.height).css({position:"absolute",top:e.y,left:o?-e.width:i.width()}).show(0).loudStop(!1,!1).animate({left:e.x},{duration:500,complete:function(){f.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=f(e),o.loudStop(!1,!1).animate({left:n?e.width():-o.width()},{duration:500,complete:function(){f.isFunction(i)&&i(t)}})}},horizontalSlideSwing:{animateIn:function(t,e,i,n,o){t.DOMObject();i=f(i),t.DOMObject().width(e.width).height(e.height).css({position:"absolute",top:e.y,left:o?-e.width:i.width()}).show(0).loudStop(!1,!1).animate({left:e.x},{duration:2e3,easing:"easeInOutSwing",complete:function(){f.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=f(e),o.loudStop(!1,!1).animate({left:n?e.width():-o.width()},{duration:2e3,easing:"easeInOutSwing",complete:function(){f.isFunction(i)&&i(t)}})}},verticalSlide:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=f(i),a.width(e.width).height(e.height),a.css({position:"absolute",left:e.x,top:o?i.height():-e.height}),a.show(0),a.loudStop(!1,!1).animate({top:e.y},{duration:500,complete:function(){f.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=f(e),o.loudStop(!1,!1).animate({top:n?-t.Height():e.height()},{duration:500,complete:function(){f.isFunction(i)&&i(t)}})}},verticalSlideSwing:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=f(i),a.width(e.width).height(e.height),a.css({position:"absolute",left:e.x,top:o?i.height():-e.height}),a.show(0),a.loudStop(!1,!1).animate({top:e.y},{duration:2e3,easing:"easeInOutSwing",complete:function(){f.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=f(e),o.loudStop(!1,!1).animate({top:n?-t.Height():e.height()},{duration:2e3,easing:"easeInOutSwing",complete:function(){f.isFunction(i)&&i(t)}})}},zoom:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=f(i),a.css({position:"absolute",top:i.height()/2,left:i.width()/2}).width(10).height(10),a.fadeIn(0),a.loudStop(!1,!1).animate({top:e.y,left:e.x,width:e.width,height:e.height},{duration:500,complete:function(){f.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=f(e),o.loudStop(!1,!1).animate({top:e.height()/2,left:e.width()/2,width:1,height:1},{duration:500,complete:function(){f.isFunction(i)&&i(t)}})}},elasticFromTop:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=f(i),a.width(e.width).height(e.height),a.css({position:"absolute",left:e.x,top:o?i.height():-e.height}),a.show(0),a.loudStop(!1,!1).animate({top:e.y},{easing:"elasticIn",duration:1500,complete:function(){f.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=f(e),o.loudStop(!1,!1).fadeOut(500,function(){f.isFunction(i)&&i(t)})}},elasticFromBottom:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=f(i),a.width(e.width).height(e.height),a.css({position:"absolute",left:e.x,top:o?-e.height:i.height()}),a.show(0),a.loudStop(!1,!1).animate({top:e.y},{easing:"elasticIn",duration:500,complete:function(){f.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=f(e),o.loudStop(!1,!1).fadeOut(500,function(){f.isFunction(i)&&i(t)})}},elasticFromLeft:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=f(i),a.width(e.width).height(e.height),a.css({position:"absolute",top:e.y,left:o?i.width():-e.width}),a.show(0),a.loudStop(!1,!1).animate({left:e.x},{duration:1500,easing:"elasticIn",complete:function(){f.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=f(e),o.loudStop(!1,!1).animate({left:n?-o.width():e.width()},{duration:1500,easing:"elasticIn",complete:function(){f.isFunction(i)&&i(t)}})}},elasticFromRight:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=f(i),a.width(e.width).height(e.height),a.css({position:"absolute",top:e.y,left:o?-e.width:i.width()}),a.show(0),a.loudStop(!1,!1).animate({left:e.x},{duration:1500,easing:"elasticIn",complete:function(){f.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=f(e),o.loudStop(!1,!1).animate({left:n?e.width():-o.width()},{duration:1500,easing:"elasticIn",complete:function(){f.isFunction(i)&&i(t)}})}},bounceFromRight:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=f(i),a.width(e.width).height(e.height),a.css({position:"absolute",top:e.y,left:o?-e.width:i.width()}),a.show(0),a.loudStop(!1,!1).animate({left:e.x},{duration:1e3,easing:"bounceOut",complete:function(){f.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=f(e),o.loudStop(!1,!1).animate({left:n?e.width():-o.width()},{duration:1e3,easing:"bounceOut",complete:function(){f.isFunction(i)&&i(t)}})}},bounceFromLeft:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=f(i),a.width(e.width).height(e.height),a.css({position:"absolute",top:e.y,left:o?i.width():-e.width}),a.show(0),a.loudStop(!1,!1).animate({left:e.x},{duration:1e3,easing:"bounceOut",complete:function(){f.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=f(e),o.loudStop(!1,!1).animate({left:n?-o.width():e.width()},{duration:1e3,easing:"bounceOut",complete:function(){f.isFunction(i)&&i(t)}})}},bounceFromTop:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=f(i),a.width(e.width).height(e.height),a.css({position:"absolute",left:e.x,top:o?i.height():-e.height}),a.show(0),a.loudStop(!1,!1).animate({top:e.y},{easing:"bounceOut",duration:1500,complete:function(){f.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=f(e),o.loudStop(!1,!1).animate({top:n?-o.height():e.height()},{duration:1500,easing:"bounceOut",complete:function(){f.isFunction(i)&&i(t)}})}},bounceFromBottom:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=f(i),a.width(e.width).height(e.height),a.css({position:"absolute",left:e.x,top:o?-e.height:i.height()}),a.show(0),a.loudStop(!1,!1).animate({top:e.y},{easing:"bounceOut",duration:1500,complete:function(){f.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=f(e),o.loudStop(!1,!1).animate({top:n?e.height():-o.height()},{duration:1500,easing:"bounceOut",complete:function(){f.isFunction(i)&&i(t)}})}},rotateLinear:{animateIn:function(t,e,i,n,o){var a,r=t.DOMObject(),s=g.utils.supportsCSS("transform"),l=g.utils.supportsCSS("transformOrigin");s&&l?(r.loudStop(!1,!1).css({top:e.y,left:e.x,"-my-anim-step":0}).width(e.width).height(e.height),a=o?-90:90,r.css(l,"0% 0%").fadeIn(0),r.animate({"-my-anim-step":100},{step:function(t,e){r.css(s,"rotate("+Math.floor(a-a*t/100)+"deg)")},complete:function(){f.isFunction(n)&&n(t)}})):g.effects.fade.animateIn(t,e,i,n,o)},animateOut:function(t,e,i,n){var o,a=t.DOMObject(),r=g.utils.supportsCSS("transform"),s=g.utils.supportsCSS("transformOrigin");r&&s?(a.loudStop(!1,!1).css("-my-anim-step",0),o=n?90:-90,a.css(s,"0% 0%").fadeIn(0),a.animate({"-my-anim-step":100},{step:function(t,e){a.css(r,"rotate("+Math.floor(o*t/100)+"deg)")},complete:function(){f.isFunction(i)&&i(t)}})):g.effects.fade.animateOut(t,e,i,n)}},rotateZoom:{animateIn:function(t,e,i,n,o){var a=t.DOMObject(),r=g.utils.supportsCSS("transform");r?(a.css({position:"absolute",top:i.height()/2,left:i.width()/2,"-my-anim-step":0}).width(10).height(10).fadeIn(0),a.loudStop(!1,!1).animate({top:e.y,left:e.x,width:e.width,height:e.height,"-my-anim-step":100},{duration:500,step:function(t,e){a.css(r,"rotate("+Math.floor(-280- -280*t/100)+"deg)")},complete:function(){f.isFunction(n)&&n(t)}})):g.effects.zoom.animateIn(t,e,i,n,o)},animateOut:function(t,e,i,n){var o=t.DOMObject(),a=g.utils.supportsCSS("transform");a?(o.css("-my-anim-step",0),o.loudStop(!1,!1).animate({top:e.height()/2,left:e.width()/2,width:1,height:1,"-my-anim-step":100},{duration:500,step:function(t,e){o.css(a,"rotate("+Math.floor(280*t/100)+"deg)")},complete:function(){f.isFunction(i)&&i(t)}})):g.effects.zoom.animateOut(t,e,i,n)}},carousel:{animateIn:function(t,e,i,n,o){var a,r=t.DOMObject(),s=g.utils.supportsCSS("transform"),l=g.utils.supportsCSS("transformOrigin");s&&l?(r.loudStop(!1,!1).css({top:e.y,left:e.x,"-my-anim-step":0}).width(e.width).height(e.height),a=o?90:-90,r.fadeIn(0),r.css(l,(r.width()-i.width())/2+"px 50%"),r.animate({"-my-anim-step":100},{step:function(t,e){r.css(s,"perspective(600px) rotateY("+Math.floor(a-a*t/100)+"deg)")},complete:function(){f.isFunction(n)&&n(t)}})):g.effects.fade.animateIn(t,e,i,n,o)},animateOut:function(t,e,i,n){var o,a=t.DOMObject(),r=g.utils.supportsCSS("transform"),s=g.utils.supportsCSS("transformOrigin");r&&s?(a.loudStop(!1,!1).css("-my-anim-step",0),o=n?-90:90,a.fadeIn(0),a.css(s,(a.width()-e.width())/2+"px 50%"),a.animate({"-my-anim-step":100},{step:function(t,e){a.css(r,"perspective(600px) rotateY("+Math.floor(o*t/100)+"deg)")},complete:function(){f.isFunction(i)&&i(t)}})):g.effects.fade.animateOut(t,e,i,n)}},verticalSlices:{animateIn:function(e,i,n,o,a){if("image"!=e.Type())g.effects.fade.animateIn(e,i,n,o,a);else{var r=e.DOMObject(),s=f(null),t=e.Width()/5,l=r.attr("src");r.loudStop(!1,!1).one("loudStop",function(){s.stop(!1,!1).remove(),s=f(null)});for(var c=0;c<5;c++)s=s.add(f("<div />").css({position:"absolute",top:i.y+n.height()*(a?1:-1),left:i.x+t*c,"background-image":'url("'+l+'")',"background-position":-t*c+"px 0px","background-size":5*t+"px "+e.Height()+"px",opacity:0}).width(t).height(e.Height()));r.hide(0).after(s),s.each(function(t){f(this).delay(80*t).animate({top:i.y},{duration:400,step:function(t,e){"top"==e.prop&&f(this).css("opacity",1+t/n.height()*(a?-1:1))},complete:function(){4==t&&0<s.length&&(r.css({position:"absolute",top:i.y,left:i.x}).width(i.width).height(i.height).show(0),s.remove(),o(e))}})})}},animateOut:function(e,i,n,o){if("image"!=e.Type())g.effects.fade.animateOut(e,i,n,o);else{var t=e.DOMObject(),a=f(null),r=e.Width()/5,s={x:+t.css("left").replace(/px/,""),y:+t.css("top").replace(/px/,"")},l=t.attr("src");t.loudStop(!1,!1).hide(0).one("loudStop",function(){a.stop(!1,!1).remove(),a=f(null)});for(var c=0;c<5;c++)a=a.add(f("<div />").css({position:"absolute",top:s.y,left:s.x+r*c,"background-image":'url("'+l+'")',"background-position":-r*c+"px 0px","background-size":5*r+"px "+e.Height()+"px"}).width(r).height(e.Height()));t.after(a),a.each(function(t){f(this).delay(80*t).animate({top:s.y+i.height()*(o?-1:1)},{duration:400,step:function(t,e){"top"==e.prop&&f(this).css("opacity",1-t/i.height()*(o?-1:1))},complete:function(){4==t&&0<a.length&&(a.remove(),n(e))}})}),n(e)}}},scramble:{animateIn:function(n,t,e,o,i){if("image"!=n.Type())g.effects.fade.animateIn(n,t,e,o,i);else{for(var a=n.DOMObject(),r=n.Width()/4,s=n.Height()/4,l=a.attr("src"),c=(a.loudStop(!1,!1).css({position:"absolute",top:t.y,left:t.x}).width(t.width).height(t.height).hide(0).one("loudStop",function(){c.stop(!1,!1).remove(),c=f(null)}),f(null)),d=0;d<4;d++)for(var u=0;u<4;u++)var h=0<=Math.random()-.5?e.width()+Math.random()*r:-Math.random()*r-r,p=0<=Math.random()-.5?e.height()+Math.random()*r:-Math.random()*s-s,c=c.add(f("<div />").css({position:"absolute",top:p,left:h,"background-image":'url("'+l+'")',"background-position":-r*u+"px -"+s*d+"px","background-size":4*r+"px "+4*s+"px"}).width(r).height(s).data("endposx",t.x+r*u).data("endposy",t.y+s*d));a.after(c),c.each(function(t,e){var i=f(this);i.animate({top:+i.data("endposy"),left:+i.data("endposx")},{duration:1e3,complete:function(){t==c.length-1&&0<c.length&&(a.show(0),c.remove(),o(n))}})})}},animateOut:function(o,a,r,t){if("image"!=o.Type())g.effects.fade.animateOut(o,a,r,t);else{for(var s=o.DOMObject(),l=o.Width()/4,c=o.Height()/4,e=s.attr("src"),i=+s.css("left").replace(/px/,""),n=+s.css("top").replace(/px/,""),d=(s.loudStop(!1,!1).hide(0).one("loudStop",function(){d.stop(!1,!1).remove(),d=f(null)}),f(null)),u=0;u<4;u++)for(var h=0;h<4;h++)d=d.add(f("<div />").css({position:"absolute",top:n+c*u,left:i+l*h,"background-image":'url("'+e+'")',"background-position":-l*h+"px -"+c*u+"px","background-size":4*l+"px "+4*c+"px"}).width(l).height(c));s.after(d),d.each(function(t,e){var i=0<=Math.random()-.5?a.width()+Math.random()*l:-Math.random()*l-l,n=0<=Math.random()-.5?a.height()+Math.random()*l:-Math.random()*c-c;f(this).animate({top:i,left:n},{duration:800,complete:function(){t==d.length-1&&0<d.length&&(s.hide(0),d.remove(),r(o))}})})}}},squares:{animateIn:function(e,t,i,n,o){if("image"!=e.Type())g.effects.fade.animateIn(e,t,i,n,o);else{var a=e.DOMObject(),r=e.Width()/4,s=e.Height()/4,l=a.attr("src"),c=f(null);a.loudStop(!1,!1).css({position:"absolute",top:t.y,left:t.x}).width(t.width).height(t.height).hide(0).one("loudStop",function(){c.stop(!1,!1).remove(),c=f(null)});for(var d=0;d<4;d++)for(var u=0;u<4;u++)c=c.add(f("<div />").css({position:"absolute",top:t.y+s*d,left:t.x+r*u,"background-image":'url("'+l+'")',"background-position":-r*u+"px -"+s*d+"px","background-size":4*r+"px "+4*s+"px",display:"none"}).width(r).height(s));a.after(c),c.each(function(t){f(this).delay(50*t).fadeIn(150,function(){t==c.length-1&&0<c.length&&(a.fadeIn(0),c.remove(),n(e))})})}},animateOut:function(e,t,i,n){if("image"!=e.Type())g.effects.fade.animateOut(e,t,i,n);else{var t=e.DOMObject(),o=e.Width()/4,a=e.Height()/4,r=t.attr("src"),s=+t.css("left").replace(/px/,""),l=+t.css("top").replace(/px/,""),c=f(null);t.loudStop(!1,!1).one("loudStop",function(){c.stop(!1,!1).remove(),c=f(null)});for(var d=0;d<4;d++)for(var u=0;u<4;u++)c=c.add(f("<div />").css({position:"absolute",top:l+a*d,left:s+o*u,"background-image":'url("'+r+'")',"background-position":-o*u+"px -"+a*d+"px","background-size":4*o+"px "+4*a+"px"}).width(o).height(a));t.after(c).hide(0),c.each(function(t){f(this).delay(50*t).fadeOut(150,function(){t==c.length-1&&0<c.length&&(c.remove(),i(e))})})}}},flip:{animateIn:function(t,e,i,n,o){var a,r=t.DOMObject(),s=g.utils.supportsCSS("transform"),l=g.utils.supportsCSS("transformOrigin");s&&l&&"image"==t.Type()?(r.loudStop(!1,!1).css({top:e.y,left:e.x,"-my-anim-step":0}).width(e.width).height(e.height),a=o?180:-180,r.fadeIn(0).css(l,"50% 50%"),r.animate({"-my-anim-step":100},{step:function(t,e){r.css(s,"perspective(600px) rotateY("+Math.floor(a-a*t/100)+"deg)"),r.css("opacity",50<t?(t-50)/50:0)},complete:function(){f.isFunction(n)&&n(t)}})):g.effects.fade.animateIn(t,e,i,n,o)},animateOut:function(t,e,i,n){var o,a=t.DOMObject(),r=g.utils.supportsCSS("transform"),s=g.utils.supportsCSS("transformOrigin");r&&s&&"image"==t.Type()?(a.loudStop(!1,!1).css("-my-anim-step",0),o=n?-180:180,a.fadeIn(0).css(s,"50% 50%"),a.animate({"-my-anim-step":100},{step:function(t,e){a.css(r,"perspective(600px) rotateY("+Math.floor(o*t/100)+"deg)"),a.css("opacity",50<t?0:(50-t)/50)},complete:function(){f.isFunction(i)&&i(t)}})):g.effects.fade.animateOut(t,e,i,n)}}}})}(_jq,x5engine),!function(s,n,o,i){"use strict";i.settings.fallback.animFrame&&(n.requestAnimFrame=n.requestAnimationFrame||n.webkitRequestAnimationFrame||n.mozRequestAnimationFrame||n.oRequestAnimationFrame||n.msRequestAnimationFrame||function(t){return n.setTimeout(function(){t((new Date).getTime())},1e3/60)},n.cancelAnimFrame=n.cancelAnimationFrame||n.webkitCancelAnimationFrame||n.mozCancelAnimationFrame||n.oCancelAnimationFrame||n.msCancelAnimationFrame||function(t){n.clearTimeout(t)}),"onhashchange"in n||!i.settings.fallback.onhashchange||function t(e){var i=n.top.location.hash;i!=e&&o(n).triggerHandler("hashchange"),n.setTimeout(function(){t(i)},200)}(n.top.location.hash),i.settings.fallback.json&&("undefined"==typeof JSON&&(this.JSON={}),"function"!=typeof JSON.stringify&&(JSON.stringify=function(t){var e=typeof t;if("object"!=e||null===t)return"string"==e&&(t='"'+t+'"'),String(t);var i,n,o=[],a=t&&t.constructor==Array;for(i in t)"string"==(e=typeof(n=t[i]))?n='"'+n+'"':"object"==e&&null!==n&&(n=JSON.stringify(n)),o.push((a?"":'"'+i+'":')+String(n));return(a?"[":"{")+String(o)+(a?"]":"}")}),"function"!=typeof JSON.parse)&&(JSON.parse=function(t){if(null===t)return null;if("string"==typeof t&&(t=o.trim(t))&&/^[\],:{}\s]*$/.test(t.replace(/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,"@").replace(/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return new Function("return "+t)();throw"Invalid JSON: "+t}),!function(){try{var t;if("localStorage"in n&&n.localStorage)return(t=n.sessionStorage).setItem("test","1"),t.removeItem("test"),1}catch(t){}}()?n.imStorage={setItem:function(t,e){o.imCookie(t,e,{path:"/"})},getItem:function(t){t=o.imCookie(t);return t||null},removeItem:function(t){o.imCookie(t,"",{path:"/"})}}:n.imStorage={setItem:function(t,e){n.localStorage.setItem(i.settings.siteId+"_"+t,e)},getItem:function(t){return n.localStorage.getItem(i.settings.siteId+"_"+t)},removeItem:function(t){n.localStorage.removeItem(i.settings.siteId+"_"+t)}},"function"!=typeof s.elementsFromPoint&&(s.elementsFromPoint=function(t,e){for(var i,n,o,a=[],r=[];(i=s.elementFromPoint(t,e))&&-1===a.indexOf(i)&&null!==i;)a.push(i),r.push({value:i.style.getPropertyValue("pointer-events"),priority:i.style.getPropertyPriority("pointer-events")}),i.style.setProperty("pointer-events","none","important");for(n=r.length-1;0<=n;n--)a[n].style.setProperty("pointer-events",(o=r[n]).value||"",o.priority);return a})}(document,window,$,x5engine),!function(u,h){"use strict";u.extend(h,{imForm:{constants:{mark:"imFormMark"},initForm:function(t,e,i){e=e||!1,i=u.extend(!0,{base:"",offlineMessage:"",feedbackMode:"showPage",messageBackground:"black",messageBackgroundBlur:!1,jsid:""},i);var n=u(t);n.append('<input type="hidden" value="'+i.jsid+'" name="imJsCheck" />'),n.find("img").not(".imDatePickerIcon").each(function(){u(this).on("mouseover",function(){h.imTip.Show(u(this),{position:"top"})})}),e&&n.find(":input").each(function(){var t=u(this),e=u("#"+t.attr("id")+"_tip");0<e.length&&t.on("focus click",function(){e.triggerHandler("mouseover"),t.one("blur",function(){e.triggerHandler("mouseout")})})}),n.find(".datePicker").each(function(){var t=u(this).attr("data-format");t&&h.imDatePicker(u(this),{format:t,icon:"true"==u(this).attr("data-showicon")})}),u("[class*=valMaxLength], [class*=valLength]").each(function(){u(this).attr("class").match(/Length\[([0-9]+)\]/g);var t=RegExp.$1;u(this).keyup(function(){u(this).val(u(this).val().substring(0,t))})}),u("[class*=valDate]").keypress(function(t){t=t.charCode||t.keyCode;return 8==t||37==t||39==t||46==t||9==t||/^[0-9\/\.]+$/g.test(u(this).val()+String.fromCharCode(t))}),u("[class*=valTelephone]").keypress(function(t){t=t.charCode||t.keyCode;return 8==t||37==t||39==t||46==t||9==t||43==t||/^[0-9\s\-\+\(\)]+$/g.test(u(this).val()+String.fromCharCode(t))}),h.imForm.setPagination(t,i),h.imForm.lockCopyPaste(t),h.utils.switchFocus(t),h.imForm.showCaptcha(t)},activeFocusPasswordPolicy:function(e){u("input[type=password].requirePolicy").each(function(){var t=u(this);t.on("focus",function(){h.imForm.showPasswordPolicy(t,e)})})},showPasswordPolicy:function(t,e){t=u(t);if(t.addClass(h.imForm.constants.mark),null!=e){var i="";if(Array.isArray(e)){for(var n=0;n<=e.length;n++)var o=h.l10n.get(e[n]),i=i+(o="form_password_length"==e[n]&&-1!==o.indexOf("{0}")?o.replace("{0}",h.passwordpolicy.getMinimumCharacters()):o)+"<br>";"<br><br>"==i.substring(i.length-8)&&(i=i.substring(0,i.length-8))}else i=h.l10n.get(e);null!=t&&(t.removeClass(h.imTip.constants.locked),h.imTip.Show(t,{position:"right",text:i,unique:!1,classes:"textLeft",persistant:!0,hideOnFocus:!1,hideOnBlur:!0}))}},showCaptcha:function(t){var e;(t=u(t)).length&&(!1!==(e=h.captcha.instance.create(t))?t.data("cpt-res",e):t.removeData("cpt-res"))},resetCaptcha:function(t){t=t.data("cpt-res");t&&t.reset()},checkCaptcha:function(t){return!!(t=u(t)).length&&(!(t=t.data("cpt-res"))||t.check())},captchaCanSubmit:async function(t){return!!(t=u(t)).length&&(!(t=t.data("cpt-res"))||!t.canSubmit||t.canSubmit())},getCaptchaField:function(t){if((t=u(t)).length){t=t.data("cpt-res");if(t)return t.getCaptchaField()}return u()},setPagination:function(a,e){function i(e,i){var t=u(a+"_next"),n=u(a+"_prev"),o=u(a+"_submit");i=i||400,t.add(n).attr("disabled",!1),u("."+h.imTip.constants.classId).remove(),u("."+h.imForm.constants.mark).removeClass(h.imForm.constants.mark),1==e?(n.add(o).hide(0),t.show(0)):0===l.find("[pageCount="+(e+1)+"]").length?(n.add(o).show(0),t.hide(0)):(n.add(o).hide(0),n.add(t).show(0)),l.find("fieldset").each(function(){var t=u(this);parseInt(t.attr("pageCount"),10)==e?t.css({display:"block",height:"auto"}).children("div").slideDown(i):t.children("div").slideUp(i,function(){t.height(0).css("display","none")})}),u(a+"_pageCounter").val(e)}function t(){var t=parseInt(u(a+"_pageCounter").val(),10);!0===h.imForm.validate(l.find("fieldset[pageCount="+t+"]"),{showAll:!0,paginate:!0,type:s})&&(0<l.find("[pageCount="+ ++t+"]").length?i(t):h.imForm.submit(a,e))}var n,o,r=0,s=(e=e||{}).type||"tip",l=u(a),c=!1,d="";l.find("fieldset").each(function(){var t=u(this);!t.hasClass("newPage")&&0!==r||r++,t.attr("pageCount",r)}),n=1<r?(l.append('<input type="hidden" name="'+a.replace("#","")+'_pageCounter" id="'+a.replace("#","")+'_pageCounter" value="1" />'),l.children("div:last").append('<input type="button" id="'+a.replace("#","")+'_prev" value="'+h.l10n.get("cart_goback")+'"/>'),l.children("div:last").append('<input type="button" id="'+a.replace("#","")+'_next" value="'+h.l10n.get("cart_gonext")+'"/>'),d=h.l10n.get("form_submit"),(o=l.find("input[type=submit]"))&&(o.data("submitValue")&&(d=o.data("submitValue")),o.remove()),l.children("div:last").append('<input type="button" id="'+a.replace("#","")+'_submit" value="'+d+'"/>'),l.find(a+"_submit").fadeOut(0).css("margin-right","4px"),u(a+"_prev").click(function(){var t=parseInt(u(a+"_pageCounter").val(),10);0<--t&&(u(a+"_pageCounter").attr("value",t),i(t))}).css("margin-right","4px"),u(a+"_next").click(t).css("margin-right","4px"),i(1,1),function(){t()}):(d=l.find("input[type=submit]").attr("value"),l.find("input[type=submit]").after('<input type="button" id="'+a.replace("#","")+'_submit" value="'+d+'"/>'),l.find("input[type=submit]").remove(),function(){h.imForm.submit(a,e)}),u(a+"_submit").click(function(){h.imForm.submit(a,e)}),l.submit(function(){return c=!1,n(),!1}),l.find("input").keypress(function(t){40==t.keyCode?c=!0:13==t.which&&(c||n(),c=!1)}).focus(function(){c=!1})},lockCopyPaste:function(t){u(t).find("input[class*=equalTo]").each(function(){for(var t,e=u(this).attr("class").split(" "),i=function(t){return t.preventDefault(),!1},n=0;n<e.length;n++)"equalTo"==e[n].substring(0,7)&&(t=e[n].substring(8,e[n].length-1),u("#"+t).on("contextmenu cut copy paste",i))}),u(t).find("input[class*=equalTo]").on("contextmenu cut copy paste",function(t){return t.preventDefault(),!1})},validate:function(o,l){function a(t,e){if(null!==t){var i=u(t).is("input[type=radio]")?u(t).parent().parent().parent().parent().find("label").find("span").html():0<u("label[for="+u(t).attr("id")+"] span").length?u("label[for="+u(t).attr("id")+"] span").html():0<u("label[for="+u(t).attr("id")+"]").length?u("label[for="+u(t).attr("id")+"]").html():u(t).attr("placeholder");if(u(t).addClass(h.imForm.constants.mark),u(t).is(":radio")&&u(t).css("border","none"),null!=e&&"form_mandatory"==e&&u(t).addClass("mandatoryInvalid"),null!=e&&"form_captcha"==e&&u(t).addClass("captchaInvalid"),null!=e&&(!d||l.showAll)){d=!0;var n="";if(Array.isArray(e)){"form_password"==e[0]&&(null==l.classes?l.classes="textLeft":l.classes=l.classes+=" textLeft");for(var o=0;o<=e.length;o++)var a=h.l10n.get(e[o]),n=n+(a="form_password_length"==e[o]&&-1!==a.indexOf("{0}")?a.replace("{0}",h.passwordpolicy.getMinimumCharacters()):a)+"<br>";"<br><br>"==n.substring(n.length-8)&&(n=n.substring(0,n.length-8))}else n=h.l10n.get(e);if(null!=i){for(var r,s=!0;":"==i.charAt(i.length-1)||"*"==i.charAt(i.length-1)||" "==i.charAt(i.length-1);)i=i.substr(0,i.length-1);try{n=n.replace(/\[FIELD\]/g,"'"+i+"'")}catch(t){}switch(l.type){case"alert":alert(n);break;case"popup":h.utils.popup({text:n,width:"30%"});break;default:u(t).attr("class")&&u(t).attr("class").match(/datePicker\[(.*),([\d]{1})\]/)&&0!=u(t).next("span").find("img.imDatePickerIcon").is("img")?r=u(t).next("span").find(".imDatePickerIcon"):u(t).is("input[type=radio]")?(u(t).one("click",function(){u("[tiptarget="+u(this).attr("id").substring(0,u(this).attr("id").lastIndexOf("_"))+"_target]").remove(),u("label[for="+u(t).attr("id").substring(0,u(t).attr("id").lastIndexOf("_"))+"] span").removeClass(h.imTip.constants.locked).attr("id","")}),(r=u(t).parent().parent().parent()).attr("id",u(t).attr("id").substring(0,u(t).attr("id").lastIndexOf("_"))+"_target"),0<u("[tiptarget="+u(t).attr("id").substring(0,u(t).attr("id").lastIndexOf("_"))+"_target]").length&&(r=null)):r=u(t).next("img").is("img")?(s=u(t),u(t).next("img")):u(t).nextAll("iframe.imFrame\\["+u(t).attr("id")+"\\]").is("iframe")?(s=u(t),u(t).nextAll("iframe.imFrame\\["+u(t).attr("id")+"\\]")):u(t),null!=r&&(r.removeClass(h.imTip.constants.locked),h.imTip.Show(r,{position:"right",text:n,unique:!1,classes:l.classes,persistant:!0,hideOnFocus:s}))}}}c=!1}}var t,e,c=!0,d=!1,i=u(o).attr("id");"popup"!=(l=u.extend(!0,{type:"tip",showAll:!1,paginate:!1},l)).type&&"alert"!=l.type||(l.showAll=!1),(o=u(o)).find("*").removeClass(h.imForm.constants.mark);return"tip"==l.type&&u("."+h.imTip.constants.classId).remove(),0<o.find("[type=submit]").length&&(t=u(o).find("[type=submit]").attr("value"),o.find("input[type=submit]").attr("disabled",!0).attr("value",h.l10n.get("form_validating"))),0<o.find(i+"_fakebutton2").length&&(e=o.find(id+"_fakebutton2").attr("value"),o.find(i+"_fakebutton2").attr("disabled",!0).attr("value",h.l10n.get("form_validating"))),o.find(".mandatory").removeClass("mandatoryInvalid"),o.find("[class*=striptags]").each(function(){for(var t=u(this).attr("class").split(" "),e=0;e<t.length;e++)"striptags"==t[e].substring(0,9)&&u(this).val(u(this).val().replace(/(<([^>]+)>)/gi,""))}),o.find("[class*=trim]").each(function(){for(var t=u(this).attr("class").split(" "),e=0;e<t.length;e++)"trim"==t[e].substring(0,4)&&u(this).val(u.trim(u(this).val()))}),o.find(".mandatory").not(":checkbox").not(":radio").each(function(){var t=u(this).val();t||0===t||a(this,"form_mandatory")}),o.find(".mandatory:checkbox").each(function(){0==this.checked&&a(this,"form_mandatory")}),o.find(".mandatory:radio").each(function(){0==u(".mandatory[name="+u(this).attr("name")+"]:checked").length&&a(this,"form_mandatory")}),o.find("[class*=equalTo]").each(function(){for(var t,e=u(this).attr("class").split(" "),i=0;i<e.length;i++)"equalTo"==e[i].substring(0,7)&&(t=e[i].substring(8,e[i].length-1),u(this).val()!=u("#"+t).val())&&a(this,"form_equal")}),o.find("[class*=valMinLength]").each(function(){for(var t,e=u(this).attr("class").split(" "),i=0;i<e.length;i++)"valMinLength"==e[i].substring(0,12)&&(t=parseInt(e[i].substring(13,e[i].length-1)),u(this).val().length<t)&&a(this,"form_length")}),o.find("[class*=valLength]").each(function(){for(var t,e=u(this).attr("class").split(" "),i=0;i<e.length;i++)"valLength"==e[i].substring(0,9)&&(t=parseInt(e[i].substring(10,e[i].length-1)),u(this).val().length!=t)&&a(this,"form_length")}),o.find(".valChars").each(function(){""!=u(this).val()&&0==/^\D*$/.test(u(this).val())&&a(this,"form_characters")}),o.find(".valGenTelephone").each(function(){""!=u(this).val()&&0==/^[0-9\-\.\/\(\)\s]*$/.test(u(this).val())&&a(this,"form_telephone")}),o.find(".valTelephone").each(function(){""!=u(this).val()&&0==/^[0-9 \-\+\.\/]*$/.test(u(this).val())&&a(this,"form_telephone")}),o.find(".valUSTelephone").each(function(){""!=u(this).val()&&0==/^\([1-9]\d{2}\)\s?\d{3}\-\d{4}$/.test(u(this).val())&&a(this,"form_telephone")}),o.find(".valDate").each(function(){""!=u(this).val()&&0==/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{2}$/.test(u(this).val())&&a(this,"form_date")}),o.find(".valDate2").each(function(){""!=u(this).val()&&0==/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{2,4}$/.test(u(this).val())&&a(this,"form_date")}),o.find(".valUSDate").each(function(){""!=u(this).val()&&0==/^\d{1,2}(\-|\/|\.)\d{1,2}\1\d{4}$/.test(u(this).val())&&a(this,"form_date")}),o.find("[class*=datePicker]").each(function(){var t=u(this),e=(t.attr("class").match(/datePicker\[(.*),([\d]{1})\]/),u(this).attr("data-format"));""!=t.val()&&""!=e&&(e="^"+(e=e.replace(/\//g,"\\/").replace(/\s/g,"\\s+").replace(/\-/g,"\\-").replace(/\./g,"\\.").replace(/\,/g,"\\,").replace(/dddd/g,"[^\\§]+").replace(/ddd/g,"[^\\§]+").replace(/d{1,2}/g,"\\d{1,2}").replace(/§/g,"d").replace(/yyyy/g,"\\d{4}").replace(/yy/g,"\\d{2}").replace(/MMMM/g,"[^\\d]+").replace(/MMM/g,"[^\\d]+").replace(/MM/g,"\\d{2}").replace(/M/g,"\\d{1,2}"))+"$",new RegExp(e).test(u(this).val())||a(this,"form_date"))}),o.find("[class*=valCDate]").each(function(){for(var t,e=u(this).attr("class").split(" "),i=0;i<e.length;i++)""!=u(this).val()&&"valCDate"==e[i].substring(0,8)&&(t="^"+(t=(t=e[i].substring(9,e[i].length-1)).replace(/\_/g,"\\s").replace(/\//g,"\\/").replace(/\-/g,"\\-").replace(/\./g,"\\.").replace(/\,/g,"\\,").replace(/dddd/g,"[^\\d]+").replace(/ddd/g,"[^\\d]+").replace(/d{1,2}/g,"\\d{1,2}").replace(/yyyy/g,"\\d{4}").replace(/yy/g,"\\d{2}").replace(/MMMM/g,"[^\\d]+").replace(/MMM/g,"[^\\d]+").replace(/MM/g,"\\d{2}").replace(/M/g,"\\d{1,2}"))+"$",new RegExp(t).test(u(this).val())||a(this,"form_date"))}),o.find(".valEmail").each(function(){var t=u(this).val();0<t.length&&!h.utils.isValidEmail(t)&&a(this,"form_email")}),o.find(".valPassword").each(function(){var t=u(this),e=t.val();0<e.length&&t.hasClass("requirePolicy")&&!h.passwordpolicy.isValidPassword(e)&&a(this,h.passwordpolicy.getPolicy())}),o.find(".valCF").each(function(){u(this).val(u(this).val().toUpperCase()),""!=u(this).val()&&0==/^[A-Z]{6}(\d{2}[A-Z](\d{2}[A-Z](\d{3}|\d{2}[A-Z]|\d[A-Z]{2}|[A-Z]{3})|\d[A-Z]{5}|[A-Z]{6})|\d[A-Z]{8}|[A-Z]{9})[A-Z]$/.test(u(this).val())&&0==/^[0-9]+$/.test(u(this).val())&&a(this,"form_CF")}),o.find(".valURL").each(function(){""!=u(this).val()&&0==/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(u(this).val())&&a(this,"form_URL")}),o.find(".valUSZIP").each(function(){u(this).val(u(this).val().toUpperCase()),""!=u(this).val()&&0==/(^\d{5}$)|(^\d{5}-\d{4}$)/.test(u(this).val())&&a(this,"form_format")}),o.find("[class*=valCustom]").each(function(){for(var t,e=u(this).attr("class").split(" "),i=0;i<e.length;i++)""!=u(this).val()&&"valCustom"==e[i].substring(0,9)&&(t=function(t){for(var e="",i=0;i<t.length;i++)switch(t.charAt(i)){case"N":e+="[0-9]{1}";break;case"F":e+="[0-9]{0,1}";break;case"A":e+="[a-zA-Z]{1}";break;case"Z":e+="[a-zA-Z]{0,1}";break;default:e+=("[]_\\(){}-.+*?".indexOf(t.charAt(i))?"\\":"")+t.charAt(i)}return e="^"+e+"$",new RegExp(e)}(t=e[i].substring(10,e[i].length-1)),""!=u(this).val())&&""!=u(this).val()&&0==t.test(u(this).val())&&a(this,"form_format")}),o.find("[class*=valVAT]").each(function(){return!0}),o.find("input.valDisclaimer").each(function(){this.checked||a(u(this),"form_err_disclaimer")}),o.find("input[data-extensions]").each(function(){var t,e,i=u(this),n=!1,o=i.val(),i=i.attr("data-extensions");if(i&&o){for(t=i.split(","),e=0;e<t.length;e++)o.endsWith("."+t[e])&&(n=!0);n||a(u(this),"form_format")}}),h.imForm.checkCaptcha(o)||(h.imForm.resetCaptcha(o),a(h.imForm.getCaptchaField(o),"form_captcha")),o.find("input[type=submit]").attr("disabled",!1).attr("value",t),o.find(i+"_fakebutton2").attr("disabled",!1).attr("value",e),o.find("[class*=valQuestion]").each(function(){var n,t=u(this),e=t.attr("class"),i="showPage"===l.feedbackMode?u(o).attr("action"):l.phpAction;e.match(/valQuestion\[([A-Za-z0-9]+)\]/),h.utils.isOnline()?""!=RegExp.$1&&(n=t,u.ajax({type:"POST",url:i,data:{action:"check_answer",id:RegExp.$1,answer:n.val()},async:!1,cache:!1,success:function(t,e,i){"0"===t&&a(u(n),"form_question")}})):t.attr("data-answer").replace(/\"/g,"'").replace(/\</g,"<").replace(/\>/g,">")!=t.val().replace(/\"/g,"'").replace(/\</g,"<").replace(/\>/g,">")&&a(t,"form_question")}),c},submit:function(e,i){var n=u(e),o=u(e+"_submit");h.imForm.validate(n,i)&&(h.utils.isOnline()?h.imForm.captchaCanSubmit(n).then(function(t){t&&(o.attr("disabled",!0),"showPage"==i.feedbackMode?n.off("submit").submit():h.imForm.ajaxSubmit(e,i))}):h.utils.showOfflineMessage(i.offlineMessage))},ajaxSubmit:function(t,i){var n=u(t),o=u(t+"_submit");return u.ajax({type:"POST",url:i.phpAction,data:new FormData(document.querySelector(t)),cache:!1,contentType:!1,processData:!1}).done(function(t){var e,t=JSON.parse(t);t.status?h.utils.popup({text:h.l10n.get("form_message_submit"),graphics:!0,background:i.messageBackground,backgroundBlur:i.messageBackgroundBlur,width:"30%"}):(e=h.l10n.get("cmn_generic_error"),t.err&&""!=t&&(e+="<br />"+t.err),h.utils.popup({text:e,graphics:!0,background:i.messageBackground,backgroundBlur:i.messageBackgroundBlur,width:"30%"})),n[0].reset(),o.attr("disabled",!1)}),!1}}})}(_jq,x5engine),!function(l,c){"use strict";function r(){function t(t){I&&t.preventDefault()}l.each(k,function(){var t=l(this);t.on("rowEntersInViewport",function(){u(t[0])})}),l("body").on("touchstart",function(){M=!0}),l("body").on("touchend",function(){M=!1,v&&u(v)});var e=!!c.utils.isAddEventListenerPassiveOptionSupported()&&{passive:!1};window.addEventListener("wheel",t,e),window.addEventListener("mousewheel",t,e),window.addEventListener("DOMMouseScroll",t,e),window.addEventListener("MozMousePixelScroll",t,e)}function s(){void 0!==w&&clearInterval(w),w=setInterval(d,500),S||l("#imPageRowScrollButton").fadeOut()}function d(){l("#imPageRowScrollButton").is(":hover")||l("#imPageRowScrollButton").fadeOut()}function u(t,e){if(e=e||!1,M)v=t;else if(void 0!==v&&m===v)v=void 0;else{var i=(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset,n=window.innerHeight,o=t.offsetHeight,a=l(t).offset().top,r=a+o,s=i;if(O||Math.round(a-i)<-1&&1<Math.round(r-(i+n)))return;if(0<i||e){if(s=!(Math.round(i-a)<-1)&&1<Math.round(o-n)?o+a-n:a,Math.abs(T-s)<1||null!=x&&x!=t)return C=t;x=t,T=s;r={duration:h.autoscroll.autoscrollDuration,start:function(){l("body").trigger("fullHeightRowsAutoscrollAnimationInProgress",t)},complete:function(){l("body").trigger("fullHeightRowsAutoscrollAnimationCompleted",t)}};c.utils.scrollTo(s,r)}}}var h,p,f,g,m,v,w,b,y,x,C,k,_,S,M,I,O,T;l.extend(c,{fullHeightRows:(k=[],O=I=M=S=!(_=[]),T=-1,{start:function(t){if(h=l.extend(!0,{scrollingEffect:"none",autoscroll:{active:!1,autoscrollDuration:1e3},scrollButton:{show:!1,url:null,type:"visible",width:20,height:20,distanceBottom:10},bullets:{show:!1,url:null,size:22,position:"right",distanceLeft:10,distanceRight:10}},t),p=l("#imContent"),g=l(".imPageRow:visible:last").offset().top,l(".imPageRow").each(function(){var n=l(this);n.on("rowEntersInViewport",function(){var t,e,i;f=n,h.scrollButton.show&&(t=l("<div />"),e=h.scrollButton,i=(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset,0==l("#imPageRowScrollButton").length&&(t.attr("id","imPageRowScrollButton").width(e.width).height(e.height).css({position:"fixed","z-index":5e3,bottom:e.distanceBottom,left:"calc(50% - "+e.width/2+"px)","background-image":'url("'+e.url+'")',"background-repeat":"no-repeat",cursor:"pointer","background-position":"0 0",display:"none"}),p.append(t)),t.click(function(){T=-1;var t=0<f.nextAll(".imPageRow:first").length?f.nextAll(".imPageRow:first"):null,e=(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset,i=f.offset().top;1<Math.round(i-e)?u(f[0],!0):null!=t&&(u(t[0],!0),f=t)}),"visibleonmousemove"!=h.scrollButton.type&&(0<g-i&&(S=!0,l("#imPageRowScrollButton").fadeIn()),l(".imPageRow:visible:last").on("rowFillsViewport",function(){S=!1,l("#imPageRowScrollButton").fadeOut()})),S=!n.is(l(".imPageRow:visible:last"))||0!=_.length,"visibleonmousemove"==h.scrollButton.type)&&s(),-1==_.indexOf(n)&&_.push(n)}),k.push(n)}),l(".imPageRow:visible:last").on("rowFillsViewport",function(){h.scrollButton.show&&(S=!1,"visibleonmousemove"==h.scrollButton.type)&&s()}),l("body").on("fullHeightRowsAutoscrollAnimationInProgress",function(t,e){I=!0}),l("body").on("fullHeightRowsAutoscrollAnimationCompleted",function(t,e){x=void 0,I=!1,C==(m=e)?C=void 0:null!=C&&u(C)}),l("body").on("pageToTopAnimationInProgress scrollToAnchorAnimationInProgress",function(){T=-1,O=!0}),l("body").on("pageToTopAnimationCompleted scrollToAnchorAnimationCompleted",function(){O=!1}),!c.responsive.isMobileDevice()&&h.autoscroll.active&&r(),h.scrollButton.show&&"visibleonmousemove"==h.scrollButton.type&&l(window).mousemove(function(t){!S||b===t.clientX&&y===t.clientY||(clearInterval(w),w=setInterval(d,500),l("#imPageRowScrollButton").is(":hidden")&&l("#imPageRowScrollButton").fadeIn()),b=t.clientX,y=t.clientY}),h.bullets.show){var e=k.length,i=l("<div />"),n="",o=h.bullets,t=o.position;i.attr("id","imPageRowBullets").width(o.size).height(o.size*e).css({position:"fixed","z-index":5e3,top:"calc(50% - "+o.size*e/2+"px)",left:"right"==t?"auto":o.distanceLeft,right:"left"==t?"auto":o.distanceRight,display:"none"}),p.append(i);for(var a=0;a<e;a++)n+='<div data-row="'+k[a].attr("id")+'"></div>';i.html(n).find("div").css({display:"block","background-image":'url("'+o.url+'")',"background-repeat":"no-repeat",cursor:"pointer","background-position":"0 0"}).width(o.size).height(o.size).click(function(t){t=l("#"+l(t.target).data("row"));u(t[0],!0)}),i.fadeIn(),l.each(k,function(){var t=l(this);t.on("rowFillsHalfViewport",function(){i.find("div").css("background-position","0 0"),i.find('[data-row="'+t.attr("id")+'"]').css("background-position",-o.size+"px 0")})})}c.pageRowsObserver.start()}})})}(_jq,x5engine),!function(wt,bt){"use strict";wt.extend(bt,{gallery:function(t){function H(){var t=u;(++t>=d.length||null===d[t]||void 0===d[t])&&(t=0),_(t,(p||e)&&(null==v||"none"==v.css("display")),!1,!0)}function L(){var t=u;(--t<0||null===d[t]||void 0===d[t])&&(t=d.length-1),_(t,(p||e)&&(null==v||"none"==v.css("display")),!0,!0)}function j(){if(!e){if(e=!0,dt!==null)dt.Play();S.trigger(G)}i=setTimeout(function(){H(),null!==i&&(clearTimeout(i),i=null),j()},d[u].AutoplayTime())}function a(){null!==dt&&dt.Pause(),null!==i&&(clearTimeout(i),i=null,d[u].Stop()),e=!1,S.trigger(Z)}function R(i){var e,t,n;void 0===l.media[i]||null===l.media[i]?(null!==h&&(h.remove(),h=null),"bottom"===l.thumbs.position||"top"===l.thumbs.position?O.width(d.length*s):"embed"!==l.thumbs.position&&"none"!==l.thumbs.position&&O.height(d.length*s)):(0===i&&M.prepend(bt.settings.imLoadingAnimation),e=d.length,t=l.media[i].width,n=l.media[i].height,t>l.width&&(n=l.width/t*n,t=l.width),n>l.height&&(t=l.height/n*t,n=l.height),new bt.mediaObject(wt.extend(l.media[i],{showControls:l.media[i].showControls||p,touchDevice:p,ignoreVerticalScroll:!0,contentWidth:o().width,contentHeight:o().height,width:t,height:n,load:function(t){d[e]=t,e===l.startFrom&&(M.find(".imLoadAnim").remove(),null===h&&null!=O&&(h=wt("<div />").css({float:"left"}).width(l.thumbs.size).height(l.thumbs.size).prepend(bt.settings.imLoadingAnimation),O.append(h)),_(l.startFrom),!0===l.autoplay)&&j();var n=t.GetThumb();n.click(function(){a(),_(e,("embed"!==l.thumbs.position||p)&&(!v||"none"==v.css("display")))}).css({float:"left",display:"none",cursor:"pointer"}).width(l.thumbs.size).height(l.thumbs.size),"bottom"==l.thumbs.position||"top"==l.thumbs.position?n.css("margin","0 "+Math.ceil(r)+"px 0 "+Math.floor(r)+"px"):"left"!=l.thumbs.position&&"right"!=l.thumbs.position||n.css("margin",Math.ceil(r)+"px 0 "+Math.floor(r)+"px 0"),"embed"==l.thumbs.position&&n.mouseenter(function(){wt(".im-big-thumb").remove();var e=n.offset().left-M.offset().left,i=wt("<img />").addClass("im-big-thumb");M.append(i),i.one("load",function(){var t=Math.min(o().width-i.width(),Math.max(0,e+(l.thumbs.size-i.width())/2));i.css("left",t).fadeIn(250)}).css({position:"absolute",display:"none",bottom:l.controlBar.height}).attr("src",n.attr("src")).attr("alt",""),n.off("mouseleave").mouseleave(function(){null!==i&&i.stop(!1,!1).fadeOut(250,function(){i.remove()})})}),"bottom"!==l.thumbs.position&&"top"!==l.thumbs.position||O.width((d.length+1)*s),h?h.before(n):O&&O.append(n),n.fadeIn(),p&&!l.disableTouch&&d[e].AfterMove(function(t,e){t.preventDefault(),l.controlBar.show&&1<l.media.length&&(m.html(u+1+"/"+d.length),g.stop(!1,!1).fadeIn(),q&&(clearTimeout(q),q=null),q=setTimeout(function(){g.fadeOut()},2e3)),k&&("false"==k.attr("data-hide")?k.attr("data-hide","true"):k.stop(!1,!1).fadeOut(),X&&(clearTimeout(X),X=null),X=setTimeout(function(){k.stop(!1,!1).fadeIn()},7e3)),a(),((Math.abs(e.offsetX)>Math.abs(e.offsetY)?e.offsetX:e.offsetY)<0?H:L)()}),null!==m&&m.html(u+1+"/"+d.length),R(i+1)},error:function(t,e){R(i+1)}})))}function o(){return{width:"right"==l.thumbs.position||"left"==l.thumbs.position?l.width-l.thumbs.size:l.width,height:"top"==l.thumbs.position||"bottom"==l.thumbs.position?l.height-l.thumbs.size:l.height}}var r,s,z,W,N,l=wt.extend(!0,{target:"",media:[],startFrom:0,width:400,height:400,backgroundColor:"#f7f7f7",helperBg:"black",swipeImage:"res/imSwipe.png",thumbsArrowLImage:"res/imArrL.png",thumbsArrowRImage:"res/imArrR.png",thumbsArrowUImage:"res/imArrT.png",thumbsArrowDImage:"res/imArrB.png",description:{backgroundColor:"#444",color:"white",alpha:.8,alignment:"center",fontFamily:"Arial",fontSize:14,fontStyle:"normal",fontWeight:"normal"},thumbs:{position:"none",number:4,size:20},disableTouch:!1,autoplay:!1,music:null,controlBar:{show:!1,height:28,color:"#f7f7f7",alpha:1,image:null},buttons:{playImage:"",pauseImage:"",nextImage:"",prevImage:""},random:!1,fullScreen:!1,slideshow:{active:!1,nextPrevMode:"hover",buttonPrev:{url:"",x:0,y:0,width:0,height:0},buttonNext:{url:"",x:0,y:0,width:0,height:0}},bullets:{show:!1,url:null,size:22,positionX:"center",positionY:"bottom",distanceTop:30,distanceBottom:30,distanceLeft:10,distanceRight:10}},t),c=wt(l.target),d=[],u=null,h=null,p=(navigator.userAgent.toLowerCase(),wt("html").hasClass("touchevents")),f=null,e=!1,i=null,g=null,q=null,n=0,$=0,m=null,v=null,Y=null,U=null,w=null,b=null,y=null,x=null,C=bt.utils.hex2rgb(l.controlBar.color,-50,-50,-50),t=bt.utils.hex2rgb(l.controlBar.color,-20,-20,-20,!0),V=wt.Callbacks(),k=(wt(document),wt("body"),wt(window),null),X=null,G="autoplay_start",Z="autoplay_stop",_=("top"===l.thumbs.position||"bottom"===l.thumbs.position?l.thumbs.number=Math.floor(l.width/l.thumbs.size):l.thumbs.number=Math.floor(l.height/l.thumbs.size),l.thumbs.number=Math.min(l.thumbs.number,l.media.length),r=("bottom"==l.thumbs.position||"top"==l.thumbs.position?l.width:l.height)%(l.thumbs.number*l.thumbs.size),r=Math.round(r/l.thumbs.number/2),s=l.thumbs.size+2*r,function(t,e,i,n){if(u===t||null==t||null===d[t]||void 0===d[t])return!1;null==e&&(e=!0),null==i&&(i=!1),null==n&&(n=!1),d[t].DOMObject().css("display","none"),null!=u?(d[u].DOMObject().after(d[t].DOMObject()),d[u].AnimateOut(M,function(t){t.DOMObject().detach()},i)):M.prepend(d[t].DOMObject()),d[u=t].AnimateIn(M,function(){n&&K(u),V.fire(u)},i),null!==m&&m.html(u+1+"/"+d.length);var o=d[u].GetDescription();null!=o&&""!==o?(null===f&&(f=wt("<div />").attr("id",c.attr("id")+"_description").css({position:"absolute",left:0,right:0,bottom:0,"background-color":l.description.backgroundColor,display:"none",color:l.description.color,"text-align":l.description.alignment,padding:2,"font-family":l.description.fontFamily,"font-size":l.description.fontSize,"font-style":l.description.fontStyle,"font-weight":l.description.fontWeight}),M.append(f)),f.stop(!1,!1).fadeOut(250,function(){f.html(o.replace(/\n/g,"<br />")),e&&f.stop(!1,!1).fadeTo(250,l.description.alpha)}),p||c.mouseenter(function(){null!==f&&f.stop(!1,!1).fadeOut(250)}).mouseleave(function(){null!==f&&f.stop(!1,!1).fadeTo(250,l.description.alpha)})):null!==f&&f.stop(!1,!1).fadeOut(250,function(){f.detach(),f=null})}),K=function(t){var e;return!("embed"!=l.thumbs.position&&"none"!=l.thumbs.position&&l.thumbs.number>=d.length||"embed"==l.thumbs.position&&$/l.thumbs.size>=d.length)&&(t=Math.max(0,Math.min(t,d.length)),void(null!=O&&(t=t,e="embed"!=l.thumbs.position?(t="top"==l.thumbs.position||"bottom"==l.thumbs.position?s*(t+1)-I.width()/2:s*(t+1)-I.height()/2,Math.abs(t%s)):(t=l.thumbs.size*(t+1)-I.width()/2,Math.abs(t%l.thumbs.size)),s/2<e?t-=e:t+=e,"top"==l.thumbs.position||"bottom"==l.thumbs.position||"embed"==l.thumbs.position?O.stop(!1,!1).animate({left:Math.min(0,Math.max(-t,-O.width()+I.width()))}):O.stop(!1,!1).animate({top:Math.min(0,Math.max(-t,-O.height()+I.height()))}))))},S=wt("<div />").css({position:"relative","background-color":l.backgroundColor,margin:"0 auto"}).width(l.width).height(l.height),M=wt("<div />").css({overflow:"hidden",position:"absolute",top:"top"!==l.thumbs.position?"0":"auto",bottom:"bottom"!==l.thumbs.position?"0":"auto",left:"left"!==l.thumbs.position?"0":"auto",right:"right"!==l.thumbs.position?"0":"auto",margin:"0 auto"}).width(o().width).height(o().height),I=wt("<div />"),O=(S.append(M),"embed"!==l.thumbs.position&&S.append(I),c.empty().append(S),"static"==c.css("position")&&c.css("position","relative"),!0!==l.controlBar.show&&"outside"!==l.controlBar.show||p||(v=wt("<div />").css({position:"absolute",top:"outside"===l.controlBar.show?o().height:"auto",bottom:"outside"===l.controlBar.show?"auto":0,left:0,right:0,"background-color":l.controlBar.color}).height(l.controlBar.height),null===l.controlBar.image||void 0===l.controlBar.image||""===l.controlBar.image?v.css("background-image",bt.utils.cssPropertyPrefix("linear-gradient(bottom, "+bt.utils.hex2rgb(l.controlBar.color,-50,-50,-50,!0)+" 0%, "+l.controlBar.color+" 50%, "+bt.utils.hex2rgb(l.controlBar.color,50,50,50,!0)+" 100%)")):v.css("background-image",""!==l.controlBar.image&&void 0!==l.controlBar.image&&null!==l.controlBar.image?"url('"+l.controlBar.image+"')":"none"),"outside"===l.controlBar.show?M.after(v):M.append(v),P=function(){var t=null;""===l.buttons.playImage||void 0===l.buttons.playImage||null===l.buttons.playImage?(t=wt("<div />").css({"background-color":"transparent","border-style":"solid"}),e?t.css({position:"static",margin:(y.height()-16)/2+"px "+y.height()/3+"px","border-width":"0 3px 0 3px","border-color":C,"border-radius":0}).width(4).height(16):t.css({margin:(y.height()-20)/2+"px "+y.height()/3+"px","border-width":10,"border-color":"transparent transparent transparent "+C,"border-radius":3}).width(1).height(1)):t=wt("<img />").attr("src",e?l.buttons.pauseImage:l.buttons.playImage).attr("alt",e?"pause":"play"),y.empty().append(t)},(y=null===l.buttons.playImage||void 0===l.buttons.playImage||""===l.buttons.playImage?wt("<div />").css({float:"left",cursor:"pointer","border-right":"1px solid "+t}).width(l.controlBar.height-1).height(l.controlBar.height):wt("<div />").attr("src",l.buttons.playImage).css({float:"left",cursor:"pointer"})).click(function(t){t.preventDefault(),(e?a:j)()}),P(),S.on(G,P).on(Z,P),v.append(y),P=wt("<span />").html(l.media.length+"/"+l.media.length),v.append(P),B=P.width()+(l.slideshow.active?14:54),P.remove(),P=null,g=wt("<div />").css({position:"absolute",right:0,top:0,"border-left":"1px solid "+t,"text-align":"center",overflow:"hidden"}).height(l.controlBar.height).width(B),v.append(g),g.append(m=wt("<span />").css({color:C,"font-family":"arial","font-size":"11pt","line-height":l.controlBar.height+"px",padding:"0 5px"}).html(l.media.length+"/"+l.media.length)),l.slideshow.active||(w=""===l.buttons.prevImage||null===l.buttons.prevImage||void 0===l.buttons.prevImage?wt("<div />").css({color:C,cursor:"pointer","line-height":l.controlBar.height+"px","font-size":l.controlBar.height-5,"font-family":"Arial",float:"left",padding:"0 0 0 5px"}).html("<"):wt("<img />").attr("src",l.buttons.prevImage).attr("alt",bt.l10n.get("common_prev")).css({cursor:"pointer"}),g.prepend(w.click(function(t){return t.preventDefault(),a(),L(),!1}).on("selectstart mousedown",function(){return!1})),b=""===l.buttons.nextImage||null===l.buttons.nextImage||void 0===l.buttons.nextImage?wt("<div />").css({color:C,cursor:"pointer","line-height":l.controlBar.height+"px","font-size":l.controlBar.height-5,"font-family":"Arial",float:"right",padding:"0 5px 0 0"}).html(">"):wt("<img />").attr("src",l.buttons.nextImage).attr("alt",bt.l10n.get("common_next")).css({cursor:"pointer"}),g.append(b.click(function(t){return t.preventDefault(),a(),H(),!1}).on("selectstart mousedown",function(){return!1}))),l.fullScreen&&(x=wt("<div />").css({position:"absolute",top:0,right:B,"border-left":"1px solid "+t,cursor:"pointer"}).width(l.controlBar.height).height(l.controlBar.height).attr("title","Full Screen").click(function(){for(var t=l.thumbs.position,e=l.media,i=(a(),[]),n=0;n<e.length;n++){var o=d[n].GetDescription();i[n]={url:null!==e[n].hiresUrl&&""!==e[n].hiresUrl&&void 0!==e[n].hiresUrl?e[n].hiresUrl:e[n].url,type:e[n].type,width:e[n].hiresWidth,height:e[n].hiresHeight,thumbUrl:e[n].thumbUrl,description:null!=o?o:"",alt:d[n].GetAlt(),title:d[n].GetTitle()}}bt.imShowBox({showThumbs:"none"!=t,media:i},u,wt(l.target))}),v.append(x),P=wt("<div />"),B=wt("<div />"),t=wt("<div />"),z=wt("<div />"),x.append(P.add(B).add(t).add(z).css({"border-color":C,"border-style":"solid",position:"absolute"}).width(3).height(3)),P.css({top:6,left:6,"border-width":"2px 0 0 2px"}),B.css({top:6,right:6,"border-width":"2px 2px 0 0"}),t.css({bottom:6,right:6,"border-width":"0 2px 2px 0"}),z.css({bottom:6,left:6,"border-width":"0 0 2px 2px"})),n=v.width()-y.outerWidth()-g.outerWidth()-(x?x.outerWidth():0),"outside"!==l.controlBar.show&&(v.hide(0),c.mouseenter(function(){v.stop(!1,!1).fadeTo(250,l.controlBar.alpha)}).mouseleave(function(){v.stop(!1,!1).fadeOut(250)}))),null);switch(l.thumbs.position){case"top":case"bottom":case"left":case"right":I.css({overflow:"hidden",position:"absolute",top:"bottom"!==l.thumbs.position?0:"auto",bottom:"top"!==l.thumbs.position?0:"auto",left:"right"!==l.thumbs.position?0:"auto",right:"left"!==l.thumbs.position?0:"auto"}),I.width("bottom"===l.thumbs.position||"top"===l.thumbs.position?l.width:l.thumbs.size),I.height("bottom"===l.thumbs.position||"top"===l.thumbs.position?l.thumbs.size:l.height),O=wt("<div />"),I.append(O),"bottom"!==l.thumbs.position&&"top"!==l.thumbs.position?O.width(l.thumbs.size):"bottom"!==l.thumbs.position&&"top"!==l.thumbs.position||O.height(l.thumbs.size),O.css({position:"absolute",top:0,left:0});I.offset();var J,Q,tt,et,T,it,nt,ot,A,at,F,rt,E,st=I.width(),lt=I.height(),ct=l.thumbs.number*s;p?l.disableTouch||(tt=!1,et=Q=J=null,I[T=0].addEventListener("touchstart",function(t){O.stop(!0,!1),1==t.touches.length&&(t.preventDefault(),et=t.target,it=Math.round(+O.css("left").replace(/px/g,"")),nt=Math.round(+O.css("top").replace(/px/g,"")),J=t.touches[0].pageX,Q=t.touches[0].pageY),tt=!1}),I[0].addEventListener("touchmove",function(t){t.preventDefault();var e=null;1==t.touches.length&&(t=t.touches[0],tt=!0,O.stop(!0,!1),"top"==l.thumbs.position||"bottom"==l.thumbs.position?(T=J-t.pageX,(0<it-T||it-T<-O.width()+st)&&(T/=2),window.cancelAnimFrame(e),it-=T,e=window.requestAnimFrame(function(){O.css({left:it})}),J=t.pageX):(T=Q-t.pageY,(0<nt-T||nt-T<-O.height()+lt)&&(T/=2),window.cancelAnimFrame(e),nt-=T,e=window.requestAnimFrame(function(){O.css({top:nt})}),Q=t.pageY))}),I[0].addEventListener("touchend",function(t){var e,i;tt?(O.stop(!0,!1),"top"===l.thumbs.position||"bottom"===l.thumbs.position?(i=0,d.length>l.thumbs.number&&(i=+O.css("left").replace(/px/g,""),i=Math.max(-O.width()+st,Math.min(0,i-10*T))),i!==-O.width()+st&&0!==i&&(e=Math.abs(i%s),s/2<e?i-=s-e:i+=e),O.animate({left:i},{duration:1e3,easing:"iOsSwing"})):(i=0,d.length>l.thumbs.number&&(i=+O.css("top").replace(/px/g,""),i=Math.max(-O.height()+lt,Math.min(0,i-10*T))),i!==-O.height()+lt&&0!==i&&(e=Math.abs(i%s),s/2<e?i-=s-e:i+=e),O.animate({top:i},{duration:1e3,easing:"iOsSwing"})),T=0):null!==et&&(wt(et).click(),et=null)})):l.media.length>l.thumbs.number&&("top"===l.thumbs.position||"bottom"===l.thumbs.position?(ot=I.height(),A=wt("<img />").css({cursor:"pointer",left:0,position:"absolute",display:"none"}).click(function(){var t=+O.css("left").replace(/px/g,"");t-=t%s,O.stop(!1,!1).animate({left:Math.min(0,t+ct)})}).one("load",function(){I.append(A),A.css("top",(ot-A.height())/2)}).attr("src",l.thumbsArrowLImage).attr("alt",bt.l10n.get("common_prev")),at=wt("<img />").width(22).css({cursor:"pointer",right:0,position:"absolute",display:"none"}).click(function(){var t=+O.css("left").replace(/px/g,"");t-=t%s,O.stop(!1,!1).animate({left:Math.max(-O.width()+st,t-ct)})}).one("load",function(){I.append(at),at.css("top",(ot-at.height())/2)}).attr("src",l.thumbsArrowRImage).attr("alt",bt.l10n.get("common_next")),I.mouseenter(function(){A.add(at).stop(!1,!1).fadeTo(250,.925)}).mouseleave(function(){A.add(at).stop(!1,!1).fadeOut(250)})):(F=wt("<img />"),rt=I.width(),I.append(F),F.height(22).css({cursor:"pointer",top:0,position:"absolute",display:"none"}).click(function(){var t=+O.css("top").replace(/px/g,"");t-=t%s,O.animate({top:Math.min(0,t+ct)})}).one("load",function(){I.append(F),F.css("left",(rt-F.width())/2)}).attr("src",l.thumbsArrowUImage).attr("alt",bt.l10n.get("common_prev")),E=wt("<img />"),I.append(E),E.height(22).css({cursor:"pointer",bottom:0,position:"absolute",display:"none"}).click(function(){var t=+O.css("top").replace(/px/g,"");t-=t%s,O.animate({top:Math.max(-O.height()+lt,t-ct)})}).one("load",function(){I.append(E),E.css("left",(rt-E.width())/2)}).attr("src",l.thumbsArrowDImage).attr("alt",bt.l10n.get("common_next")),I.mouseenter(function(){F.add(E).stop(!1,!1).fadeTo(250,.925)}).mouseleave(function(){F.add(E).stop(!1,!1).fadeOut(250)})));break;case"embed":l.controlBar.show&&!p&&(W=!1,N=0,$=l.width-(l.slideshow.active?110:180),(W=($-=$%l.thumbs.size)/l.thumbs.size<l.media.length&&!p)&&(n-=46),n-=n%l.thumbs.size,N=l.width-n-(W?46:0)-(null!==y?y.width():0)-(null!==x?x.width():0)-(null!==g?g.width():0),N/=2,0<$)&&(I.css({position:"relative",float:"left",overflow:"hidden","margin-top":(l.controlBar.height-l.thumbs.size)/2,"background-color":"#444"}).width(n).height(l.thumbs.size),y.after(I),O=wt("<div />").css({position:"absolute",top:0,left:0}).width(l.thumbs.size*l.media.length),I.append(O),W?(I.before(Y=wt("<div />")),Y.css({"margin-top":(l.controlBar.height-l.thumbs.size)/2+2,"margin-right":3,"margin-left":N,height:0,"border-width":l.thumbs.size/2-2,"border-color":"transparent "+C+" transparent transparent","border-style":"solid",width:0,cursor:"pointer",float:"left","border-radius":3}).click(function(){var t=+O.css("left").replace(/px/g,"");O.animate({left:Math.min(0,t+I.width())})}),I.after(U=wt("<div />")),U.css({"margin-top":(l.controlBar.height-l.thumbs.size)/2+2,"margin-left":3,height:0,"border-width":l.thumbs.size/2-2,"border-color":"transparent transparent transparent "+C,"border-style":"solid",width:0,cursor:"pointer",float:"left","border-radius":3}).click(function(){var t=+O.css("left").replace(/px/g,"");O.animate({left:Math.max(-O.width()+I.width(),t-I.width())})})):I.css("margin-left",N))}l.slideshow.active&&"none"!=l.slideshow.nextPrevMode&&!p&&(wt("<img />").one("load",function(){var t=wt(this);S.append(w=t.css("display","none")),w.css({position:"absolute",top:(o().height-l.slideshow.buttonPrev.height)/2+l.slideshow.buttonPrev.y,left:l.slideshow.buttonPrev.x,display:"visible"==l.slideshow.nextPrevMode?"block":"none",cursor:"pointer"}).click(function(t){t.preventDefault(),a(),L()})}).attr("src",l.slideshow.buttonPrev.url).attr("alt",bt.l10n.get("common_prev")),wt("<img />").one("load",function(){var t=wt(this);S.append(b=t.css("display","none")),b.css({position:"absolute",top:(o().height-l.slideshow.buttonNext.height)/2+l.slideshow.buttonNext.y,right:l.slideshow.buttonNext.x,display:"visible"==l.slideshow.nextPrevMode?"block":"none",cursor:"pointer"}).click(function(t){t.preventDefault(),a(),H()})}).attr("src",l.slideshow.buttonNext.url).attr("alt",bt.l10n.get("common_next")),"hover"==l.slideshow.nextPrevMode)&&c.mouseenter(function(){w.add(b).stop(!1,!1).fadeTo(250,.999)}).mouseleave(function(){w.add(b).stop(!1,!1).fadeOut(250)}),!l.disableTouch&&p&&1<l.media.length&&(k=wt('<div data-hide="false" />').css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(wt("<div />").css({background:l.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0,"z-index":10}).fadeTo(0,.75)).append(wt("<div />").css({background:"transparent url('"+l.swipeImage+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0,"z-index":10})).attr("data-hide","true"),M.append(k),m=wt("<div />").css({position:"absolute",color:"white","line-height":"30px",top:0,bottom:0,left:0,right:0,"z-index":10}),g=wt("<div />").css({position:"absolute",bottom:0,right:0,display:"none","z-index":10}).width(30).height(30).append(wt("<div />").css({background:l.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0,"z-index":10}).fadeTo(0,.75)).append(m),M.append(g));var dt=null;if(null!==l.music&&void 0!==l.music&&(dt=new bt.mediaObject({type:"audio",url:l.music})),l.bullets.show&&l.bullets.url&&1<l.media.length){var ut=wt("<div />"),D=l.bullets,P=D.positionX,B=D.positionY,t=l.media.length*D.size;if(bt.responsive.isDesktopMode()||t<o().width){ut.width(t).height(D.size).css({position:"absolute",top:"top"==B?l.bullets.distanceTop:"center"==B?o().height/2-D.size/2:"auto",bottom:"bottom"==B?l.bullets.distanceBottom:"auto",left:"left"==P?l.bullets.distanceLeft:"center"==P?o().width/2-t/2:"auto",right:"right"==P?l.bullets.distanceRight:"auto"}),M.append(ut);for(var ht="",pt=0;pt<l.media.length;pt++)ht+='<div data-num="'+pt+'"></div>';ut.html(ht).find("div").css({display:"inline-block","background-image":"url('"+D.url+"')","background-repeat":"no-repeat",cursor:"pointer","background-position":"0 0"}).width(D.size).height(D.size).click(function(){_(+wt(this).attr("data-num"))}),V.add(function(t){ut.find("div").css("background-position","0 0").eq(t).css("background-position",-D.size+"px 0")})}}if(l.random){for(var ft,gt,mt=l.media,vt=mt.length;vt;ft=Math.round(Math.random()*vt),gt=mt[--vt],mt[vt]=mt[ft],mt[ft]=gt);l.medias=mt}return R(0),{currentItemIndex:function(){return u},onShowMedia:function(t){return V.add(t),this},showNext:function(){return H(),this},showPrev:function(){return L(),this},stopAutoplay:function(){return a(),this},showMedia:function(t){return _(t,!0,!1,!0),this}}}})}(_jq,x5engine),!function(u,h){"use strict";u.extend(h,{imGrid:{cell:function(i){function t(){var t=i.offset();n=t.top,o=n+i.outerHeight()}function e(){var t=i.offset();a=t.left,r=a+i.outerWidth()}var n,o,a,r,s,l,c=!1;i=u(i);this.height=function(t){if(null==t)return i.height();i.height(t-(i.outerHeight()-i.height()))},this.pushY=function(t){i.css("top").match(/^([0-9]+)[a-z]*$/);var e=+RegExp.$1;i.css("top",(e+=t)+"px")},this.html=function(t){if(null==t)return i.html();i.html(t)},this.isAbsolute=function(t){if(null==t)return c;c=t},this.sy=function(){return t(),n},this.ey=function(){return t(),o},this.sx=function(){return e(),a},this.ex=function(){return e(),r},i.offset().top,s=i.css("height"),i.css("height","auto"),l=i.height(),0<i.find("[class*=imCpt]").not("iframe").length&&(l+=30),i.css("height",s),s=l,i.height()<s&&i.height(s)},init:function(){if(h.settings.imGrid.enabled){var t,e,i,n,o=[],a=[],r=u("#imFooPad"),s=0;for(0<r.length&&(i=(n=r.offset().top)+r.innerHeight()),u("[class*=imGrid]").each(function(){var t,e,i=u(this).attr("class");/imGrid\[[0-9]+,\s*[0-9]+[,]*\s*[0-9]*\]/.test(i)&&(i.match(/imGrid\[([0-9]+),\s*([0-9]+)[,]?\s*([0-9]*)\]/),i=+RegExp.$1,t=+RegExp.$2,null==o[t]&&(o[t]=[]),null==a[i]&&(a[i]=[]),(e=new h.imGrid.cell(this)).isAbsolute(1==+RegExp.$3),o[t][o[t].length]=e,a[i][a[i].length]=e)}),t=0;t<o.length;t++)if(null!=o[t]){for(e=s=0;e<o[t].length;e++){if(o[t][e].isAbsolute()&&0!==t)for(var l=0;l<o[t-1].length;l++){var c=o[t-1][l],d=o[t][e];c.ey()>d.sy()&&(c.sx()<d.ex()||c.ex()>d.sx())&&d.pushY(c.ey()-d.sy())}o[t][e].ey()>s&&(s=o[t][e].ey())}for(e=0;e<o[t].length;e++)o[t][e].height(s-o[t][e].sy())}0<r.length&&(i<s?r.remove():r.height(i-n-s-(0<u("#imBtMn").length?u("#imBtMn").outerHeight():0)))}}}})}(_jq,x5engine),!function(s,t,o){"use strict";function i(){l=[];var a=s(o).height(),r=s("#imPageExtContainer").height();s(".imImageSequence").each(function(){var t,e,i,n,o=s(this);"scroll"==(o.data("sequenceType")||"time")&&(t=o.data("sequencePosition")||0,e=o.data("sequenceCount")||1,(i=o.offset().top-a)<0&&(i=0),n=o.offset().top+o.height(),r-a<n&&(n=r-a),n=Math.abs(n-i)/e,l.push({image:o,begin:i+n*t,end:t==e-1?r:i+n*(t+1)}))}),n()}function n(){o.requestAnimationFrame(function(){var i=s(o).scrollTop();s.each(l,function(t,e){e.begin<=i&&e.end>=i?e.image.css("opacity",""):e.image.css("opacity","0")})})}function r(t,e){var i,n;setTimeout(function(){r((t+1)%e.length,e)},e[t].delay),i=t,n=e,o.requestAnimationFrame(function(){s.each(n,function(t,e){t==i?(e.image.removeClass("hidden"),e.image.removeClass("out"),e.image.addClass("in")):e.image.hasClass("in")?(e.image.removeClass("in"),e.image.addClass("out")):(e.image.removeClass("out"),e.image.addClass("hidden"))})})}var l;s.extend(t,{imageSequence:(l=[],{start:function(){i(),0<l.length&&(s(o).resize(i),s(o).scroll(n));a={},s(".imImageSequence").each(function(){var t,e,i,n,o=s(this);"time"==(o.data("sequenceType")||"time")&&(t=o.data("sequenceId")||"",e=o.data("sequencePosition")||0,i=o.data("sequenceElementDelay")||6e3,(n=a[t]||[])[e]={image:o,delay:i},a[t]=n)});var a,t,e=a;for(t in e)r(0,e[t])}})})}(_jq,x5engine,window),!function(C,k){"use strict";window.requestAnimFrame,window.cancelAnimFrame;var _=k.utils,g=k.settings;C.extend(k,{imagefx:{opacityIn:function(t,e){C(t).mouseenter(function(){C(this).stop(!1,!1).fadeTo(null,1)}).mouseleave(function(){C(this).stop(!1,!1).fadeTo(null,e)}).fadeTo(0,e)},opacityOut:function(t,e){C(t).mouseleave(function(){C(this).stop(!1,!1).fadeTo(null,1)}).mouseenter(function(){C(this).stop(!1,!1).fadeTo(null,e)})},border:function(t,i,e){function n(t,e){o.css(a,"0 0 0 "+t+"px "+i)}var o=C(t),a=_.supportsCSS("boxShadow");(o=o.parents(".template-object-wrapper").length?o.parents(".template-object-wrapper").first():o).on("mouseenter",function(){o.stop(!1,!1).animate({"fake-property":e},{step:n})}).on("mouseleave",function(t){o.stop(!1,!1).animate({"fake-property":0},{step:n})})},glow:function(t,e,i){i=i||"#FF9900",e=e||5;function n(t,e){o.css(a,"0 0 "+t+"px 0 "+i)}var o=C(t),a=_.supportsCSS("boxShadow");(o=o.parents(".template-object-wrapper").length?o.parents(".template-object-wrapper").first():o).on("mouseenter",function(){o.stop(!1,!1).animate({"fake-property":e},{step:n})}).on("mouseleave",function(t){o.stop(!1,!1).animate({"fake-property":0},{step:n})})},jump:function(i,t,e,n){n=!!n,i=C(i),t=C(t);function o(){!u&&i.is(":visible")&&(d=i.position(),i.css({position:"absolute",top:d.top,left:d.left,width:i.width(),height:i.height()}),u=!0),r=i.height(),s=r+ +t.css("padding-top").replace(/px/g,"")+ +t.css("padding-bottom").replace(/px/g,""),t.css("min-height",s+"px")}function a(){i.stop(!1,!1).animate({top:d.top,left:d.left},{duration:100,complete:function(){c.css({overflow:"hidden","z-index":l})}})}var r,s,l,c,d={top:0,left:0},u=!1,h=(i.one("load",o),i.parents("[id*=imCell_]").on("imObjectAnimationEnd",o),null),p=0,f=!0;k.utils.onElementResize(t.parent()[0],function(t,e){f||p==t.width?f=f&&!1:(p=t.width,h&&clearTimeout(h),h=setTimeout(function(){u=!1,i.css({position:"",top:"",left:"",width:"",height:""}),o()},50))}),i.parents("[id*=imCell_]").hasClass("animable")||o(),c=i.parents("[id*='imCell']"),l=c.css("z-index"),i.mouseover(function(){c.css({overflow:"visible","z-index":g.zIndex.menuCell+1}),i.stop(!1,!1).animate({top:d.top-r*e/100},{duration:100,complete:function(){n||a()}})}).mouseleave(function(){n&&a()})},rotate:function(t,e,i,n){n=n||.25;var o,a,e=C(e),r=_.supportsCSS("transform"),s=_.supportsCSS("transition"),l=null;t=C(t).css(s,"all "+n+"s ease-in-out 0s").css(r,"none"),r&&s&&(a=t.parents("[id*='imCell']"),o=a.css("z-index"),e.mouseover(function(){a.css({overflow:"visible","z-index":g.zIndex.menuCell+1}),l&&clearTimeout(l),l=setTimeout(function(){t.css(r,"rotate("+i+"deg)")},10)}).mouseleave(function(){t.css(r,"rotate(0deg)"),l&&clearTimeout(l),l=setTimeout(function(){a.css({overflow:"hidden","z-index":o})},1e3*n)}))},overlay:function(t,e,i,n){function o(){r=p.position(),s=p.height(),h=p.width(),u=n.substring(n.indexOf("-")+1),l=n.substring(0,n.indexOf("-")),a.css({width:"",height:""}),c=a[0].width,d=a[0].height,h<c&&(d=Math.ceil(h/c*d),c=h),s<d&&(c=Math.ceil(s/d*c),d=s),u=r.left+("center"==u?(h-c)/2:"right"==u?h-c:0),h=r.top+("center"==l?(s-d)/2:"bottom"==l?s-d:0),a.css({position:"absolute",top:h,left:u,"z-index":3}).width(c).height(d)}var a,r,s,l,c,d,u,h,p=C(t),e=C(e),f=(C("<img />").one("load",function(){a=C("<img />").css("display","none").one("load",function(){p.after(a),o(),a.on("mouseenter",function(){p.triggerHandler("mouseenter")}).on("mouseleave",function(){p.triggerHandler("mouseleave")}),e.on("mouseenter",function(){a.stop(!1,!0).fadeIn(250)}).on("mouseleave",function(){a.stop(!1,!0).fadeOut(250)})}).attr("src",k.settings.currentPath+i)}).attr("src",p.attr("src")),p.parents("[id*=imCell_]").on("imObjectAnimationEnd",o),null),g=0,m=!0;k.utils.onElementResize(e[0],function(t,e){m||g==t.width?m=m&&!1:(g=t.width,f&&clearTimeout(f),f=setTimeout(function(){o()},50))})},innerZoom:function(o,t,a,r,s){null==s&&(s=!0),r=C.extend({family:"tahoma",size:"8pt",color:"black",style:"normal",weight:"normal"},r),o=C(o),t=C(t);_.supportsCSS("opacity");function i(){e=o.width(),u=o.height(),g=o.attr("style")}function l(){s||(m.css("overflow","visible"),m.parent().css("overflow-y","visible"))}function c(){o.stop(!1,!1).animate({width:e*(s?2:1.5),height:u*(s?2:1.5),top:-u/(s?2:3),left:-e/(s?2:3),opacity:0},{complete:function(){w(),o.css("display","none")}})}function d(){o.css("display","block"),o.stop(!1,!1).animate({width:e,height:u,top:0,left:0,opacity:1},{complete:function(){w()}})}function n(){var t,e,i,n;o.parent().is("a")||o.wrap("<div />"),p=o.parent().css({display:"inline-block",position:"relative"}).width(o.width()).height(o.height()-4),f=p.attr("style"),h=C("<span />").css({position:"absolute",top:0,left:0,"font-family":r.family,color:r.color,"font-style":r.style,"font-weight":r.weight,"font-size":r.size,overflow:s?"hidden":"visible","text-align":"center",display:"block",width:"100%","line-height":"normal"}).html(_.htmlspecialchars_decode(a)),p.prepend(h),o.css({position:"absolute",top:0,left:0,"max-width":"none"}),p.is("a")&&p.find("a").length&&p.find("a").click(function(t){t.stopImmediatePropagation()}),"touchstart"in document||"ontouchstart"in document?function t(){p.one("click",function(){return c(),!1}).one("mouseleave.innerZoom",function(){l(),d(),t()})}():(t=o.css(k.utils.cssPropertyPrefix("clip-path")))&&0===t.indexOf("inset")&&t.match(/([\-0-9\.]+)%/g)&&0<+RegExp.$1?(e=(100-+RegExp.$1)/100*Math.max(v.height(),o.height()),i=m.offset(),n=!1,m.on("mousemove.pathInnerZoom",function(t){!n&&t.clientY-i.top<e?(l(),c(),n=!0):n&&t.clientY-i.top>e&&(l(),d(),n=!1)}).on("mouseleave.pathInnerZoom",function(){l(),d(),n=!1})):p.on("mouseenter.normalInnerZoom",function(){l(),c()}).on("mouseleave.normalInnerZoom",function(){l(),d()})}var e,u,h,p=null,f=null,g=null,m=o.parents("[id*='imCell_']"),v=o.parents(".template-object-wrapper"),w=(C("body"),function(){s||(m.css("overflow",""),m.parent().css("overflow-y",""))}),b=(o.parents("[id*=imCell_]").hasClass("animable")||i(),null),y=0,x=!0;k.utils.onElementResize(t[0],function(t,e){x||y==t.width?x=x&&!1:(y=t.width,b&&clearTimeout(b),b=setTimeout(function(){p.off("click.normalInnerZoom mouseleave.normalInnerZoom"),m.off("mousemove.pathInnerZoom mouseleave.pathInnerZoom"),p.is("a")||o.unwrap(),h&&(h.remove(),h=null),o.add(p).removeAttr("style"),g&&o.attr("style",g),f&&p&&(p.attr("style",f),p.is("a"))&&p.css({width:"100%"}),i(),n()},50))}),o.parents("[id*=imCell_]").on("imObjectAnimationEnd",function(){i(),n()}),s&&o.parent().css("overflow","hidden"),e&&u?n():o.one("load",function(){i(),n()})},pulse:function(t,e,i,n){null==n&&(n=!0),t=C(t),e=C(e);function o(){d.css("height",""),d.css("width",""),e.css("min-height",""),r=e.innerWidth()-+e.css("padding-left").replace(/px/g,"")-+e.css("padding-right").replace(/px/g,""),s=e.innerHeight()-+e.css("padding-top").replace(/px/g,"")-+e.css("padding-bottom").replace(/px/g,""),l=t.position(),d.innerWidth(r),s<=0&&(s=d.height()),e.css("min-height",e.innerHeight()+"px")}function a(){t.off("mouseover").on("mouseover",function(){c||(c=!0,t.css({position:"absolute",top:l.top,left:l.left}),n&&u.css("overflow","hidden"),t.stop(!1,!1).animate({width:Math.round(r*(1+i)),height:Math.round(s*(1+i)),top:l.top-s*(i/2),left:l.left-r*(i/2)},{duration:100,complete:function(){t.stop(!1,!1).animate({width:r,height:s,top:l.top,left:l.left},{duration:100,complete:function(){c=!1,u.css("overflow","visible"),t.css({position:"",top:"",left:"",height:"",width:""})}})}}))})}var r,s,l,c=!1,d=t.is("img")?t:t.find("img").first(),u=t.parents("[id*='imCell_'], [id*='imHeader_imCell_'], [id*='imFooter_imCell_'], .template-object-wrapper"),h=(C("body"),0<d.width()&&0<d.height()&&d.attr("src")&&!t.parents("[id*=imCell_]").hasClass("animable")?(o(),a()):d.one("load",function(){o(),a()}),t.parents("[id*=imCell_]").on("imObjectAnimationEnd",function(){o(),a()}),null),p=0,f=!0;k.utils.onElementResize(e[0],function(t,e){f||p==t.width?f=f&&!1:(p=t.width,h&&clearTimeout(h),h=setTimeout(function(){o()},50))})}}})}(_jq,x5engine),!function(){"use strict";var u,e;function l(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||o(),this.isIntersecting=!!t.intersectionRect;var t=this.boundingClientRect,t=t.width*t.height,e=this.intersectionRect,e=e.width*e.height;this.intersectionRatio=t?Number((e/t).toFixed(4)):this.isIntersecting?1:0}function t(t,e){var i,n,o,e=e||{};if("function"!=typeof t)throw new Error("callback must be a function");if(e.root&&1!=e.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(i=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o=o||setTimeout(function(){i(),o=null},n)}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(e.rootMargin),this.thresholds=this._initThresholds(e.threshold),this.root=e.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function i(t,e,i,n){"function"==typeof t.addEventListener?t.addEventListener(e,i,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,i)}function n(t,e,i,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,i,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,i)}function h(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?e.width&&e.height?e:{top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}:o()}function o(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function a(t,e){for(var i=e;i;){if(i==t)return!0;i=p(i)}return!1}function p(t){t=t.parentNode;return t&&11==t.nodeType&&t.host?t.host:t&&t.assignedSlot?t.assignedSlot.parentNode:t}"object"==typeof window&&("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return 0<this.intersectionRatio}}):(u=window.document,e=[],t.prototype.THROTTLE_TIMEOUT=100,t.prototype.POLL_INTERVAL=null,t.prototype.USE_MUTATION_OBSERVER=!0,t.prototype.observe=function(e){var t=this._observationTargets.some(function(t){return t.element==e});if(!t){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},t.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},t.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},t.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},t.prototype._initThresholds=function(t){t=t||[0];return(t=Array.isArray(t)?t:[t]).sort().filter(function(t,e,i){if("number"!=typeof t||isNaN(t)||t<0||1<t)throw new Error("threshold must be a number between 0 and 1 inclusively");return t!==i[e-1]})},t.prototype._parseRootMargin=function(t){t=(t||"0px").split(/\s+/).map(function(t){t=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(t)return{value:parseFloat(t[1]),unit:t[2]};throw new Error("rootMargin must be specified in pixels or percent")});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},t.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(i(window,"resize",this._checkForIntersections,!0),i(u,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in window&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(u,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},t.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,n(window,"resize",this._checkForIntersections,!0),n(u,"scroll",this._checkForIntersections,!0),this._domObserver)&&(this._domObserver.disconnect(),this._domObserver=null)},t.prototype._checkForIntersections=function(){var r=this._rootIsInDom(),s=r?this._getRootRect():o();this._observationTargets.forEach(function(t){var e=t.element,i=h(e),n=this._rootContainsTarget(e),o=t.entry,a=r&&n&&this._computeTargetAndRootIntersection(e,s),t=t.entry=new l({time:window.performance&&performance.now&&performance.now(),target:e,boundingClientRect:i,rootBounds:s,intersectionRect:a});o?r&&n?this._hasCrossedThreshold(o,t)&&this._queuedEntries.push(t):o&&o.isIntersecting&&this._queuedEntries.push(t):this._queuedEntries.push(t)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},t.prototype._computeTargetAndRootIntersection=function(t,e){if("none"!=window.getComputedStyle(t).display){for(var i,n,o,a,r=h(t),s=p(t),l=!1;!l;){var c=null,d=1==s.nodeType?window.getComputedStyle(s):{};if("none"==d.display)return;if(s==this.root||s==u?(l=!0,c=e):s!=u.body&&s!=u.documentElement&&"visible"!=d.overflow&&(c=h(s)),c&&(d=c,c=r,a=o=n=i=void 0,i=Math.max(d.top,c.top),n=Math.min(d.bottom,c.bottom),o=Math.max(d.left,c.left),d=Math.min(d.right,c.right),a=n-i,!(r=0<=(c=d-o)&&0<=a&&{top:i,bottom:n,left:o,right:d,width:c,height:a})))break;s=p(s)}return r}},t.prototype._getRootRect=function(){var t,e;return e=this.root?h(this.root):(e=u.documentElement,t=u.body,{top:0,left:0,right:e.clientWidth||t.clientWidth,width:e.clientWidth||t.clientWidth,bottom:e.clientHeight||t.clientHeight,height:e.clientHeight||t.clientHeight}),this._expandRectByRootMargin(e)},t.prototype._expandRectByRootMargin=function(i){var t=this._rootMarginValues.map(function(t,e){return"px"==t.unit?t.value:t.value*(e%2?i.width:i.height)/100}),t={top:i.top-t[0],right:i.right+t[1],bottom:i.bottom+t[2],left:i.left-t[3]};return t.width=t.right-t.left,t.height=t.bottom-t.top,t},t.prototype._hasCrossedThreshold=function(t,e){var i=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(i!==n)for(var o=0;o<this.thresholds.length;o++){var a=this.thresholds[o];if(a==i||a==n||a<i!=a<n)return!0}},t.prototype._rootIsInDom=function(){return!this.root||a(u,this.root)},t.prototype._rootContainsTarget=function(t){return a(this.root||u,t)},t.prototype._registerInstance=function(){e.indexOf(this)<0&&e.push(this)},t.prototype._unregisterInstance=function(){var t=e.indexOf(this);-1!=t&&e.splice(t,1)},window.IntersectionObserver=t,window.IntersectionObserverEntry=l))}(),!function(l,t){var O={dir:"",bindClass:"color",binding:!0,preloading:!0,install:function(){O.addEvent(window,"load",O.init)},init:function(){O.binding&&O.bind(),O.preloading&&O.preload()},getDir:function(){var t;return O.dir||(t=O.detectDir(),O.dir=!1!==t?t:"jscolor/"),O.dir},detectDir:function(){for(var t,e=location.href,i=document.getElementsByTagName("base"),n=0;n<i.length;n+=1)i[n].href&&(e=i[n].href);for(i=document.getElementsByTagName("script"),n=0;n<i.length;n+=1)if(i[n].src&&/(^|\/)jscolor\.js([?#].*)?$/i.test(i[n].src))return(t=new O.URI(i[n].src).toAbsolute(e)).path=t.path.replace(/[^\/]+$/,""),t.query=null,t.fragment=null,t.toString();return!1},bind:function(){for(var t,e=new RegExp("(^|\\s)("+O.bindClass+")(\\s*(\\{[^}]*\\})|\\s|$)","i"),i=document.getElementsByTagName("input"),n=0;n<i.length;n+=1)if(!i[n].color&&i[n].className&&(t=i[n].className.match(e))){var o={};if(t[4])try{o=new Function("return ("+t[4]+")")()}catch(t){}i[n].color=new O.color(i[n],o)}},preload:function(){for(var t in O.imgRequire)O.imgRequire.hasOwnProperty(t)&&O.loadImage(t)},images:{pad:[181,101],sld:[16,101],cross:[15,15],arrow:[7,11]},imgRequire:{},imgLoaded:{},requireImage:function(t){O.imgRequire[t]=!0},loadImage:function(t){O.imgLoaded[t]||(O.imgLoaded[t]=new Image,O.imgLoaded[t].src=O.getDir()+t)},fetchElement:function(t){return"string"==typeof t?document.getElementById(t):t},addEvent:function(t,e,i){t.addEventListener?t.addEventListener(e,i,!1):t.attachEvent&&t.attachEvent("on"+e,i)},fireEvent:function(t,e){var i;t&&(document.createEvent?((i=document.createEvent("HTMLEvents")).initEvent(e,!0,!0),t.dispatchEvent(i)):document.createEventObject?(i=document.createEventObject(),t.fireEvent("on"+e,i)):t["on"+e]&&t["on"+e]())},getElementPos:function(t){var e=t,i=t,n=0,o=0;if(e.offsetParent)for(;n+=e.offsetLeft,o+=e.offsetTop,e=e.offsetParent;);for(;(i=i.parentNode)&&"BODY"!==i.nodeName.toUpperCase();)n-=i.scrollLeft,o-=i.scrollTop;return[n,o]},getElementSize:function(t){return[t.offsetWidth,t.offsetHeight]},getRelMousePos:function(t){var e=0,i=0;return"number"==typeof(t=t||window.event).offsetX?(e=t.offsetX,i=t.offsetY):"number"==typeof t.layerX&&(e=t.layerX,i=t.layerY),{x:e,y:i}},getViewPos:function(){return"number"==typeof window.pageYOffset?[window.pageXOffset,window.pageYOffset]:document.body&&(document.body.scrollLeft||document.body.scrollTop)?[document.body.scrollLeft,document.body.scrollTop]:document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)?[document.documentElement.scrollLeft,document.documentElement.scrollTop]:[0,0]},getViewSize:function(){return"number"==typeof window.innerWidth?[window.innerWidth,window.innerHeight]:document.body&&(document.body.clientWidth||document.body.clientHeight)?[document.body.clientWidth,document.body.clientHeight]:document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?[document.documentElement.clientWidth,document.documentElement.clientHeight]:[0,0]},URI:function(t){function n(t){for(var e,i="";t;)"../"===t.substr(0,3)||"./"===t.substr(0,2)?t=t.replace(/^\.+/,"").substr(1):"/./"===t.substr(0,3)||"/."===t?t="/"+t.substr(3):"/../"===t.substr(0,4)||"/.."===t?(t="/"+t.substr(4),i=i.replace(/\/?[^\/]*$/,"")):"."===t||".."===t?t="":(e=t.match(/^\/?[^\/]*/)[0],t=t.substr(e.length),i+=e);return i}this.scheme=null,this.authority=null,this.path="",this.query=null,this.fragment=null,this.parse=function(t){t=t.match(/^(([A-Za-z][0-9A-Za-z+.-]*)(:))?((\/\/)([^\/?#]*))?([^?#]*)((\?)([^#]*))?((#)(.*))?/);return this.scheme=t[3]?t[2]:null,this.authority=t[5]?t[6]:null,this.path=t[7],this.query=t[9]?t[10]:null,this.fragment=t[12]?t[13]:null,this},this.toString=function(){var t="";return null!==this.scheme&&(t=t+this.scheme+":"),null!==this.authority&&(t=t+"//"+this.authority),null!==this.path&&(t+=this.path),null!==this.query&&(t=t+"?"+this.query),t=null!==this.fragment?t+"#"+this.fragment:t},this.toAbsolute=function(t){var t=new O.URI(t),e=this,i=new O.URI;return null!==t.scheme&&(null!==e.scheme&&e.scheme.toLowerCase()===t.scheme.toLowerCase()&&(e.scheme=null),null!==e.scheme?(i.scheme=e.scheme,i.authority=e.authority,i.path=n(e.path),i.query=e.query):(null!==e.authority?(i.authority=e.authority,i.path=n(e.path),i.query=e.query):(""===e.path?(i.path=t.path,null!==e.query?i.query=e.query:i.query=t.query):("/"===e.path.substr(0,1)?i.path=n(e.path):(null!==t.authority&&""===t.path?i.path="/"+e.path:i.path=t.path.replace(/[^\/]+$/,"")+e.path,i.path=n(i.path)),i.query=e.query),i.authority=t.authority),i.scheme=t.scheme),i.fragment=e.fragment,i)},t&&this.parse(t)},color:function(p,t){for(var e in this.required=!0,this.adjust=!0,this.hash=!1,this.caps=!0,this.slider=!0,this.valueElement=p,this.styleElement=p,this.onImmediateChange=null,this.hsv=[0,0,1],this.rgb=[1,1,1],this.minH=0,this.maxH=6,this.minS=0,this.maxS=1,this.minV=0,this.maxV=1,this.pickerOnfocus=!0,this.pickerMode="HSV",this.pickerPosition="bottom",this.pickerSmartPosition=!0,this.pickerButtonHeight=20,this.pickerClosable=!1,this.pickerCloseText="Close",this.pickerButtonColor="ButtonText",this.pickerFace=10,this.pickerFaceColor="ThreeDFace",this.pickerBorder=1,this.pickerBorderColor="ThreeDHighlight ThreeDShadow ThreeDShadow ThreeDHighlight",this.pickerInset=1,this.pickerInsetColor="ThreeDShadow ThreeDHighlight ThreeDHighlight ThreeDShadow",this.pickerZIndex=1e4,t)t.hasOwnProperty(e)&&(this[e]=t[e]);function c(t,e,i){if(null===t)return[i,i,i];var n=Math.floor(t),o=i*(1-e),a=i*(1-e*(n%2?t-n:1-(t-n)));switch(n){case 6:case 0:return[i,a,o];case 1:return[a,i,o];case 2:return[o,i,a];case 3:return[o,a,i];case 4:return[a,o,i];case 5:return[i,o,a]}}function f(t){return[2*t.pickerInset+2*t.pickerFace+O.images.pad[0]+(t.slider?2*t.pickerInset+2*O.images.arrow[0]+O.images.sld[0]:0),t.pickerClosable?4*t.pickerInset+3*t.pickerFace+O.images.pad[1]+t.pickerButtonHeight:2*t.pickerInset+2*t.pickerFace+O.images.pad[1]]}function g(){switch(C){case 0:var t=1;break;case 1:t=2}var e=Math.round(x.hsv[0]/6*(O.images.pad[0]-1)),i=Math.round((1-x.hsv[t])*(O.images.pad[1]-1)),n=(O.picker.padM.style.backgroundPosition=x.pickerFace+x.pickerInset+e-Math.floor(O.images.cross[0]/2)+"px "+(x.pickerFace+x.pickerInset+i-Math.floor(O.images.cross[1]/2))+"px",O.picker.sld.childNodes);switch(C){case 0:for(var o=c(x.hsv[0],x.hsv[1],1),a=0;a<n.length;a+=1)n[a].style.backgroundColor="rgb("+o[0]*(1-a/n.length)*100+"%,"+o[1]*(1-a/n.length)*100+"%,"+o[2]*(1-a/n.length)*100+"%)";break;case 1:var r,s=[x.hsv[2],0,0],l=(a=Math.floor(x.hsv[0]))%2?x.hsv[0]-a:1-(x.hsv[0]-a);switch(a){case 6:case 0:o=[0,1,2];break;case 1:o=[1,0,2];break;case 2:o=[2,0,1];break;case 3:o=[2,1,0];break;case 4:o=[1,2,0];break;case 5:o=[0,2,1]}for(a=0;a<n.length;a+=1)r=1-1/(n.length-1)*a,s[1]=s[0]*(1-r*l),s[2]=s[0]*(1-r),n[a].style.backgroundColor="rgb("+100*s[o[0]]+"%,"+100*s[o[1]]+"%,"+100*s[o[2]]+"%)"}}function m(){switch(C){case 0:var t=2;break;case 1:t=1}var e=Math.round((1-x.hsv[t])*(O.images.sld[1]-1));O.picker.sldM.style.backgroundPosition="0 "+(x.pickerFace+x.pickerInset+e-Math.floor(O.images.arrow[1]/2))+"px"}function v(){return O.picker&&O.picker.owner===x}function w(t){var t=O.getRelMousePos(t),e=t.x-x.pickerFace-x.pickerInset,i=t.y-x.pickerFace-x.pickerInset;switch(C){case 0:x.fromHSV(e*(6/(O.images.pad[0]-1)),1-i/(O.images.pad[1]-1),null,s);break;case 1:x.fromHSV(e*(6/(O.images.pad[0]-1)),null,1-i/(O.images.pad[1]-1),s)}}function b(t){var e=O.getRelMousePos(t).y-x.pickerFace-x.pickerInset;switch(C){case 0:x.fromHSV(null,null,1-e/(O.images.sld[1]-1),r);break;case 1:x.fromHSV(null,1-e/(O.images.sld[1]-1),null,r)}}function y(){x.onImmediateChange&&("string"==typeof x.onImmediateChange?new Function(x.onImmediateChange):x.onImmediateChange).call(x)}this.hidePicker=function(){v()&&(delete O.picker.owner,document.getElementsByTagName("body")[0].removeChild(O.picker.boxB))},this.showPicker=function(){if(!v()){var t,e,i,n=O.getElementPos(p),o=O.getElementSize(p),a=O.getViewPos(),r=O.getViewSize(),s=f(this);switch(this.pickerPosition.toLowerCase()){case"left":e=0,i=-(t=1);break;case"right":e=0,i=t=1;break;case"top":t=0,i=-(e=1);break;default:t=0,i=e=1}var l=(o[e]+s[e])/2,a=(s=this.pickerSmartPosition?[-a[t]+n[t]+s[t]>r[t]&&-a[t]+n[t]+o[t]/2>r[t]/2&&0<=n[t]+o[t]-s[t]?n[t]+o[t]-s[t]:n[t],-a[e]+n[e]+o[e]+s[e]-l+l*i>r[e]?-a[e]+n[e]+o[e]/2>r[e]/2&&0<=n[e]+o[e]-l-l*i?n[e]+o[e]-l-l*i:n[e]+o[e]-l+l*i:0<=n[e]+o[e]-l+l*i?n[e]+o[e]-l+l*i:n[e]+o[e]-l-l*i]:[n[t],n[e]+o[e]-l+l*i])[t],r=s[e];if(!O.picker){O.picker={box:document.createElement("div"),boxB:document.createElement("div"),pad:document.createElement("div"),padB:document.createElement("div"),padM:document.createElement("div"),sld:document.createElement("div"),sldB:document.createElement("div"),sldM:document.createElement("div"),btn:document.createElement("div"),btnS:document.createElement("span"),btnT:document.createTextNode(x.pickerCloseText)};for(var c=0;c<O.images.sld[1];c+=4){var d=document.createElement("div");d.style.height="4px",d.style.fontSize="1px",d.style.lineHeight="0",O.picker.sld.appendChild(d)}O.picker.sldB.appendChild(O.picker.sld),O.picker.box.appendChild(O.picker.sldB),O.picker.box.appendChild(O.picker.sldM),O.picker.padB.appendChild(O.picker.pad),O.picker.box.appendChild(O.picker.padB),O.picker.box.appendChild(O.picker.padM),O.picker.btnS.appendChild(O.picker.btnT),O.picker.btn.appendChild(O.picker.btnS),O.picker.box.appendChild(O.picker.btn),O.picker.boxB.appendChild(O.picker.box)}var n=O.picker,u=(n.box.onmouseup=n.box.onmouseout=function(){p.focus()},n.box.onmousedown=function(){k=!0},n.box.onmousemove=function(t){(S||M)&&(S&&w(t),M&&b(t),document.selection?document.selection.empty():window.getSelection&&window.getSelection().removeAllRanges(),y())},"ontouchstart"in window&&(u=function(t){var e={offsetX:t.touches[0].pageX-I.X,offsetY:t.touches[0].pageY-I.Y};(S||M)&&(S&&w(e),M&&b(e),y()),t.stopPropagation(),t.preventDefault()},n.box.removeEventListener("touchmove",u,!1),n.box.addEventListener("touchmove",u,!1)),n.padM.onmouseup=n.padM.onmouseout=function(){S&&(S=!1,O.fireEvent(_,"change"))},n.padM.onmousedown=function(t){switch(C){case 0:0===x.hsv[2]&&x.fromHSV(null,null,1);break;case 1:0===x.hsv[1]&&x.fromHSV(null,1,null)}S=!(M=!1),w(t),y()},"ontouchstart"in window&&n.padM.addEventListener("touchstart",function(t){I={X:t.target.offsetParent.offsetLeft,Y:t.target.offsetParent.offsetTop},this.onmousedown({offsetX:t.touches[0].pageX-I.X,offsetY:t.touches[0].pageY-I.Y})}),n.sldM.onmouseup=n.sldM.onmouseout=function(){M&&(M=!1,O.fireEvent(_,"change"))},n.sldM.onmousedown=function(t){M=!(S=!1),b(t),y()},"ontouchstart"in window&&n.sldM.addEventListener("touchstart",function(t){I={X:t.target.offsetParent.offsetLeft,Y:t.target.offsetParent.offsetTop},this.onmousedown({offsetX:t.touches[0].pageX-I.X,offsetY:t.touches[0].pageY-I.Y})}),f(x));n.box.style.width=u[0]+"px",n.box.style.height=u[1]+"px",n.boxB.style.position="absolute",n.boxB.style.clear="both",n.boxB.style.left=a+"px",n.boxB.style.top=r+"px",n.boxB.style.zIndex=x.pickerZIndex,n.boxB.style.border=x.pickerBorder+"px solid",n.boxB.style.borderColor=x.pickerBorderColor,n.boxB.style.background=x.pickerFaceColor,n.pad.style.width=O.images.pad[0]+"px",n.pad.style.height=O.images.pad[1]+"px",n.padB.style.position="absolute",n.padB.style.left=x.pickerFace+"px",n.padB.style.top=x.pickerFace+"px",n.padB.style.border=x.pickerInset+"px solid",n.padB.style.borderColor=x.pickerInsetColor,n.padM.style.position="absolute",n.padM.style.left="0",n.padM.style.top="0",n.padM.style.width=x.pickerFace+2*x.pickerInset+O.images.pad[0]+O.images.arrow[0]+"px",n.padM.style.height=n.box.style.height,n.padM.style.cursor="crosshair",n.sld.style.overflow="hidden",n.sld.style.width=O.images.sld[0]+"px",n.sld.style.height=O.images.sld[1]+"px",n.sldB.style.display=x.slider?"block":"none",n.sldB.style.position="absolute",n.sldB.style.right=x.pickerFace+"px",n.sldB.style.top=x.pickerFace+"px",n.sldB.style.border=x.pickerInset+"px solid",n.sldB.style.borderColor=x.pickerInsetColor,n.sldM.style.display=x.slider?"block":"none",n.sldM.style.position="absolute",n.sldM.style.right="0",n.sldM.style.top="0",n.sldM.style.width=O.images.sld[0]+O.images.arrow[0]+x.pickerFace+2*x.pickerInset+"px",n.sldM.style.height=n.box.style.height;try{n.sldM.style.cursor="pointer"}catch(t){n.sldM.style.cursor="hand"}n.btn.style.display=x.pickerClosable?"block":"none",n.btn.style.position="absolute",n.btn.style.left=x.pickerFace+"px",n.btn.style.bottom=x.pickerFace+"px",n.btn.style.padding="0 15px",n.btn.style.height="18px",n.btn.style.border=x.pickerInset+"px solid";o=(o=x.pickerInsetColor.split(/\s+/)).length<2?o[0]:o[1]+" "+o[0]+" "+o[0]+" "+o[1];n.btn.style.borderColor=o,n.btn.style.color=x.pickerButtonColor,n.btn.style.font="12px sans-serif",n.btn.style.textAlign="center";try{n.btn.style.cursor="pointer"}catch(t){n.btn.style.cursor="hand"}switch(n.btn.onmousedown=function(){x.hidePicker()},n.btnS.style.lineHeight=n.btn.style.height,C){case 0:var h="hs.png";break;case 1:h="hv.png"}n.padM.style.backgroundImage="url('"+O.getDir()+"cross.gif')",n.padM.style.backgroundRepeat="no-repeat",n.sldM.style.backgroundImage="url('"+O.getDir()+"arrow.gif')",n.sldM.style.backgroundRepeat="no-repeat",n.pad.style.backgroundImage="url('"+O.getDir()+h+"')",n.pad.style.backgroundRepeat="no-repeat",n.pad.style.backgroundPosition="0 0",g(),m(),O.picker.owner=x,document.getElementsByTagName("body")[0].appendChild(n.boxB),O.fireEvent(p,"pickerReady")}},this.importColor=function(){_?this.adjust?!this.required&&/^\s*$/.test(_.value)?(_.value="",n.style.backgroundImage=n.jscStyle.backgroundImage,n.style.backgroundColor=n.jscStyle.backgroundColor,n.style.color=n.jscStyle.color,this.exportColor(o|a)):this.fromString(_.value)||this.exportColor():this.fromString(_.value,o)||(n.style.backgroundImage=n.jscStyle.backgroundImage,n.style.backgroundColor=n.jscStyle.backgroundColor,n.style.color=n.jscStyle.color,this.exportColor(o|a)):this.exportColor()},this.exportColor=function(t){var e;t&o||!_||(e=this.toString(),this.caps&&(e=e.toUpperCase()),this.hash&&(e="#"+e),_.value=e,l(_).triggerHandler("change")),t&a||!n||(n.style.backgroundImage="none",n.style.backgroundColor="#"+this.toString(),n.style.color=.213*this.rgb[0]+.715*this.rgb[1]+.072*this.rgb[2]<.5?"#FFF":"#000"),t&r||!v()||g(),t&s||!v()||m()},this.fromHSV=function(t,e,i,n){null!==t&&(t=Math.max(0,this.minH,Math.min(6,this.maxH,t))),null!==e&&(e=Math.max(0,this.minS,Math.min(1,this.maxS,e))),null!==i&&(i=Math.max(0,this.minV,Math.min(1,this.maxV,i))),this.rgb=c(null===t?this.hsv[0]:this.hsv[0]=t,null===e?this.hsv[1]:this.hsv[1]=e,null===i?this.hsv[2]:this.hsv[2]=i),this.exportColor(n)},this.fromRGB=function(t,e,i,n){null!==t&&(t=Math.max(0,Math.min(1,t))),null!==e&&(e=Math.max(0,Math.min(1,e))),null!==i&&(i=Math.max(0,Math.min(1,i)));t=function(t,e,i){var n=Math.min(Math.min(t,e),i),o=Math.max(Math.max(t,e),i),a=o-n;if(0==a)return[null,0,o];n=t===n?3+(i-e)/a:e===n?5+(t-i)/a:1+(e-t)/a;return[6==n?0:n,a/o,o]}(null===t?this.rgb[0]:t,null===e?this.rgb[1]:e,null===i?this.rgb[2]:i),null!==t[0]&&(this.hsv[0]=Math.max(0,this.minH,Math.min(6,this.maxH,t[0]))),0!==t[2]&&(this.hsv[1]=null===t[1]?null:Math.max(0,this.minS,Math.min(1,this.maxS,t[1]))),this.hsv[2]=null===t[2]?null:Math.max(0,this.minV,Math.min(1,this.maxV,t[2])),e=c(this.hsv[0],this.hsv[1],this.hsv[2]);this.rgb[0]=e[0],this.rgb[1]=e[1],this.rgb[2]=e[2],this.exportColor(n)},this.fromString=function(t,e){t=t.match(/^\W*([0-9A-F]{3}([0-9A-F]{3})?)\W*$/i);return!!t&&(6===t[1].length?this.fromRGB(parseInt(t[1].substr(0,2),16)/255,parseInt(t[1].substr(2,2),16)/255,parseInt(t[1].substr(4,2),16)/255,e):this.fromRGB(parseInt(t[1].charAt(0)+t[1].charAt(0),16)/255,parseInt(t[1].charAt(1)+t[1].charAt(1),16)/255,parseInt(t[1].charAt(2)+t[1].charAt(2),16)/255,e),!0)},this.toString=function(){return(256|Math.round(255*this.rgb[0])).toString(16).substr(1)+(256|Math.round(255*this.rgb[1])).toString(16).substr(1)+(256|Math.round(255*this.rgb[2])).toString(16).substr(1)};var i,x=this,C="hvs"===this.pickerMode.toLowerCase()?1:0,k=!1,_=O.fetchElement(this.valueElement),n=O.fetchElement(this.styleElement),S=!1,M=!1,I={},o=1,a=2,r=4,s=8;switch(O.addEvent(p,"focus",function(){x.pickerOnfocus&&x.showPicker()}),O.addEvent(p,"blur",function(){k?k=!1:window.setTimeout(function(){k||(_===p&&x.importColor(),x.pickerOnfocus&&x.hidePicker()),k=!1},0)}),_&&(O.addEvent(_,"keyup",i=function(){x.fromString(_.value,o),y()}),O.addEvent(_,"input",i),O.addEvent(_,"blur",function(){_!==p&&x.importColor()}),_.setAttribute("autocomplete","off")),n&&(n.jscStyle={backgroundImage:n.style.backgroundImage,backgroundColor:n.style.backgroundColor,color:n.style.color}),C){case 0:O.requireImage("hs.png");break;case 1:O.requireImage("hv.png")}O.requireImage("cross.gif"),O.requireImage("arrow.gif"),this.importColor()}};l.extend(t,{jscolor:O}),O.install()}(_jq,x5engine),!function($,Y,U){"use strict";$.extend(Y,{mediaObject:function(t){function n(t){function e(){F=$("<img />"),T.thumb?F.attr("src",T.thumb):"string"!=typeof T.url||null===T.url||-1==T.url.indexOf(".gif")&&-1==T.url.indexOf(".png")&&-1==T.url.indexOf(".jpg")&&-1==T.url.indexOf(".jpeg")||F.attr("src",T.url),F.css("cursor","pointer"),F.attr("alt",T.alt||""),T.title&&F.attr("title",T.title),"random"!=T.effect&&(D=Y.effects[T.effect]||(!Y.effects[T.effect]&&Y.effects.fade?Y.effects.fade:{animateIn:function(t,e,i,n,o){t=t.DOMObject();i=$(i),t.css({position:"absolute",top:0,left:0}),i.append(t),t.show(0),$.isFunction(n)&&n()},animateOut:function(t,e,i,n){$(t.DOMObject()).detach(),$.isFunction(i)&&i()}})),T.touchDevice&&"html"!=T.type&&A.on("animate_in_start",function(){A.parent().off("touchstart").on("touchstart",j),A.parent().off("touchmove").on("touchmove",R),A.parent().off("touchend").on("touchend",z),A.off("gesturestart").on("gesturestart",W),A.off("gesturechange").on("gesturechange",N),A.off("gestureend").on("gestureend",q)}),$.isFunction(t)&&t(E)}A&&(A.remove(),A=null);var i="",n=null,o=0,a={},r=!1,s="",l="";switch(T.type){case"video":var c,d,u,h,p,f,g,m,v,w,r=!1;if("string"==typeof T.url&&(T.url=[{src:T.url}]),"object"==typeof T.url)for(o=0;o<T.url.length&&!r;o++)r|=0<T.url[o].src.search(/\.(mp4|webm|ogg|flac)/gi);d=T.width&&T.contentWidth?Math.min(T.width,T.contentWidth):Math.max(T.width,T.contentWidth),u=T.height&&T.contentHeight?Math.min(T.height,T.contentHeight):Math.max(T.height,T.contentHeight),A=$("<div />").width("100%").attr({"data-width":d,"data-height":u}),r?(h=null,p=function(){w("play")},f=function(){w("pause")},A.on("animate_out_start",function(){null!==h&&(!0!==h.paused&&h.pause(),h.removeEventListener("play",p),h.removeEventListener("pause",f))}),A.on("animate_in_end",function(){if(A.empty(),c=$("<video />").width("100%").attr({width:"100%",height:"100%",controls:!0,controlsList:"nodownload"}),Y.utils.isOnline()&&c.attr("preload","metadata"),1<T.url.length)for(var t in T.url)c.append($("<source />").attr("src",T.url[t].src));else{for(var e in T.url)c.attr("src",T.url[e].src);c.on("error",function(t){var e=$('<div class="object-generic-error"><div><div>'+Y.l10n.get("error_notsupported_video")+"</div></div></div>");e.css({height:u,width:d,"max-height":"100%","max-width":"100%"}),c.replaceWith(e)})}A.css({height:u,width:d,"max-height":"100%","max-width":"100%"}).attr({cursor:"pointer"}).append(c),h=c.get(0);function i(){var t=(A.width()-c.outerWidth())/2,e=(A.height()-c.outerHeight())/2;c.css({"margin-top":e+"px","margin-bottom":e+"px","margin-left":t+"px","margin-right":t+"px"})}h.addEventListener("loadeddata",i),h.addEventListener("play",function(){i(),p()}),h.addEventListener("pause",f)}),g=function(){4!=h.readyState&&(h.removeEventListener("load",E.Play,!1),h.addEventListener("load",E.Play,!1),h.removeEventListener("canplaythrough",E.Play,!1),h.addEventListener("canplaythrough",E.Play,!1))},m="pause",v=null,w=function(t){t!=m&&(m=t,A.triggerHandler("status_change",[m]),null!==v&&clearInterval(v),"play"==t)&&(v=setInterval(function(){A.triggerHandler("playing",[h.currentTime])},500))},E.Play=function(){return void 0!==h.play&&(h.removeEventListener("onreadystatechange",g,!1),h.addEventListener("onreadystatechange",g,!1),h.play(),g(),w("play"),!0)},E.Pause=function(){return!!h.pause&&(h.pause(),w("pause"),!0)},E.Stop=function(){return E.Pause()},E.Volume=function(t){return null!=t?h.volume=t:h.volume},E.CurrentPosition=function(t){return null!=t?h.currentTime=t:h.currentTime},E.Duration=function(){return h.duration},E.Progress=function(){return h.buffered?h.buffered.length:0},E.FullScreen=function(){}):A=void 0!==a["video/mov"]||void 0!==a["video/aiff"]||void 0!==a["video/m4a"]?(I='<object width="'+d+'" height="'+u+'" type="application/quicktime">\n',I=(I=(I=(I+='\t<param name="codebase" value="http://www.apple.com/qtactivex/qtplugin.cab">\n')+'\t<param name="src" value="'+(S=a["video/mov"]||a["video/aiff"]||a["video/m4a"])+'">\n\t<param name="autoplay" value="'+(T.autoPlay?"true":"false")+'">\n')+'\t<param name="controller" value="'+(T.showVideoControls?"true":"false")+'">\n')+'\t<embed src="'+S+'" width="'+d+'" height="'+u+'" autoplay="'+(T.autoPlay?"true":"false")+'" controller="'+(T.showVideoControls?"true":"false")+'" pluginspage="http://www.apple.com/quicktime/download/" />',$(I+="</object>")):(S="",/MSIE/.test(navigator.userAgent)&&(S=(S=(S=(S+='\t<object classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="'+d+'" height="'+u+'">\n')+'\t\t<param name="url" value="'+a[0]+'" />\n\t\t<param name="ShowControls" value="'+(T.showVideoControls?"1":"0")+'" />\n')+'\t\t<param name="uiMode" value="'+(T.showVideoControls?"full":"none")+'" />\n')+'\t\t<param name="autostart" value="'+(T.autoPlay?"true":"false")+'" />\n\t\t<param name="ShowDisplay" value="false">\n\t\t<param name="ShowStatusBar" value="false">\n\t\t<param name="ShowDisplay" value="false">\n'),S=(S=(S=(S=(S=(S+='<object width="'+d+'" height="'+u+'" type="application/x-mplayer2">\n')+'\t<param name="url" value="'+a[0]+'" />\n\t<param name="ShowControls" value="'+(T.showVideoControls?"1":"0")+'" />\n')+'\t<param name="uiMode" value="'+(T.showVideoControls?"full":"none")+'" />\n')+'\t<param name="autostart" value="'+(T.autoPlay?"true":"false")+'" />\n\t<param name="ShowDisplay" value="false">\n\t<param name="ShowStatusBar" value="false">\n')+'\t<param name="ShowDisplay" value="false">\n\t<embed type="application/x-mplayer2" src="'+a[0]+'" id="MediaPlayer" width="'+d+'" height="'+u+'" ShowControls="'+(T.showVideoControls?"1":"0")+'" ShowStatusBar="0" ShowDisplay="0" autostart="0" />\n')+'</object>\n<div style="position: absolute; width: 100%; top: '+(u/2+20)+'px; text-align: center;"><a target="_blank" style="color: black; text-decoration: none; font-family: Arial, sans;" href="http://windows.microsoft.com/en-US/windows/downloads/windows-media-player">Install Media Player Plugin</a></div>\n',/MSIE/.test(navigator.userAgent)&&(S+="\t</object>\n"),$(S)),e();break;case"audio":case"sound":if(i="imaudioplayer_"+Math.round(1e8*Math.random()),A=$('<audio controls controlsList="nodownload" id="'+i+'"/>').attr({"data-width":T.width,"data-height":T.height}),r=!1,"string"==typeof T.url&&(T.url=[{src:T.url}]),"object"==typeof T.url)for(o=0;o<T.url.length&&!r;o++)r|=0<T.url[o].src.search(/\.(mp3|aac|wav)/gi);if(r){for(s in Y.utils.isOnline()&&A.attr("preload","metadata"),T.loop&&A.prop("loop",!0),T.url)A.append($("<source />").attr("src",T.url[s].src));var b=!1;setInterval(function(){b&&A.triggerHandler("playing",[E.CurrentPosition()])},200),E.Play=function(){A.get(0).play(),b=!0,A.triggerHandler("status_change",["play"])},E.Pause=function(){A.get(0).pause(),b=!1,A.triggerHandler("status_change",["pause"])},E.Stop=function(){return E.Pause()},E.Volume=function(t){return"number"==typeof t?A.get(0).volume=t:A.get(0).volume},E.CurrentPosition=function(t){return"number"==typeof t?A.get(0).currentTime=t:A.get(0).currentTime},E.Duration=function(){return A.get(0).duration},E.Progress=function(){return A.get(0).buffered?1:0}}e();break;case"youtube":P=!1,A=$("<div />").css({"background-color":"black"}),n=null,i="imytplayer_"+Math.round(1e8*Math.random(),10),A.append($("<div />").attr("id",i)),T.autoplay&&!T.showVideoControls&&(A.append($(H(i))),A.find("#"+i+"_video-unmute").on("click",function(){n.unMute(),$("#"+i+"_video-unmute").hide()}));var l=(l=(l=T.url.replace(/https?\:\/\/[w]*\.?youtube\.com\/watch\?v=/g,"")).replace(/https?\:\/\/[w]*\.?youtube\.com\/shorts\//g,"")).replace(/https?\:\/\/youtu\.be\/?/g,""),y=(y=l.match(/[&?]t=([0-9]+)[s]*/))&&2==y.length?parseInt(y[1]):0,x=(-1!=l.indexOf("&")&&(l=l.substring(0,l.indexOf("&"))),0===$("#ytjsapi").length&&(I=$("<script />").attr({id:"ytjsapi",src:"//www.youtube.com/iframe_api"}),$("head").append(I),U.onYouTubeIframeAPIReady=function(){Y.youtube.jsApiIsLoaded=!0,$("body").triggerHandler(Y.youtube.apiLoadedEventName)}),k=T.width&&T.contentWidth?Math.min(T.width,T.contentWidth):Math.max(T.width,T.contentWidth),_=T.height&&T.contentHeight?Math.min(T.height,T.contentHeight):Math.max(T.height,T.contentHeight),A.width(k).height(_).attr({"data-width":k,"data-height":_}),!1),C=function(){k=T.width&&T.contentWidth?Math.min(T.width,T.contentWidth):Math.max(T.width,T.contentWidth),_=T.height&&T.contentHeight?Math.min(T.height,T.contentHeight):Math.max(T.height,T.contentHeight),A.children("div").attr({"data-width":k,"data-height":_}),A.find("#"+i).width(k).height(_),Y.youtube.jsApiIsLoaded?n=new U.YT.Player(i,{height:_,width:k,videoId:l,events:{onReady:function(){x=!0},onStateChange:function(t,e){e==YT.PlayerState.PLAYING&&n.isMuted()&&!T.showVideoControls&&$("#"+i+"_video-unmute").show()},onError:function(t){var e="";switch(t.data){case 2:e="The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.";break;case 100:e="The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.";break;case 101:case 150:e="The owner of the requested video does not allow it to be played in embedded players."}A.empty().append(e)}},playerVars:{controls:T.showVideoControls?"1":"0",wmode:"opaque",modestbranding:"1",rel:0,start:y}}):$("body").one(Y.youtube.apiLoadedEventName,C)};E.Play=function(t){x?(t&&n.mute(),T.poster&&(T.poster.hide(),T.target.show()),n.playVideo()):(B&&clearTimeout(B),B=setTimeout(E.Play,1e3,t))},E.Pause=function(){x?n.pauseVideo():(B&&clearTimeout(B),B=setTimeout(E.Pause,1e3))},E.Stop=function(){x?n.stopVideo&&"stopVideo"in n?n.stopVideo():"pauseVideo"in n&&n.pauseVideo():(B&&clearTimeout(B),B=setTimeout(E.Stop,1e3))},A.on("animate_in_end",C),e();break;case"vimeo":P=!1,A=$("<div />").css("background-color","black").width(T.width).height(T.height),n=null,i="imvimeoplayer_"+Math.round(1e8*Math.random(),10),A.append($("<div />").attr("id",i)),T.showVideoControls||(T.autoplay&&(A.append($(H(i))),A.find("#"+i+"_video-unmute").on("click",function(){n.setVolume(.7),$("#"+i+"_video-unmute").hide()})),A.css("display","grid"),A.append($('<div id="'+i+'_video-placeholder" style="width: 100%; height: 100%; position: absolute; z-index: 4; display: grid; justify-items: center; align-items: center;"><svg width="64px" height="64px" viewBox="0 0 715 715" style="cursor: pointer; fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2;'+(1==T.autoplay?" display: none;":"")+'"><g transform="matrix(1,0,0,1,-138,-26)"><g transform="matrix(43.4179,0,0,43.4179,148,36)"><path d="M8,0C3.582,0 0,3.582 0,8C0,12.418 3.582,16 8,16C12.418,16 16,12.418 16,8C16,3.582 12.418,0 8,0ZM8,14.5C4.41,14.5 1.5,11.59 1.5,8C1.5,4.41 4.41,1.5 8,1.5C11.59,1.5 14.5,4.41 14.5,8C14.5,11.59 11.59,14.5 8,14.5ZM6,4.5L12,8L6,11.5L6,4.5Z" style="fill:white;fill-rule:nonzero;stroke:rgb(51,51,51);stroke-width:0.46px;"/></g></g></svg></div>'))),l=T.url.replace(/[w\.]*vimeo\.com\/?/g,"").replace(/https?\:\/\//g,"").replace(/http?\:\/\//g,""),k=T.width&&T.contentWidth?Math.min(T.width,T.contentWidth):Math.max(T.width,T.contentWidth),_=T.height&&T.contentHeight?Math.min(T.height,T.contentHeight):Math.max(T.height,T.contentHeight),A.width(k).height(_).attr({"data-width":k,"data-height":_});var k,_,S,C=function(){k=T.width&&T.contentWidth?Math.min(T.width,T.contentWidth):Math.max(T.width,T.contentWidth),_=T.height&&T.contentHeight?Math.min(T.height,T.contentHeight):Math.max(T.height,T.contentHeight),A.children("div").attr({"data-width":k,"data-height":_}),A.find("#"+i).width(k).height(_),U.vimeoPlayerReady&&(n=new Vimeo.Player(A.find("#"+i)[0],{id:l,width:k,height:_,controls:T.showVideoControls,muted:T.autoplay}),T.showVideoControls||(n.on("play",function(){$("#"+i+"_video-placeholder > svg").fadeOut(100),0==n.getVolume()&&$("#"+i+"_video-unmute").show()}),A.find("#"+i+"_video-placeholder").on("click",function(t){t.target.id.endsWith("_video-unmute")||n.getPaused().then(function(t){t?n.play():n.pause()})}),n.on("pause",function(){$("#"+i+"_video-placeholder > svg").fadeIn(100)}),n.on("error",function(){$("#"+i+"_video-placeholder").remove()})))};0===$("#vimeojsapi").length?((S=document.createElement("script")).setAttribute("id","vimeojsapi"),S.setAttribute("src","https://player.vimeo.com/api/player.js"),S.onload=()=>{U.vimeoPlayerReady=!0,C()},document.body.appendChild(S)):U.vimeoPlayerReady?C():$("#vimeojsapi").on("load",()=>{U.vimeoPlayerReady=!0,C()}),E.Play=function(){n?(T.poster&&(T.poster.hide(),T.target.show()),n.play()):setTimeout(E.Play,500)},E.Pause=function(){n.pause()},E.Stop=function(){n.pause()},e();break;case"code":case"html":(A=$("<div />")).html(Y.utils.htmlspecialchars_decode(T.html)).width(T.width).height(T.height).attr({"data-width":T.width,"data-height":T.height}),e();break;case"base64html":(A=$("<div />")).html(atob(T.html)).width(T.width).height(T.height).attr({"data-width":T.width,"data-height":T.height}),e();break;case"swf":var M="swfplayer_"+Math.round(1e3*Math.random());(A=$("<div />").html('<div id="'+M+'"></div>').attr({"data-width":T.width,"data-height":T.height})).on("animate_in_end",function(){var t={},e={quality:"high",bgcolor:"#ffffff",play:"true",loop:"false",wmode:"transparent",scale:"noscale",menu:"true",devicefont:"false",salign:"lt",allowscriptaccess:"always",allowFullScreen:"true"},i={id:M,name:M,align:"middle",allowscriptaccess:"always"};Y.utils.loadSwfObject(function(){U.swfobject.embedSWF(T.url,M,T.width,T.height,"10.0.0","res/expressInstall.swf",t,e,i)})}),e();break;case"dom":A=$(T.url).width(T.width).height(T.height).attr({"data-width":T.width,"data-height":T.height}),e();break;case"iframe":case"url":A=$("<iframe />",{allowFrameTransparency:T.allowFrameTransparency?"true":"false",src:T.url,border:"0",frameborder:"0",marginwidth:"0",marginheight:"0","data-width":T.width,"data-height":T.height}).width(T.width).height(T.height),e();break;default:var I,O=function(){var t=L(T.width,T.height,T.contentWidth,T.contentHeight,!0);if(A.css({position:"absolute",left:t.x,top:t.y}),T.touchDevice&&A.css("-webkit-backface-visibility","hidden"),A.width(t.width).height(t.height),T.onclick&&($.isFunction(T.onclick)?A.click(T.onclick).css("cursor","pointer"):0===T.onclick.indexOf("http")&&(A.css("cursor","pointer"),U.location.href=T.onclick)),T.protect){var n,o,a=A;A=$("<canvas />");try{A.get(0).getContext&&A.get(0).getContext("2d")?(a.removeAttr("style"),$("body").append(a),n={width:a.width(),height:a.height()},a.detach(),A.attr({"data-width":T.width,"data-height":T.height}).width("100%").height("100%").on("dragstart",function(t){return t.preventDefault(),!1}),o=A.get(0).getContext("2d"),function t(){var e,i;A.parent().length?(i=n.height,(e=n.width)>T.width&&(i=T.width/e*i,e=T.width,i*=1.2,e*=1.2),o.canvas.width=e,o.canvas.height=i,o.clearRect(0,0,e,i),o.drawImage(a[0],0,0,e,i),$("#imContent").one("breakpointChangedOrFluid",t),A.one("image.change",t)):setTimeout(t,100)}()):A=a}catch(t){A=a}A.on("contextmenu",function(t){return!1})}e()};A=$("<img />").attr("src",T.url).attr("alt",T.alt||""),T.title&&A.attr("title",T.title),T.width&&T.height?(A.attr({"data-width":T.width,"data-height":T.height}),O()):(I=$("<img />").css({position:"absolute",top:-1e4,left:-1e4}).one("load",function(){var t=$(this);T.width=t.width(),T.height=t.height(),A.attr({"data-width":T.width,"data-height":T.height}),t.remove(),O()}),$("body").prepend(I),I.attr("src",A.attr("src")))}T.selectable||A.attr("unselectable","on").css("user-select","none")}var T=$.extend({width:null,height:null,contentWidth:null,contentHeight:null,type:"image",url:null,thumbUrl:null,html:"",effect:"fade",onclick:null,description:"",thumb:null,autoplayTime:5e3,loop:!1,touchDevice:!1,ignoreVerticalScroll:!1,selectable:!1,allowFrameTransparency:!1,protect:!1,deferredCaching:!1,load:null,attached:null,error:null,baseUrl:""},t),t=$(U),A=($(document),null),F=null,E=this,D=null,e="id"+Math.round(1e8*Math.random()),a=/(iPad|iPhone)/i.test(navigator.userAgent),o=(t.imageCache=[],t.imageCache[e]=[]),P=!0,r=null,s=null,l=null,c=null,i=null,d=null,u=null,h=null,p=!1,f=!1,g=!1,B=null,H=function(t){return'<svg id="'+t+'_video-unmute" width="48px" height="48px" viewBox="0 0 705 659" style="cursor: pointer; position: absolute; right: 30px; bottom: 30px; fill: white; fill-rule: nonzero; stroke: #333; stroke-width: 0.4px; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2; z-index: 5;"><g transform="matrix(1,0,0,1,-143,-58.8218)"><g transform="matrix(46.3125,0,0,46.3125,-1750.82,-9106.06)"><path d="M41,202L43.485,202L46.453,199L47,199.016L47,211.016L46.525,211.016L43.485,208L41,208L41,202Z"/><path d="M56,205C56,202.186 55,199.828 53.415,198L52,198L52,199.481C53.265,201 54,202.7 54,205C54,207.3 53.221,209 52,210.519L52,212L53.381,212C54.847,210.36 56,207.814 56,205Z"/><path d="M53,205C53,202.834 52.261,200.98 51,200L50,200L50,202C50.607,202.789 51,203.759 51,205C51,206.241 50.607,207.22 50,208L50,210L51,210C52.223,209.005 53,207.127 53,205Z"/><path d="M50,205C50,203.743 49.689,202.784 49,202L48,202L48,208L49,208C49.672,207.163 50,206.258 50,205Z"/></g></g></svg>'},L=function(t,e,i,n,o){return t=t||0,e=e||0,i=i||t,n=n||e,(o=!!o)&&"dom"!=T.type&&"html"!=T.type&&(i<t&&(e*=i/t,t=i),n<e)&&(t*=n/e,e=n),{x:(i-t)/2,y:(n-e)/2,width:t,height:e}},j=function(t){$.isFunction(i)&&1==t.touches.length&&i(t),p=!1,f=2==(u=t).touches.length,g=2<t.touches.length},R=function(t){var e,i,n,o;!c&&(r&&1==t.touches.length||s&&2==t.touches.length||l&&2<t.touches.length)&&(!T.ignoreVerticalScroll||1!=t.touches.length||(e=a?u:u.touches[0],n=(i=a?t:t.touches[0]).pageX-e.pageX,o=i.pageY-e.pageY,Math.abs(n)>Math.abs(o)))&&t.preventDefault(),$.isFunction(c)&&1==t.touches.length&&(e=a?u:u.touches[0],n=(i=a?t:t.touches[0]).pageX-e.pageX,o=i.pageY-e.pageY,!T.ignoreVerticalScroll||Math.abs(n)>Math.abs(o))&&c(t,{startX:e.pageX,startY:e.pageY,offsetX:n,offsetY:o}),p=!0,h=t},z=function(t){var e,i,n;p?$.isFunction(r)&&h&&1==u.touches.length&&(e=a?u:u.touches[0],i=(n=a?h:h.touches[0]).pageX-e.pageX,n=n.pageY-e.pageY,!T.ignoreVerticalScroll||Math.abs(i)>Math.abs(n))&&r(t,{startX:e.pageX,startY:e.pageY,offsetX:i,offsetY:n}):A.click()},W=function(t){(g&&l||f&&s)&&t.preventDefault()},N=function(t){g&&l&&t.preventDefault(),f&&s&&!d&&t.preventDefault(),d&&$.isFunction(d)&&d(t)},q=function(t){g&&$.isFunction(l)?l(t):f&&$.isFunction(s)&&s(t)};this.Cache=function(e){switch($.extend({load:null,error:null},e),T.type){case"image":/^[0-9]+$/.test(T.url)&&(T.url=Y.utils.yaKnowWhatToDo(T.url)),o[o.length]=new Image;var i=$(o[o.length-1]);i.one("load",function(){var t;T.width||T.height||(t=i.clone(),$("body").append(t),t.css({width:"auto",height:"auto",position:"absolute",top:-1e4,left:-1e4}),T.width=t.width(),T.height=t.height(),t.remove()),T.thumb?(o[o.length]=new Image,(i=$(o[o.length-1])).one("load",function(){n(e.load)}).on("error",function(){T.thumb=null,n(e.load)}),i.attr("src",T.thumb)):n(e.load)}).on("error",function(){$.isFunction(e.error)&&e.error(E,404)}),i.attr("src",T.url);break;case"video":case"youtube":case"vimeo":T.thumb?(o[o.length]=new Image,(i=$(o[o.length-1])).one("load",function(){n(e.load)}).on("error",function(){T.thumb=null,n(e.load)}),i.attr("src",T.thumb)):n(e.load);break;default:n(e.load)}},this.TriggerAnimationInStart=function(){return A.triggerHandler("animate_in_start"),E},this.TriggerAnimationInEnd=function(){return A.triggerHandler("animate_in_end"),E},this.TriggerAnimationOutStart=function(){return A.triggerHandler("animate_out_start"),E},this.TriggerAnimationOutEnd=function(){return A.triggerHandler("animate_out_end"),E},this.AnimateIn=function(t,i,e){A.find("embed, object, iframe").css("display","none");var n,o=null,a=L(A.attr("data-width"),A.attr("data-height"),T.contentWidth,T.contentHeight,!0);A.css("position","absolute"),o="dom"!=T.type&&"html"!=T.type?{y:a.y,x:a.x,width:a.width,height:a.height}:{y:0,x:0,width:a.width,height:a.height},A.trigger("animate_in_start"),"random"==T.effect&&(a=["fade","horizontalSlide","verticalSlide","zoom","elasticFromTop","elasticFromBottom","elasticFromRight","elasticFromLeft","bounceFromTop","bounceFromBottom","bounceFromLeft","bounceFromRight","rotateLinear"],n=Math.max(0,Math.floor(Math.random()*a.length)),D=Y.effects[a[n]]||Y.effects.fade),D?(a=Y.utils.supportsCSS("transformOrigin"),n=Y.utils.supportsCSS("transform"),a&&A.css(a,"50% 50%"),n&&A.css(n,"none"),D.animateIn(E,o,t,function(t){var e=t.DOMObject();e.find("embed, object, iframe").css("display","block"),e.trigger("animate_in_end"),$.isFunction(i)&&i(t)},e)):A.trigger("animate_in_end")},this.AnimateOut=function(t,e,i){A.find("embed, object, iframe").css("display","none");var n,o;"random"==T.effect&&(n=["fade","horizontalSlide","verticalSlide","zoom","elasticFromTop","elasticFromBottom","elasticFromRight","elasticFromLeft","bounceFromTop","bounceFromBottom","bounceFromLeft","bounceFromRight","rotateLinear"],o=Math.max(0,Math.floor(Math.random()*n.length)),D=Y.effects[n[o]]),A.trigger("animate_out_start"),null!=D?D.animateOut(E,t,function(t){t.DOMObject().trigger("animate_out_end"),$.isFunction(e)&&e(t)},i):A.trigger("animate_out_end")},this.ChangeAnimation=function(t){Y.effects[t]&&(D=Y.effects[t])},this.DOMObject=function(){return A},this.GetThumb=function(){return F},this.Type=function(){return T.type},this.Play=function(){return!1},this.Pause=function(){return!1},this.Stop=function(){return!1},this.Volume=function(t){return 0},this.CurrentPosition=function(t){return 0},this.Duration=function(){return 0},this.GetDescription=function(){return Y.utils.htmlspecialchars_decode(T.description)},this.GetAlt=function(){return T.alt},this.GetTitle=function(){return T.title},this.AutoplayTime=function(){return T.autoplayTime},this.OnPlaying=function(t){A.on("playing",t)},this.OnStatusChange=function(t){A.on("status_change",t)},this.Width=function(){return null!==T.width?T.width:A.attr("data-width")},this.Height=function(){return null!==T.height?T.height:A.attr("data-height")},this.ContentHeight=function(t){if(null==t)return T.contentHeight;T.contentHeight=t},this.ContentWidth=function(t){if(null==t)return T.contentWidth;T.contentWidth=t},this.Overlay=function(){return P},this.AfterPinch=function(t){return s=t,E},this.Pinch=function(t){return d=t,E},this.Gesture=function(t){return l=t,E},this.Move=function(t){return c=t,E},this.AfterMove=function(t){return r=t,E},this.BeforeMove=function(t){return i=t,E},this.FullScreen=function(){return!1},this.AppendTo=function(t,e){return t.append(A),$.isFunction(T.attached)?T.attached(this,e):$.isFunction(e)&&e(this),this},T.deferredCaching||this.Cache({load:T.load,error:T.error})}})}(_jq,x5engine,window),!function(o,a){"use strict";o.extend(a,{mediaPlayer:function(e){var i=null!=(e=o.extend({url:"",type:"audio",width:400,height:400,showVideoControls:!0,poster:null,target:"body",autoplay:!1,loop:!1,baseUrl:"",controlsHeight:0},e)).poster?o(e.poster):null,n=o(e.target);new a.mediaObject({url:e.url,type:e.type,autoplay:e.autoplay,showVideoControls:e.showVideoControls,poster:i,target:n,effect:"none",width:e.width,height:e.height-(e.autoHideControls||"youtube"==e.type||"vimeo"==e.type?0:e.controlsHeight),baseUrl:e.baseUrl,load:function(t){return i&&(i.width(e.width).height(e.height),i.click(function(){t.Play()})),n.append(t.DOMObject()).css({"background-color":"audio"!=e.type?e.bgColor:"transparent",position:"relative",margin:"0 auto"}).width(e.width).height(e.height),t.AnimateIn(),!0===e.autoplay?t.Play(!0):"onscreen"==e.autoplay?a.utils.onElementInViewPort((i||[])[0]||n[0],function(){t.Play(!0)}):"onmouseover"==e.autoplay&&o((i||[])[0]||n[0]).one("mouseover",function(){t.Play(!0)}),{Stop:function(){t&&t.Stop()},Play:function(){t&&t.Play()}}}})}})}(_jq,x5engine),!function(d,u){"use strict";d.extend(u,{initMenu:function(t){function o(t){t.add(t.find("ul")).toggleClass("open-right").toggleClass("open-left")}var t=d.extend(!0,{menuId:"",responsiveMenuEffect:"none",responsiveMenuLevelOpenEvent:"mouseover",animationDuration:1e3},t),e=d("body"),a=t.menuId,i="responsive-menu-effect-"+t.responsiveMenuEffect,n=t.responsiveMenuLevelOpenEvent,r=t.animationDuration,s=("push"==t.responsiveMenuEffect&&(c(),d("#imContent").on("breakpointChanged",function(){c()})),d("#"+a+" li").each(function(){function t(t){t&&i.add(r).parents("ul").find("."+n).removeClass(n),i.add(i.add(r).parents("li")).add(r).addClass(n)}var e,i=d(this),n="imMnMnCurrent",o=i.attr("data-link-anchor"),a=i.attr("data-link-hash"),r=d("[data-link-hash="+a+"]"),a=i.attr("data-link-paths");o&&i.on("click",function(){t(!0)}),a?(e=a.substring(0,1),a=a.substring(1),u.utils.isCurrentPage(a.split(e),o)&&t()):i.on("click",function(t){t.stopPropagation()})}),d("#"+a+" .hamburger-button").on("click",function(){var t;0<d("#"+a+"-menu-opened").length||(d(this).css("visibility","hidden"),d("<div id='"+a+"-menu-opened'></div>").appendTo("body"),d("<div id='"+a+"_container-menu-opened'></div>").appendTo("#"+a+"-menu-opened"),d("#"+a+"_container > *:not(.hamburger-button)").clone(!0).removeClass("hidden").appendTo("#"+a+"_container-menu-opened"),t=d("#"+a+"-menu-opened").find(".multiple-column"),d(t).css("width",""),d(t).css("left",""),0!==d(t).find("ul").length?d(t).children("ul").css({height:"",overflow:"",display:""}):0!==d("#"+a+"-menu-opened").find(".imLevel").find("ul").length&&d("#"+a+"-menu-opened").find(".imLevel").children("ul").css({height:"",overflow:"",display:""}),d("#"+a+"-menu-opened ul li").each(function(){var t=d(this),e=0;t.on("mouseover",function(){clearTimeout(e)}).on(n,function(){t.children("ul, .multiple-column").stop(!1,!1).show()}).on("mouseleave",function(){e=setTimeout(function(){t.children("ul, .multiple-column").stop(!1,!1).hide()},500)})}),d("#"+a+"-menu-opened .hamburger-menu-close-button").add("#"+a+"-menu-opened .imLevel[data-link-paths]").one("click",function(){e.addClass("menu-"+a+"-towards-closing"),e.removeClass("menu-"+a+"-opened"),d("#"+a+"-menu-opened").removeClass("animated"),e.addClass("menu-"+a+"-closing"),d("#imPageExtContainer").off("click.close-menu-event"),d("#imContent").off("breakpointChanged.close-menu-event"),setTimeout(function(){e.removeClass("menu-"+a+"-towards-closing"),d("#"+a).find(".label-wrapper-over").remove(),d("#"+a+"-menu-opened").remove(),e.removeClass("menu-"+a+"-closing").removeClass("im-menu-opened").removeClass(i)},r+50),d("#"+a+" .hamburger-button").css("visibility","")}),d("#imPageExtContainer").on("click.close-menu-event",function(t){e.hasClass("menu-"+a+"-opened")&&(t.stopPropagation(),d("#"+a+"-menu-opened .hamburger-menu-close-button").click())}),d("#imContent").on("breakpointChanged.close-menu-event",function(t){e.hasClass("menu-"+a+"-opened")&&d("#"+a+"-menu-opened .hamburger-menu-close-button").click()}),d("#"+a+"-menu-opened .imMnMnCurrent").each(function(){d(this).parents("ul, .multiple-column").show(0),(0==d(this).has("ul").length||0<d(this).has(".imMnMnCurrent").length)&&d(this).closest(".imLevel").find("> .label-wrapper > .label-inner-wrapper > a").data("linkLevelOpened",1)}),d("#"+a+"-menu-opened #"+a+"_container-menu-opened ul > .imLevel").each(function(){var e=d(this),t=e.find("> .label-wrapper > .label-inner-wrapper > a");0<t.length&&0<d(this).children("ul, .multiple-column").length&&t.on("touchend",function(t){"1"==d(this).data("linkLevelOpened")?d(this).data("linkLevelOpened",0):(t.preventDefault(),d(this).data("linkLevelOpened",1),e.children("ul, .multiple-column").stop(!1,!1).show())})}),setTimeout(function(){e.addClass("menu-"+a+"-opened").addClass("im-menu-opened").addClass(i),d("#"+a+"-menu-opened").addClass("animated")},10))}),d("#"+a)),l=d(window);function c(){("fixed"==d("#imPageExtContainer").css("background-attachment")?(d("#imPageIntContainer").addClass("responsive-menu-effect-push-container"),d("#imPageExtContainer")):(d("#imPageExtContainer").addClass("responsive-menu-effect-push-container"),d("#imPageIntContainer"))).removeClass("responsive-menu-effect-push-container")}s.find(".imLevel").on("mouseenter",function(){var t,e,i=d(this),n=i.find(".multiple-column");0<i.parents("#"+a+"-menu-opened").length||(n.length||"right"==s.css("float")?n.length&&(n.css("left",""),t=i.offset(),console.log(n.outerWidth(!0)),0<(e=t.left+n.outerWidth(!0)-d(window).width()))&&n.css("left",-Math.min(e,t.left)):i.find("li").first().is(":visible")||(t=i.offset(),n=i.children("ul"),i.parents("ul").first(),i.parents(".imLevel").length||n.add(n.find("ul")).each(function(){d(this).removeClass("open-right").removeClass("open-left").addClass(d(this).attr("data-original-position"))}),n.attr("data-computed-width")||(e=n.clone(),s.append(e),e.show(0).css({position:"absolute",top:-1e3,width:"",height:"",display:"block"}),n.attr("data-computed-width",e.find("li").outerWidth()),e.remove()),e=+n.attr("data-computed-width"),n.hasClass("open-right")&&t.left+i.outerWidth()+e>l.width()+l.scrollLeft()&&o(n),n.hasClass("open-left")&&t.left-e<l.scrollLeft()&&o(n)))})}})}(_jq,x5engine),!function(b,y,x){"use strict";function e(){var e=b("#imHeader"),i=0;return b("#imHeader [id^=imHeader_imMenuObject_]:not(.template-object-wrapper):visible").each(function(t){b(this).offset().top+b(this).outerHeight()>i&&(e=b(this),i=e.offset().top+e.outerHeight())}),e}function i(i){i=b.extend({target:null,trigger:null,triggerPartialHide:!0,appear:!1,enabledBreakpoints:null,forceFixed:!0,forceTop:!1,forceLeft:!1,noLeft:!1,useTranslateZ:!1,alwaysVisible:!1},i);var n,o,t,a,r,s,e,l=!1,c=!1,d=b(x),u=!1,h=!1,p=(b("#imFooter"),function(){l=!0,t="function"==typeof i.trigger?i.trigger():b(i.trigger),n=t.offset().top+(i.triggerPartialHide?0:t.outerHeight()),function t(e){e&&e.target!=e.currentTarget||(r=o.parent().offset().left,"fixed"!=o.css("position")&&(a=o.position().left),i.forceFixed&&(f(),w())),b("#imContent").one("change",t)}()}),f=function(){l&&(i.appear?o.stop(!1,!1).animate({top:-o.outerHeight(!0)},{duration:200,complete:function(){o.css({visibility:"hidden",overflow:"hidden"})}}):(o.stop().css({"margin-top":"",left:"",top:"","z-index":""}),i.forceFixed&&o.css("position","")),u=!1)},g=function(){return i.noLeft?"":-d.scrollLeft()+a+r},m=function(){o.css({"margin-top":0,left:g(),bottom:"auto","z-index":y.settings.zIndex.stickyBar+(i.forceTop?1:0)}),i.forceFixed&&o.css("position","fixed"),i.useTranslateZ&&o.css("-webkit-transform","translateZ(0)")},v=function(t,e){var i=Math.floor(b("#imContent").offset().top+b("#imContent").outerHeight(!0));e+o.outerHeight(!0)>=i-t&&(e=i-t-o.outerHeight(!0)),o.css("top",e)},w=function(){var t,e;c&&(l||p(),Math.floor(b("#imContent").offset().top+b("#imContent").outerHeight(!0))<=Math.floor(n+o.outerHeight(!0)+parseInt(b("#imContent").css("padding-bottom")))||(t=d.scrollTop(),e=b("#imStickyBarContainer:visible"),e=i.forceTop||0===e.length?0:e.height(),n-e<t||i.alwaysVisible?(u||(i.appear?(m(),h=!0,o.stop(!1,!1).show().css({top:-o.outerHeight(!0),visibility:"visible",overflow:"visible"}).animate({top:0},{duration:500},"swing",function(){h=!1})):m(),u=!0),h||v(t,e)):u&&f(),i.forceLeft&&o.css("left",0)))};this.enable=function(){c=!0,w()},this.disable=function(){var t=c;c=!1,t&&f()},0!==(o=b(i.target)).length&&(i.alwaysVisible||d.scroll(w),d.resize(function(){r=o.parent().offset().left,u&&o.css("left",g()),w()}),s=this,e=y.responsive.getCurrentBreakPoint(),-1!=i.enabledBreakpoints.indexOf(e.hash)&&s.enable(),b("#imContent").on("beforeBreakpointChanged.sidebarscroll",function(){s.disable()}).on("breakpointChanged.sidebarscroll",function(t,e){-1!=i.enabledBreakpoints.indexOf(e.hash)&&(l=!1,s.enable())}))}b.extend(y,{sidebarScroll:function(t){new i(t=b.extend({target:"#imSideBarObjects",trigger:"#imSideBarObjects",appear:!1,enabledBreakpoints:null,noLeft:!0},t))},blogSidebarScroll:function(t){new i(t=b.extend({target:"#imBlogSidebar",trigger:"#imBlogSidebar",appear:!1,enabledBreakpoints:null},t))},stickyBar:function(t){t=b.extend({target:"#imStickyBarContainer",trigger:e,triggerPartialHide:!1,appear:!0,enabledBreakpoints:null,forceFixed:!1,forceTop:!0,forceLeft:!0,useTranslateZ:!0,alwaysVisible:!1},t),0==b("header").height()&&(t.alwaysVisible=!0);new i(t)}})}(_jq,x5engine,window),!function(c,e){"use strict";function o(){for(var t=c(window).height(),o=[],a=[],r=[],e=[.01,.5,.99],s={},i=0;i<u.length;i++){var n=c(u[i]).height(),l=t/n;s[u[i].id]={start:.01*l,half:.5*l,full:.99*l},t!=n&&e.push(s[u[i].id].half,s[u[i].id].full)}for(d=new IntersectionObserver(function(t){for(var e=0;e<t.length;e++){var i=t[e],n=s[i.target.id];-1==o.indexOf(i.target.id)&&i.intersectionRatio>=n.start&&(o.push(i.target.id),c(i.target).trigger("rowEntersInViewport")),-1<o.indexOf(i.target.id)&&i.intersectionRatio<n.start&&(o.splice(o.indexOf(i.target.id),1),c(i.target).trigger("rowExitsFromViewport")),-1==a.indexOf(i.target.id)&&i.intersectionRatio>=n.half&&(a.push(i.target.id),c(i.target).trigger("rowFillsHalfViewport")),-1<a.indexOf(i.target.id)&&i.intersectionRatio<n.half&&(a.splice(a.indexOf(i.target.id),1),c(i.target).trigger("rowNoFillsHalfViewport")),-1==r.indexOf(i.target.id)&&i.intersectionRatio>=n.full&&(r.push(i.target.id),c(i.target).trigger("rowFillsViewport")),-1<r.indexOf(i.target.id)&&i.intersectionRatio<n.full&&(r.splice(r.indexOf(i.target.id),1),c(i.target).trigger("rowNoFillsViewport"))}},{threshold:e}),i=0;i<u.length;i++)d.observe(u[i])}function a(){t&&(clearTimeout(t),t=void 0),t=setTimeout(function(){d.disconnect(),o(),t=void 0},100)}var t,d,u;c.extend(e,{pageRowsObserver:(u=document.querySelectorAll(".imPageRow"),{start:function(){o(),c(window).resize(a);for(var t=0;t<u.length;t++){var i=0,n=0;e.utils.onElementResize(u[t],function(t,e){i==t.width&&n==t.height||(i=t.width,n=t.height,a())})}}})})}(_jq,x5engine),!function(o,a){"use strict";o.extend(a,{imPageToTop:{constants:{id:"imPageToTop",visibleClass:"page-to-top-visible"},initializeButton:function(i){var t=a.imPageToTop.constants,e=a.settings.imPageToTop;i=o.extend(!0,{speed:e.speed,appearAt:e.appearAt,imageFile:e.imageFile},i);a.imPageToTop.createButton(i),o(window).on("ready scroll",function(){var e=o("#"+t.id);o(window).scrollTop()>i.appearAt?e.hasClass(t.visibleClass)||(e.addClass(t.visibleClass),e.fadeIn(1e3),e.one("click.scroll-to-top",function(){var t={duration:i.speed,easing:"swing",start:function(){o("body").trigger("pageToTopAnimationInProgress")},complete:function(){o("body").trigger("pageToTopAnimationCompleted")}};a.utils.scrollTo(0,t),e.off("click.scroll-to-top"),e.fadeOut(1e3)})):e.hasClass(t.visibleClass)&&(e.removeClass(t.visibleClass),e.fadeOut(1e3))})},createButton:function(t){var e=a.imPageToTop.constants,i=o(document.createElement("div")),n=(i.attr("id",e.id),o(document.createElement("img")));n.attr("src",a.settings.currentPath+t.imageFile).attr("alt","scroll to top").attr("id",e.id+"_img"),o("body").append(i.append(n))}}})}(_jq,x5engine),!function(B,H){"use strict";B.extend(H,{panAndZoom:function(t){function g(){function t(t){return n=!1,e(t)}function e(t){return t.preventDefault(),!1}var i=Math.min(x.height(),170)-40-20,n=!1,o=(c=B("<div />").css({position:"absolute",right:10,top:10}).mousemove(function(t){n&&(l.css("top",o(t.pageY-s.offset().top)),t=1-(t.pageY-s.offset().top)/(i-10),P(t*(1-O)+O,null,null,!1))}).mouseleave(t).mouseup(t).on("selectstart mousedown",e),function(t){return Math.min(Math.max(t-10,0),i-20)}),a={position:"absolute",color:"#aaa",border:"1px solid #ccc",background:T,cursor:"pointer","text-align":"center"},r=B("<div />").width(20).height(20).css(a).css({top:0,"border-radius":"5px 5px 0 0"}).text("+").click(function(t){return t.preventDefault(),P(I+.1),!1}).dblclick(e).on("selectstart mousedown",e),a=B("<div />").width(20).height(20).css(a).css({bottom:0,"border-radius":"0 0 5px 5px"}).text("-").click(function(t){return t.preventDefault(),P(I-.1),!1}).dblclick(e).on("selectstart mousedown",e),s=B("<div />").css({margin:"20px 9px",background:T,border:"1px solid #ccc"}).width(2).height(Math.min(i,v.targetHeight-20)),l=B("<div />").css({"border-radius":5,position:"absolute",margin:"25px 0",bottom:0,left:5,border:"1px solid #aaa",background:T,cursor:"pointer"}).width(10).height(10).mousedown(function(t){n=!0}).mouseup(function(t){n=!1}).on("dragstart",e).on("selectstart mousedown",e);x.append(c.append(s.append(l)).append(r).append(a)),b.on("image.change",function(t,e){n||(e=(e-O)/(1-O),l.css("top",o((1-e)*i)))})}function m(t){v.enableZoom&&(t.preventDefault(),t=0<(t.originalEvent.detail||t.originalEvent.wheelDelta)?-.2:.2,t*=/(Chrome|IE)/gi.test(navigator.userAgent)?-1:1,P(I+t))}var v=B.extend({target:"",url:"",targetWidth:null,targetHeight:null,autoMove:!0,animate:!1,enableZoom:!1,showZoomControl:!1,showNavigator:!1,protect:!1,freedom:"both",handImage:"res/move.png",lensImage:"res/imsearch.png",helperBg:"black",navigatorSize:30},t),w=null,b=null,y=null,c=null,x=null,C=B("html").hasClass("touchevents"),k=null,_=null,S=0,M=0,I=0,O=0,T="#eee",A=null,F=(Math.random()-.5<0?-1:1)*(100+Math.round(20*Math.random()-10)),E=(Math.random()-.5<0?-1:1)*(100+Math.round(20*Math.random()-10)),D=!1,P=function(t,i,n,e){var o;t=Math.max(Math.min(t,1),O),null!==b&&t!=I&&(null==e&&(e=!0),b.stop(!1,!1),null==i&&(i=(S-v.targetWidth/2)*t/I+v.targetWidth/2),null==n&&(n=(M-v.targetHeight/2)*t/I+v.targetHeight/2),S=i=Math.min(Math.max(i,-k*t+v.targetWidth),0),M=n=Math.min(Math.max(n,-_*t+v.targetHeight),0),o={width:k*t,height:_*t,left:i,top:n},e?b.animate(o,{step:function(t,e){switch(e.prop){case"width":I=t/k;break;case"left":S=i=t;break;case"top":M=n=t}b.triggerHandler("image.change",[I,i,n])},complete:function(){I=t,b.triggerHandler("image.change",[I,i,n])}}):(I=t,window.requestAnimFrame(function(){b.css(o).width(k*t).height(_*t).triggerHandler("image.change",[I,i,n])})))};if(0===(x=B(v.target)).length)return!1;x.css({position:"relative",overflow:"hidden"}).width(v.targetWidth).height(v.targetHeight).prepend(H.settings.imLoadingAnimation),w=new H.mediaObject({url:v.url,effect:"fade",contentWidth:v.targetWidth,contentHeight:v.targetHeight,touchDevice:C,protect:v.protect,load:function(t){var e,i,n,o,a,r,s,l,c,d,u,h={x:0,y:0},p={x:0,y:0},f=null;(b=t.DOMObject()).css({display:"none",position:"absolute"}),"ver"==v.freedom?(k=v.targetWidth,_=v.targetWidth*b.attr("data-height")/b.attr("data-width")):k="hor"==v.freedom?(_=v.targetHeight,v.targetHeight*b.attr("data-width")/b.attr("data-height")):(_=b.attr("data-height"),b.attr("data-width")),x.empty().prepend(b),(O=v.targetWidth/k)*_>v.targetHeight&&(O=v.targetHeight/_),v.enableZoom?(P(Math.min(v.targetWidth,v.targetHeight)/Math.max(_,k),(-k+v.targetWidth)/2,(-_+v.targetHeight)/2,!1),v.showZoomControl&&g()):P(1,(-k+v.targetWidth)/2,(-_+v.targetHeight)/2,!1),C?(e=I,a=o=n=i=null,t.BeforeMove(function(t){t.preventDefault(),e=I,b.stop(!1,!1),h={x:t.touches[0].pageX,y:t.touches[0].pageY},p={x:S,y:M},i=n=null,D=!0}).Move(function(t){D&&(t.preventDefault(),o=i,a=n,M=n=p.y-(h.y-t.touches[0].pageY),S=i=p.x-(h.x-t.touches[0].pageX),(n<-_*I+v.targetHeight||0<n)&&(M=n=p.y-(h.y-t.touches[0].pageY)/2),(i<-k*I+v.targetWidth||0<i)&&(S=p.x-(h.x-t.touches[0].pageX)/2),b.css("top",n),b.css("left",i),h={x:t.touches[0].pageX,y:t.touches[0].pageY},p={x:S,y:M})}).AfterMove(function(t){t.preventDefault(),null!==i&&null!==n&&(null!==o&&null!==a&&(i+=6*(i-o),n+=6*(n-a)),b.stop(!1,!1).animate({top:Math.min(Math.max(n,-_*I+v.targetHeight),0),left:Math.min(Math.max(i,-k*I+v.targetWidth),0)},{duration:1e3,easing:"iOsSwing",step:function(t,e){"top"==e.prop&&(M=t),"left"==e.prop&&(S=t)}})),D=!1}),v.enableZoom&&w.Pinch(function(t){D=!1,t.preventDefault(),P(t.scale*e,null,null,!1)})):(v.showNavigator&&(r={x:0,y:0},s={x:0,y:0},l=v.targetWidth/k*_,c=v.targetWidth,d=null,l>v.targetHeight&&(c=v.targetHeight/_*k,l=v.targetHeight),c=c*v.navigatorSize/100,l=l*v.navigatorSize/100,(u=new H.mediaObject({url:v.url,effect:"none",width:c,height:l,contentWidth:c,contentHeight:l,touchDevice:!1,deferredCaching:!0,protect:v.protect})).Cache({load:function(){var t=null,o=(y=B("<div />").css({position:"absolute",top:-c-10,left:10,background:T,border:"1px solid "+T}).width(c).height(l).mousedown(function(t){D=!0,r={x:t.pageX,y:t.pageY},s={x:-1*o.css("border-left-width").replace(/px/g,""),y:-1*o.css("border-top-width").replace(/px/g,"")}}).mouseup(function(t){D=!1}).mouseleave(function(t){D=!1}).mousemove(function(t){D&&(t.preventDefault(),S=(s.x+(r.x-t.pageX))/c*k,M=(s.y+(r.y-t.pageY))/l*_,S=Math.min(Math.max(S,-k*I+v.targetWidth),0),M=Math.min(Math.max(M,-_*I+v.targetHeight),0),b.css({top:M,left:S}).triggerHandler("image.change",[I,S,M]))}).on("dragstart",function(t){return t.preventDefault(),!1}),B("<div />").css({position:"absolute",top:0,bottom:0,left:0,right:0,border:"0px solid "+T,background:"transparent"}).fadeTo(0,.75));b.on("image.change",function(t,e,i,n){null!==d&&window.cancelAnimFrame(d),d=window.requestAnimFrame(function(){o.css({"border-top-width":-n/e/_*l,"border-bottom-width":l- -n/e/_*l-v.targetHeight*l/(_*e),"border-left-width":-i/e/k*c,"border-right-width":c- -i/e/k*c-v.targetWidth*c/(k*e)})})}),x.append(y.append(u.DOMObject()).append(o)).mouseleave(function(){t=setTimeout(function(){y.stop(!1,!1).animate({top:-y.height()-20})},1e3)}).mouseenter(function(){null!==t&&(clearTimeout(t),t=null),y.stop(!1,!1).animate({top:10})}),y.on("mousewheel DOMMouseScroll",m)}})),b.mousedown(function(t){1!=t.which||v.autoMove||(b.stop(!1,!1).css("cursor","move"),D=!0,h={x:t.pageX,y:t.pageY},p={x:b.position().left,y:b.position().top})}).mouseup(function(){v.autoMove||(D=!1,b.css("cursor","auto"))}).mouseleave(function(){D=!1,b.css("cursor","auto"),null!==f&&window.cancelAnimFrame(f)}).mousemove(function(t){var o,a,e,i;t.preventDefault(),v.autoMove?(D=!0,o=t.pageX-x.offset().left-v.targetWidth/2,a=t.pageY-x.offset().top-v.targetHeight/2,e=Math.abs(o/a),i="","ver"==v.freedom?i+="ns":"hor"==v.freedom?i+="ew":e<1.5&&.5<e?i=i+(a<0?"n":"s")+(o<0?"w":"e"):1<e?i+=o<0?"w":"e":e<1&&(i+=a<0?"n":"s"),b.css("cursor",i+"-resize"),null!==f&&window.cancelAnimFrame(f),function t(e){var i=o*I*e/400,e=a*I*e/400,n=(D&&(M=Math.min(Math.max(M-e,-_*I+v.targetHeight),0),S=Math.min(Math.max(S-i,-k*I+v.targetWidth),0),b.css({top:M,left:S}).triggerHandler("image.change",[I,S,M])),new Date);f=window.requestAnimFrame(function(){t(new Date-n)})}(0)):D&&(S=Math.min(Math.max(p.x-(h.x-t.pageX),-k*I+v.targetWidth),0),M=Math.min(Math.max(p.y-(h.y-t.pageY),-_*I+v.targetHeight),0),b.css({top:M,left:S}).triggerHandler("image.change",[I,S,M]))}),v.enableZoom&&b.dblclick(function(t){P(1!=I?1:O)}),b.on("mousewheel DOMMouseScroll",m).on("dragstart",function(){return!1}),x.append(A=B("<div />").css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(B("<div />").css({background:v.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0}).fadeTo(0,.75)).append(B("<div />").css({background:"transparent url('"+(v.enableZoom?v.lensImage:v.handImage)+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0}))).mouseenter(function(){A.stop(!1,!1).animate({right:-30,bottom:-30})}).mouseleave(function(){A.stop(!1,!1).animate({right:0,bottom:0})})),w.TriggerAnimationInStart(),b.fadeIn(),v.animate&&function t(e){!D&&O+.05<I&&(S+=e/1e3*F*I,((M+=e/1e3*E*I)<-_*I+v.targetHeight||0<M)&&(E*=-1,M=Math.min(Math.max(M,-_*I+v.targetHeight),0)),(S<-k*I+v.targetWidth||0<S)&&(F*=-1,S=Math.min(Math.max(S,-k*I+v.targetWidth),0)),b.css({top:M,left:S}).triggerHandler("image.change",[I,S,M]));var i=new Date;window.requestAnimFrame(function(){t(new Date-i)})}(0)}})}})}(_jq,x5engine),!function(s,e,i){"use strict";function n(){i.requestAnimationFrame(function(){l=[],c=s(i).height(),a=-1;var r=e.utils.getCurrentBrowser();s(".imParallax").each(function(){var t=s(this),e=t.find(".imParallaxBackground");if(0!=e.length){var i=e.data("parallaxDirection")||"down";if("down"!=i||"Microsoft Edge"!=r&&"Microsoft Internet Explorer"!=r){if("fixed"==i)return n=Math.round((c-t.height())/2),e.css("top",(0<n?-n:0)+"px"),e.css("bottom",(0<n?-n:0)+"px"),e.css("visibility","visible"),"Microsoft Internet Explorer"==r?void 0:void e.css("background-attachment","fixed");var n=t.offset().top+t.height()/2,o=c/2+t.height()/2,a=e.data("parallaxZoom")||0,a=(Math.round(t.height()*(1+a/100))-t.height())/2;l.push({background:e,focusPoint:n,maxDistance:o,hidden:!0,direction:i,translateYMax:a}),e.css("will-change","transform")}else e.css("visibility","visible")}}),o((document.documentElement||document.body.parentNode||document.body).scrollTop||i.pageYOffset)})}function o(t){var i=t+c/2;a!=i&&(a=i,s.each(l,function(t,o){var e=o.focusPoint-i,a=(e>o.maxDistance?e=o.maxDistance:e<-o.maxDistance&&(e=-o.maxDistance),Math.round(e*o.translateYMax/o.maxDistance));"up"!=o.direction&&(a=-a),o.background.each(function(t){var e,i=s(this),n=i.data("parallaxLevels")||1;1<n&&"fixed"!=o.direction?(e=i.data("parallaxLevel")||0,e=("down"==o.direction?n-e:e+1)/n,i.css("transform","translate3d(0, "+Math.round(a*e)+"px, 0")):i.css("transform","translate3d(0, "+a+"px, 0)")}),o.hidden&&(o.background.css("visibility","visible"),o.hidden=!1)}))}var l,c,a,r;s.extend(e,{parallax:(l=[],c=0,r=!(a=-1),{start:function(){var t;r||(r=!0,e.responsive.isAnyMobileDevice()?i.requestAnimationFrame(function(){c=s(i).height(),s(".imParallax").each(function(){var t=s(this),e=t.find(".imParallaxBackground");0!=e.length&&("fixed"==(e.data("parallaxDirection")||"down")&&(t=Math.round((c-t.height())/2),e.css("top",(0<t?-t:0)+"px"),e.css("bottom",(0<t?-t:0)+"px")),e.css("visibility","visible"))})}):(n(),t=document.getElementById("imContent"),e.utils.onElementResize(t,function(t,e){n()}),e.utils.scroll.observe(e.utils.scrollHelper().always(),o)))}})})}(_jq,x5engine,window),!function(e,o){"use strict";e.extend(o,{passwordpolicy:{requiredPolicy:!1,minimumCharacters:6,includeUppercase:!1,includeNumeric:!1,includeSpecial:!1,init:function(t){t=e.extend({requiredPolicy:!1,minimumCharacters:6,includeUppercase:!1,includeNumeric:!1,includeSpecial:!1},t),o.passwordpolicy.requiredPolicy="true"==t.requiredPolicy,o.passwordpolicy.minimumCharacters=parseInt(t.minimumCharacters),o.passwordpolicy.includeUppercase="true"==t.includeUppercase,o.passwordpolicy.includeNumeric="true"==t.includeNumeric,o.passwordpolicy.includeSpecial="true"==t.includeSpecial,"true"==t.requiredPolicy&&o.imForm.activeFocusPasswordPolicy(o.passwordpolicy.getPolicy())},getMinimumCharacters:function(){return o.passwordpolicy.minimumCharacters},getPolicy:function(){var t=["form_password"];return t.push("form_password_length"),o.passwordpolicy.includeUppercase&&t.push("form_password_upper"),o.passwordpolicy.includeNumeric&&t.push("form_password_numeric"),o.passwordpolicy.includeSpecial&&t.push("form_password_special"),t},isValidPassword:function(t){var e,i,n;return o.passwordpolicy.requiredPolicy?(e=!o.passwordpolicy.includeUppercase||o.passwordpolicy.includeUppercase&&/[A-Z]/.test(t),i=!o.passwordpolicy.includeNumeric||o.passwordpolicy.includeNumeric&&/[0-9]/.test(t),n=!o.passwordpolicy.includeSpecial||o.passwordpolicy.includeSpecial&&/[!?<>#$%&*@()]/.test(t),t.length>=o.passwordpolicy.minimumCharacters&&e&&i&&n):0<t.length}}})}(_jq,x5engine),!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ResizeObserver=e()}(this,function(){"use strict";var t,n="undefined"!=typeof Map?Map:((t={size:{configurable:!0}}).size.get=function(){return this.__entries__.length},e.prototype.get=function(t){t=o(this.__entries__,t),t=this.__entries__[t];return t&&t[1]},e.prototype.set=function(t,e){var i=o(this.__entries__,t);~i?this.__entries__[i][1]=e:this.__entries__.push([t,e])},e.prototype.delete=function(t){var e=this.__entries__,t=o(e,t);~t&&e.splice(t,1)},e.prototype.has=function(t){return!!~o(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var i=0,n=this.__entries__;i<n.length;i+=1){var o=n[i];t.call(e,o[1],o[0])}},Object.defineProperties(e.prototype,t),e);function e(){this.__entries__=[]}function o(t,i){var n=-1;return t.some(function(t,e){return t[0]===i&&(n=e,!0)}),n}function i(){function t(){a&&(a=!1,n()),r&&i()}function e(){l(t)}function i(){var t=Date.now();if(a){if(t-s<c)return;r=!0}else r=!(a=!0),setTimeout(e,o);s=t}var n,o,a,r,s;this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=(n=this.refresh.bind(this),r=a=!(o=20),s=0,i)}var a="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,r="undefined"!=typeof global&&global.Math===Math?global:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),l="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(r):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)},c=2,s=["top","right","bottom","left","width","height","size","weight"],d="undefined"!=typeof MutationObserver,u=(i.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},i.prototype.removeObserver=function(t){var e=this.observers_,t=e.indexOf(t);~t&&e.splice(t,1),!e.length&&this.connected_&&this.disconnect_()},i.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},i.prototype.updateObservers_=function(){var t=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return t.forEach(function(t){return t.broadcastActive()}),0<t.length},i.prototype.connect_=function(){a&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),d?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},i.prototype.disconnect_=function(){a&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},i.prototype.onTransitionEnd_=function(t){var e=t.propertyName;void 0===e&&(e=""),s.some(function(t){return!!~e.indexOf(t)})&&this.refresh()},i.getInstance=function(){return this.instance_||(this.instance_=new i),this.instance_},i.instance_=null,function(t,e){for(var i=0,n=Object.keys(e);i<n.length;i+=1){var o=n[i];Object.defineProperty(t,o,{value:e[o],enumerable:!1,writable:!1,configurable:!0})}return t}),h=function(t){return t&&t.ownerDocument&&t.ownerDocument.defaultView||r},p=b(0,0,0,0);function f(t){return parseFloat(t)||0}function g(i){for(var t=[],e=arguments.length-1;0<e--;)t[e]=arguments[e+1];return t.reduce(function(t,e){return t+f(i["border-"+e+"-width"])},0)}function m(t){var e,i,n,o,a,r,s=t.clientWidth,l=t.clientHeight;return s||l?(i=(e=function(t){for(var e={},i=0,n=["top","right","bottom","left"];i<n.length;i+=1){var o=n[i],a=t["padding-"+o];e[o]=f(a)}return e}(r=h(t).getComputedStyle(t))).left+e.right,n=e.top+e.bottom,o=f(r.width),a=f(r.height),"border-box"===r.boxSizing&&(Math.round(o+i)!==s&&(o-=g(r,"left","right")+i),Math.round(a+n)!==l)&&(a-=g(r,"top","bottom")+n),t!==h(t).document.documentElement&&(r=Math.round(o+i)-s,t=Math.round(a+n)-l,1!==Math.abs(r)&&(o-=r),1!==Math.abs(t))&&(a-=t),b(e.left,e.top,o,a)):p}var v="undefined"!=typeof SVGGraphicsElement?function(t){return t instanceof h(t).SVGGraphicsElement}:function(t){return t instanceof h(t).SVGElement&&"function"==typeof t.getBBox};function w(t){var e;return a?v(t)?b(0,0,(e=(e=t).getBBox()).width,e.height):m(t):p}function b(t,e,i,n){return{x:t,y:e,width:i,height:n}}function y(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=b(0,0,0,0),this.target=t}function x(t,e){i=(e=e).x,n=e.y,a=e.width,e=e.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(o.prototype),u(o,{x:i,y:n,width:a,height:e,top:n,right:i+a,bottom:e+n,left:i});var i,n,o,a=o;u(this,{target:t,contentRect:a})}function C(t,e,i){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof t)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=e,this.callbackCtx_=i}y.prototype.isActive=function(){var t=w(this.target);return(this.contentRect_=t).width!==this.broadcastWidth||t.height!==this.broadcastHeight},y.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t};function k(t){if(!(this instanceof k))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var e=i.getInstance(),t=new C(t,e,this);_.set(this,t)}C.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)||(e.set(t,new y(t)),this.controller_.addObserver(this),this.controller_.refresh())}},C.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(t instanceof h(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var e=this.observations_;e.has(t)&&(e.delete(t),e.size||this.controller_.removeObserver(this))}},C.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},C.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},C.prototype.broadcastActive=function(){var t,e;this.hasActive()&&(t=this.callbackCtx_,e=this.activeObservations_.map(function(t){return new x(t.target,t.broadcastRect())}),this.callback_.call(t,e,t),this.clearActive())},C.prototype.clearActive=function(){this.activeObservations_.splice(0)},C.prototype.hasActive=function(){return 0<this.activeObservations_.length};var _=new("undefined"!=typeof WeakMap?WeakMap:n);return["observe","unobserve","disconnect"].forEach(function(e){k.prototype[e]=function(){return(t=_.get(this))[e].apply(t,arguments);var t}}),void 0!==r.ResizeObserver?r.ResizeObserver:k}),!function(o,a){"use strict";o.extend(!0,a,{responsive:{interfaceName:"media-query-to-js",init:function(){var t,e,i=o(window).width();a.settings.breakPoints&&a.settings.breakPoints.length&&(o("body").append('<div id="'+a.responsive.interfaceName+'" />'),t=null,e=a.responsive.getCurrentBreakPoint(),o(window).on("resize",function(){t&&clearTimeout(t),t=setTimeout(function(){var t;a.utils.isInFullScreenMode()||o(window).width()!=i&&(i=o(window).width(),t=a.responsive.getCurrentBreakPoint())&&e&&(e.hash!=t.hash?(o("#imContent").trigger("beforeBreakpointChanged",t).trigger("breakpointChanged",t).trigger("breakpointChangedOrFluid",t),e=t):t.fluid&&o("#imContent").trigger("breakpointChangedOrFluid",t))},50)}))},getCurrentBreakPoint:function(){for(var t=o("#"+a.responsive.interfaceName).width(),e=a.settings.breakPoints,i=0;i<e.length;i++)if(e[i].end<=t)return e[i];throw"Breakpoint not found!"},isDesktopMode:function(){return a.settings.breakPoints.length<2||a.responsive.getCurrentBreakPoint().hash==a.settings.breakPoints[0].hash},isMobileDevice:function(){var t;return!(a.settings.breakPoints.length<3)&&(t=a.settings.breakPoints[a.settings.breakPoints.length-2],o(window).width()<=t.start)&&Modernizr.touchevents},isAnyMobileDevice:function(){var t;return void 0!==window.orientation||!(!(t=window.matchMedia("(pointer: coarse)"))||!t.matches)},resolutionRedirect:function(t){t=o.extend({execute:!0,defaultUrl:"",rules:[]},t);var e=o("#"+a.responsive.interfaceName),i=(e.length&&0<e.innerWidth()?e:o(window)).innerWidth();if(0<i)for(var n=0;n<t.rules.length;n++)if(t.rules[n].min<=i&&i<t.rules[n].max)return t.execute&&(location.href=t.rules[n].url),t.rules[n].url;return t.defaultUrl?(t.execute&&(location.href=t.defaultUrl),t.defaultUrl):""},touchHelper:function(){var t=!1,e="touchstart"in document||"ontouchstart"in document;o("body").one("mousemove",function(){t=!0}),this.isTouch=function(){return e},this.isTouchOnly=function(){return this.isTouch()&&!t}}}}),a.boot.push(a.responsive.init,!1,"first")}(_jq,x5engine),!function(h,t){"use strict";h.extend(t,{imRollover:function(n){n=h.extend({id:null,movement:"ALTERNATE",direction:"UP",effect:"LINEAR",autostart:!1},n);var o,a=h(n.id),r=null,s=(n.time,null),l=0,i={top:+a.css("padding-top").replace(/px/,""),right:+a.css("padding-right").replace(/px/,""),bottom:+a.css("padding-bottom").replace(/px/,""),left:+a.css("padding-left").replace(/px/,"")};switch(n.effect){case"SWING":o="swing";break;case"BOUNCE":o="imBounce";break;default:o="linear"}void 0!==a.attr("id")&&null!==a.attr("id")||a.attr("id","rollover_"+Math.round(1e3*Math.random()));function c(t){var e,i;if((t=h.extend({tick:!1,reset:!0},t)).reset)switch(h(n.id).parent().height()<n.height&&h(n.id).parent().height(n.height),n.movement){case"CONTINUE":switch(n.direction){case"UP":s.css({left:0,top:n.height});break;case"BOTTOM":s.css({left:0,top:-s.height()});break;case"LEFT":s.css("left",a.width()).width(u(s.html()));break;case"RIGHT":l=u(s.html()),s.css("left",-Math.abs(l)).width(l)}break;case"PAGINATE":switch(n.direction){case"BOTTOM":s.css({left:0,top:-s.height()+n.height});break;case"UP":s.css({left:0,top:0});break;case"RIGHT":l=u(s.html()),s.css("left",-l+a.width()).width(l);break;case"LEFT":s.css("left",0).width(u(s.html()))}break;default:switch(n.direction){case"UP":s.css({left:0,top:-s.height()+n.height});break;case"BOTTOM":s.css({left:0,top:0});break;case"LEFT":l=u(s.html()),s.css("left",-l+a.width()).width(l);break;case"RIGHT":l=u(s.html()),s.css("right",-l+a.width()).width(l)}}switch(n.movement){case"PAGINATE":switch(n.direction){case"UP":i=s.css("top").replace("px",""),(i=isNaN(parseInt(i,10))?0:parseInt(i,10))>n.height-s.outerHeight()?s.animate({top:i-n.height},{duration:"medium",complete:function(){r=setTimeout(function(){c({reset:!1})},1e3*n.time)},easing:o}):s.animate({top:0},{duration:"medium",complete:function(){r=setTimeout(function(){c({reset:!1})},1e3*n.time)},easing:o});break;case"BOTTOM":i=s.css("top").replace("px",""),(i=isNaN(parseInt(i,10))?0:parseInt(i,10))<=0?s.animate({top:i+n.height},{duration:"medium",complete:function(){r=setTimeout(function(){c({reset:!1})},1e3*n.time)},easing:o}):s.animate({top:n.height-s.height()},{duration:"medium",complete:function(){r=setTimeout(function(){c({reset:!1})},1e3*n.time)},easing:o});break;case"LEFT":e=s.css("left").replace("px",""),(e=isNaN(parseInt(e,10))?0:parseInt(e,10))>-s.width()+a.width()?s.animate({left:e-a.width()},{duration:"medium",complete:function(){r=setTimeout(function(){c({reset:!1})},1e3*n.time)},easing:o}):s.animate({left:0},{duration:"medium",complete:function(){r=setTimeout(function(){c({reset:!1})},1e3*n.time)},easing:o});break;case"RIGHT":e=s.css("left").replace("px",""),(e=isNaN(parseInt(e,10))?0:parseInt(e,10))<0?s.animate({left:e+a.width()},{duration:"medium",complete:function(){setTimeout(function(){c({reset:!1})},1e3*n.time)},easing:o}):s.animate({left:-s.width()+a.width()},{duration:"medium",complete:function(){setTimeout(function(){c({reset:!1})},1e3*n.time)},easing:o})}break;case"CONTINUE":switch(n.direction){case"UP":s.animate({top:-s.outerHeight()},{duration:1e3*n.time,complete:function(){s.css({top:n.outerHeight}),c()},easing:o});break;case"BOTTOM":s.animate({top:n.height},{duration:1e3*n.time,complete:function(){s.css({top:-s.height()}),c()},easing:o});break;case"LEFT":s.animate({left:-s.width()},{duration:1e3*n.time,complete:function(){s.css({left:a.width()}),c()},easing:o});break;case"RIGHT":s.animate({left:a.width()},{duration:1e3*n.time,complete:function(){s.css({left:-s.width()}),c()},easing:o})}break;case"SINGLE":switch(n.direction){case"UP":s.animate({top:0},{duration:1e3*n.time,easing:o});break;case"BOTTOM":s.animate({top:-s.height()+n.height},{duration:1e3*n.time,easing:o});break;case"RIGHT":l=u(s.html()),s.animate({left:-l+a.width()},{duration:1e3*n.time,easing:o});break;case"LEFT":s.animate({left:0},{duration:1e3*n.time,easing:o})}break;default:switch(n.direction){case"UP":s.animate({top:0},{duration:1e3*n.time,complete:function(){n.direction="BOTTOM",c()},easing:o});break;case"BOTTOM":s.animate({top:-s.height()+n.height},{duration:1e3*n.time,complete:function(){n.direction="UP",c()},easing:o});break;case"RIGHT":l=u(s.html()),s.animate({left:-l+a.outerWidth()},{duration:1e3*n.time,complete:function(){n.direction="LEFT",c()},easing:o});break;case"LEFT":s.animate({left:0},{duration:1e3*n.time,complete:function(){n.direction="RIGHT",c()},easing:o})}}}function e(){"PAGINATE"!=n.movement?c():r=setTimeout(function(){c()},1e3*n.time)}function d(){s.stop()}var u=function(t){var t=h("<div><div>"+t+"</div></div>").css({position:"absolute",top:-1e3}).width(5e7),e=t.children().css({width:"auto","white-space":"UP"==n.direction||"BOTTOM"==n.direction?"normal":"nowrap",display:"inline-block","padding-top":i.top,"padding-bottom":i.bottom,"padding-right":i.right,"padding-left":i.left,"max-width":"100%"});return a.append(t),e=e.outerWidth(!0)+30,t.remove(),e};!function t(){a.is(":visible")?(a.height(n.height).css({position:"relative",overflow:"hidden"}),h("#"+a.attr("id")+"_runner").length<1&&a.wrapInner('<div id="'+a.attr("id")+'_runner">'),s=h("#"+a.attr("id")+"_runner").css({position:"absolute","padding-top":i.top,"padding-bottom":i.bottom,"padding-right":i.right,"padding-left":i.left,"white-space":"UP"==n.direction||"BOTTOM"==n.direction?"normal":"nowrap","max-width":"UP"==n.direction||"BOTTOM"==n.direction?"100%":"none",width:"100%","box-sizing":"border-box"}),n.mouselock&&("PAGINATE"!=n.movement?a.mouseenter(function(){s.pauseAnim()}).mouseleave(function(){s.resAnim()}):a.mouseover(function(){null!==r&&clearTimeout(r)}).mouseleave(function(){r=setTimeout(function(){c({reset:!1})},1e3*n.time)})),n.autostart&&e(),a.data("imRollover",{start:function(){e()},stop:function(){d()},disable:function(){d(),h(s.eq(0).contents()).unwrap(),a.height("auto")}})):setTimeout(t,300)}()}})}(_jq,x5engine),!function(Bt,Ht){"use strict";Bt.extend(Ht,{imShowBox:function(u,r,a){var H=/(iPad|iPhone)/i.test(navigator.userAgent);if(H&&u.media&&0<u.media.length&&u.media[0].url){var t=u.media[0].url;if(t.endsWith(".pdf"))return void window.open(t)}function L(t,e){var i,n,o;u.showThumbs&&void 0!==u.media[t]&&null!==u.media[t]&&((i=Bt("<div class='im-showbox-thumb' data-index='"+t+"'>")).css({"background-position":"center center","background-repeat":"no-repeat","background-size":"cover",width:u.thumbSize,height:u.thumbSize,display:"none",cursor:"pointer","box-shadow":"0 0 2px "+u.background}),o="",n=u.media[t].type,o=void 0===u.media[t].thumbUrl?-1!=["video","youtube","vimeo"].indexOf(n)?u.media[t].previewUrl||Ht.settings.currentPath+"res/video_thumb.svg":"image"==n?u.media[t].url:Ht.settings.currentPath+"res/impage.png":u.media[t].thumbUrl,Bt("<img/>").on("load",function(){i.css("background-image",'url("'+o+'")'),Bt.isFunction(e)&&e(t,i)}).attr("src",o),L(t+1,e))}function j(t){x.find(".im-showbox-thumb").css("opacity",1),x.find(".im-showbox-thumb[data-index="+t+"]").css("opacity",.6);var e=u.thumbSize+20,t=k.width()/2-(t*e+e/2);x.css("left",t),gt&&(x.animate({bottom:0},500),gt=!1)}function R(t){l=Bt(document.createElement("div")),_.append(l),l.addClass("showbox-bg"),t&&l.prepend(Ht.settings.imLoadingAnimation),l.css({position:"fixed","background-color":u.background,top:0,left:0,bottom:0,right:0,display:"none","z-index":Ht.settings.zIndex.showBox}).fadeTo(C,1),u.backgroundBlur&&((o=null===o?Bt("#imPageExtContainer"):o).css("transition","filter .2s"),o.css("filter","blur(3px)")),_.append(s),s.show(),rt?s.on("click",Et):h.on("showboxReady",()=>{s.on("click",Et)}),u.radialBg&&(/Firefox/i.test(navigator.userAgent)?l.css({"background-image":"-moz-radial-gradient(center 45deg, ellipse farthest-corner, "+Ht.utils.hex2rgb(u.background,80,80,80)+" 0%, "+Ht.utils.hex2rgb(u.background,40,40,40)+" 40%, "+Ht.utils.hex2rgb(u.background)+" 100%)"}):/Chrome/i.test(navigator.userAgent)&&l.css({background:"-webkit-gradient(radial, 50% 50%, 0, 50% 50%, 500, from("+Ht.utils.hex2rgb(u.background,80,80,80)+"), to("+Ht.utils.hex2rgb(u.background)+"))"}))}function z(t){var e=f[t].Width()/f[t].Height(),i=f[t].Width()+A,n=f[t].Height()+F,o=I?k.width():k.width()-2*u.windowPadding-(c.outerWidth()+d.outerWidth()),a=I?k.height():k.height()-2*u.windowPadding-Math.max(b.outerHeight(),m.outerHeight(),v.outerHeight())-y.outerHeight(),r=f[t].GetDescription(),s=null,r=(r&&((s=p.clone()).css({position:"absolute",top:-1e3,right:"auto",left:"auto",bottom:"auto"}).width(i).html(r),_.append(s),n+=s.outerHeight()),o<i&&(n=(o-A)/e+F,i=o,s)&&(s.width(i),n+=s.outerHeight()),a<n&&(i=(a-A)*e+A,r=n=a,s)&&(s.width(i),r-=o=s.outerHeight(),e=s.width(),a=Math.round(f[t].Width()*r/f[t].Height()),s.width(a),s.outerHeight()<=o?i=Math.round(a):s.width(e)),0);return s&&(r=s.outerHeight(),s.remove()),{width:i,height:n,dHeight:r}}function W(t){u.showProgress&&1<u.media.length&&b.html(t+1+"/"+u.media.length)}function N(){return u.zoomEnabled&&pt&&T<6&&(O=!0,T++,Mt()),!1}function q(){return u.zoomEnabled&&pt&&1<T&&(1==--T&&(O=!1),Mt()),!1}function $(t){var e=Ht.utils.fullScreenElement();e&&e!==s.get(0)||(O&&St(),f[S].DOMObject().is("iframe")&&-1!=navigator.userAgent.indexOf("X5"))||P(S,null,null,!0)}function Y(t){switch(t.keyCode){case 37:case 40:t.preventDefault(),Ft();break;case 39:case 38:t.preventDefault(),At();break;case 27:t.preventDefault(),(I?xt:Et)()}}function U(){st=setTimeout(function(){At(),st=null,U()},u.autoplayTime)}function V(){null!==st&&clearTimeout(st)}function X(){var t;u.buttons&&(t={cursor:"pointer",position:"absolute"},1<u.media.length&&(d.stop(!0,!0).css(t).css({top:(k.height()-d.height())/2,left:0}).fadeIn(C),c.stop(!0,!0).css(t).css({top:(k.height()-c.height())/2,right:0}).fadeIn(C)),u.fullScreenEnabled&&v.stop(!0,!0).css(t).css({top:0,display:"block",right:m.outerWidth()}),It())}function G(){u.sound&&(it=new Audio(u.sound)).play()}var Z,t=Bt("html").hasClass("touchevents")?{innerBorder:0,borderWidth:{left:0,right:0,top:0,bottom:0},windowPadding:0}:{},K=(u=Bt.extend({},Ht.settings.imShowBox,u,t),r=r||0,a=Bt(a),r),J=(a.width()&&a.height()&&!a.children("img").length||((t=a.children("img")).length?a=t:(Z=!1,a.children().each(function(){var t=Bt(this);Z||0===t.width()||0===t.height()||(a=t,Z=!0)}))),Bt("html").hasClass("touchevents")),f=[],o=null,h=null,s=null,p=null,g=null,Q=null,l=null,c=null,d=null,m=null,v=null,n=null,w=null,tt=null,b=null,y=null,x=null,C="fade"!=u.effect&&"custom"!=u.effect?250:2,et="fade"!=u.effect?250:2,e=null,k=Bt(window),_=Bt("body"),t=Bt("head"),it=null,S=null,nt=a.css("visibility"),ot=a.width(),at=a.height(),rt=!1,st=null,M=null,lt=null,ct=null,dt=null,ut=null,ht=null,I=!1,O=!1,T=1,pt=!1,ft=!0,gt=!0,i=Ht.l10n.get,A=2*u.innerBorder+u.borderWidth.left+u.borderWidth.right,F=2*u.innerBorder+u.borderWidth.top+u.borderWidth.bottom,mt=0,vt=0,E=function(){for(var t={forceStop:!1},e=0;e<u.media.length;e++)t[e]={loadStarted:!1,loadEnded:!1};return t}(),D=function(t,i,n){u.media[t]&&wt(t,function(t,e){n?D(t+n,i,n):(D(t+1,i,1),D(t-1,i,-1)),i(t,e)})},wt=function(e,i){var n;E.forceStop||E[e].loadStarted||(E[e].loadStarted=!0,n=u.media[e].load,void 0!==u.media[e].effect&&null!==u.media[e].effect||(u.media[e].effect=u.transitionEffect),new Ht.mediaObject(Bt.extend({},u.media[e],{touchDevice:J,android:!1,allowFrameTransparency:u.allowFrameTransparency,load:function(t){f[e]=t,Bt.isFunction(i)&&i(e,t);J&&t.AfterMove(function(t,e){t.preventDefault(),O||((Math.abs(e.offsetX)>Math.abs(e.offsetY)?e.offsetX:e.offsetY)<0?At:Ft)()}).Gesture(function(t){t.preventDefault(),t.scale<.9&&Et()}).AfterPinch(function(t){t.preventDefault(),O?(t.scale<1?q:N)():t.scale<.9&&Et()}),Bt.isFunction(n)&&n(t),E[e].loadEnded=!0}})))},bt=function(){Q.css("box-shadow",u.shadow)},yt=function(){Q.css("box-shadow","")},xt=function(){if(u.fullScreenEnabled&&Ht.utils.isFullScreenNativelySupported())if(I)Ct();else{if(mt=window.pageXOffset,vt=window.pageYOffset,I=true,Ht.utils.enterFullScreen(s.get(0)),v.html(u.buttonExitFS).attr("title",i("showbox_tip_fs_exit","Exit FullScreen")),Bt(document).on("imFullScreenClose",Ct),e!=null)clearTimeout(e);e=setTimeout(Pt,4e3),Bt(document).on("mousemove",_t),Bt("#imShowBox").on("click",_t)}return!1},Ct=function(){I&&(I=!1,Ht.utils.exitFullScreen(),kt()),v.html(u.buttonEnterFS).attr("title",i("showbox_tip_fs_enter","Enter FullScreen")),Bt(document).off("imFullScreenClose",Ct),Bt(document).off("mousemove",_t),Bt("#imShowBox").off("click",_t),null!=e?(clearTimeout(e),e=null):Dt()},kt=function(){(0<mt||0<vt)&&setTimeout(function(){window.scrollTo(mt,vt),vt=mt=0},100)},_t=function(){null!=e?(clearTimeout(e),e=null):Dt(),e=setTimeout(Pt,4e3)},St=function(){return u.zoomEnabled&&pt&&O&&(O=!(T=1),Mt()),!1},Mt=function(){var t;rt?((t=f[S].DOMObject()).css({transform:"scale3d("+T+", "+T+", 1)","transform-origin":"50% 50% 0","transition-property":"transform","transition-duration":O?"300ms":"0"}),(O?(t.addClass("grabbable"),b.fadeOut(),p.fadeOut(),h.css({backgroundColor:"transparent",borderColor:"transparent"}),yt):(t.removeClass("grabbable"),b.fadeIn(),p.fadeIn(),h.css({backgroundColor:u.boxColor,borderColor:u.borderColor}),bt))(),t.parent().css({overflow:O?"visible":"hidden",transform:"translate3d(0, 0, 0)"}).attr("data-x",0).attr("data-y",0),Ot(),It()):h.on("showboxReady",Mt)},It=function(){var t,e,i;u.zoomEnabled&&(t={cursor:"pointer",position:"absolute",top:"0"},e=u.fullScreenEnabled?v.outerWidth():0,pt?(i=0,n.css(t).css({display:"block",right:i+=m.outerWidth()+e}),T<6?n.children().removeClass("disabled"):n.children().addClass("disabled"),w.css(t).css({display:O?"block":"none",right:i+=n.outerWidth()}),tt.css(t).css({display:O?"block":"none",right:i+=w.outerWidth()})):(1==u.media.length?n.css("display","none"):n.css(t).css({display:"block",right:m.outerWidth()+e}).children().addClass("disabled"),w.css("display","none"),tt.css("display","none")))},Ot=function(){var r=f[S].DOMObject(),s=r.parent(),l={},c={},d=!1,u=!1,h=!1,p=!1;g.off("mousedown.zoom touchstart.zoom").on("mousedown.zoom touchstart.zoom",function(t){O&&(p=r.outerHeight()*T>k.height(),(h=r.outerWidth()*T>k.width())||p)&&(t.preventDefault(),l="mousedown"==t.type?{x:t.pageX,y:t.pageY}:{x:t.originalEvent.targetTouches[0].pageX,y:t.originalEvent.targetTouches[0].pageY},r.removeClass("grabbable").addClass("grabbing"),u=!0)}),k.off("mousemove.zoom touchmove.zoom").on("mousemove.zoom touchmove.zoom",function(t){var e;u&&(d=!0,c="mousemove"==t.type?{x:t.pageX,y:t.pageY}:{x:t.originalEvent.targetTouches[0].pageX,y:t.originalEvent.targetTouches[0].pageY},t=p?parseInt(s.attr("data-y"))+(c.y-l.y):s.attr("data-y"),e=h?parseInt(s.attr("data-x"))+(c.x-l.x):s.attr("data-x"),s.css("transform","translate3d("+e+"px, "+t+"px, 0)"))}),k.off("mouseup.zoom touchend.zoom").on("mouseup.zoom touchend.zoom",function(t){var e,i,n,o,a;u&&(u=!1,r.removeClass("grabbing").addClass("grabbable"),!d||l.x===c.x&&l.y===c.y||("mouseup"==t.type&&(c={x:t.pageX,y:t.pageY}),t=l,e=c,i=h,n=p,o=parseInt(s.attr("data-x"))+(e.x-t.x),e=parseInt(s.attr("data-y"))+(e.y-t.y),t=(r.outerHeight()*T-k.height())/2,a=(r.outerWidth()*T-k.width())/2,n&&(e<=-t?e=-t:t<=e&&(e=t)),i&&(o<=-a?o=-a:a<=o&&(o=a)),n?s.attr("data-y",e):e=s.attr("data-y"),i?s.attr("data-x",o):o=s.attr("data-x"),s.css("transform","translate3d("+o+"px, "+e+"px, 0)")),d=!1)})},P=function(i,n,o,a){E[i].loadEnded?Tt(i,n,o,a):E[i].loadStarted?setTimeout(function(){P(i,n,o,a)},100):D(r=i,function(t,e){t==i&&Tt(i,n,o,a)})},Tt=function(e,i,t,n){function o(e){null!==S?(p.stop(!1,!1).fadeOut(C/2),f[S].AnimateOut(g,function(t){t.DOMObject().detach(),Bt.isFunction(e)&&e()},i)):Bt.isFunction(e)&&e()}function a(){f[e].AppendTo(g),g.width(s.width-A).height(s.height-s.dHeight-F),f[e].ContentWidth(s.width-A),f[e].ContentHeight(s.height-s.dHeight-F);var t=null;ft&&(t=u.media[e].effect,f[e].ChangeAnimation("none"),ft=!1),f[e].AnimateIn(g,function(){""!==f[e].GetDescription()&&p.html(f[e].GetDescription()).fadeIn(C),null!==t&&f[e].ChangeAnimation(t),H&&f[e].DOMObject().is("iframe")?g.css({overflow:"scroll","-webkit-overflow-scrolling":"touch"}):g.css({overflow:"hidden","-webkit-overflow-scrolling":""}),rt=!0,h.trigger("showboxReady")},i)}function r(){var t;S=e,d||n?(t=function(){a()},u.shadow&&yt(),h.stop(!1,!1).animate({width:s.width-A,height:s.height-F,left:(k.width()-s.width)/2,top:c()},{duration:32<h.width()?et:C,complete:function(){h.css("overflow","visible").trigger("showboxReady"),u.shadow&&bt(),Bt.isFunction(t)&&t()}})):a()}var s=z(e),l=null!==S?z(S):{width:0,height:0},c=(i=i||!1,t=t||!1,rt=!1,pt="image"==u.media[e].type,W(e),j(e),function(){var t=(k.height()-s.height)/2,e=Math.max(b.outerHeight(),m.outerHeight(),v.outerHeight())+u.windowPadding,i=y.outerHeight()+u.windowPadding;if(!I){if(t<e)return e;if(t<i)return t-(i-t)}return t}),d=l.width!=s.width||l.height!=s.height;t||!d?(o(),r()):o(r)},At=function(){return O&&St(),V(),S+1<f.length?P(S+1):P(0),!1},Ft=function(){return O&&St(),V(),P(S-1<0?f.length-1:S-1,!0),!1},Et=function(){function t(){return!!M&&(M.attr("content",dt+", maximum-scale=4, user-scalable=yes"),k.scrollLeft(lt),k.scrollTop(ct),!0)}switch(s.off("click"),_.off("keydown",Y),k.off("resize",$),ut?(navigator.virtualKeyboard.removeEventListener("geometrychange",ut),ut=null):ht&&(window.visualViewport.removeEventListener("resize",ht),ht=null),l.stop(!1,!1).fadeOut(C,function(){l.remove()}),u.backgroundBlur&&(o=null===o?Bt("#imPageExtContainer"):o).css("filter","none"),null!==S&&f[S].Stop(),st&&clearTimeout(st),"zoom"!=u.effect&&"hide"!=u.effect||S==K||(a.css("visibility",nt),u.effect="fade"),Bt.isFunction(u.onClose)&&u.onClose(),it&&it.pause(),u.effect){case"fade":h.stop(!1,!1).fadeOut(C,function(){s.remove(),!t()&&u.fullScreenEnabled&&Ht.utils.isFullScreenNativelySupported()&&kt()});break;case"move":h.stop(!1,!1).animate({top:-h.outerHeight()},{duration:C,complete:function(){s.remove(),!t()&&u.fullScreenEnabled&&Ht.utils.isFullScreenNativelySupported()&&kt()}});break;case"zoom":case"hide":var e,i=a.offset(),n=(i.left-=k.scrollLeft(),i.top-=k.scrollTop(),f[S].DOMObject());p.fadeOut(C),a.find("img");a.is("img")&&(e=a.clone().css({width:"100%",height:"100%",visibility:"visible"}).fadeIn(0),n.before(e)),n.css({width:"100%",height:"100%"}).fadeOut(C),g.animate({width:ot,height:at},{duration:C}),""!==u.shadow&&yt(),h.animate({top:i.top,left:i.left,width:ot,height:at,padding:0},{duration:C,complete:function(){"hide"==u.effect&&a.css("visibility",nt),s.remove(),!t()&&u.fullScreenEnabled&&Ht.utils.isFullScreenNativelySupported()&&kt()}});break;default:s.remove(),l.stop().remove(),!t()&&u.fullScreenEnabled&&Ht.utils.isFullScreenNativelySupported()&&kt()}E.forceStop=!0},Dt=function(){s.removeClass("imHideShowBoxControls")},Pt=function(){s.addClass("imHideShowBoxControls"),e=null},h=Bt('<div id="imShowBox"/>'),s=Bt('<div id="imShowBoxWrapper"/>'),g=Bt("<div />"),p=Bt("<div />"),m=Bt('<div id="imShowBoxClose"/>').html(u.buttonClose),c=Bt('<div id="imShowBoxNext"/>').html(u.buttonRight),d=Bt('<div id="imShowBoxPrev"/>').html(u.buttonLeft),v=Bt('<div id="imShowBoxFullScreenToggle"/>').html(u.buttonEnterFS),n=Bt('<div id="imShowBoxZoomIn"/>').html(u.buttonZoomIn),w=Bt('<div id="imShowBoxZoomOut"/>').html(u.buttonZoomOut),tt=Bt('<div id="imShowBoxZoomRestore"/>').html(u.buttonZoomRestore),b=Bt('<div id="imShowBoxProgress"/>'),y=Bt('<div id="imShowBoxThumbs"/>'),x=Bt('<div id="imShowBoxThumbsDragger"/>');switch(c.css({display:"none"}).click(At).attr("title",i("showbox_tip_next","Next")).on("selectstart mousedown",function(){return!1}),d.css({display:"none"}).click(Ft).attr("title",i("showbox_tip_prev","Previous")).on("selectstart mousedown",function(){return!1}),g.addClass(u.boxClass).css({position:"relative",height:"100%",overflow:"hidden"}),p.css({"font-family":u.fontFamily,"font-size":u.fontSize,color:u.textColor,"padding-top":0,"padding-left":u.innerBorder,"padding-right":u.innerBorder,"padding-bottom":u.innerBorder,"text-align":u.textAlignment,"font-style":u.fontStyle,"font-weight":u.fontWeight,"line-height":1.4,position:"absolute",right:0,left:0,bottom:0}),m.css({position:"absolute",right:0,top:0,cursor:"pointer",display:"block"}).click(Et).attr("title",i("showbox_tip_close","Close")),v.css({display:"none"}).click(xt).attr("title",i(Ht.utils.isFullScreenNativelySupported()?"showbox_tip_fs_enter":"showbox_tip_fs_unavailable"),Ht.utils.isFullScreenNativelySupported()?"Enter FullScreen":"FullScreen unavailable").children().addClass(Ht.utils.isFullScreenNativelySupported()?"":"disabled"),n.css({display:"none"}).click(N).attr("title",i("showbox_tip_zoom_in","Zoom In")),w.css({display:"none"}).click(q).attr("title",i("showbox_tip_zoom_out","Zoom Out")),tt.css({display:"none"}).click(St).attr("title",i("showbox_tip_zoom_restore","Zoom Restore")),b.css({position:"absolute",padding:10,top:0,left:0,"text-shadow":"0 0 2px "+u.background}).addClass("im-common-button-text-style"),y.css({position:"absolute",bottom:0,left:0,width:"100%",display:"none"}),x.css({position:"absolute",bottom:-(u.thumbSize+20),left:0,width:u.media.length*(u.thumbSize+20),"transition-duration":"200ms"}),y.append(x),h.click(function(t){t.stopPropagation()}),s.append(h).append(m).append(v).append(n).append(w).append(tt).append(b).append(y).css({position:"fixed",top:0,left:0,bottom:0,right:0,display:"none","z-index":Ht.settings.zIndex.showBox+1}),J||s.append(d).append(c),h.append(g).append(p).append(Ht.settings.imLoadingAnimation).css({position:"fixed","background-position":"center center","background-repeat":"no-repeat","border-radius":u.borderRadius,"z-index":Ht.settings.zIndex.showBox+2,overflow:"visible"}),[m,d,c,v,n,w,tt,b,y].map(function(t){t.css("z-index",Ht.settings.zIndex.showBox+3)}),rt?X():h.on("showboxReady",X),Q="transparent"==u.boxColor&&(0===u.borderWidth.top&&0===u.borderWidth.bottom&&0===u.borderWidth.left&&0===u.borderWidth.right||"transparent transparent transparent transparent"==u.borderColor)?g:h,J&&(ct=k.scrollTop(),lt=k.scrollLeft(),(M=t.find('meta[name="viewport"]')).length||(M=Bt('<meta name="viewport" content="initial-scale=1" />'),t.append(M)),dt=M.attr("content"),M.attr("content",dt+", user-scalable=no, maximum-scale=1, interactive-widget=overlays-content"),navigator.virtualKeyboard?(ut=t=>{var e=Bt("#imShowBox");0<e.length&&e.css("top",Math.max((window.outerHeight-t.target.boundingRect.height-e[0].clientHeight)/2,0)+"px")},navigator.virtualKeyboard.addEventListener("geometrychange",ut)):(ht=()=>{var t=Bt("#imShowBox");0<t.length&&t.css("top",Math.max((window.outerHeight-t[0].clientHeight)/2,0)+"px")},window.visualViewport.addEventListener("resize",ht))),u.autoplay&&h.one("showboxReady",U),u.showThumbs&&(y.css({display:"block",height:u.thumbSize+20}),L(0,function(t,e){!function(t,e){if(e.css({float:"left",margin:"10px"}),0<t)for(var i,n=t-1;0<=n;n--)if(0<(i=x.find("[data-index="+n+"]")).length)return i.after(e);x.prepend(e)}(t,e),e.fadeIn(C).click(function(){return P(t),!1})})),u.effect){case"none":case"fade":case"move":R(),h.css({width:32,height:32,left:(k.width()-32)/2,"background-color":u.boxColor,top:"move"!=u.effect?(k.height()-32)/2:-50,padding:u.innerBorder,"border-top-width":u.borderWidth.top,"border-right-width":u.borderWidth.right,"border-bottom-width":u.borderWidth.bottom,"border-left-width":u.borderWidth.left,"border-style":"solid","border-color":u.borderColor,display:"move"!=u.effect?"none":"block"});var B=function(){D(r,function(t,e){t===r&&(h.find(".imLoadAnim").remove(),P(r,!1,!1),G())}),_.keydown(Y),k.resize($)};"move"!=u.effect?h.fadeIn(C,B):(h.animate({top:(k.height()-32)/2},{duration:C}),B());break;case"zoom":case"hide":B=a.offset();B.left-=k.scrollLeft(),B.top-=k.scrollTop(),R(),h.css({width:a.width(),height:a.height(),left:B.left,top:B.top,padding:0,"background-color":"transparent","border-top-width":0,"border-right-width":0,"border-bottom-width":0,"border-left-width":0,display:"none"}).fadeIn(C),D(r,function(t,e){var i,n,o;t===r&&(S=t,pt="image"==u.media[t].type,W(t),i=null,a.is("img")&&(i=a.clone().css({width:"100%",height:"100%"}),g.append(i)),"hide"==u.effect&&a.css("visibility","hidden"),h.find(".imLoadAnim").remove(),n=z(t),(o=e.DOMObject()).css({top:0,left:0,width:"100%",height:"100%",display:"none"}),g.append(o),g.stop(!0,!0).animate({width:n.width-A,height:n.height-n.dHeight-F},{duration:C}),e.TriggerAnimationInStart(),h.css({"background-color":u.boxColor,"border-top-width":0,"border-right-width":0,"border-bottom-width":0,"border-left-width":0,"border-style":"solid","border-color":u.borderColor}).stop(!0,!0).animate({padding:u.innerBorder,width:n.width-A,height:n.height-F,"border-top-width":u.borderWidth.top,"border-right-width":u.borderWidth.right,"border-bottom-width":u.borderWidth.bottom,"border-left-width":u.borderWidth.left,top:(k.height()-n.height)/2,left:(k.width()-n.width)/2},{duration:C,complete:function(){j(t),rt=!0,h.trigger("showboxReady"),o.width(n.width-A).height(n.height-n.dHeight-F),P(t),""!==u.shadow&&bt(),e.TriggerAnimationInEnd()}}),i&&i.fadeOut(function(){i.remove()}),o.fadeIn(C),p.empty().fadeOut(C),G(),_.keydown(Y),k.resize($))});break;case"custom":u.customEffect&&(R(!0),h.css({width:32,height:32,left:(k.width()-32)/2,"background-color":u.boxColor,top:"move"!=u.effect?(k.height()-32)/2:-50,padding:u.innerBorder,"border-top-width":u.borderWidth.top,"border-right-width":u.borderWidth.right,"border-bottom-width":u.borderWidth.bottom,"border-left-width":u.borderWidth.left,"border-style":"solid","border-color":u.borderColor,display:"none"}),D(r,function(t,e){t===r&&(l.find(".imLoadAnim").remove(),h.fadeIn(C,function(){h.find(".imLoadAnim").remove(),P(r,!1,!1);function t(){h.addClass(u.customEffect)}-1<navigator.userAgent.indexOf("MS IE")?setTimeout(t,2):t(),G()}))}),_.keydown(Y),k.resize($))}return!1}})}(_jq,x5engine),!function(p,f){"use strict";p.extend(f,{imSlider:{Horizontal:function(t,e){var i,s,l,n=p(t),o=0,c=n.find(".imGlContent"),d=n.find(".imRunner"),u=0,a=p("html").hasClass("touchevents"),r=null,h=p.extend({helperBg:"black",swipeImage:"res/move.png",visibleImagesCount:0},e);a?(n.find(".imLeftArrow").add(n.find(".imRightArrow")).css("visibility","hidden"),s=d.find("img").outerWidth(!0),l=null,new f.mediaObject({type:"dom",url:t+" .imRunner",width:d.width(),height:d.height(),effect:"none",touchDevice:!0,load:function(t){var e,i,n,o,a=d.width(),r=c.width();t.TriggerAnimationInStart().TriggerAnimationInEnd().BeforeMove(function(t){d.stop(!1,!1),n=t.touches[0].pageX,o=u,s=d.find("img").outerWidth(!0),e=null}).Move(function(t){t.preventDefault(),i=e,u=e=o-(n-t.touches[0].pageX),(e<-a+r||0<e)&&(u=o-(n-t.touches[0].pageX)/2),window.cancelAnimFrame(l),l=window.requestAnimFrame(function(){d.css("left",u)}),n=t.touches[0].pageX,o=u}).AfterMove(function(t){t.preventDefault(),e&&(i&&(e+=6*(e-i)),t=Math.abs(e%s),s/2<t?e-=s-t:e+=t,d.stop(!1,!1).animate({left:Math.min(Math.max(e,-a+r),0)},{duration:1e3,easing:"iOsSwing",step:function(t,e){"left"==e.prop&&(u=t)}}))})}}),r=p('<div data-hide="false" />').css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(p("<div />").css({background:h.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0}).fadeTo(0,.75)).append(p("<div />").css({background:"transparent url('"+h.swipeImage+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0})),c.append(r)):(i=d.find("img").length,n.find(".imLeftArrow").not(".hiddenArrow").off("click").on("click",function(){o=0===o?i-h.visibleImagesCount:(o-=h.visibleImagesCount,Math.max(o,0)),u=-d.find("img").eq(o).position().left,d.stop(!1,!1).animate({left:u})}),n.find(".imRightArrow").not(".hiddenArrow").off("click").on("click",function(){var t=i-h.visibleImagesCount;o=t<=o?0:(o+=h.visibleImagesCount,Math.min(o,t)),u=-d.find("img").eq(o).position().left,d.stop(!1,!1).animate({left:u})}))},Vertical:function(t,e){var i,s,l,n=p(t),o=0,c=n.find(".imGlContent"),d=n.find(".imRunner").on("dragstart",function(){return!1}),u=0,a=p("html").hasClass("touchevents"),r=null,h=p.extend({helperBg:"black",swipeImage:"res/move.png",visibleImagesCount:0},e);a?(n.find(".imTopArrow").add(n.find(".imBottomArrow")).css("visibility","hidden"),s=0,l=null,new f.mediaObject({type:"dom",url:t+" .imRunner",width:d.width(),height:d.height(),effect:"none",touchDevice:!0,load:function(t){var e,i,n,o,a=d.height(),r=c.height();t.TriggerAnimationInStart().TriggerAnimationInEnd().BeforeMove(function(t){d.stop(!1,!1),n=t.touches[0].pageY,o=u,s=d.find("img").outerHeight(!0),e=null}).Move(function(t){t.preventDefault(),i=e,u=e=o-(n-t.touches[0].pageY),(e<-a+r||0<e)&&(u=o-(n-t.touches[0].pageY)/2),window.cancelAnimFrame(l),l=window.requestAnimFrame(function(){d.css("top",u)}),n=t.touches[0].pageY,o=u}).AfterMove(function(t){t.preventDefault(),e&&(i&&(e+=6*(e-i)),t=Math.abs(e%s),s/2<t?e-=s-t:e+=t,d.stop(!1,!1).animate({top:Math.min(Math.max(e,-a+r),0)},{duration:1e3,easing:"iOsSwing",step:function(t,e){"top"==e.prop&&(u=t)}}))})}}),r=p('<div data-hide="false" />').css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(p("<div />").css({background:h.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0}).fadeTo(0,.75)).append(p("<div />").css({background:"transparent url('"+h.swipeImage+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0})),c.append(r)):(i=d.find("img").length,n.find(".imTopArrow").off("click").on("click",function(){o=0===o?i-h.visibleImagesCount:(o-=h.visibleImagesCount,Math.max(o,0)),u=-d.find("img").eq(o).position().top,d.stop(!1,!1).animate({top:u})}),n.find(".imBottomArrow").off("click").on("click",function(){var t=i-h.visibleImagesCount;o=t<=o?0:(o+=h.visibleImagesCount,Math.min(o,t)),u=-d.find("img").eq(o).position().top,d.stop(!1,!1).animate({top:u})}))},Page:function(t,e){var i,r=p(t),n=p(t+" .imSPage"),s=p(t+" .imRunner").on("dragstart",function(){return!1}),l=0,o=p("html").hasClass("touchevents"),c=n.width(),d=n.length*c,n=null,a=p.extend({helperBg:"black",swipeImage:"res/move.png"},e);1==e.fluidMode?s.width("auto"):(s.width(d),o?(new f.mediaObject({type:"dom",url:t+" .imRunner",width:d,height:s.height(),effect:"none",touchDevice:!0,load:function(t){var i,n,e,o,a=r.width();t.TriggerAnimationInStart().TriggerAnimationInEnd().BeforeMove(function(t){s.stop(!1,!1),e=t.touches[0].pageX,o=l,i=null}).Move(function(t){t.preventDefault(),n=i,l=i=o-(e-t.touches[0].pageX),(i<-d+a||0<i)&&(l=o-(e-t.touches[0].pageX)/2),s.css("left",l),e=t.touches[0].pageX,o=l}).AfterMove(function(t,e){t.preventDefault(),i&&(t=Math.abs(i%c),i+=t,30<Math.abs(e.offsetX)&&(i+=i-t-n<0?-c:c),s.stop(!1,!1).animate({left:Math.min(Math.max(i,-d+a),0)},{duration:1e3,easing:"iOsSwing",step:function(t,e){"left"==e.prop&&(l=t)}}))})}}),n=p('<div data-hide="false" />').css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(p("<div />").css({background:a.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0}).fadeTo(0,.75)).append(p("<div />").css({background:"transparent url('"+a.swipeImage+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0})),r.append(n)):((i=p(t+" .imSControls")).length&&i.remove(),r.append('<div class="imSControls"><p class="imPPrev"><</p><p class="imPNext">></p></div>'),i.css({"border-radius":"10px 10px 0 0",color:"black",bottom:-i.height()-50}),p(t+" .imPPrev").off("click").on("click",function(){0<l+c?l=-d+c:l+=c,s.animate({left:l})}),p(t+" .imPNext").off("click").on("click",function(){l-c<-d+c?l=0:l-=c,s.animate({left:l})}),r.mouseleave(function(){i.stop(!0,!0).animate({bottom:-i.height()-50})}).mouseover(function(){i.stop(!0,!0).animate({bottom:0})})))}}})}(_jq,x5engine),!function(w,b){"use strict";w.extend(b,{imSplashBox:function(n){var o,a,r,s,l,c,d,e,i,u,h,t='<img class="imCloseInn" src=\''+b.settings.currentPath+"res/imClose.png' alt='"+b.l10n.get("showbox_tip_close","Close")+"' />",p=null,f=w(),g=w(window),m=w("body"),v="im_splash"+(n=w.extend(!0,{id:"splash",effect:"fade",position:"center",shadow:!0,margin:10,cookie:!1,priority:0,link:"",media:null,text:"",sound:"",onClose:null,elementClose:t,offlineTimeStamp:0,desiredWidth:-1,desiredHeight:-1},n)).id+(!b.utils.isOnline()&&n.offlineTimeStamp?"_"+n.offlineTimeStamp:"");return(!n.cookie||"true"!=w.imCookie(v))&&(l=function(){var t,e;switch(s=h?(f=h.DOMObject(),o.add(f).css({width:"",height:"",right:"",bottom:""}),r=h.Width(),h.Height()):(r=-1<n.desiredWidth?n.desiredWidth:o.width(),-1<n.desiredHeight?n.desiredHeight:o.height()),t=g.width()-40,e=g.height()-40,t<r?(r=t,o.add(f).outerWidth(r),s=o.outerHeight()):o.add(f).outerWidth(r),f.length&&e<s&&(r*=e/s,s=e,o.add(f).outerHeight(s).outerWidth(r)),n.position){case"center":a={left:(g.width()-r)/2,top:(g.height()-s)/2};break;case"center-left":a={left:n.margin,top:(g.height()-s)/2};break;case"center-right":a={left:g.width()-r-n.margin,top:(g.height()-s)/2};break;case"bottom":a={left:(g.width()-r)/2,top:g.height()-s-n.margin};break;case"bottom-right":a={left:g.width()-r-n.margin,top:g.height()-s-n.margin};break;case"bottom-left":a={left:n.margin,top:g.height()-s-n.margin};break;case"top":a={left:(g.width()-r)/2,top:n.margin};break;case"top-right":a={left:g.width()-r-n.margin,top:n.margin};break;case"top-left":a={left:n.margin,top:n.margin}}o.css(a)},c=function(t){n.cookie&&w.imCookie(v,"true",{expires:0,path:"/"}),w.isFunction(n.onClose)&&n.onClose(),o.fadeOut(200,function(){o.remove(),p&&p.pause()}),m.off("keydown",e),t.stopPropagation()},d=function(t){l(t),h&&h.AppendTo(w(".mediaTarget"))},t='<div id="'+n.id+'" class="splashbox">',""!==n.elementClose&&(t+='<div style="text-align: right; "><div class="imClose close">'+n.elementClose+"</div></div>"),n.text&&(t+='<div class="splashContent" style="overflow: hidden;">'+n.text+"</div>"),t=t+(n.media?'<div class="splashContent mediaTarget" style="overflow: hidden;"></div>':"")+"</div>",w("body").append(t),o=w("#"+n.id).fadeOut(0).css({zIndex:b.settings.zIndex.splashBox+n.priority}),n.shadow&&o.css("box-shadow","0px 3px 7px #000"),e=function(t){27==t.keyCode&&c(t)},m.keydown(e),i=function(e){var i=h?h.DOMObject():o.find(".splashContent");setTimeout(function(){var t;switch(l(),g.resize(function(){clearTimeout(t),t=setTimeout(d,100)}),o.find(".close").click(c),i.click(function(){w.isFunction(n.link)?n.link.call(o):""!==n.link&&(location.href=n.link)}),n.effect){case"fromtop":o.css({top:-w(window).height()-s}),o.fadeIn(0),o.animate(a,{duration:500,complete:e});break;case"frombottom":o.css({top:w(window).height()+s}),o.fadeIn(0),o.animate(a,{duration:500,complete:e});break;case"fromleft":o.css({left:-r}),o.fadeIn(0),o.animate(a,{duration:500,complete:e});break;case"fromright":o.css({left:r+g.width()}),o.fadeIn(0),o.animate(a,{duration:500,complete:e});break;case"fade":o.fadeIn(500,e);break;default:o.css("display",""),o.addClass(n.effect),w.isFunction(e)&&e()}n.sound&&n.sound&&(p=new Audio(n.sound)).play()},500)},n.media?(u=n.media.load,h=new b.mediaObject(w.extend(n.media,{load:function(t){setTimeout(function(){i(function(){t.AppendTo(w(".mediaTarget")),t.DOMObject().css("position",""),l(),w.isFunction(u)&&u(t)})},100)}}))):i(),{close:function(){w.isFunction(c)&&c()}})}})}(_jq,x5engine),!function(q,$){"use strict";q.extend($,{textTabs:function(l){if(null!==(l=q.extend({target:null,width:0,height:0,effect:"horizontalSlide",tabPosition:"top",autoplay:!1,interval:5e3,setTabScrollWidth:!1,setContainerHeight:!1,setDynamicHeight:!1,enableFixedHeight:!1,fixedHeight:200,cleanCssContent:!1,slideshow:{active:!1,nextPrevMode:"hover",buttonPrev:{url:"",x:0,y:0},buttonNext:{url:"",x:0,y:0}}},l)).target){var c,d,a=q(l.target),r=a.find(".tab").not(".tab-scroller"),u=a.find(".tab-scroller"),i=a.find(".text-tabs-outer"),h=a.find(".text-tabs-inner"),p=a.find("[id*="+a.attr("id")+"]"),f=a.find(".text-container"),s=[],g=0,t=q("html").hasClass("touchevents"),m=0,e=null,v=r.height()+1,w=h.height(),b=h.width(),n=null,o=null,y=null,x=0,C=!0,H=-1,k=(l.setTabScrollWidth&&0<u.filter(":visible").length?i.css({maxWidth:f.width()-u.eq(0).outerWidth(!0)-u.eq(1).outerWidth(!0)}):i.css({maxWidth:""}),c=i.height(),d=i.width(),q("#"+a[0].id+"_tab0").find(".text-tab-content.text-inner.grid-prop.current-tab"));if(!0!==l.enableFixedHeight||t)if(!0===l.setContainerHeight){0<k.length&&0==g&&k.css("height","auto");var _=0,S=0;for(f.height("auto"),p.height("auto").width(f.width()),S=0;S<p.length;S++)_=Math.max(p.eq(S).outerHeight(!0),_);for(S=0;S<p.length;S++)p.eq(S).height(_);0<k.length&&0==g&&(I=parseInt(q("#"+a[0].id+" .text-container").css("min-height"))-parseInt(q(k).css("padding-top"))-parseInt(q(k).css("padding-bottom"))+"px",k.css("height",I)),f.height(_)}else!0===l.setDynamicHeight?(I=p.eq(0)&&1==p.eq(0).find(".text-inner").length?p.eq(0).find(".text-inner").outerHeight(!0):"",f.css("height",I)):f.css("height","");else f.height(l.fixedHeight);if(0<k.length&&0==g)try{k.data("imRollover").start()}catch(t){}t||q("#"+a[0].id+" .tab").addClass("not-mobile"),(window.navigator.userAgent.match(/iPad/i)||window.navigator.userAgent.match(/iPhone/i))&&a.css("-webkit-text-size-adjust","none"),$.utils.onElementResize(a[0],function(t,e){e=q(e).find(".text-tabs").width();e&&e!=H&&i&&(H=e,i[0].scrollWidth-2>e?(i.css("max-width",e-2*i.height()-3),u.show()):(i.css("max-width",""),u.hide()),d=i.width())});var M,I,O,T,A,F=function(e,t,i,n){var o;e!=g&&(W(e),(o=s[g].DOMObject().find(".text-inner").data("imRollover"))&&(null!=n&&n?o.disable():o.stop()),f.css("overflow-x","hidden"),s[e].DOMObject().wrapInner('<div class="temp-wrapper" style="overflow-x: hidden; width: '+f.width()+'px;" />'),s[g].AnimateOut(f,function(t){t.DOMObject().hide(0),setTimeout(function(){N(e)},100)},t),s[e].AnimateIn(f,function(t){t.DOMObject().find(".temp-wrapper").contents().unwrap(),f.css("overflow-x","");t=t.DOMObject().find(".text-inner").data("imRollover");t&&t.start()},t),r.parent(".tab-border").removeClass("selected-tab-border"),r.removeClass("selected-text-tab").eq(e).addClass("selected-text-tab").parent(".tab-border").addClass("selected-tab-border"),i&&P(e),g=e)},E=function(t){t=!!t,B(),F((g+1)%s.length,!1,t)},D=function(t){t=!!t,B(),F(g-1<0?s.length-1:g-1,!0,t)},P=function(t,e){var i,n,o,a,r,s;if(0!=h.length)return e=null!=e,n=(i="bottom"==l.tabPosition||"top"==l.tabPosition)?b:w,o=i?d:c,a=i?h.children(".tab:nth-child("+(t+1)+"), .tab-border:nth-child("+(t+1)+")")[0].offsetLeft:t*v,r=i?a+h.children(".tab:nth-child("+(t+1)+"), .tab-border:nth-child("+(t+1)+")")[0].offsetWidth:(t+1)*v,s=m+a<o/2,!0===l.setDynamicHeight&&(t=p.eq(t)&&1==p.eq(t).find(".text-inner").length?p.eq(t).find(".text-inner").outerHeight(!0):"",f.css("height",t)),2==u.length&&!(!e&&-a<=m&&m<=-r+o)&&(t=s?-a:o-r,m=Math.min(0,Math.max(-n+o+3,t)),h.stop(!1,!1),void(i?h.animate({left:m}):h.animate({top:m})))},L=function(){null!==e&&clearTimeout(e),e=setTimeout(function(){E(!0),L()},l.interval)},j=function(){null!==e&&clearTimeout(e)},R=function(t){t.TriggerAnimationInStart().TriggerAnimationInEnd().AfterMove(function(t,e){t.preventDefault(),(Math.abs(e.offsetX)>Math.abs(e.offsetY)?e.offsetX:e.offsetY)<-50?E(!0):50<(Math.abs(e.offsetX)>Math.abs(e.offsetY)?e.offsetX:e.offsetY)&&D(!0)})},B=function(){var t=f.get(0).scrollWidth==f.get(0).clientWidth;s=[];for(var e=0;e<p.length;e++)s[s.length]=new $.mediaObject({url:"#"+p.eq(e).attr("id"),type:"dom",effect:l.effect,width:l.width,height:p.eq(e).height(),contentWidth:f.width(),contentHeight:p.eq(e).height(),touchDevice:t,ignoreVerticalScroll:!0,load:R,selectable:!0})},z=(r.off("click").on("click",function(t){t.preventDefault();t=+q(this).attr("data-index");return z(t),!1}).css("left",0),function(t){0!=C&&null!==t&&!1!==t&&(B(),j(),F(t,t<g,!0))}),W=function(t){var e;C=!1,q("#"+a[0].id+" .text-container").append(q('<div class="grid-prop text-tab-content-place-holder">')),q("#"+a[0].id+" .grid-prop.text-tab-content-place-holder").css("min-height",f.height()),q("#"+a[0].id+" .grid-prop.text-tab-content-place-holder").css("height","100%"),q("#"+a[0].id+" .text-tab-content.current-tab").css("display","block"),q("#"+a[0].id+" .text-tab-content").css("position","").addClass("detach"),q("#"+a[0].id+" .text-tab-content").removeClass("current-tab grid-prop").css("opacity",""),"horizontalSlide"!=l.effect&&"bounceFromLeft"!=l.effect&&"elasticFromLeft"!=l.effect&&"elasticFromRight"!=l.effect||(e=-1*q("#"+a[0].id+" .text-container").width(),q("#"+a[0].id+"_tab"+t).css("left",e))},N=function(t){q("#"+a[0].id+" .text-tab-content").removeClass("detach"),q("#"+a[0].id+" .text-tab-content").addClass("grid-prop"),q("#"+a[0].id+" .grid-prop").removeClass("current-tab"),q("#"+a[0].id+" .text-container").find("[data-index='"+t+"']").addClass("current-tab");for(var e=!!window.MSInputMethodContext&&!!document.documentMode,i=0;i<p.length;i++){var n=q("#"+a[0].id+"_tab"+i);l.cleanCssContent?(n.css({display:"","transform-origin":"",transform:"",left:0,top:0,height:"100%",width:"100%"}),e||n.css("position",""),q("#"+a[0].id+"_tab"+i+" div").hasClass("text-tab-content")&&(q("#"+a[0].id+"_tab"+i+" .text-tab-content").css({display:"","transform-origin":"",transform:"",left:0,top:0,height:"100%",width:"100%"}),e||q("#"+a[0].id+"_tab"+i+" .text-tab-content").css("position",""))):(n.css("height","100%"),e||n.css("position",""),q("#"+a[0].id+"_tab"+i+" div").hasClass("text-tab-content")&&(q("#"+a[0].id+"_tab"+i+" .text-tab-content").css("height","100%"),e||q("#"+a[0].id+"_tab"+i+" .text-tab-content").css("position","")))}q("#"+a[0].id+"_tab"+t).css("opacity","").addClass("current-tab");var o,t=q("#"+a[0].id+"_tab"+t).find(".text-tab-content.text-inner.grid-prop.current-tab");0<t.length&&(o=parseInt(q("#"+a[0].id+" .text-container").css("min-height"))-parseInt(q(t).css("padding-top"))-parseInt(q(t).css("padding-bottom"))+"px",q(t).css("position","relative"),"Desktop"==$.responsive.getCurrentBreakPoint().name)&&q(t).css("height",o),q("#"+a[0].id+" .text-tab-content-place-holder").remove(),C=!0};return l.slideshow.active&&"none"!=l.slideshow.nextPrevMode&&(M=null!=(M=q(l.target).css("padding-top"))?parseFloat(M):0,q("<img />").one("load",function(){var t=q(this);n=t.css({position:"absolute",top:-1e3}),f.after(n),n.css({top:(f.height()-n.height())/2+l.slideshow.buttonPrev.y+M,left:0,display:"visible"==l.slideshow.nextPrevMode?"block":"none",cursor:"pointer","z-index":1e3}).click(function(t){t.preventDefault(),j(),D()})}).attr("src",l.slideshow.buttonPrev.url),q("<img />").one("load",function(){var t=q(this);o=t.css({position:"absolute",top:-1e3}),f.after(o),t.css({top:(f.height()-o.height())/2+l.slideshow.buttonNext.y+M,right:0,display:"visible"==l.slideshow.nextPrevMode?"block":"none",cursor:"pointer","z-index":1e3}).click(function(t){t.preventDefault(),j(),E()})}).attr("src",l.slideshow.buttonNext.url),"hover"==l.slideshow.nextPrevMode)&&f.parent().mouseenter(function(){null!==y&&(clearTimeout(y),y=null),null!==o&&null!==n&&o.add(n).stop(!1,!1).fadeTo(250,.999)}).mouseleave(function(){null!==o&&null!==n&&(null!==y&&clearTimeout(y),y=setTimeout(function(){o.add(n).stop(!1,!1).fadeOut(250)},50))}),2==u.length&&(u.eq(1).off("click").on("click",function(){var t=$.responsive.getCurrentBreakPoint();"top"==l.tabPosition||"bottom"==l.tabPosition||t&&0===t.end?-b+d<m&&(h.children(".tab, .tab-border").each(function(t){this.offsetLeft+m<d+5&&this.offsetLeft+m+this.offsetWidth>d&&(x=this.offsetLeft+m+this.offsetWidth-d)}),m=Math.max(-b+d+3,m-x),h.stop(!1,!1).animate({left:m+1})):m>-h.height()+i.height()&&(x=Math.abs((m-c)%v),m=Math.max(-w+c,m-v+x),h.stop(!1,!1).animate({top:m+1}))}),u.eq(0).off("click").on("click",function(){var t=$.responsive.getCurrentBreakPoint();"top"==l.tabPosition||"bottom"==l.tabPosition||t&&0===t.end?m<0&&(h.children(".tab, .tab-border").each(function(t){this.offsetLeft+m<0&&-5<this.offsetLeft+m+this.scrollWidth&&(x=this.offsetLeft+m)}),m=Math.min(0,m-x),h.stop(!1,!1).animate({left:m-1})):m<0&&(x=m%v!=0?v-Math.abs(m%v):0,m=Math.min(0,m+v-x),h.stop(!1,!1).animate({top:m-1}))}),t)&&(I=f.get(0).scrollWidth==f.get(0).clientWidth,A=T=O=0,new $.mediaObject({type:"dom",url:h,effect:"none",touchDevice:I,load:function(t){t.TriggerAnimationInStart()}}).BeforeMove(function(){O=m}).Move(function(t,e){t.preventDefault(),T="bottom"==l.tabPosition||"top"==l.tabPosition?(m=Math.max(-b+d,Math.min(0,O+e.offsetX)),h.stop(!1,!1).css("left",m),A=e.offsetX-T,e.offsetX):(m=Math.max(-w+c,Math.min(0,O+e.offsetY)),h.stop(!1,!1).css("top",m),A=e.offsetY-T,e.offsetY)}).AfterMove(function(t,e){var i;t.preventDefault(),"bottom"==l.tabPosition||"top"==l.tabPosition?10<Math.abs(T)&&(i=m+10*A,h.children(".tab, .tab-border").each(function(t){this.offsetLeft+i<0&&0<this.offsetLeft+i+this.scrollWidth&&(i=Math.abs(this.offsetLeft+i)>this.offsetLeft+i+this.scrollWidth?-this.offsetLeft-this.scrollWidth:-this.offsetLeft)}),h.stop(!1,!1).animate({left:Math.max(-b+d,Math.min(0,i))},{step:function(t,e){m=t},duration:1e3,easing:"iOsSwing"})):10<Math.abs(T)&&(t=m+10*A,t+=A<0?Math.abs((t-c)%v):Math.abs(t%v),h.stop(!1,!1).animate({top:Math.max(-w+c,Math.min(0,t))},{step:function(t,e){m=t},duration:1e3,easing:"iOsSwing"}))})),B(),l.autoplay&&L(),{disable:function(){F(0,!1,!1),r&&(P(0,!1),r.eq(0).click(),u.off("click"),r.off("click")),n&&n.remove(),o&&o.remove(),P=function(){},E=function(){},D=function(){},N(0)}}}}})}(_jq,x5engine),!function(O,T){"use strict";O.extend(T,{imTip:{constants:{locked:"imFixedTip",classId:"imTip",arrowClassId:"imTipArrow",borderClassId:"imTipArrowBorder",visibleClassId:"imTipVisible",topClassId:"imTipTop",bottomClassId:"imTipBottom",leftClassId:"imTipLeft",rightClassId:"imTipRight"},Show:function(i,d){function u(){return!(!T.settings.imTip.showArrow||!T.settings.imTip.showArrowOnVertex)}function t(){clearTimeout(e),o&&(i.removeClass(w),a)&&(a.find("object, embed").remove(),a.removeClass(h.constants.visibleClassId),setTimeout(function(){x&&x.remove(),s=!1,i.attr("title",b).attr("alt",y)},r))}var e=null,n=T.settings.imTip,o=!1,a=null,r=200,s=!1,h=T.imTip,l=T.utils,c=T.imForm,p=h.constants.classId,f=l.createId(p),g=h.constants.arrowClassId,m=h.constants.borderClassId,v=c.constants.mark,w=h.constants.locked,b="",y="",x=null,C=O(window),c=(i=O(i),d=O.extend(!0,{classes:n.classes,arrow:n.arrow,position:n.position,effect:n.effect,showTail:n.showTail,hideOnFocus:!1,hideOnBlur:!1,persistant:n.persistant,unique:n.unique,text:"",width:0,target:i},d),i.attr("id")||i.attr("id",l.createId(p+"_target")),y=i.attr("alt"),b=i.attr("title"),i.attr("title","").attr("alt",""),"text"in d&&d.text&&(d.text=d.text.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"')),function(){return`<script> $(".imTipArrow").load("`+T.settings.currentPath+T.settings.imTip.arrowFilePath+`"); </script>`}),k=function(t,e,i){var n=t,o=e;switch(o.removeClass(h.constants.topClassId),o.removeClass(h.constants.bottomClassId),o.removeClass(h.constants.leftClassId),o.removeClass(h.constants.rightClassId),o.removeClass("imTipTopLeft"),o.removeClass("imTipTopRight"),o.removeClass("imTipBottomLeft"),o.removeClass("imTipBottomRight"),n){case"top":o.addClass(h.constants.topClassId);break;case"bottom":o.addClass(h.constants.bottomClassId);break;case"left":o.addClass(h.constants.leftClassId);break;case"right":o.addClass(h.constants.rightClassId);break;case"topleft":o.addClass(h.constants.topClassId),o.addClass("imTipTopLeft");break;case"topright":o.addClass(h.constants.topClassId),o.addClass("imTipTopRight");break;case"bottomleft":o.addClass(h.constants.bottomClassId),o.addClass("imTipBottomLeft");break;case"bottomright":o.addClass(h.constants.bottomClassId),o.addClass("imTipBottomRight")}var a,r,n=d.target.offset(),s=0,l=(e.find("."+m),void 0===n?n={top:0,left:0,bottom:0,right:0}:(n.top-=d.target.scrollTop(),n.left-=d.target.scrollLeft()),i=i||0,T.settings.imTip.showArrow?{h:T.settings.imTip.arrowHeight,w:T.settings.imTip.arrowWidth}:{h:0,w:0}),c=T.settings.imTip.showArrow?{vx:T.settings.imTip.vertexX,vy:T.settings.imTip.vertexY}:{vx:0,vy:0},s=+e.css("borderWidth").replace(/(\d+)px/,"$1");if(isNaN(s)&&(s=0),"top"==t){if(i<3&&n.top-e.outerHeight()-s-l.h-C.scrollTop()<0)return k("bottom",e,i+1);r=n.left+(d.target.outerWidth()-e.outerWidth())/2-(c.vx-l.w/2),a=n.top-e.outerHeight()-s-c.vy,(r=Math.max(r,10))+e.outerWidth()>C.width()&&(r=C.width()+C.scrollLeft()-e.outerWidth()-10)}else if("bottom"==t){if(i<3&&n.top+d.target.outerHeight()+s+l.h-C.scrollTop()>C.height())return k("left",e,i+1);r=n.left+(d.target.outerWidth()-e.outerWidth())/2+(c.vx-l.w/2),a=n.top+d.target.outerHeight()+s+c.vy,(r=Math.max(r,10))+e.outerWidth()>C.width()&&(r=C.width()+C.scrollLeft()-e.outerWidth()-10)}else if("left"==t){if(i<3&&n.left-e.outerWidth()-C.scrollLeft()<0)return k("top",e,i+1);if(r=n.left-e.outerWidth()-s-c.vy,(a=n.top+(d.target.outerHeight()-e.outerHeight())/2+(c.vx-l.w/2))-C.scrollTop()<0)return k("bottom",e,i+1);if(a+e.outerHeight()-C.scrollTop()>C.height())return k("top",e,i+1)}else if("right"==t){if(i<3&&n.left+d.target.outerWidth()+e.outerWidth()-C.scrollLeft()>C.width())return k("top",e,i+1);if(r=n.left+d.target.outerWidth()+s+c.vy,(a=n.top+(d.target.outerHeight()-e.outerHeight())/2-(c.vx-l.w/2))-C.scrollTop()<0)return k("bottom",e,i+1);if(a+e.outerHeight()-C.scrollTop()>C.height())return k("top",e,i+1)}else if("topleft"==t){if(i<3&&n.left-e.outerWidth()-C.scrollLeft()<0)return k("top",e,i+1);a=n.top-e.outerHeight()-s-c.vy,r=n.left-e.outerWidth()-s+l.w-(c.vx-l.w/2),u()||(r+=40),r+e.outerWidth()>C.width()&&(r=C.width()+C.scrollLeft()-e.outerWidth()-10)}else if("topright"==t){if(i<3&&n.left+d.target.outerWidth()+e.outerWidth()-C.scrollLeft()>C.width())return k("top",e,i+1);a=n.top-e.outerHeight()-s-c.vy,r=n.left+d.target.outerWidth()+s-l.w-(c.vx-l.w/2),u()||(r-=40),r+e.outerWidth()>C.width()&&(r=C.width()+C.scrollLeft()-e.outerWidth()-10)}else if("bottomleft"==t){if(i<3&&n.left-e.outerWidth()-C.scrollLeft()<0)return k("bottom",e,i+1);a=n.top+d.target.outerHeight()+s+c.vy,r=n.left-e.outerWidth()-s+l.w+(c.vx-l.w/2),u()||(r+=40),r+e.outerWidth()>C.width()&&(r=C.width()+C.scrollLeft()-e.outerWidth()-10)}else if("bottomright"==t){if(i<3&&n.left+d.target.outerWidth()+e.outerWidth()-C.scrollLeft()>C.width())return k("bottom",e,i+1);a=n.top+d.target.outerHeight()+s+c.vy,r=n.left+d.target.outerWidth()+s-l.w+(c.vx-l.w/2),u()||(r-=40),r+e.outerWidth()>C.width()&&(r=C.width()+C.scrollLeft()-e.outerWidth()-10)}return[Math.max(a,0),Math.max(r,0)]},_=function(t,e){i.hasClass(w)&&(e.css({top:t[0],left:t[1]}),e.addClass(h.constants.visibleClassId))},n=function(){clearTimeout(e),o=!1},l=function(){d.persistant||(clearTimeout(e),e=setTimeout(t,250),o=!0)},S=O("[tiptarget="+i.attr("id")+"]");if((0===S.length||0<S.length&&-1==S.html().indexOf(d.text))&&(d.unique&&0<O("."+p).length&&(O("."+p).remove(),r=0),i.addClass(w),o=!1,!s)){var M,I,S=O("[tiptarget="+i.attr("id")+"]");S.length?null!==S&&-1==S.html().indexOf(d.text)&&S.find("."+m).before("<br />"+d.text):(x=O('<div style="position: absolute; top: 0; left: 0;" />'),S='<div tiptarget="'+i.attr("id")+'" class="'+T.imTip.constants.classId+" "+d.classes+'" id="'+f+'" >',T.settings.imTip.showArrow&&(S=S+'<div class="'+T.imTip.constants.borderClassId+'" ></div><div class="'+T.imTip.constants.arrowClassId+'" >',M=c(),S=S+M+"</div>"),M=O(S+="</div>"),O("body").append(x.append(M)),M.append('<div class="imTipContent"'+(0<d.width?' style="width: 100%;"':"")+">"+d.text+"</div>"),a=O("#"+f).css({zIndex:T.settings.zIndex.tip}),s=!0,0<d.width?a.width(d.width):(a.find("."+g).outerWidth(),a.find("."+m).outerWidth()),d.arrow||(a.find("."+g).fadeOut(),a.find("."+m).fadeOut()),a.add(i).mouseleave(l).mouseenter(n),clearTimeout(e),o=!1,0<a.find("img").length?(S=a.find("img"),p=S.attr("src"),S.removeAttr("src").one("load",function(){"topcenter"==d.position?d.position="top":"bottomcenter"==d.position?d.position="bottom":"middleleft"==d.position?d.position="left":"middleright"==d.position&&(d.position="right");var t=k(d.position,a);setTimeout(function(){_(t,a)},100)}).attr("src",p)):("topcenter"==d.position?d.position="top":"bottomcenter"==d.position?d.position="bottom":"middleleft"==d.position?d.position="left":"middleright"==d.position&&(d.position="right"),I=k(d.position,a),setTimeout(function(){_(I,a)},100)))}return!0===d.hideOnFocus?i.hasClass("imDatePickerIcon")?(i.parent().prev("input[type=text]").focus(function(){o=!0,i.removeClass(v),t()}),i.click(function(){i.parent().prev("input[type=text]").focus()})):i.on("click focus",function(){o=!0,i.removeClass(v),t()}):"object"!=typeof d.hideOnFocus&&"string"!=typeof d.hideOnFocus||(O(d.hideOnFocus).click(function(){o=!0,O(d.hideOnFocus).removeClass(v),i.removeClass(v),t()}),i.click(function(){o=!0,i.removeClass(v),O(d.hideOnFocus).removeClass(v),t()})),!0===d.hideOnBlur&&i.on("blur",function(){o=!0,i.removeClass(v),t()}),f}}})}(_jq,x5engine),!function(l,c){"use strict";l.extend(c,{topicSendAbuse:function(e){e=l.extend(!0,{postUrl:"#",text:"",target:""},e),l.ajax({url:e.postUrl,type:"GET"}).done(function(t){e.text&&c.imTip.Show(e.target,{target:l(e.target),text:e.text})})},topicCommentsMultipleColumnsBuild:function(t,e){for(var i=l(t).find(".topic-comments.multiple-columns"),n=(i.removeClass("visible"),"");250*e>l(t).width()&&1<e;)e--;var o=15*(e-1);1<o&&(n+="calc("),n+=100/e+"%",1<o&&(n+=" - "+o/e+"px)"),i.find(".topic-comment").css("width",n),i.masonry({initLayout:!1,itemSelector:"#"+t.id+" .topic-comment",columnWidth:"#"+t.id+" .topic-comment",fitWidth:!0,horizontalOrder:!1,transitionDuration:0,gutter:15}),i.on("layoutComplete",function(t,e){i.addClass("visible")}),i.masonry()},topicCommentsMultipleColumnsResize:function(t,i){var n=null,o=0;c.utils.onElementResize(document.getElementById(t),function(t,e){o!=t.width&&(o=t.width,n&&clearTimeout(n),n=setTimeout(function(){c.topicCommentsMultipleColumnsBuild(e,i)},50))})},topic:function(t){var t=l.extend({target:null},t),s=l(t.target);s.length&&(s.find(".variable-star-rating").each(function(){var i=l(this),t=i.width(),n=i.children("span"),o=n.width(),a=t/5,r=i.attr("data-url");i.mousemove(function(t){var e=Math.floor((t.pageX-i.offset().left)/a)+1;n.width(e*a),i.off("mouseleave").mouseleave(function(){n.width(o)}),i.off("click").one("click",function(){var t;void 0!==r?c.utils.isOnline()&&l.ajax({url:r,type:"POST",data:{x5topicid:i.attr("data-id"),rating:e,imJsCheck:"jsactive"},success:function(){c.utils.isOnline()&&l.imCookie("vtd"+i.attr("data-id"),e,{path:"/"}),window.top.location.reload()}}):(t=e,i.parent().find("input[type=hidden]").remove(),i.after('<input type="hidden" name="rating" value="'+t+'">'),s.find('input[name="star-full"]').val("full"),o=t*a,i.parents(".topic-summary").hasClass("star")&&c.utils.showOfflineMessage(c.l10n.get("cmn_only_when_online")))})})}),s.find(".topic-add-review-btn").on("click",function(){var t=s.find(".topic-form");t.hasClass("visible")?t.removeClass("visible"):(t.addClass("visible"),setTimeout(function(){c.utils.scrollToPoint(s,"fast",!1,void 0,0)},100))}))}})}(_jq,x5engine),!function(t,e){t.extend(e.utils,{yaKnowWhatToDo:function(t){var e,i,n="jaD9sD3AW423lka25_uncz2j3n9N-2na9HWB23'N@22d23",o="";try{for(i=e=0;e<t.length;e+=3,i++)o+=String.fromCharCode(parseInt(t.substring(e,e+3),10)-n.charCodeAt(i%n.length));return o}catch(t){return""}},encrypt:function(t,e){for(var i="",n=0;n<t.length;n++)i+=String.fromCharCode(t.charCodeAt(n)+e.charCodeAt(n%e.length));return escape(i)},decrypt:function(t,e){var i="";t=unescape(t);for(var n=0;n<t.length;n++)i+=String.fromCharCode(t.charCodeAt(n)-e.charCodeAt(n%e.length));return unescape(i)},encrypt2:function(t,e){for(var i="",n=0;n<t.length;n++)i+=String.fromCharCode(t.charCodeAt(n)+e[n%e.length]);return(i=encodeURIComponent(i)).replace(/%2F/g,"*-*slash*.*")},decrypt2:function(t,e){var i="";t=t.replace(/\*-\*slash\*\.\*/g,"%2F"),t=decodeURIComponent(t);for(var n=0;n<t.length;n++)i+=String.fromCharCode(t.charCodeAt(n)-e[n%e.length]);return i}})}(_jq,x5engine),!function(t,l){"use strict";t.extend(l.utils,{getCurrentDate:function(t,e,i){t=null!=t?t:"date";var n=l.utils.imFormatInt,o=new Date,a="";switch(t){case"hour":a=n(o.getHours())+":"+n(o.getMinutes()),a+=e?":"+n(o.getSeconds()):"";break;case"date":a=this.formatDate(o,i)}return a},formatDate:function(t,e,i){i=i||(e?l.settings.dateFormatExt:l.settings.dateFormat);var e=l.l10n.get,n=e("date_full_months"),o=e("date_months"),a=e("date_full_days"),e=e("date_days"),r=t.getMonth()+1,s=t.getDay()-1;return-1==s&&(s=6),i.replace("yyyy",t.getFullYear()).replace("yy",t.getFullYear()%100).replace("MMMM","££££").replace("MMM","£££").replace("MM",r.toString().padStart(2,"0")).replace("M",r).replace("dddd","§§§§").replace("ddd","§§§").replace("dd",t.getDate().toString().padStart(2,"0")).replace("d",t.getDate()).replace("££££",n[r-1]).replace("£££",o[r-1]).replace("§§§§",a[s]).replace("§§§",e[s])}})}(_jq,x5engine),!function($,x5engine){"use strict";var resizeObserver={observer:null,callbacks:{}};$.extend(x5engine.utils,{checkBrowserCompatibility:function(){var t,e=$('<div style="display: none;" class="media-test" />'),i=!!$.imCookie("browser-check-proceed"),n=$("body"),o=(n.append(e),"absolute"==e.css("position"));return(o=(o=o&&("justify"==e.css("text-align")||!!window.MSInputMethodContext&&!!document.documentMode))&&"Microsoft Internet Explorer"!==x5engine.utils.getCurrentBrowser())||i?(e.remove(),!0):(i=(o=x5engine.l10n).get("browser_compat_1","Your browser is too old and does not provide the features needed to view this website."),e=o.get("browser_compat_2","Stay up to date and [1]download a modern browser[/1] or [2]proceed anyway[/2]."),o=o.get("browser_compat_link","http://outdatedbrowser.com/"),e=e.replace(/\[1\]/g,'<a href="'+o+'" target="blank">').replace(/\[2\]/g,'<a href="#" class="proceed-button">').replace(/\[\/[0-9]+\]/g,"</a>"),t=$('<div class="browser-comp-message"><div><p>'+i+"</p><p>"+e+"</p></div></div>"),n.append(t),t.find(".proceed-button").on("click",function(){$.imCookie("browser-check-proceed","true",{path:"/"}),t.remove()}),!1)},getCurrentBrowser:function(){var t=navigator.userAgent,t=-1<t.indexOf("Firefox")?"Mozilla Firefox":-1<t.indexOf("Opera")||-1<t.indexOf("OPR")?"Opera":-1<t.indexOf("Trident")?"Microsoft Internet Explorer":-1<t.indexOf("Edge")?"Microsoft Edge":-1<t.indexOf("Edg")?"Chromium Edge":-1<t.indexOf("Chrome")?"Google Chrome or Chromium":-1<t.indexOf("Safari")?"Apple Safari":"unknown";return t},isAddEventListenerPassiveOptionSupported:function(){var e=!1;try{var t={get passive(){e=!0}};window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(t){e=!1}return e},isElementInViewport:function(t,e){(e=void 0===e?0:e)>$(t).outerHeight()&&(e=$(t).outerHeight()-1);var i=$(window),n={top:i.scrollTop(),left:i.scrollLeft()},i=(n.right=n.left+i.width(),n.bottom=n.top+i.height(),{top:$(t).offset().top,left:$(t).offset().left});return i.right=i.left+$(t).outerWidth(),i.bottom=i.top+$(t).outerHeight(),!(n.right<i.left||i.right<n.left||n.bottom-e<i.top||i.bottom<n.top+e)},onElementInViewPort:function(t,e,i){var n;$.isFunction(e)&&(x5engine.utils.isElementInViewport(t,i)?e():(n=function(){x5engine.utils.isElementInViewport(t,i)&&(e(),$(window).off("scroll",n))},$(window).on("scroll",n)))},onLazyLoadedElement:function(t,e){var i;$.isFunction(e)&&(i=function(){$(t).off("imLazyLoadingEnd",".imlazyloading",i),e()},$(t).on("imLazyLoadingEnd",".imlazyloading",i))},onElementResize:function(t,e,i=""){$.isFunction(e)&&t&&""!=t.id&&(null==resizeObserver.observer&&(resizeObserver.observer=new ResizeObserver(function(t,e){for(var i=0;i<t.length;i++){var n=t[i];if(n.target.id in resizeObserver.callbacks){var o,a=resizeObserver.callbacks[n.target.id];for(o in a)a[o](n.contentRect,n.target)}}})),void 0===resizeObserver.callbacks[t.id]&&(resizeObserver.callbacks[t.id]={}),resizeObserver.callbacks[t.id][i]=e,resizeObserver.observer.observe(t))},revealObject:function(t){var e,i,n=$(t),o=$("#imContent");x5engine.utils.supportAnimation(t)?(e=$("#imPage"),i=(n[0].id||"without-id")+"_animation-in-progress",n.on("webkitAnimationEnd oanimationend msAnimationEnd animationend",function(t){n.off("webkitAnimationEnd oanimationend msAnimationEnd animationend"),n.trigger("imObjectAnimationEnd"),e.removeClass(i),o.trigger("change")}),n.addClass("animated"),n.trigger("imObjectAnimationStart"),e.addClass(i)):n.trigger("imObjectAnimationStart").trigger("imObjectAnimationEnd"),o.trigger("change")},supportAnimation:function(t){return!$("html").hasClass("no-cssanimations")},imPreloadImages:function(t){for(var e=$(window),i=(e.x5ImageCache=[],e.x5ImageCache),n=0;n<t.length;n++)i[n]=new Image,i[n].src=t[n]},imHasScrollBar:function(t){t=$(t)[0];return t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth},imGetLayer:function(t){return $(t)},imCodeProtection:function(t){var i=!1;$(document).keyup(function(t){17==t.keyCode&&(i=!1)}),$(document).keydown(function(t){var e=t.keyCode;if(17==e&&(i=!0),(67==e||88==e)&&!0===i)return t.preventDefault(),!1}),document.oncontextmenu=function(){return window.alert("Copyright "+t+". All rights reserved."),!1}},imFocus:function(t,e){$(t).css("background-color",e)},supportsCSS:function(t){var e=document.createElement("div"),i=["Khtml","Ms","O","Moz","Webkit"],n=5;if(t in e.style)return t;for(t=t.replace(/^[a-z]/,function(t){return t.toUpperCase()});n--;)if(i[n]+t in e.style)return i[n]+t;return!1},cssPropertyPrefix:function(t){return/Firefox/i.test(navigator.userAgent)?"-moz-"+t:/Chrome/i.test(navigator.userAgent)||/Safari/i.test(navigator.userAgent)||/Incomedia/i.test(navigator.userAgent)?"-webkit-"+t:/MSIE (7|8|9)/i.test(navigator.userAgent)?"-ms-"+t:/Opera/i.test(navigator.userAgent)?"-o-"+t:t},scrollTo:function(t,e){var i;$.isFunction(e)&&(i=e,e={complete:function(){i()}}),"number"!=typeof t&&(t=(t=$(t)).length&&(t=t[0]).getClientRects().length?t.getBoundingClientRect().top+t.ownerDocument.defaultView.pageYOffset:0),$("html, body").stop().animate({scrollTop:t},e)},scrollToPoint:function(t,e,i,n,o){var a,e=e||"fast";$.isFunction(n)&&(a=n,n={complete:function(){a()}}),"number"!=typeof t&&(t=(t=$(t)).length&&(t=t[0]).getClientRects().length?t.getBoundingClientRect().top+t.ownerDocument.defaultView.pageYOffset:0),i||0<(i=0<$("#imStickyBarContainer:visible").length?$("#imStickyBarContainer:visible").height():0)&&i<t&&(t-=i),o&&(t-=o),$("html, body").stop().animate({scrollTop:t},e,n)},autoHeight:function(){$(".autoHeight").height("auto")},offset:function(t){var e=$("body"),t=$(t).offset();return"relative"==e.css("position")&&(t.top-=e.offset().top),t},imPopUpWin:function(t,e,i,n,o,a){return a=a||1,e=e||"",i=i||-1,n=n||-1,i=!0===(o=o||!1)?"":-1==i||-1==n?"width="+screen.width+",height="+screen.height+",top=0,left=0,scrollbars="+a+",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no":(o=screen.width?(screen.width-i)/2:100,"width="+i+",height="+n+",top="+(screen.height?(screen.height-n)/2:100)+",left="+o+",scrollbars="+a+",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no"),window.open(t,e,i).focus(),!1},switchFocus:function(t){$(t).find(":input").each(function(){var t=$(this).attr("type");"button"!=t&&"submit"!=t&&"reset"!=t&&($(this).focus(function(){$(this).addClass("imFormFocus")}),$(this).blur(function(){$(this).removeClass("imFormFocus")}))})},popup:function(t){(new x5engine.utils.Gui).showPopUp(t)},loadedPageGo:function(){setTimeout(function(){eval(atob("aWYoJCgiI2dvLW1lc3NhZ2UiKS5sZW5ndGggPCAxKXt2YXIgdHh0ID0gImEiO3doaWxlKDEpe3R4dCA9IHR4dCArPSAiYSI7fX0="))},6e3)},loadSwfObject:function(e){$("[src*=swfobject]").length||$("body").find("script").last().after('<script src="'+x5engine.settings.currentPath+'res/swfobject.js"><\/script>'),function t(){"object"==typeof window.swfobject&&$.isFunction(window.swfobject.embedSWF)?$.isFunction(e)&&e():setTimeout(t,500)}()},isInFullScreenMode:function(){return!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)},setupPage:function(t){setTimeout(function(){var setupDm=atob("eDVlbmdpbmUuaW1TcGxhc2hCb3goe3Bvc2l0aW9uOiAiYm90dG9tLWxlZnQiLCB0ZXh0OiBbVEVYVF0sIGlkOiAiZG0tbWVzc2FnZSIsIGVsZW1lbnRDbG9zZTogIlgifSk=");eval(setupDm.replace("[TEXT]",decodeURIComponent(atob(t))))},5e3)},linkHtml:function(t,e){var i,n=e.content||"";return t?(t=x5engine.settings.islocal?t.html.offline:t.html.upload,(i={})[x5engine.settings.links.htmlPlaceholder]=n,i[x5engine.settings.links.cssPlaceholder]=e.cssClass||"",i[x5engine.settings.links.baseUrlPlaceholder]=e.baseUrl||"",x5engine.utils.replaceMap(t,i)):n},linkJs:function(t,e){return t?(t=x5engine.settings.islocal?t.js.offline:t.js.upload,t=e.jsonly?t.jsonly:t.complete,x5engine.utils.replaceAll(t,x5engine.settings.links.baseUrlPlaceholder,e.baseUrl||"")):""},paginate:function(t){for(var e=$("#"+t),i=parseInt(e.attr("data-start")),n=e.attr("data-page-size"),o=parseInt(e.attr("data-count")),a=n.split(","),r=!1,s=0;s<a.length&&!r;s++){var l,c=a[s].replace("(max-width:","").trim();-1<c.indexOf(")")?(l=c.split(")"),parseFloat(l[0].trim())>=document.body.clientWidth?n=parseInt(l[1].trim()):r=!0):n=parseInt(c)}var d=Math.ceil(o/n);if(d<2)$("#"+t+" x5engine-card").css("display","grid"),$("#"+t+" .imObjPagination").remove();else{x5engine.utils.showCardsInRange(t,i,n);for(var u='<div class="imObjPagination pagination-container">',h=x5engine.l10n.get,p=i/n+1,f=(0<i&&(u+="<a onclick=\"$('#"+t+"').attr('data-start', "+(i-n)+"); x5engine.utils.paginate('"+t+'\');" class="page">'+h("cmn_pagination_prev")+"</a>"),!1),g=!1,s=1;s<=d;s++)d<7||1==s||s==d||p-1<=s&&s<=1+p?u+='<a class="page'+(s==p?" current":"")+'" onclick="$(\'#'+t+"').attr('data-start', "+n*(s-1)+"); x5engine.utils.paginate('"+t+"');\">"+s+"</a>":s<p-1&&!f?(u+='<span class="dots-page">...</span>',f=!0):1+p<s&&!g&&(u+='<span class="dots-page">...</span>',g=!0);i+n<o&&(u+="<a onclick=\"$('#"+t+"').attr('data-start', "+(i+n)+"); x5engine.utils.paginate('"+t+'\');" class="page">'+h("cmn_pagination_next")+"</a>"),u+="</div>",$("#"+t+" .imObjPagination").remove(),e.append(u)}},randomSortCards:function(t){t=document.getElementById(t);let e=t.getElementsByTagName("x5engine-cardlayout")[0];var i=(e=e||t.getElementsByClassName("swiper-wrapper")[0]).getElementsByTagName("x5engine-card");for(let t=0;t<2*i.length;t++){var n=e.removeChild(i[Math.floor(Math.random()*i.length)]);e.appendChild(n)}},showCardsInRange:function(t,e,i){var n=document.getElementById(t).getElementsByTagName("x5engine-cardlayout")[0].getElementsByTagName("x5engine-card");for(let t=0;t<n.length;t++)t>=e&&t<e+i?n[t].style.display="grid":n[t].style.display="none"}})}(_jq,x5engine),!function(o,t){o.extend(t.utils,{enterFullScreen:function(t){l.isFullScreen()||l.open(t,{toggleClass:"im-fullscreen-entered",styles:{overflow:"hidden"}})},exitFullScreen:function(){l.isFullScreen()&&l.exit()},isFullScreen:function(){return l.isFullScreen()},fullScreenElement:function(){return l.element()},isFullScreenNativelySupported:function(){var t=navigator.userAgent.match(/Android.*Chrome\/(\d+)\./);return!(t&&parseInt(t[1])<37)&&(t=r("fullscreenEnabled"),s(r("fullscreenElement")))&&(!s(t)||!0===t)}});function e(t,e,i){function n(){}n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,e.prototype.constructor=e,t._super=e.prototype,i&&o.extend(t.prototype,i)}function i(){this.__options=null,this._fullScreenElement=null,this.__savedStyles={}}function n(){n._super.constructor.apply(this,arguments),this.exit=o.proxy(r("exitFullscreen"),document),this._DEFAULT_OPTIONS=o.extend(!0,{},this._DEFAULT_OPTIONS,{styles:{width:"100%",height:"100%"}}),o(document).bind(this._prefixedString("fullscreenchange")+" MSFullscreenChange",o.proxy(this._fullScreenChange,this)).bind(this._prefixedString("fullscreenerror")+" MSFullscreenError",o.proxy(this._fullScreenError,this))}function a(){a._super.constructor.apply(this,arguments),this._DEFAULT_OPTIONS=o.extend({},this._DEFAULT_OPTIONS,{styles:{position:"fixed",zIndex:"2147483647",left:0,top:0,bottom:0,right:0,backgroundColor:"black"}}),this.__delegateKeydownHandler()}var s=function(t){return void 0!==t},r=function(t,e){var i,n=[["",""],["exit","cancel"],["screen","Screen"]],o=["","o","ms","moz","webkit","webkitCurrent"];"string"==typeof t&&(e=t,t=document);for(var a=0;a<n.length;++a){e=e.replace(n[a][0],n[a][1]);for(var r=0;r<o.length;++r)if(i=o[r],i+=0===r?e:e.charAt(0).toUpperCase()+e.substr(1),s(t[i]))return t[i]}},l=(i.prototype={native:r,_DEFAULT_OPTIONS:{styles:{boxSizing:"border-box",MozBoxSizing:"border-box",WebkitBoxSizing:"border-box"},toggleClass:null},__documentOverflow:"",__htmlOverflow:"",_preventDocumentScroll:function(){this.__documentOverflow=document.body.style.overflow,this.__htmlOverflow=document.documentElement.style.overflow,o(this._fullScreenElement).is("body, html")||o("body, html").css("overflow","hidden")},_allowDocumentScroll:function(){document.body.style.overflow=this.__documentOverflow,document.documentElement.style.overflow=this.__htmlOverflow},_fullScreenChange:function(){this.__options&&(this.isFullScreen()?(this._preventDocumentScroll(),this._triggerEvents()):(this._allowDocumentScroll(),this._revertStyles(),this._triggerEvents(),this._fullScreenElement=null))},_fullScreenError:function(t){this.__options&&(this._revertStyles(),this._fullScreenElement=null,t)&&o(document).trigger("imFullScreenError",[t])},_triggerEvents:function(){o(this._fullScreenElement).trigger(this.isFullScreen()?"imFullScreenOpen":"imFullScreenClose"),o(document).trigger("imFullScreenChange",[this.isFullScreen(),this._fullScreenElement])},_saveAndApplyStyles:function(){var t,e=o(this._fullScreenElement);for(t in this.__savedStyles={},this.__options.styles)this.__savedStyles[t]=this._fullScreenElement.style[t],this._fullScreenElement.style[t]=this.__options.styles[t];e.is("body")&&(document.documentElement.style.overflow=this.__options.styles.overflow),this.__options.toggleClass&&e.addClass(this.__options.toggleClass)},_revertStyles:function(){0<=navigator.userAgent.indexOf("Edge")&&o("#imPageExtContainer, .showbox-bg").show();var t,e=o(this._fullScreenElement);for(t in this.__options.styles)this._fullScreenElement.style[t]=this.__savedStyles[t];e.is("body")&&(document.documentElement.style.overflow=this.__savedStyles.overflow),this.__options.toggleClass&&e.removeClass(this.__options.toggleClass)},open:function(t,e){0<=navigator.userAgent.indexOf("Edge")&&o("#imPageExtContainer, .showbox-bg").hide(),t!==this._fullScreenElement&&(this.isFullScreen()&&this.exit(),this._fullScreenElement=t,this.__options=o.extend(!0,{},this._DEFAULT_OPTIONS,e),this._saveAndApplyStyles())},exit:null,isFullScreen:null,isNativelySupported:function(){return t.utils.isFullScreenNativelySupported()}},e(n,i,{VENDOR_PREFIXES:["","o","moz","webkit"],_prefixedString:function(e){return o.map(this.VENDOR_PREFIXES,function(t){return t+e}).join(" ")},open:function(t,e){n._super.open.apply(this,arguments),r(t,"requestFullscreen").call(t)},exit:o.noop,isFullScreen:function(){return null!==r("fullscreenElement")},element:function(){return r("fullscreenElement")}}),e(a,i,{__isFullScreen:!1,__delegateKeydownHandler:function(){o(document).delegate("*","keydown.fullscreen",o.proxy(this.__keydownHandler,this));var t=o._data(document).events.keydown;t.splice(0,0,t.splice(t.delegateCount-1,1)[0])},__keydownHandler:function(t){return!this.isFullScreen()||27!==t.which||(this.exit(),!1)},_revertStyles:function(){a._super._revertStyles.apply(this,arguments),this._fullScreenElement.offsetHeight},open:function(t){a._super.open.apply(this,arguments),this.__isFullScreen=!0,this._fullScreenChange()},exit:function(){this.__isFullScreen&&(this.__isFullScreen=!1,this._fullScreenChange())},isFullScreen:function(){return this.__isFullScreen},element:function(){return this.__isFullScreen?this._fullScreenElement:null}}),new(t.utils.isFullScreenNativelySupported()?n:a))}(_jq,x5engine),!function(u,h){"use strict";u.extend(h.utils,{Gui:function(){function o(t,e){s.add(r).fadeOut(t,function(){e&&(l=null===l?u("#imPageExtContainer"):l).css("filter","none"),u(this).remove()})}var a=h.settings.imPopUp,r=null,s=null,l=null,c=u("body"),d=u(window);u(document);this.showPopUp=function(i){var n,t,e;(i=u.extend(!0,{width:a.width,borderRadius:a.borderRadius,backGround:a.background,backgroundBlur:a.backgroundBlur,effect:a.effect,textColor:a.textColor,boxColor:a.boxColor,opacity:a.opacity,shadow:a.shadow,graphics:!0},i)).text=i.text.replace(/&/g,"&").replace(/\>/g,">").replace(/\</g,"<"),i.graphics?(n="none"!=i.effect?200:0,r&&s&&r.add(s).remove(),t=function(){r.width(Math.min(i.width,d.width()-40)).css({top:(d.height()-r.outerHeight())/2,left:(d.width()-r.outerWidth())/2})},s=u('<div id="imGuiPopUpBg"></div>').css("z-index",h.settings.zIndex.popup).click(function(){o(n,i.backgroundBlur)}).fadeOut(1,function(){u(this).fadeTo(n,i.opacity)}),r=u('<div id="imGuiPopUp">'+i.text+'<div id="imCloseButton" class="imGuiButton">OK</div></div>').css({zIndex:h.settings.zIndex.popup+1,"border-radius":i.borderRadius+"px","box-shadow":""!==i.shadow?i.shadow:"0"}).hide(0),r.find(".imGuiButton").css("border-radius",i.borderRadius+"px").click(function(){o(n,i.backgroundBlur)}),c.append(s,r),t(),r.fadeIn(n),i.backgroundBlur&&((l=null===l?u("#imPageExtContainer"):l).css("transition","filter .2s"),l.css("filter","blur(3px)")),e=null,u(window).on("resize",function(){clearTimeout(e),e=setTimeout(t,50)}),c.keydown(function t(e){switch(e.keyCode){case 13:case 27:case 32:e.preventDefault(),o(n,i.backgroundBlur)}c.off("keydown",t)})):window.alert(i.text.replace(/<br[\s]*\/>/g,"\n").replace(/<([A-Z][A-Z0-9]*)\b[^>]*\/?>/g,""))},this.removeLabels=function(){u(".imGuiLabel").remove()},this.showLabel=function(t){var e,i,n=u("<div class='imGuiLabel'>"+t.text+"</div>").css({"box-shadow":t.shadow,"border-radius":"3px"});u("body").append(n),null!==t.object?(e=(t=u(t.object)).offset(),i=Math.max(0,e.top+Math.floor((t.outerHeight()-n.outerHeight())/2)),n.css({position:"absolute",top:i,left:e.left+t.outerWidth()+10})):(n.css({width:200,height:50,padding:10}),i=n.outerHeight(),n.css({position:"fixed",bottom:-i,right:30,overflow:"hidden",cursor:"pointer"}).animate({bottom:10})),n.fadeTo(300,.8).click(function(){n.fadeOut(100,function(){n.remove()})})}}})}(_jq,x5engine),!function(i,a){"use strict";i.extend(a.utils,{imFormatInt:function(t){return t=t<10?"0"+t:t},hex2rgb:function(t,e,i,n,o){return a.utils.shiftColor(t,e,i,n,o)},shiftColor:function(t,e,i,n,o){var a,r;if(o|=!1,"transparent"===t)return"rgba(0,0,0,0)";if(0===t.indexOf("#"))for(a=t.replace("#","").match(/(.{2})/g),r=0;r<a.length;r++)a[r]=parseInt(a[r],16);else if(0===t.indexOf("rgb"))for(a=t.match(/[0-9]+/gi),r=0;r<a.length;r++)a[r]=parseInt(a[r]);for(a.length<4&&(a[3]=255),e&&(a[0]+=e),i&&(a[1]+=i),n&&(a[2]+=n),r=0;r<3;r++)255<a[r]&&(o?a[r]=255:a[r]-=255),a[r]<0&&(o?a[r]=0:a[r]+=255);return"rgba("+a.join(", ")+")"},rgb2hex:function(t){return(t=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===t.length?"#"+("0"+parseInt(t[1],10).toString(16)).slice(-2)+("0"+parseInt(t[2],10).toString(16)).slice(-2)+("0"+parseInt(t[3],10).toString(16)).slice(-2):""},rgbDiff:function(t,e,i,n,o,a){var r,s,l,c=1;return null!=a?(r=(a=a.replace(/[^\d,]/g,"").split(","))[0],s=a[1],l=a[2],4==a.length&&(c=a[3])):(r=t,s=e,l=i,null!=n&&(c=n)),127<o&&(o=127),"rgba("+(r+=127<r?-o:o)+","+(s+=127<s?-o:o)+","+(l+=127<l?-o:o)+","+c+")"},createId:function(t){t=t||"imObj";for(var e=0;0<i("#"+t+e).length;)e++;return t+e},imHash:function(t){return a.utils.sha256.hex(t)},round:function(t,e){return e=e||0,(Math.round(t*Math.pow(10,e))/Math.pow(10,e)).toFixed(e)},isOdd:function(t){return 0==isNaN(t)?t%2==1:null},shuffleArray:function(t){let e=t.length,i;for(;0<e;)i=Math.floor(Math.random()*e),e--,[t[e],t[i]]=[t[i],t[e]];return t}})}(_jq,x5engine),!function(t,c){$.extend(t.utils,{scroll:function(){let o=[],a=c.innerWidth,r=c.innerHeight,s=-1;function l(t,e,i){let n=t(e,i);return"function"==typeof n?n:()=>n}return c.addEventListener("resize",function(){c.requestAnimationFrame(()=>{a!==c.innerWidth&&r!==c.innerHeight&&(a=c.innerWidth,r=c.innerHeight,s=(document.documentElement||document.body.parentNode||document.body).scrollTop||c.pageYOffset,o.forEach(t=>{t.filter=l(t.resize,a,r),t.filter(s)&&t.update(s)}))})}),c.addEventListener("scroll",function(){c.requestAnimationFrame(()=>{var t=(document.documentElement||document.body.parentNode||document.body).scrollTop||c.pageYOffset;s!==t&&(s=t,o.filter(t=>t.filter(s)).forEach(t=>t.update(s)))})},function(){let t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});c.addEventListener("test",null,e)}catch(t){}return t}()),{observe:function(t,e,i){let n={resize:t,filter:l(t,a,r),update:e};void 0!==i&&(n.id=i),o.push(n),c.requestAnimationFrame(()=>{n.filter(s)&&n.update(s)})},unobserve:function(e){o=o.filter(t=>t.id!==e)}}}(),scrollHelper:function(t){let o=t,a=null;function r(i){return(t,e)=>(a=e,i(t,e))}return{always:function(){return r((t,e)=>!0)},inViewport:function(t,e){let i=t||0,n=e||0===e?e:i;return r((t,e)=>t=>{if(void 0!==o){var e=o.getBoundingClientRect();if(void 0!==e)return e.top-i<a&&0<e.top+e.height+n}})},focalPoint:function(e){return t=>{null!=a&&e(t+a/2)}},objectFocalPoint:function(n){return t=>{var e,i;null!=a&&void 0!==o&&void 0!==(i=o.getBoundingClientRect())&&(e=a/2,i=i.top+i.height/2,n(i-e))}},percentiageScrolled:function(e){return t=>{null!==a&&e(100*(a+t)/document.body.scrollHeight)}},objectPercentiageScrolled:function(i){return t=>{var e;void 0!==o&&void 0!==(e=o.getBoundingClientRect())&&i(Math.max(0,Math.min(100*(a-e.top)/e.height,100)))}}}}})}(x5engine,window),!function(t,e){"use strict";function i(t){return s(a(d(t)))}function n(t,e){return l(r(d(t),d(e)))}function o(t,e,i){return c(r(d(t),d(e)),i)}function a(t){return h(p(u(t),8*t.length))}function r(t,e){for(var i=u(t),n=(16<i.length&&(i=p(i,8*t.length)),Array(16)),o=Array(16),a=0;a<16;a++)n[a]=909522486^i[a],o[a]=1549556828^i[a];t=p(n.concat(u(e)),512+8*e.length);return h(p(o.concat(t),768))}function s(t){for(var e,i=f?"0123456789ABCDEF":"0123456789abcdef",n="",o=0;o<t.length;o++)e=t.charCodeAt(o),n+=i.charAt(e>>>4&15)+i.charAt(15&e);return n}function l(t){for(var e="",i=t.length,n=0;n<i;n+=3)for(var o=t.charCodeAt(n)<<16|(n+1<i?t.charCodeAt(n+1)<<8:0)|(n+2<i?t.charCodeAt(n+2):0),a=0;a<4;a++)8*n+6*a>8*t.length?e+=g:e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(o>>>6*(3-a)&63);return e}function c(t,e){for(var i,n,o,a=e.length,r=Array(),s=Array(Math.ceil(t.length/2)),l=0;l<s.length;l++)s[l]=t.charCodeAt(2*l)<<8|t.charCodeAt(2*l+1);for(;0<s.length;){for(o=Array(),l=n=0;l<s.length;l++)n=(n<<16)+s[l],n-=(i=Math.floor(n/a))*a,(0<o.length||0<i)&&(o[o.length]=i);r[r.length]=n,s=o}var c="";for(l=r.length-1;0<=l;l--)c+=e.charAt(r[l]);var d=Math.ceil(8*t.length/(Math.log(e.length)/Math.log(2)));for(l=c.length;l<d;l++)c=e[0]+c;return c}function d(t){for(var e,i,n="",o=-1;++o<t.length;)e=t.charCodeAt(o),i=o+1<t.length?t.charCodeAt(o+1):0,55296<=e&&e<=56319&&56320<=i&&i<=57343&&(e=65536+((1023&e)<<10)+(1023&i),o++),e<=127?n+=String.fromCharCode(e):e<=2047?n+=String.fromCharCode(192|e>>>6&31,128|63&e):e<=65535?n+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):e<=2097151&&(n+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return n}function u(t){for(var e=Array(t.length>>2),i=0;i<e.length;i++)e[i]=0;for(i=0;i<8*t.length;i+=8)e[i>>5]|=(255&t.charCodeAt(i/8))<<24-i%32;return e}function h(t){for(var e="",i=0;i<32*t.length;i+=8)e+=String.fromCharCode(t[i>>5]>>>24-i%32&255);return e}function m(t,e){return t>>>e|t<<32-e}function p(t,e){var i,n,o,a,r,s,l,c,d,u,h,p,f=new Array(1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225),g=new Array(64);for(t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e,d=0;d<t.length;d+=16){for(i=f[0],n=f[1],o=f[2],a=f[3],r=f[4],s=f[5],l=f[6],c=f[7],u=0;u<64;u++)g[u]=u<16?t[u+d]:v(v(v(m(p=g[u-2],17)^m(p,19)^p>>>10,g[u-7]),m(p=g[u-15],7)^m(p,18)^p>>>3),g[u-16]),p=v(v(v(v(c,m(r,6)^m(r,11)^m(r,25)),r&s^~r&l),w[u]),g[u]),h=v(m(i,2)^m(i,13)^m(i,22),i&n^i&o^n&o),c=l,l=s,s=r,r=v(a,p),a=o,o=n,n=i,i=v(p,h);f[0]=v(i,f[0]),f[1]=v(n,f[1]),f[2]=v(o,f[2]),f[3]=v(a,f[3]),f[4]=v(r,f[4]),f[5]=v(s,f[5]),f[6]=v(l,f[6]),f[7]=v(c,f[7])}return f}function v(t,e){var i=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(i>>16)<<16|65535&i}var f,g,w;t.extend(e.utils,{sha256:(f=0,g="",w=new Array(1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998),{hex:i,b64:n,any:o,hex_hmac:function(t,e){return s(r(d(t),d(e)))},b64_hmac:n,any_hmac:o})})}(_jq,x5engine),!function(t,l){"use strict";t.extend(l.utils,{htmlspecialchars:function(t){return t?t.replace(/\"/g,"''").replace(/</g,"<").replace(/>/g,">"):""},htmlspecialchars_decode:function(t){return t?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'"):""},escapeRegExp:function(t){return t.replace(/[-.*+?^${}()|[\]\/\\]/g,"\\$&")},htmlDecode:function(t){var e=document.createElement("div");return e.innerHTML=t,0===e.childNodes.length?"":e.childNodes[0].nodeValue},emailTo:function(t,e,i,n){for(var o="",a=[],r=0;r<t.length;r++){var s=parseInt(t.charAt(r),10),l=e.substring(0,s);e=e.substring(s),o=l+o}i&&a.push("subject="+i),n&&a.push("body="+n),location.href="mailto:"+o+(a.length?"?"+a.join("&"):"")},trim:function(t,i){for(var e=function(t){for(var e=0;e<i.length;e++)if(t==i.charAt(e))return!0;return!1};t.length&&e(t.charAt(0));)t=t.substring(1);for(;t.length&&e(t.charAt(t.length-1));)t=t.substring(0,t.length-1);return t},isValidEmail:function(t){var e,i;return!!t&&-1!=(i=t.indexOf("@"))&&i==t.lastIndexOf("@")&&!(/[/\\\?\^\$]+/g.test(t)||(e=t.substring(0,i),t=t.substring(i+1),!e.length)||!t.length||"."==t.charAt(0)||"."==t.charAt(t.length-1)||-1==t.indexOf(".")||"."==e.charAt(0)||"."==e.charAt(e.length-1))},isNullOrEmpty:function(t){return null==t||""==t},replaceAll:function(t,e,i){return t.replace(new RegExp(l.utils.escapeRegExp(e),"g"),i)},replaceMap:function(t,e){for(var i in e)t=l.utils.replaceAll(t,i,e[i]);return t},occurrences:function(t,e,i){if(t+="",(e+="").length<=0)return 0;for(var n=0,o=0,a=i?1:e.length;t.length>o;){if((o=t.indexOf(e,o))<0)return n;++n,o+=a}},splitWordByText:function(t,e,i){if(t=t.trim(),i&&l.utils.isOdd(l.utils.occurrences(t,i)))return l.utils.splitWordByText(t,e);for(var n,o=[],a="",r=!1,s=0;s<t.length;s++)n=t.charAt(s),i&&n==i&&(r=!r),n==e&&!r||n==i||(a+=n),(n!=e||r)&&s!=t.length-1||(o.push(a),a="");return o}})}(_jq,x5engine),!function(s,l){"use strict";s.extend(l.utils,{getParam:function(t){var e,i="",n=0;return t+="=",0<(i=0!==window.location.search?window.decodeURI(window.location.search):i).length&&-1!=(e=i.indexOf(t))?(e+=t.length,-1==(n=i.indexOf("&",e))&&(n=i.length),i.substring(e,n)):null},imOpenLocation:function(t){document.location=t},isOnline:function(){return!l.settings.islocal},location:function(t,e,i,n){var o,a="",e=e||l.utils.currentPagePath,r=-1!=(o=t.indexOf("#"))?t.substring(o):"";if(void 0===i&&(i=!0),void 0===n&&(n=window),-1==t.indexOf("../")&&0!==t.indexOf("/")){a=r?t.replace(r,""):t;if((a=(e=-1!=(o=e.indexOf("#"))?e.substring(0,o):e)!=a&&(0!==a.indexOf("http")&&(e=e.substring(e.lastIndexOf("/")+1)),-1!=(o=a.indexOf("/")))?a.substring(0,o):a)==e||""===a)return l.utils.scrollTo(r||0,{start:function(){s("body").trigger("scrollToAnchorAnimationInProgress")},complete:function(){i&&(n.location.hash=r),s("body").trigger("scrollToAnchorAnimationCompleted")}}),!1}return n.location.href=t,!0},isCurrentPage:function(t,e){if(t)for(var i=0;i<t.length;i++)if(t[i]==location.pathname)return!e||e===location.hash.replace(/^#/g,"");return!1},queryStringToObject:function(){var t=window.location.search.substring(1);if(""==t)return null;for(var e=t.split("&"),i={},n=0;n<e.length;n++){var o=e[n].split("="),a=decodeURIComponent(o[0]),o=decodeURIComponent(o[1]);void 0===i[a]?i[a]=o:"string"==typeof i[a]?i[a]=[i[a],o]:i[a].push(o)}return i}})}(_jq,x5engine),!function(t,e){t.extend(e,{youtube:{jsApiIsLoaded:!1,apiLoadedEventName:"youtube_api_loaded"}})}(_jq,x5engine),!function t(){x5engine.l10n.loaded()&&x5engine.settings.loaded&&x5engine.cart.loaded?x5engine.boot.run():setTimeout(t,250)}();
[
Íàçàä
]