HEX
Server: Apache/2.4.25 (Debian)
System: Linux server17 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
User: web37 (1062)
PHP: 7.4.30
Disabled: show_source, highlight_file, apache_child_terminate, apache_get_modules, apache_note, apache_setenv, virtual, dl, disk_total_space, posix_getpwnam, posix_getpwuid, posix_mkfifo, posix_mknod, posix_setpgid, posix_setsid, posix_setuid, posix_uname, proc_nice, openlog, syslog, pfsockopen
Upload Files
File: /var/www/web37/htdocs/telefon-sex/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,g=k("body"),f=null,m=null,v=null,b=null,w=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 g.keydown(t),(!i.cookie||"true"!=k.imCookie(C))&&("top"==i.position?(w=1e6,k('[data-priority][data-position="top"]').each(function(){var t=+k(this).attr("data-priority");!isNaN(t)&&t>i.priority&&t<w&&(b=k(this),w=t)}),b?b.after(c):g.prepend(c),f=k("#"+d+" .target-image"),0<(u=k("#"+d)).length&&(u.slideUp(0),e=k("#imHeaderBg"),r=function(){},p=function(){a(),g.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()}})},f&&f.length?(f.one("load",h),f.mouseenter(function(){f.attr("src",i.image).mouseleave(function(){f.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}),g.append(s)),w=0,s.find("[data-priority]").each(function(){var t=+k(this).attr("data-priority");!isNaN(t)&&t<i.priority&&w<=t&&(b=k(this),w=t)}),b?b.before(c):s.append(c),u=k("#"+d),f=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<f.length?f.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(){f.off("load mouseleave").attr("src",i.image),k([m,u]).animate({height:f.outerHeight()})},f&&f.length?(f.one("load",h),i.img_big&&f.mouseenter(function(){f.one("load",function(){k([m,u]).stop(!1,!1).animate({height:f.outerHeight()}),f.mouseleave(l)}).attr("src",i.img_big)}),f.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,g){"use strict";p.extend(g,{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),g.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",g.utils.supportsCSS("backgroundSize")&&!/(iPad|iPhone|android)/i.test(navigator.userAgent)||(e=p(e),(o=p("<div />").css("overflow","hidden")).css("display",g.responsive.isDesktopMode()?"block":"none"),p("#imContent").on("breakpointChanged",function(){o.css("display",g.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=g={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,g=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&&g&&(e=g.x-p.x,i=g.y-p.y,0!=e&&Math.abs(i)<Math.abs(e)&&(t.preventDefault(),(0<e?a:n)()),p=g=!1)}function c(){u&&clearTimeout(u),u=setTimeout(function(){n()},h)}var d,u,h,p,g;o.extend(t,{blogHighlightedSlideshow:(d=[],u=null,g=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(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]),g=0;g<n.length;g+=1)y.each(o[n[g]],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"),g=0;g<r.options.availableFonts.length;g++)p.append('<option value="'+r.options.availableFonts[g]+'">'+r.options.availableFonts[g]+"</option>");var f=i.appendItemCustom("fontSize",{event:"change",onControlAppended:function(t){t.parent("ul").find("li.bold").before(t.detach())},exec:function(){u=f.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=(f.after('<li role="separator" class="separator"></li>'),f.append('<select id="font-family" style="width:40px;" />').css("text-indent",0).width(40).parent("li").width("auto"),f.find("select")),v=[8,9,10,12,14,16,18,20,22,24,26,28,36,42,48,54,60,66,72];for(g=0;g<v.length;g++)m.append('<option value="'+v[g]+'">'+v[g]+"</option>");var b=i.appendItemCustom("colorpicker",{onControlAppended:function(t){t.parent("ul").find("li.underline").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("color"))),l(b,e,function(t){C||r.editorDoc.execCommand("styleWithCSS",!1,!0),r.editorDoc.execCommand("foreColor",!1,"#"+t),C||r.editorDoc.execCommand("styleWithCSS",!1,!1)})}}),w=i.appendItemCustom("highlight",{onControlAppended:function(t){t.parent("ul").find("li.colorpicker").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("background-color"))),l(w,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),o.options.controlLink.forceRelativeUrls&&(n=window.location.protocol+"//"+window.location.hostname,0===t.indexOf(n)&&(t=t.substr(n.length))),"string"==typeof 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),o.options.controlLink.forceRelativeUrls&&(n=window.location.protocol+"//"+window.location.hostname,0===t.indexOf(n)&&(t=t.substr(n.length))),"string"==typeof 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(b,w){"use strict";if(void 0===b.wysiwyg)throw"wysiwyg.image.js depends on $.wysiwyg";b.wysiwyg.controls||(b.wysiwyg.controls={});var c=w.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);b.wysiwyg.controls.image={groupIndex:6,visible:!0,exec:function(){b.wysiwyg.controls.image.init(this)},tags:["img"],tooltip:"Insert image",init:function(i){var n,t,e,o=this,a=w.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)b.wysiwyg.i18n&&((e=b.wysiwyg.i18n.t(s[t],"dialogs.image"))===s[t]&&(e=b.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=b(r.self).css("float")),n=new b.wysiwyg.dialog(i,{title:s.legend,content:l,width:650}),d&&i.saveSelection(),b(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}),b.wysiwyg.fileManager&&b("div.wysiwyg-fileManager").on("click",function(){b.wysiwyg.fileManager.init(function(t){e.find("input[name=src]").val(t),e.find("input[name=src]").trigger("change")})}),b("input:reset",e).click(function(t){return n.close(),!1}),b("fieldset",e).click(function(t){t.stopPropagation()}),o.makeForm(e,r)}),n.open(),b(i.editorDoc).trigger("editorRefresh.wysiwyg")},processInsert:function(t,e,i){function n(t){i.self?(b(i.self).attr("src",t).attr("title",d).attr("alt",u).css("float",g),h.toString().match(/^[0-9]+(px|%)?$/)?b(i.self).css("width",h):b(i.self).css("width",""),p.toString().match(/^[0-9]+(px|%)?$/)?b(i.self).css("height",p):b(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<g.length&&m.push("float: "+g+";"),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=b('input[name="src"]',t).val(),d=b('input[name="imgtitle"]',t).val(),u=b('input[name="description"]',t).val(),h=b('input[name="width"]',t).val(),p=b('input[name="height"]',t).val(),g=b('select[name="float"]',t).val(),f=b('input[name="file"]',t),m=[],v="";b("#file_type_local",t).prop("checked")?e.options.imageuploadurl?window.FileReader?((a=new FileReader).onload=function(){n(a.result)},a.readAsDataURL(f.get(0).files[0])):w.settings.islocal?alert(w.l10n.get("blog_offline_message")):(l=f.val(),r=b('<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=b('<form enctype="multipart/form-data" method="post" action="'+e.options.imageuploadurl+'" />'),r.contents().find("body").append(t),t.append(f).submit(function(){s=!0}).submit())}),b("body").append(r),r.attr("src","#"))):alert("Cannot upload the image: upload url not found."):b("#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"==b(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}},b.wysiwyg.insertImage=function(t,n,o){return t.each(function(){var t,e,i=b(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(),b(i.editorDoc).trigger("editorRefresh.wysiwyg")}return this})}}(_jq,x5engine),!function(a,r){"use strict";function D(t,e){for(var i=t.classList,n=0;n<e.length;n++)i.add(e[n])}function A(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){A(p[t.last],[E.classes.slideOut,E.classes.slideOut+E.classes.prev,E.classes.slideOut+E.classes.next]),A(p[t.current],[E.classes.defaultSlide,E.classes.slideIn,E.classes.slideIn+E.classes.prev,E.classes.slideIn+E.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?E.classes.next:E.classes.prev}(t.last,t.current),D(p[t.last],[E.classes.slideOut,E.classes.slideOut+i]),D(p[t.current],[E.classes.slideIn,E.classes.slideIn+i])}function n(t){var e;document.getElementById((e=t.current,o.id+E.classes.radioIdSeparator+e)).checked=!0,a(t,t.current)}function a(t,e){E.config.radioSliding&&E.config.radioSliding.enabled&&p.length>E.radio.visibleNumber&&((e=C(e))!==t.radioBarIndex&&(t.radioBarIndex=e,x(t)))}function e(t){return 0==(t=(b-t)*E.radio.size)?t:t+"px"}function r(t,e){(e?_:k)(t)}function s(){I||(O&&(clearTimeout(O),O=null),!E.config.ctrlHidingDuringAnimations||!E.config.ctrlHidingDuringAnimations.enabled||E.config.ctrlHidingDuringAnimations.animations&&E.config.ctrlHidingDuringAnimations.animations.length&&!S(E.config.ctrlHidingDuringAnimations.animations)||k(g),I=!0)}function l(t){T(F.next)}function c(t){var e;return!y&&0<(e=t.getElementsByClassName(E.classes.animated)).length?e[e.length-1]:t}var t,d,u,h,p=o.getElementsByClassName(E.classes.slide),g=o.getElementsByClassName(E.classes.ctrlContainer)[0],f=!!g&&g.getElementsByClassName(E.classes.radioBar)[0],m=!!g&&g.getElementsByClassName(E.classes.radioBarNext)[0],v=!!g&&g.getElementsByClassName(E.classes.radioBarPrev)[0],b=(E.radio.visibleNumber-1)/2,w=p.length-b-1,y=!!o.getElementsByClassName(E.classes.noElementEffect).length,x=function(t){f&&(t.vertical?(f.style.top=e(t.radioBarIndex),f.style.left=0):(f.style.top=0,f.style.left=e(t.radioBarIndex))),r(m,t.radioBarIndex<w),r(v,t.radioBarIndex>b)},C=function(t){return Math.max(b,Math.min(w,t))},k=function(t){t&&t.classList.remove(E.classes.ctrlVisible)},_=function(t){t&&t.classList.add(E.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},I=!1,M=0,O=null,T=function(t){s(),0<M&&(O=setTimeout(t,M)),_(g),I=!1},F=(d=function(t){0<t?F.prev():F.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<=E.swipe.maxTime&&Math.abs(t)>=E.swipe.requiredDistance&&d(t)},!1),{current:0,last:0,vertical:!1,radioBarIndex:b,goTo:function(t,e){var t=function(t,e){for(;t<0;)t+=e;return t%e}(t,p.length);t!=F.current&&(s(),i(F,t,e),c(p[(t=F).last]).removeEventListener("animationend",l),c(p[t.current]).addEventListener("animationend",l),n(F))},next:function(){return F.goTo(F.current+1,E.classes.next)},prev:function(){return F.goTo(F.current-1,E.classes.prev)},autoplay:function(t){M=t,T(F.next)},radioBarNext:function(){a(F,F.radioBarIndex+E.radio.slideBarGap)},radioBarPrev:function(){a(F,F.radioBarIndex-E.radio.slideBarGap)}});return F}var E,l;a.extend(r,{contentSlider:(E={swipe:{requiredDistance:150,maxTime:300}},l={init:function(t){a.extend(!0,E,t||{});for(var e=r.responsive.isMobileDevice(),t="Apple Safari"===r.utils.getCurrentBrowser(),i=document.getElementsByClassName(E.classes.root),n=0;n<i.length;n++)l[i[n].id]=s(i[n]),e&&i[n].classList.add(E.classes.ctrlVisibleOnMobile);if(t)for(var o=document.getElementsByClassName(E.classes.container),n=0;n<o.length;n++)o[n].classList.contains(E.classes.cubeEffect)&&(o[n].classList.remove(E.classes.cubeEffect),o[n].classList.add(E.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(y,x){"use strict";y.extend(x,{imDatePicker:function(t,u){function e(t,e){(i=a())&&(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">',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">&lang;</span><span class="month-text"></span><span class="arrow">&rang;</span></div>'+'<div class="container year-container"><span class="arrow">&lang;</span><span class="year-text"></span><span class="arrow">&rang;</span></div>')+('<div class="calendar">'+g()+"</div>")+"</div>");y("body").append('<div class="date-picker-background"></div>'),(n=y(".date-picker-background")).css({position:"fixed",width:y(window).width(),height:y(window).height(),top:0,left:0,zIndex:x.settings.zIndex.datePicker+1}).on("click",w),y("body").append(i),o=y(".date-picker"),b(),o.find(".month-container .arrow").first().on("click",function(){m(-1)}),o.find(".month-container .arrow").last().on("click",function(){m(1)}),o.find(".year-container .arrow").first().on("click",function(){v(-1)}),o.find(".year-container .arrow").last().on("click",function(){v(1)}),y(".day").on("click",f),t+o.width()>y(window).width()+y(window).scrollLeft()&&(t=y(window).width()-o.outerWidth()-5+y(window).scrollLeft()),e+o.height()>y(window).height()+y(window).scrollTop()&&(e=y(window).height()-o.outerHeight()-5+y(window).scrollTop()),o.fadeOut(0).css({top:e,left:t,zIndex:x.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=y(),o=y(),h=y(t),r=x.l10n.get("date_months"),s=x.l10n.get("date_full_months"),d=x.l10n.get("date_days"),l=x.l10n.get("date_full_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},a=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(/\[dd\]/g,"\\d{1,2}").replace(/\[mm\]/g,"\\d{1,2}").replace(/\[yy\]/g,"\\d{2}").replace(/\[yyyy\]/g,"\\d{4}").replace(/\[DD\]/g,"[\\wìòàùèé']+").replace(/\[MM\]/g,"[\\wìòàùèé']+").replace(/\[D\]/g,"[\\wìòàùèé']+").replace(/\[M\]/g,"[\\wìòàùèé']+"),!new RegExp("^"+t+"$").test(e))return!1;for(var n,o,i=i.replace("[M]","").replace("[D]","").replace("[MM]","").replace("[DD]","").replace("[yy]","").replace("[yyyy]","").replace("[mm]","").replace("[dd]",""),a=p(u.format,i),r=p(e,i),s="",l="",c="",d=0;d<a.length;d++)switch(a[d]){case"[M]":for(n=x.l10n.get("date_months"),o=0;o<n.length;o++)n[o].toLowerCase()==r[d].toLowerCase()&&(s=o+1);break;case"[MM]":for(n=x.l10n.get("date_full_months"),o=0;o<n.length;o++)n[o].toLowerCase()==r[d].toLowerCase()&&(s=o+1);break;case"[D]":for(n=x.l10n.get("date_days"),o=0;o<n.length;o++)n[o].toLowerCase()==r[d].toLowerCase()&&(l=o+1);break;case"[DD]":for(n=x.l10n.get("date_full_days"),o=0;o<n.length;o++)n[o].toLowerCase()==r[d].toLowerCase()&&(l=o+1);break;case"[yy]":c="20"+r[d];break;case"[yyyy]":c=r[d];break;case"[mm]":s=r[d];break;case"[dd]":l=r[d]}return new Date(c,s-1,l)},g=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>"},f=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(y(this).text()),c.setFullYear(u.date.getFullYear()),c.setMonth(u.date.getMonth()),c.setDate(y(this).text()));var e=u.date.getFullYear().toString(),n=x.utils.imFormatInt(parseInt(u.date.getDate(),10)),o=x.utils.imFormatInt(parseInt(u.date.getMonth(),10)+1),a=(a=u.format.replace(/\[yyyy\]/g,e)).replace(/\[yy\]/g,e.substring(2)).replace(/\[mm\]/g,o).replace(/\[dd\]/g,n).replace(/\[D\]/g,0<=parseInt(c.getDay(),10)-1?d[parseInt(c.getDay(),10)-1]:d[6]).replace(/\[DD\]/g,0<=parseInt(c.getDay(),10)-1?l[parseInt(c.getDay(),10)-1]:l[6]).replace(/\[M\]/g,r[parseInt(c.getMonth(),10)]).replace(/\[MM\]/g,s[parseInt(c.getMonth(),10)]);h.val(a),h.data("data-was-set",!0),w(),i&&y.isFunction(u.onChange)&&u.onChange()},m=function(t){u.date.setDate(1),u.date.setMonth(u.date.getMonth()+t),b()},v=function(t){u.date.setFullYear(u.date.getFullYear()+t),b()},b=function(){var t;o.find(".calendar").empty().append(g()),o.find(".month-text").empty().append(s[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(x.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(f)},w=function(){n.remove(),o.fadeOut(200,function(){o.remove()})};return(u=y.extend({icon:!0,start:0,float:"left",format:x.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=a();!1!==t&&(f(null,t),y.isFunction(u.onChange)&&u.onChange())}),h.click(function(){y(this).removeClass(x.imForm.constants.mark)}),u.setInitial&&f(null,u.date,!1),{date:function(){return u.date}}}})}(_jq,x5engine),!function(n,h){"use strict";n.extend(h,{setupDateTime:function(){var t=h.dateTime;t(n(".imHour"),"hour"),t(n(".imNow"),"now")},dateTime:function(a,t){a=n(a);var r,e=h.l10n.get,s=e("date_days"),l=e("date_months"),c=e("date_full_months"),d=e("date_full_days"),u=e("date_format"),i=h.utils.imFormatInt;if("hour"!=t&&"now"!=t)a.html(t);else switch(t){case"hour":!function t(){var e=new Date;a.html(i(e.getHours())+":"+i(e.getMinutes())+":"+i(e.getSeconds())+" "),setTimeout(t,1e3)}();break;case"now":!function t(){var e=new Date,i=e.getFullYear().toString(),n=h.utils.imFormatInt(parseInt(e.getDate(),10)),o=h.utils.imFormatInt(parseInt(e.getMonth(),10)+1);r=u.replace(/\[yyyy\]/g,i).replace(/\[yy\]/g,i.substring(2)).replace(/\[aaaa\]/g,i).replace(/\[aa\]/g,i.substring(2)).replace(/\[mm\]/g,o).replace(/\[dd\]/g,n).replace(/\[D\]/g,0<=parseInt(e.getDay(),10)-1?s[parseInt(e.getDay(),10)-1]:s[6]).replace(/\[DD\]/g,0<=parseInt(e.getDay(),10)-1?d[parseInt(e.getDay(),10)-1]:d[6]).replace(/\[M\]/g,l[parseInt(e.getMonth(),10)]).replace(/\[MM\]/g,c[parseInt(e.getMonth(),10)]),a.html(r),setTimeout(t,6e4)}()}}})}(_jq,x5engine),!function(g,f){"use strict";g.fn.loudStop=function(t,e){return g(this).trigger("loudStop").stop(t,e),this},g.extend(g.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-g.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}}),g.extend(!0,f,{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),g.isFunction(n)&&n(t)},animateOut:function(t,e,i,n){t.DOMObject().loudStop(!1,!1).hide(0),g.isFunction(i)&&i(t)}},fade:{animateIn:function(t,e,i,n,o){i=g(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(){g.isFunction(n)&&n(t)})},animateOut:function(t,e,i,n){t.DOMObject().loudStop(!1,!1).fadeOut(500,function(){g.isFunction(i)&&i(t)})}},horizontalSlide:{animateIn:function(t,e,i,n,o){i=g(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(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({left:n?e.width():-o.width()},{duration:500,complete:function(){g.isFunction(i)&&i(t)}})}},horizontalSlideSwing:{animateIn:function(t,e,i,n,o){t.DOMObject();i=g(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(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({left:n?e.width():-o.width()},{duration:2e3,easing:"easeInOutSwing",complete:function(){g.isFunction(i)&&i(t)}})}},verticalSlide:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(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(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({top:n?-t.Height():e.height()},{duration:500,complete:function(){g.isFunction(i)&&i(t)}})}},verticalSlideSwing:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(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(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({top:n?-t.Height():e.height()},{duration:2e3,easing:"easeInOutSwing",complete:function(){g.isFunction(i)&&i(t)}})}},zoom:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(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(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({top:e.height()/2,left:e.width()/2,width:1,height:1},{duration:500,complete:function(){g.isFunction(i)&&i(t)}})}},elasticFromTop:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(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(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).fadeOut(500,function(){g.isFunction(i)&&i(t)})}},elasticFromBottom:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(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(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).fadeOut(500,function(){g.isFunction(i)&&i(t)})}},elasticFromLeft:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(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(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({left:n?-o.width():e.width()},{duration:1500,easing:"elasticIn",complete:function(){g.isFunction(i)&&i(t)}})}},elasticFromRight:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(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(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({left:n?e.width():-o.width()},{duration:1500,easing:"elasticIn",complete:function(){g.isFunction(i)&&i(t)}})}},bounceFromRight:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(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(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({left:n?e.width():-o.width()},{duration:1e3,easing:"bounceOut",complete:function(){g.isFunction(i)&&i(t)}})}},bounceFromLeft:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(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(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({left:n?-o.width():e.width()},{duration:1e3,easing:"bounceOut",complete:function(){g.isFunction(i)&&i(t)}})}},bounceFromTop:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(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(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({top:n?-o.height():e.height()},{duration:1500,easing:"bounceOut",complete:function(){g.isFunction(i)&&i(t)}})}},bounceFromBottom:{animateIn:function(t,e,i,n,o){var a=t.DOMObject();i=g(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(){g.isFunction(n)&&n(t)}})},animateOut:function(t,e,i,n){var o=t.DOMObject();e=g(e),o.loudStop(!1,!1).animate({top:n?e.height():-o.height()},{duration:1500,easing:"bounceOut",complete:function(){g.isFunction(i)&&i(t)}})}},rotateLinear:{animateIn:function(t,e,i,n,o){var a,r=t.DOMObject(),s=f.utils.supportsCSS("transform"),l=f.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(){g.isFunction(n)&&n(t)}})):f.effects.fade.animateIn(t,e,i,n,o)},animateOut:function(t,e,i,n){var o,a=t.DOMObject(),r=f.utils.supportsCSS("transform"),s=f.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(){g.isFunction(i)&&i(t)}})):f.effects.fade.animateOut(t,e,i,n)}},rotateZoom:{animateIn:function(t,e,i,n,o){var a=t.DOMObject(),r=f.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(){g.isFunction(n)&&n(t)}})):f.effects.zoom.animateIn(t,e,i,n,o)},animateOut:function(t,e,i,n){var o=t.DOMObject(),a=f.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(){g.isFunction(i)&&i(t)}})):f.effects.zoom.animateOut(t,e,i,n)}},carousel:{animateIn:function(t,e,i,n,o){var a,r=t.DOMObject(),s=f.utils.supportsCSS("transform"),l=f.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(){g.isFunction(n)&&n(t)}})):f.effects.fade.animateIn(t,e,i,n,o)},animateOut:function(t,e,i,n){var o,a=t.DOMObject(),r=f.utils.supportsCSS("transform"),s=f.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(){g.isFunction(i)&&i(t)}})):f.effects.fade.animateOut(t,e,i,n)}},verticalSlices:{animateIn:function(e,i,n,o,a){if("image"!=e.Type())f.effects.fade.animateIn(e,i,n,o,a);else{var r=e.DOMObject(),s=g(null),t=e.Width()/5,l=r.attr("src");r.loudStop(!1,!1).one("loudStop",function(){s.stop(!1,!1).remove(),s=g(null)});for(var c=0;c<5;c++)s=s.add(g("<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){g(this).delay(80*t).animate({top:i.y},{duration:400,step:function(t,e){"top"==e.prop&&g(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())f.effects.fade.animateOut(e,i,n,o);else{var t=e.DOMObject(),a=g(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=g(null)});for(var c=0;c<5;c++)a=a.add(g("<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){g(this).delay(80*t).animate({top:s.y+i.height()*(o?-1:1)},{duration:400,step:function(t,e){"top"==e.prop&&g(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())f.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=g(null)}),g(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(g("<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=g(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())f.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=g(null)}),g(null)),u=0;u<4;u++)for(var h=0;h<4;h++)d=d.add(g("<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;g(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())f.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=g(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=g(null)});for(var d=0;d<4;d++)for(var u=0;u<4;u++)c=c.add(g("<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){g(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())f.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=g(null);t.loudStop(!1,!1).one("loudStop",function(){c.stop(!1,!1).remove(),c=g(null)});for(var d=0;d<4;d++)for(var u=0;u<4;u++)c=c.add(g("<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){g(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=f.utils.supportsCSS("transform"),l=f.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(){g.isFunction(n)&&n(t)}})):f.effects.fade.animateIn(t,e,i,n,o)},animateOut:function(t,e,i,n){var o,a=t.DOMObject(),r=f.utils.supportsCSS("transform"),s=f.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(){g.isFunction(i)&&i(t)}})):f.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())},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 r(t,e){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":(new h.utils.Gui).showPopUp({text:n});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||r(this,"form_mandatory")}),o.find(".mandatory:checkbox").each(function(){0==this.checked&&r(this,"form_mandatory")}),o.find(".mandatory:radio").each(function(){0==u(".mandatory[name="+u(this).attr("name")+"]:checked").length&&r(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()&&r(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&&r(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&&r(this,"form_length"))}),o.find(".valChars").each(function(){""!=u(this).val()&&0==/^\D*$/.test(u(this).val())&&r(this,"form_characters")}),o.find(".valGenTelephone").each(function(){""!=u(this).val()&&0==/^[0-9\-\.\/\(\)\s]*$/.test(u(this).val())&&r(this,"form_telephone")}),o.find(".valTelephone").each(function(){""!=u(this).val()&&0==/^[0-9 \-\+\.\/]*$/.test(u(this).val())&&r(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())&&r(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())&&r(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())&&r(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())&&r(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(/\[dd\]/g,"\\d{1,2}").replace(/\[mm\]/g,"\\d{1,2}").replace(/\[yy\]/g,"\\d{2}").replace(/\[yyyy\]/g,"\\d{4}").replace(/\[DD\]/g,"[^\\d]+").replace(/\[MM\]/g,"[^\\d]+").replace(/\[D\]/g,"[^\\d]+").replace(/\[M\]/g,"[^\\d]+"))+"$",new RegExp(e).test(u(this).val())||r(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=(t=e[i].substring(9,e[i].length-1)).replace(/\_/g,"\\s").replace(/\//g,"\\/").replace(/\-/g,"\\-").replace(/\./g,"\\.").replace(/\[dd\]/g,"\\d{1,2}").replace(/\[mm\]/g,"\\d{1,2}").replace(/\[yy\]/g,"\\d{2}").replace(/\[yyyy\]/g,"\\d{4}").replace(/\[DD\]/g,"[\\wìòàùèé']+").replace(/\[MM\]/g,"[\\wìòàùèé']+").replace(/\[D\]/g,"[\\wìòàùèé']+")).replace(/\[M\]/g,"[\\wìòàùèé']+"))+"$",new RegExp(t).test(u(this).val())||r(this,"form_date"))}),o.find(".valEmail").each(function(){var t=u(this).val();0<t.length&&!h.utils.isValidEmail(t)&&r(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)&&r(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())&&r(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())&&r(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())&&r(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())&&r(this,"form_format"))}),o.find("[class*=valVAT]").each(function(){return!0}),o.find("input.valDisclaimer").each(function(){this.checked||r(u(this),"form_err_disclaimer")}),o.find("input[data-extensions]").each(function(){var t,e,i=u(this),n=!1,o=i.val(),a=o.lastIndexOf("."),i=i.attr("data-extensions");if(i&&o&&-1<a){for(o=o.substring(a+1),t=i.split(","),e=0;e<t.length;e++)o==t[e]&&(n=!0);n||r(u(this),"form_format")}}),h.imForm.checkCaptcha(o)||(h.imForm.resetCaptcha(o),r(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&&r(u(n),"form_question")}})):t.attr("data-answer").replace(/\"/g,"'").replace(/\</g,"&lt;").replace(/\>/g,"&gt;")!=t.val().replace(/\"/g,"'").replace(/\</g,"&lt;").replace(/\>/g,"&gt;")&&r(t,"form_question")}),c},submit:function(t,e){var i=u(t),n=u(t+"_submit");h.imForm.validate(i,e)&&(h.utils.isOnline()?(n.attr("disabled",!0),"showPage"==e.feedbackMode?i.off("submit").submit():this.ajaxSubmit(t,e)):h.utils.showOfflineMessage(e.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){M&&t.preventDefault()}l.each(k,function(){var t=l(this);t.on("rowEntersInViewport",function(){u(t[0])})}),l("body").on("touchstart",function(){I=!0}),l("body").on("touchend",function(){I=!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!==b&&clearInterval(b),b=setInterval(d,500),S||l("#imPageRowScrollButton").fadeOut()}function d(){l("#imPageRowScrollButton").is(":hover")||l("#imPageRowScrollButton").fadeOut()}function u(t,e){if(e=e||!1,I)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,g,f,m,v,b,w,y,x,C,k,_,S,I,M,O,T;l.extend(c,{fullHeightRows:(k=[],O=M=I=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"),f=l(".imPageRow:visible:last").offset().top,l(".imPageRow").each(function(){var n=l(this);n.on("rowEntersInViewport",function(){var t,e,i;g=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<g.nextAll(".imPageRow:first").length?g.nextAll(".imPageRow:first"):null,e=(document.documentElement||document.body.parentNode||document.body).scrollTop||window.pageYOffset,i=g.offset().top;1<Math.round(i-e)?u(g[0],!0):null!=t&&(u(t[0],!0),g=t)}),"visibleonmousemove"!=h.scrollButton.type&&(0<f-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){M=!0}),l("body").on("fullHeightRowsAutoscrollAnimationCompleted",function(t,e){x=void 0,M=!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||w===t.clientX&&y===t.clientY||(clearInterval(b),b=setInterval(d,500),l("#imPageRowScrollButton").is(":hidden")&&l("#imPageRowScrollButton").fadeIn()),w=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(bt,wt){"use strict";bt.extend(wt,{gallery:function(t){function B(){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 z(){if(!e){if(e=!0,dt!==null)dt.Play();S.trigger(G)}i=setTimeout(function(){B(),null!==i&&(clearTimeout(i),i=null),z()},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&&I.prepend(wt.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 wt.mediaObject(bt.extend(l.media[i],{showControls:l.media[i].showControls||p,touchDevice:p,contentWidth:o().width,contentHeight:o().height,width:t,height:n,load:function(t){d[e]=t,e===l.startFrom&&(I.find(".imLoadAnim").remove(),null===h&&null!=O&&(h=bt("<div />").css({float:"left"}).width(l.thumbs.size).height(l.thumbs.size).prepend(wt.settings.imLoadingAnimation),O.append(h)),_(l.startFrom),!0===l.autoplay&&z());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(){bt(".im-big-thumb").remove();var e=n.offset().left-I.offset().left,i=bt("<img />").addClass("im-big-thumb");I.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),f.stop(!1,!1).fadeIn(),N&&(clearTimeout(N),N=null),N=setTimeout(function(){f.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?B: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,j,W,q,l=bt.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=bt(l.target),d=[],u=null,h=null,p=(navigator.userAgent.toLowerCase(),bt("html").hasClass("touchevents")),g=null,e=!1,i=null,f=null,N=null,n=0,$=0,m=null,v=null,U=null,Y=null,b=null,w=null,y=null,x=null,C=wt.utils.hex2rgb(l.controlBar.color,-50,-50,-50),t=wt.utils.hex2rgb(l.controlBar.color,-20,-20,-20,!0),V=bt.Callbacks(),k=(bt(document),bt("body"),bt(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(I,function(t){t.DOMObject().detach()},i)):I.prepend(d[t].DOMObject()),d[u=t].AnimateIn(I,function(){n&&J(u),V.fire(u)},i),null!==m&&m.html(u+1+"/"+d.length);var o=d[u].GetDescription();null!=o&&""!==o?(null===g&&(g=bt("<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}),I.append(g)),g.stop(!1,!1).fadeOut(250,function(){g.html(o.replace(/\n/g,"<br />")),e&&g.stop(!1,!1).fadeTo(250,l.description.alpha)}),p||c.mouseenter(function(){null!==g&&g.stop(!1,!1).fadeOut(250)}).mouseleave(function(){null!==g&&g.stop(!1,!1).fadeTo(250,l.description.alpha)})):null!==g&&g.stop(!1,!1).fadeOut(250,function(){g.detach(),g=null})}),J=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)-M.width()/2:s*(t+1)-M.height()/2,Math.abs(t%s)):(t=l.thumbs.size*(t+1)-M.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()+M.width()))}):O.stop(!1,!1).animate({top:Math.min(0,Math.max(-t,-O.height()+M.height()))})))))},S=bt("<div />").css({position:"relative","background-color":l.backgroundColor,margin:"0 auto"}).width(l.width).height(l.height),I=bt("<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),M=bt("<div />"),O=(S.append(I),"embed"!==l.thumbs.position&&S.append(M),c.empty().append(S),"static"==c.css("position")&&c.css("position","relative"),!0!==l.controlBar.show&&"outside"!==l.controlBar.show||p||(v=bt("<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",wt.utils.cssPropertyPrefix("linear-gradient(bottom, "+wt.utils.hex2rgb(l.controlBar.color,-50,-50,-50,!0)+" 0%, "+l.controlBar.color+" 50%, "+wt.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?I.after(v):I.append(v),P=function(){var t=null;""===l.buttons.playImage||void 0===l.buttons.playImage||null===l.buttons.playImage?(t=bt("<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=bt("<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?bt("<div />").css({float:"left",cursor:"pointer","border-right":"1px solid "+t}).width(l.controlBar.height-1).height(l.controlBar.height):bt("<div />").attr("src",l.buttons.playImage).css({float:"left",cursor:"pointer"})).click(function(t){t.preventDefault(),(e?a:z)()}),P(),S.on(G,P).on(Z,P),v.append(y),P=bt("<span />").html(l.media.length+"/"+l.media.length),v.append(P),H=P.width()+(l.slideshow.active?14:54),P.remove(),P=null,f=bt("<div />").css({position:"absolute",right:0,top:0,"border-left":"1px solid "+t,"text-align":"center",overflow:"hidden"}).height(l.controlBar.height).width(H),v.append(f),f.append(m=bt("<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||(b=""===l.buttons.prevImage||null===l.buttons.prevImage||void 0===l.buttons.prevImage?bt("<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("&lt;"):bt("<img />").attr("src",l.buttons.prevImage).attr("alt",wt.l10n.get("common_prev")).css({cursor:"pointer"}),f.prepend(b.click(function(t){return t.preventDefault(),a(),L(),!1}).on("selectstart mousedown",function(){return!1})),w=""===l.buttons.nextImage||null===l.buttons.nextImage||void 0===l.buttons.nextImage?bt("<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("&gt;"):bt("<img />").attr("src",l.buttons.nextImage).attr("alt",wt.l10n.get("common_next")).css({cursor:"pointer"}),f.append(w.click(function(t){return t.preventDefault(),a(),B(),!1}).on("selectstart mousedown",function(){return!1}))),l.fullScreen&&(x=bt("<div />").css({position:"absolute",top:0,right:H,"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:""}}wt.imShowBox({showThumbs:"none"!=t,media:i},u,bt(l.target))}),v.append(x),P=bt("<div />"),H=bt("<div />"),t=bt("<div />"),j=bt("<div />"),x.append(P.add(H).add(t).add(j).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"}),H.css({top:6,right:6,"border-width":"2px 2px 0 0"}),t.css({bottom:6,right:6,"border-width":"0 2px 2px 0"}),j.css({bottom:6,left:6,"border-width":"0 0 2px 2px"})),n=v.width()-y.outerWidth()-f.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":M.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"}),M.width("bottom"===l.thumbs.position||"top"===l.thumbs.position?l.width:l.thumbs.size),M.height("bottom"===l.thumbs.position||"top"===l.thumbs.position?l.thumbs.size:l.height),O=bt("<div />"),M.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});M.offset();var K,Q,tt,et,T,it,nt,ot,F,at,D,rt,A,st=M.width(),lt=M.height(),ct=l.thumbs.number*s;p?l.disableTouch||(tt=!1,et=Q=K=null,M[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,"")),K=t.touches[0].pageX,Q=t.touches[0].pageY),tt=!1}),M[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=K-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})}),K=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))}),M[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&&(bt(et).click(),et=null)})):l.media.length>l.thumbs.number&&("top"===l.thumbs.position||"bottom"===l.thumbs.position?(ot=M.height(),F=bt("<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(){M.append(F),F.css("top",(ot-F.height())/2)}).attr("src",l.thumbsArrowLImage).attr("alt",wt.l10n.get("common_prev")),at=bt("<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(){M.append(at),at.css("top",(ot-at.height())/2)}).attr("src",l.thumbsArrowRImage).attr("alt",wt.l10n.get("common_next")),M.mouseenter(function(){F.add(at).stop(!1,!1).fadeTo(250,.925)}).mouseleave(function(){F.add(at).stop(!1,!1).fadeOut(250)})):(D=bt("<img />"),rt=M.width(),M.append(D),D.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(){M.append(D),D.css("left",(rt-D.width())/2)}).attr("src",l.thumbsArrowUImage).attr("alt",wt.l10n.get("common_prev")),A=bt("<img />"),M.append(A),A.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(){M.append(A),A.css("left",(rt-A.width())/2)}).attr("src",l.thumbsArrowDImage).attr("alt",wt.l10n.get("common_next")),M.mouseenter(function(){D.add(A).stop(!1,!1).fadeTo(250,.925)}).mouseleave(function(){D.add(A).stop(!1,!1).fadeOut(250)})));break;case"embed":l.controlBar.show&&!p&&(W=!1,q=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,q=l.width-n-(W?46:0)-(null!==y?y.width():0)-(null!==x?x.width():0)-(null!==f?f.width():0),q/=2,0<$&&(M.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(M),O=bt("<div />").css({position:"absolute",top:0,left:0}).width(l.thumbs.size*l.media.length),M.append(O),W?(M.before(U=bt("<div />")),U.css({"margin-top":(l.controlBar.height-l.thumbs.size)/2+2,"margin-right":3,"margin-left":q,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+M.width())})}),M.after(Y=bt("<div />")),Y.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()+M.width(),t-M.width())})})):M.css("margin-left",q)))}l.slideshow.active&&"none"!=l.slideshow.nextPrevMode&&!p&&(bt("<img />").one("load",function(){var t=bt(this);S.append(b=t.css("display","none")),b.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",wt.l10n.get("common_prev")),bt("<img />").one("load",function(){var t=bt(this);S.append(w=t.css("display","none")),w.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(),B()})}).attr("src",l.slideshow.buttonNext.url).attr("alt",wt.l10n.get("common_next")),"hover"==l.slideshow.nextPrevMode&&c.mouseenter(function(){b.add(w).stop(!1,!1).fadeTo(250,.999)}).mouseleave(function(){b.add(w).stop(!1,!1).fadeOut(250)})),!l.disableTouch&&p&&1<l.media.length&&(k=bt('<div data-hide="false" />').css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(bt("<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(bt("<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"),I.append(k),m=bt("<div />").css({position:"absolute",color:"white","line-height":"30px",top:0,bottom:0,left:0,right:0,"z-index":10}),f=bt("<div />").css({position:"absolute",bottom:0,right:0,display:"none","z-index":10}).width(30).height(30).append(bt("<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),I.append(f));var dt=null;if(null!==l.music&&void 0!==l.music&&(dt=new wt.mediaObject({type:"audio",url:l.music})),l.bullets.show&&l.bullets.url&&1<l.media.length){var ut=bt("<div />"),E=l.bullets,P=E.positionX,H=E.positionY,t=l.media.length*E.size;if(wt.responsive.isDesktopMode()||t<o().width){ut.width(t).height(E.size).css({position:"absolute",top:"top"==H?l.bullets.distanceTop:"center"==H?o().height/2-E.size/2:"auto",bottom:"bottom"==H?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"}),I.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('"+E.url+"')","background-repeat":"no-repeat",cursor:"pointer","background-position":"0 0"}).width(E.size).height(E.size).click(function(){_(+bt(this).attr("data-num"))}),V.add(function(t){ut.find("div").css("background-position","0 0").eq(t).css("background-position",-E.size+"px 0")})}}if(l.random){for(var gt,ft,mt=l.media,vt=mt.length;vt;gt=Math.round(Math.random()*vt),ft=mt[--vt],mt[vt]=mt[gt],mt[gt]=ft);l.medias=mt}return R(0),{currentItemIndex:function(){return u},onShowMedia:function(t){return V.add(t),this},showNext:function(){return B(),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(o,a){"use strict";o.extend(a,{image:{activateLazyLoading:function(){o(".imlazyloading[data-src]").each(function(){var t=o(this),e=t.prev("div"),i=t.attr("id"),n=o("<img />").attr("title",t.attr("data-title")).attr("alt",t.attr("data-alt")).addClass("imlazyloading");t.after(n),t.remove(),n.attr("id",i),n.fadeOut(0).one("load",function(){e.remove(),n.show(),n.trigger("imLazyLoadingEnd")}),a.utils.onElementInViewPort(e[0],function(){n.attr("src",t.attr("data-src")),n.trigger("imLazyLoadingStart")})})}}})}(_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,f=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,g=!0;k.utils.onElementResize(t.parent()[0],function(t,e){g||p==t.width?g=g&&!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":f.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":f.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),g=(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),f=0,m=!0;k.utils.onElementResize(e[0],function(t,e){m||f==t.width?m=m&&!1:(f=t.width,g&&clearTimeout(g),g=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(),f=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(){b(),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(){b()}})}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),g=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,g=null,f=null,m=o.parents("[id*='imCell_']"),v=o.parents(".template-object-wrapper"),b=(C("body"),function(){s||(m.css("overflow",""),m.parent().css("overflow-y",""))}),w=(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,w&&clearTimeout(w),w=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"),f&&o.attr("style",f),g&&p&&(p.attr("style",g),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,g=!0;k.utils.onElementResize(e[0],function(t,e){g||p==t.width?g=g&&!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 g(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 f(){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 b(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 w(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=g(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||I)&&(S&&b(t),I&&w(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-M.X,offsetY:t.touches[0].pageY-M.Y};(S||I)&&(S&&b(e),I&&w(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=!(I=!1),b(t),y()},"ontouchstart"in window&&n.padM.addEventListener("touchstart",function(t){M={X:t.target.offsetParent.offsetLeft,Y:t.target.offsetParent.offsetTop},this.onmousedown({offsetX:t.touches[0].pageX-M.X,offsetY:t.touches[0].pageY-M.Y})}),n.sldM.onmouseup=n.sldM.onmouseout=function(){I&&(I=!1,O.fireEvent(_,"change"))},n.sldM.onmousedown=function(t){I=!(S=!1),w(t),y()},"ontouchstart"in window&&n.sldM.addEventListener("touchstart",function(t){M={X:t.target.offsetParent.offsetLeft,Y:t.target.offsetParent.offsetTop},this.onmousedown({offsetX:t.touches[0].pageX-M.X,offsetY:t.touches[0].pageY-M.Y})}),g(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",f(),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()||f(),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,I=!1,M={},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(q,N,$){"use strict";q.extend(N,{mediaObject:function(t){function n(t){function e(){F=q("<img />"),O.thumb?F.attr("src",O.thumb):"string"!=typeof O.url||null===O.url||-1==O.url.indexOf(".gif")&&-1==O.url.indexOf(".png")&&-1==O.url.indexOf(".jpg")&&-1==O.url.indexOf(".jpeg")||F.attr("src",O.url),F.css("cursor","pointer"),"random"!=O.effect&&(A=N.effects[O.effect]||(!N.effects[O.effect]&&N.effects.fade?N.effects.fade:{animateIn:function(t,e,i,n,o){t=t.DOMObject();i=q(i),t.css({position:"absolute",top:0,left:0}),i.append(t),t.show(0),q.isFunction(n)&&n()},animateOut:function(t,e,i,n){q(t.DOMObject()).detach(),q.isFunction(i)&&i()}})),O.touchDevice&&"html"!=O.type&&T.on("animate_in_start",function(){T.off("touchstart").on("touchstart",B),T.parent().off("touchmove").on("touchmove",L),T.parent().off("touchend").on("touchend",z),T.off("gesturestart").on("gesturestart",R),T.off("gesturechange").on("gesturechange",j),T.off("gestureend").on("gestureend",W)}),q.isFunction(t)&&t(D)}T&&(T.remove(),T=null);var i="",n=null,o=0,a={},r=!1,s="",l="";switch(O.type){case"video":var c,d,u,h,p,g,f,m,v,b,r=!1;if("string"==typeof O.url&&(O.url=[{src:O.url}]),"object"==typeof O.url)for(o=0;o<O.url.length&&!r;o++)r|=0<O.url[o].src.search(/\.(mp4|webm|ogg|flac)/gi);d=O.width&&O.contentWidth?Math.min(O.width,O.contentWidth):Math.max(O.width,O.contentWidth),u=O.height&&O.contentHeight?Math.min(O.height,O.contentHeight):Math.max(O.height,O.contentHeight),T=q("<div />").width("100%").attr({"data-width":d,"data-height":u}),r?(h=null,p=function(){b("play")},g=function(){b("pause")},T.on("animate_out_start",function(){null!==h&&!0!==h.paused&&h.pause(),h.removeEventListener("play",p),h.removeEventListener("pause",g)}),T.on("animate_in_end",function(){if(T.empty(),c=q("<video />").width("100%").attr({width:"100%",controls:!0,controlsList:"nodownload"}),N.utils.isOnline()&&c.attr("preload","metadata"),1<O.url.length)for(var t in O.url)c.append(q("<source />").attr("src",O.url[t].src));else{for(var e in O.url)c.attr("src",O.url[e].src);c.on("error",function(t){var e=q('<div class="object-generic-error"><div><div>'+N.l10n.get("error_notsupported_video")+"</div></div></div>");e.css({height:u,width:d,"max-height":"100%"}),c.replaceWith(e)})}T.css({height:u,width:d,"max-height":"100%"}).attr({cursor:"pointer"}).append(c),h=c.get(0);function i(){var t=(T.width()-c.outerWidth())/2,e=(T.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",g)}),f=function(){4!=h.readyState&&(h.removeEventListener("load",D.Play,!1),h.addEventListener("load",D.Play,!1),h.removeEventListener("canplaythrough",D.Play,!1),h.addEventListener("canplaythrough",D.Play,!1))},m="pause",v=null,b=function(t){t!=m&&(m=t,T.triggerHandler("status_change",[m]),null!==v&&clearInterval(v),"play"==t&&(v=setInterval(function(){T.triggerHandler("playing",[h.currentTime])},500)))},D.Play=function(){return void 0!==h.play&&(h.removeEventListener("onreadystatechange",f,!1),h.addEventListener("onreadystatechange",f,!1),h.play(),f(),b("play"),!0)},D.Pause=function(){return!!h.pause&&(h.pause(),b("pause"),!0)},D.Stop=function(){return D.Pause()},D.Volume=function(t){return null!=t?h.volume=t:h.volume},D.CurrentPosition=function(t){return null!=t?h.currentTime=t:h.currentTime},D.Duration=function(){return h.duration},D.Progress=function(){return h.buffered?h.buffered.length:0},D.FullScreen=function(){}):T=void 0!==a["video/mov"]||void 0!==a["video/aiff"]||void 0!==a["video/m4a"]?(y='<object width="'+d+'" height="'+u+'" type="application/quicktime">\n',y=(y=(y=(y+='\t<param name="codebase" value="http://www.apple.com/qtactivex/qtplugin.cab">\n')+'\t<param name="src" value="'+(I=a["video/mov"]||a["video/aiff"]||a["video/m4a"])+'">\n\t<param name="autoplay" value="'+(O.autoPlay?"true":"false")+'">\n')+'\t<param name="controller" value="'+(O.showVideoControls?"true":"false")+'">\n')+'\t<embed src="'+I+'" width="'+d+'" height="'+u+'" autoplay="'+(O.autoPlay?"true":"false")+'" controller="'+(O.showVideoControls?"true":"false")+'" pluginspage="http://www.apple.com/quicktime/download/" />',q(y+="</object>")):(I="",/MSIE/.test(navigator.userAgent)&&(I=(I=(I=(I+='\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="'+(O.showVideoControls?"1":"0")+'" />\n')+'\t\t<param name="uiMode" value="'+(O.showVideoControls?"full":"none")+'" />\n')+'\t\t<param name="autostart" value="'+(O.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'),I=(I=(I=(I=(I=(I+='<object  width="'+d+'" height="'+u+'" type="application/x-mplayer2">\n')+'\t<param name="url" value="'+a[0]+'" />\n\t<param name="ShowControls" value="'+(O.showVideoControls?"1":"0")+'" />\n')+'\t<param name="uiMode" value="'+(O.showVideoControls?"full":"none")+'" />\n')+'\t<param name="autostart" value="'+(O.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="'+(O.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)&&(I+="\t</object>\n"),q(I)),e();break;case"audio":case"sound":if(i="imaudioplayer_"+Math.round(1e8*Math.random()),T=q('<audio controls controlsList="nodownload" id="'+i+'"/>').attr({"data-width":O.width,"data-height":O.height}),r=!1,"string"==typeof O.url&&(O.url=[{src:O.url}]),"object"==typeof O.url)for(o=0;o<O.url.length&&!r;o++)r|=0<O.url[o].src.search(/\.(mp3|aac|wav)/gi);if(r){for(s in N.utils.isOnline()&&T.attr("preload","metadata"),O.loop&&T.prop("loop",!0),O.url)T.append(q("<source />").attr("src",O.url[s].src));var w=!1;setInterval(function(){w&&T.triggerHandler("playing",[D.CurrentPosition()])},200),D.Play=function(){T.get(0).play(),w=!0,T.triggerHandler("status_change",["play"])},D.Pause=function(){T.get(0).pause(),w=!1,T.triggerHandler("status_change",["pause"])},D.Stop=function(){return D.Pause()},D.Volume=function(t){return"number"==typeof t?T.get(0).volume=t:T.get(0).volume},D.CurrentPosition=function(t){return"number"==typeof t?T.get(0).currentTime=t:T.get(0).currentTime},D.Duration=function(){return T.get(0).duration},D.Progress=function(){return T.get(0).buffered?1:0}}e();break;case"youtube":E=!1,T=q("<div />").css({"background-color":"black"}),n=null,i="imytplayer_"+Math.round(1e8*Math.random(),10),T.append(q("<div />").attr("id",i)),-1!=(l=(l=O.url.replace(/https?\:\/\/[w]*\.?youtube\.com\/watch\?v=/g,"")).replace(/https?\:\/\/youtu\.be\/?/g,"")).indexOf("&")&&(l=l.substring(0,l.indexOf("&")));0===q("#ytjsapi").length&&(y=q("<script />").attr({id:"ytjsapi",src:"//www.youtube.com/iframe_api"}),q("head").append(y),$.onYouTubeIframeAPIReady=function(){N.youtube.jsApiIsLoaded=!0,q("body").triggerHandler(N.youtube.apiLoadedEventName)}),x=O.width&&O.contentWidth?Math.min(O.width,O.contentWidth):Math.max(O.width,O.contentWidth),C=O.height&&O.contentHeight?Math.min(O.height,O.contentHeight):Math.max(O.height,O.contentHeight),T.width(x).height(C).attr({"data-width":x,"data-height":C});var y,x,C,k=!1,_=function(){x=O.width&&O.contentWidth?Math.min(O.width,O.contentWidth):Math.max(O.width,O.contentWidth),C=O.height&&O.contentHeight?Math.min(O.height,O.contentHeight):Math.max(O.height,O.contentHeight),T.children("div").attr({"data-width":x,"data-height":C}),T.find("#"+i).width(x).height(C),N.youtube.jsApiIsLoaded?n=new $.YT.Player(i,{height:C,width:x,videoId:l,events:{onReady:function(){k=!0},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."}T.empty().append(e)}},playerVars:{controls:O.showVideoControls?"1":"0",wmode:"opaque",modestbranding:"1",rel:0}}):q("body").one(N.youtube.apiLoadedEventName,_)};D.Play=function(){k?"playVideo"in n&&n.playVideo():(P&&clearTimeout(P),P=setTimeout(D.Play,1e3))},D.Pause=function(){k?"pauseVideo"in n&&n.pauseVideo():(P&&clearTimeout(P),P=setTimeout(D.Pause,1e3))},D.Stop=function(){k?n.stopVideo&&"stopVideo"in n?n.stopVideo():"pauseVideo"in n&&n.pauseVideo():(P&&clearTimeout(P),P=setTimeout(D.Stop,1e3))},T.on("animate_in_end",_),e();break;case"vimeo":E=!1,i="imvimeoplayer_"+Math.round(1e8*Math.random(),10),T=q("<div />").css("background-color","black").width(O.width).height(O.height),n=q("<iframe webkitallowfullscreen mozallowfullscreen allowfullscreen/>"),T.append(n).attr({"data-width":O.width,"data-height":O.height}),l=O.url.replace(/[w\.]*vimeo\.com\/?/g,"").replace(/https?\:\/\//g,"").replace(/http?\:\/\//g,""),n.attr({src:"//player.vimeo.com/video/"+l+"?player_id="+i,width:"100%",height:"100%",frameborder:0}),e();break;case"code":case"html":(T=q("<div />")).html(N.utils.htmlspecialchars_decode(O.html)).width(O.width).height(O.height).attr({"data-width":O.width,"data-height":O.height}),e();break;case"base64html":(T=q("<div />")).html(atob(O.html)).width(O.width).height(O.height).attr({"data-width":O.width,"data-height":O.height}),e();break;case"swf":var S="swfplayer_"+Math.round(1e3*Math.random());(T=q("<div />").html('<div id="'+S+'"></div>').attr({"data-width":O.width,"data-height":O.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:S,name:S,align:"middle",allowscriptaccess:"always"};N.utils.loadSwfObject(function(){$.swfobject.embedSWF(O.url,S,O.width,O.height,"10.0.0","res/expressInstall.swf",t,e,i)})}),e();break;case"dom":T=q(O.url).width(O.width).height(O.height).attr({"data-width":O.width,"data-height":O.height}),e();break;case"iframe":case"url":T=q("<iframe />",{allowFrameTransparency:O.allowFrameTransparency?"true":"false",src:O.url,border:"0",frameborder:"0",marginwidth:"0",marginheight:"0","data-width":O.width,"data-height":O.height}).width(O.width).height(O.height),e();break;default:var I,M=function(){var t=H(O.width,O.height,O.contentWidth,O.contentHeight,!0);if(T.css({position:"absolute",left:t.x,top:t.y}),O.touchDevice&&T.css("-webkit-backface-visibility","hidden"),T.width(t.width).height(t.height),O.onclick&&(q.isFunction(O.onclick)?T.click(O.onclick).css("cursor","pointer"):0===O.onclick.indexOf("http")&&(T.css("cursor","pointer"),$.location.href=O.onclick)),O.protect){var n,o,a=T;T=q("<canvas />");try{T.get(0).getContext&&T.get(0).getContext("2d")?(a.removeAttr("style"),q("body").append(a),n={width:a.width(),height:a.height()},a.detach(),T.attr({"data-width":O.width,"data-height":O.height}).width("100%").height("100%").on("dragstart",function(t){return t.preventDefault(),!1}),o=T.get(0).getContext("2d"),function t(){var e,i;T.parent().length?(i=n.height,(e=n.width)>O.width&&(i=O.width/e*i,e=O.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),q("#imContent").one("breakpointChangedOrFluid",t),T.one("image.change",t)):setTimeout(t,100)}()):T=a}catch(t){T=a}T.on("contextmenu",function(t){return!1})}e()};T=q("<img />").attr("src",O.url),O.width&&O.height?(T.attr({"data-width":O.width,"data-height":O.height}),M()):(I=q("<img />").css({position:"absolute",top:-1e4,left:-1e4}).one("load",function(){var t=q(this);O.width=t.width(),O.height=t.height(),T.attr({"data-width":O.width,"data-height":O.height}),t.remove(),M()}),q("body").prepend(I),I.attr("src",T.attr("src")))}O.selectable||T.attr("unselectable","on").css("user-select","none")}var O=q.extend({width:null,height:null,contentWidth:null,contentHeight:null,type:"image",url:null,thumbUrl:null,html:"",effect:"fade",onclick:null,description:"",thumb:null,moves:[],autoplayTime:5e3,loop:!1,touchDevice:!1,selectable:!1,allowFrameTransparency:!1,protect:!1,deferredCaching:!1,load:null,attached:null,error:null,baseUrl:""},t),t=q($),T=(q(document),null),F=null,D=this,A=null,e="id"+Math.round(1e8*Math.random()),o=/(iPad|iPhone)/i.test(navigator.userAgent),a=(t.imageCache=[],t.imageCache[e]=[]),E=!0,r=null,s=null,l=null,c=null,i=null,d=null,u=null,h=null,p=!1,g=!1,f=!1,P=null,H=function(t,e,i,n,o){return t=t||0,e=e||0,i=i||t,n=n||e,(o=!!o)&&"dom"!=O.type&&"html"!=O.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}},m=function(t,e){var i=O.width,n=O.height,o=e.parent().width(),e=e.parent().height();return{x:(-o*t.x+(o-i)/2)*t.z+o/2,y:(-e*t.y+(e-n)/2)*t.z+e/2,z:t.z}},v=function(t,e){var i,n;e>O.moves.length-1||void 0===O.moves[e]||(i=H(O.width*O.moves[e].z,O.height*O.moves[e].z,O.contentWidth,O.contentHeight,!0),n=m(O.moves[e],t),t.animate({left:(O.moves[e].z<=1?i:n).x,top:(O.moves[e].z<=1?i:n).y,width:Math.round(O.width*n.z),height:Math.round(O.height*n.z)},{duration:O.autoplayTime/(O.moves.length-1),complete:function(){v(t,e+1)}}),T.on("animate_out_start",function(){t.stop(!1,!1)}))},B=function(t){q.isFunction(i)&&1==t.touches.length&&i(t),p=!1,g=2==(u=t).touches.length,f=2<t.touches.length},L=function(t){var e,i;!c&&(r&&1==t.touches.length||s&&2==t.touches.length||l&&2<t.touches.length)&&t.preventDefault(),q.isFunction(c)&&1==t.touches.length&&(e=o?u:u.touches[0],i=o?t:t.touches[0],c(t,{startX:e.pageX,startY:e.pageY,offsetX:i.pageX-e.pageX,offsetY:i.pageY-e.pageY})),p=!0,h=t},z=function(t){var e,i;p?q.isFunction(r)&&h&&1==u.touches.length&&(e=o?u:u.touches[0],i=o?h:h.touches[0],r(t,{startX:e.pageX,startY:e.pageY,offsetX:i.pageX-e.pageX,offsetY:i.pageY-e.pageY})):T.click()},R=function(t){(f&&l||g&&s)&&t.preventDefault()},j=function(t){f&&l&&t.preventDefault(),g&&s&&!d&&t.preventDefault(),d&&q.isFunction(d)&&d(t)},W=function(t){f&&q.isFunction(l)?l(t):g&&q.isFunction(s)&&s(t)};this.Cache=function(e){switch(q.extend({load:null,error:null},e),O.type){case"image":/^[0-9]+$/.test(O.url)&&(O.url=N.utils.yaKnowWhatToDo(O.url)),a[a.length]=new Image;var i=q(a[a.length-1]);i.one("load",function(){var t;O.width||O.height||(t=i.clone(),q("body").append(t),t.css({width:"auto",height:"auto",position:"absolute",top:-1e4,left:-1e4}),O.width=t.width(),O.height=t.height(),t.remove()),O.thumb?(a[a.length]=new Image,(i=q(a[a.length-1])).one("load",function(){n(e.load)}).on("error",function(){O.thumb=null,n(e.load)}),i.attr("src",O.thumb)):n(e.load)}).on("error",function(){q.isFunction(e.error)&&e.error(D,404)}),i.attr("src",O.url);break;case"video":case"youtube":case"vimeo":O.thumb?(a[a.length]=new Image,(i=q(a[a.length-1])).one("load",function(){n(e.load)}).on("error",function(){O.thumb=null,n(e.load)}),i.attr("src",O.thumb)):n(e.load);break;default:n(e.load)}},this.TriggerAnimationInStart=function(){return T.triggerHandler("animate_in_start"),D},this.TriggerAnimationInEnd=function(){return T.triggerHandler("animate_in_end"),D},this.TriggerAnimationOutStart=function(){return T.triggerHandler("animate_out_start"),D},this.TriggerAnimationOutEnd=function(){return T.triggerHandler("animate_out_end"),D},this.AnimateIn=function(t,i,e){T.find("embed, object, iframe").css("display","none");var n,o=null,a=H(T.attr("data-width"),T.attr("data-height"),O.contentWidth,O.contentHeight,!0);T.css("position","absolute"),o=0<O.moves.length&&"image"===O.type?{y:(n=m(O.moves[0],T)).y,x:n.x,width:Math.round(a.width*n.z),height:Math.round(a.height*n.z)}:"dom"!=O.type&&"html"!=O.type?{y:a.y,x:a.x,width:a.width,height:a.height}:{y:0,x:0,width:a.width,height:a.height},T.trigger("animate_in_start"),"random"==O.effect&&(n=["fade","horizontalSlide","verticalSlide","zoom","elasticFromTop","elasticFromBottom","elasticFromRight","elasticFromLeft","bounceFromTop","bounceFromBottom","bounceFromLeft","bounceFromRight","rotateLinear"],a=Math.max(0,Math.floor(Math.random()*n.length)),A=N.effects[n[a]]||N.effects.fade),A?(n=N.utils.supportsCSS("transformOrigin"),a=N.utils.supportsCSS("transform"),n&&T.css(n,"50% 50%"),a&&T.css(a,"none"),A.animateIn(D,o,t,function(t){var e=t.DOMObject();e.find("embed, object, iframe").css("display","block"),e.trigger("animate_in_end"),1<O.moves.length&&"image"===O.type&&v(T,1),q.isFunction(i)&&i(t)},e)):T.trigger("animate_in_end")},this.AnimateOut=function(t,e,i){T.find("embed, object, iframe").css("display","none");var n,o;"random"==O.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)),A=N.effects[n[o]]),T.trigger("animate_out_start"),null!=A?A.animateOut(D,t,function(t){t.DOMObject().trigger("animate_out_end"),q.isFunction(e)&&e(t)},i):T.trigger("animate_out_end")},this.ChangeAnimation=function(t){N.effects[t]&&(A=N.effects[t])},this.DOMObject=function(){return T},this.GetThumb=function(){return F},this.Type=function(){return O.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 N.utils.htmlspecialchars_decode(O.description)},this.AutoplayTime=function(){return O.autoplayTime},this.OnPlaying=function(t){T.on("playing",t)},this.OnStatusChange=function(t){T.on("status_change",t)},this.Width=function(){return 0===O.moves.length?null!==O.width?O.width:T.attr("data-width"):O.moves[0].z*O.width},this.Height=function(){return 0===O.moves.length?null!==O.height?O.height:T.attr("data-height"):O.moves[0].z*O.height},this.ContentHeight=function(t){if(null==t)return O.contentHeight;O.contentHeight=t},this.ContentWidth=function(t){if(null==t)return O.contentWidth;O.contentWidth=t},this.Overlay=function(){return E},this.AfterPinch=function(t){return s=t,D},this.Pinch=function(t){return d=t,D},this.Gesture=function(t){return l=t,D},this.Move=function(t){return c=t,D},this.AfterMove=function(t){return r=t,D},this.BeforeMove=function(t){return i=t,D},this.FullScreen=function(){return!1},this.AppendTo=function(t,e){return t.append(T),q.isFunction(O.attached)?O.attached(this,e):q.isFunction(e)&&e(this),this},O.deferredCaching||this.Cache({load:O.load,error:O.error})}})}(_jq,x5engine,window),!function(t,n){"use strict";t.extend(n,{mediaPlayer:function(e){e=t.extend({url:"",type:"audio",width:400,height:400,showVideoControls:!0,target:"body",autoplay:!1,loop:!1,baseUrl:"",controlsHeight:0},e);var i=t(e.target);new n.mediaObject({url:e.url,type:e.type,showVideoControls:e.showVideoControls,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.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():"onscreen"==e.autoplay&&n.utils.onElementInViewPort(i[0],function(){t.Play()}),{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").show(0),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").length&&t.on("touchend",function(t){"1"==d(this).data("linkLevelOpened")?d(this).data("linkLevelOpened",0):(t.preventDefault(),d(this).data("linkLevelOpened",1),e.trigger(n))})}),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(w,y,x){"use strict";function e(){var e=w("#imHeader"),i=0;return w("#imHeader [id^=imHeader_imMenuObject_]:not(.template-object-wrapper):visible").each(function(t){w(this).offset().top+w(this).outerHeight()>i&&(e=w(this),i=e.offset().top+e.outerHeight())}),e}function i(i){i=w.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=w(x),u=!1,h=!1,p=(w("#imFooter"),function(){l=!0,t="function"==typeof i.trigger?i.trigger():w(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&&(g(),b())),w("#imContent").one("change",t)}()}),g=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)},f=function(){return i.noLeft?"":-d.scrollLeft()+a+r},m=function(){o.css({"margin-top":0,left:f(),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(w("#imContent").offset().top+w("#imContent").outerHeight(!0));e+o.outerHeight(!0)>=i-t&&(e=i-t-o.outerHeight(!0)),o.css("top",e)},b=function(){var t,e;c&&(l||p(),Math.floor(w("#imContent").offset().top+w("#imContent").outerHeight(!0))<=Math.floor(n+o.outerHeight(!0)+parseInt(w("#imContent").css("padding-bottom")))||(t=d.scrollTop(),e=w("#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&&g(),i.forceLeft&&o.css("left",0)))};this.enable=function(){c=!0,b()},this.disable=function(){var t=c;c=!1,t&&g()},0!==(o=w(i.target)).length&&(i.alwaysVisible||d.scroll(b),d.resize(function(){r=o.parent().offset().left,u&&o.css("left",f()),b()}),s=this,e=y.responsive.getCurrentBreakPoint(),-1!=i.enabledBreakpoints.indexOf(e.hash)&&s.enable(),w("#imContent").on("beforeBreakpointChanged.sidebarscroll",function(){s.disable()}).on("breakpointChanged.sidebarscroll",function(t,e){-1!=i.enabledBreakpoints.indexOf(e.hash)&&(l=!1,s.enable())}))}w.extend(y,{sidebarScroll:function(t){new i(t=w.extend({target:"#imSideBarObjects",trigger:"#imSideBarObjects",appear:!1,enabledBreakpoints:null,noLeft:!0},t))},blogSidebarScroll:function(t){new i(t=w.extend({target:"#imBlogSidebar",trigger:"#imBlogSidebar",appear:!1,enabledBreakpoints:null},t))},stickyBar:function(t){t=w.extend({target:"#imStickyBarContainer",trigger:e,triggerPartialHide:!1,appear:!0,enabledBreakpoints:null,forceFixed:!1,forceTop:!0,forceLeft:!0,useTranslateZ:!0,alwaysVisible:!1},t),0==w("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(H,B){"use strict";H.extend(B,{panAndZoom:function(t){function f(){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=H("<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=H("<div />").width(20).height(20).css(a).css({top:0,"border-radius":"5px 5px 0 0"}).text("+").click(function(t){return t.preventDefault(),P(M+.1),!1}).dblclick(e).on("selectstart mousedown",e),a=H("<div />").width(20).height(20).css(a).css({bottom:0,"border-radius":"0 0 5px 5px"}).text("-").click(function(t){return t.preventDefault(),P(M-.1),!1}).dblclick(e).on("selectstart mousedown",e),s=H("<div />").css({margin:"20px 9px",background:T,border:"1px solid #ccc"}).width(2).height(Math.min(i,v.targetHeight-20)),l=H("<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)),w.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(M+t))}var v=H.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),b=null,w=null,y=null,c=null,x=null,C=H("html").hasClass("touchevents"),k=null,_=null,S=0,I=0,M=0,O=0,T="#eee",F=null,D=(Math.random()-.5<0?-1:1)*(100+Math.round(20*Math.random()-10)),A=(Math.random()-.5<0?-1:1)*(100+Math.round(20*Math.random()-10)),E=!1,P=function(t,i,n,e){var o;t=Math.max(Math.min(t,1),O),null!==w&&t!=M&&(null==e&&(e=!0),w.stop(!1,!1),null==i&&(i=(S-v.targetWidth/2)*t/M+v.targetWidth/2),null==n&&(n=(I-v.targetHeight/2)*t/M+v.targetHeight/2),S=i=Math.min(Math.max(i,-k*t+v.targetWidth),0),I=n=Math.min(Math.max(n,-_*t+v.targetHeight),0),o={width:k*t,height:_*t,left:i,top:n},e?w.animate(o,{step:function(t,e){switch(e.prop){case"width":M=t/k;break;case"left":S=i=t;break;case"top":I=n=t}w.triggerHandler("image.change",[M,i,n])},complete:function(){M=t,w.triggerHandler("image.change",[M,i,n])}}):(M=t,window.requestAnimFrame(function(){w.css(o).width(k*t).height(_*t).triggerHandler("image.change",[M,i,n])})))};if(0===(x=H(v.target)).length)return!1;x.css({position:"relative",overflow:"hidden"}).width(v.targetWidth).height(v.targetHeight).prepend(B.settings.imLoadingAnimation),b=new B.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},g=null;(w=t.DOMObject()).css({display:"none",position:"absolute"}),"ver"==v.freedom?(k=v.targetWidth,_=v.targetWidth*w.attr("data-height")/w.attr("data-width")):k="hor"==v.freedom?(_=v.targetHeight,v.targetHeight*w.attr("data-width")/w.attr("data-height")):(_=w.attr("data-height"),w.attr("data-width")),x.empty().prepend(w),(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&&f()):P(1,(-k+v.targetWidth)/2,(-_+v.targetHeight)/2,!1),C?(e=M,a=o=n=i=null,t.BeforeMove(function(t){t.preventDefault(),e=M,w.stop(!1,!1),h={x:t.touches[0].pageX,y:t.touches[0].pageY},p={x:S,y:I},i=n=null,E=!0}).Move(function(t){E&&(t.preventDefault(),o=i,a=n,I=n=p.y-(h.y-t.touches[0].pageY),S=i=p.x-(h.x-t.touches[0].pageX),(n<-_*M+v.targetHeight||0<n)&&(I=n=p.y-(h.y-t.touches[0].pageY)/2),(i<-k*M+v.targetWidth||0<i)&&(S=p.x-(h.x-t.touches[0].pageX)/2),w.css("top",n),w.css("left",i),h={x:t.touches[0].pageX,y:t.touches[0].pageY},p={x:S,y:I})}).AfterMove(function(t){t.preventDefault(),null!==i&&null!==n&&(null!==o&&null!==a&&(i+=6*(i-o),n+=6*(n-a)),w.stop(!1,!1).animate({top:Math.min(Math.max(n,-_*M+v.targetHeight),0),left:Math.min(Math.max(i,-k*M+v.targetWidth),0)},{duration:1e3,easing:"iOsSwing",step:function(t,e){"top"==e.prop&&(I=t),"left"==e.prop&&(S=t)}})),E=!1}),v.enableZoom&&b.Pinch(function(t){E=!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 B.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=H("<div />").css({position:"absolute",top:-c-10,left:10,background:T,border:"1px solid "+T}).width(c).height(l).mousedown(function(t){E=!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){E=!1}).mouseleave(function(t){E=!1}).mousemove(function(t){E&&(t.preventDefault(),S=(s.x+(r.x-t.pageX))/c*k,I=(s.y+(r.y-t.pageY))/l*_,S=Math.min(Math.max(S,-k*M+v.targetWidth),0),I=Math.min(Math.max(I,-_*M+v.targetHeight),0),w.css({top:I,left:S}).triggerHandler("image.change",[M,S,I]))}).on("dragstart",function(t){return t.preventDefault(),!1}),H("<div />").css({position:"absolute",top:0,bottom:0,left:0,right:0,border:"0px solid "+T,background:"transparent"}).fadeTo(0,.75));w.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)}})),w.mousedown(function(t){1!=t.which||v.autoMove||(w.stop(!1,!1).css("cursor","move"),E=!0,h={x:t.pageX,y:t.pageY},p={x:w.position().left,y:w.position().top})}).mouseup(function(){v.autoMove||(E=!1,w.css("cursor","auto"))}).mouseleave(function(){E=!1,w.css("cursor","auto"),null!==g&&window.cancelAnimFrame(g)}).mousemove(function(t){var o,a,e,i;t.preventDefault(),v.autoMove?(E=!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"),w.css("cursor",i+"-resize"),null!==g&&window.cancelAnimFrame(g),function t(e){var i=o*M*e/400,e=a*M*e/400,n=(E&&(I=Math.min(Math.max(I-e,-_*M+v.targetHeight),0),S=Math.min(Math.max(S-i,-k*M+v.targetWidth),0),w.css({top:I,left:S}).triggerHandler("image.change",[M,S,I])),new Date);g=window.requestAnimFrame(function(){t(new Date-n)})}(0)):E&&(S=Math.min(Math.max(p.x-(h.x-t.pageX),-k*M+v.targetWidth),0),I=Math.min(Math.max(p.y-(h.y-t.pageY),-_*M+v.targetHeight),0),w.css({top:I,left:S}).triggerHandler("image.change",[M,S,I]))}),v.enableZoom&&w.dblclick(function(t){P(1!=M?1:O)}),w.on("mousewheel DOMMouseScroll",m).on("dragstart",function(){return!1}),x.append(F=H("<div />").css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(H("<div />").css({background:v.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0}).fadeTo(0,.75)).append(H("<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(){F.stop(!1,!1).animate({right:-30,bottom:-30})}).mouseleave(function(){F.stop(!1,!1).animate({right:0,bottom:0})})),b.TriggerAnimationInStart(),w.fadeIn(),v.animate&&function t(e){!E&&O+.05<M&&(S+=e/1e3*D*M,((I+=e/1e3*A*M)<-_*M+v.targetHeight||0<I)&&(A*=-1,I=Math.min(Math.max(I,-_*M+v.targetHeight),0)),(S<-k*M+v.targetWidth||0<S)&&(D*=-1,S=Math.min(Math.max(S,-k*M+v.targetWidth),0)),w.css({top:I,left:S}).triggerHandler("image.change",[M,S,I]));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.isMobileDevice()?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=w(0,0,0,0);function g(t){return parseFloat(t)||0}function f(i){for(var t=[],e=arguments.length-1;0<e--;)t[e]=arguments[e+1];return t.reduce(function(t,e){return t+g(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]=g(a)}return e}(r=h(t).getComputedStyle(t))).left+e.right,n=e.top+e.bottom,o=g(r.width),a=g(r.height),"border-box"===r.boxSizing&&(Math.round(o+i)!==s&&(o-=f(r,"left","right")+i),Math.round(a+n)!==l&&(a-=f(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)),w(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 b(t){var e;return a?v(t)?w(0,0,(e=(e=t).getBBox()).width,e.height):m(t):p}function w(t,e,i,n){return{x:t,y:e,width:i,height:n}}function y(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=w(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=b(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)},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(Et,Pt){"use strict";Et.extend(Pt,{imShowBox:function(u,r,a){function B(t,e){var i,n,o;u.showThumbs&&void 0!==u.media[t]&&null!==u.media[t]&&((i=Et("<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)?Pt.settings.currentPath+"res/video_thumb.svg":"image"==n?u.media[t].url:Pt.settings.currentPath+"res/impage.png":u.media[t].thumbUrl,Et("<img/>").on("load",function(){i.css("background-image",'url("'+o+'")'),Et.isFunction(e)&&e(t,i)}).attr("src",o),B(t+1,e))}function L(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),pt&&(x.animate({bottom:0},500),pt=!1)}function z(t){l=Et(document.createElement("div")),_.append(l),l.addClass("showbox-bg"),t&&l.prepend(Pt.settings.imLoadingAnimation),l.css({position:"fixed","background-color":u.background,top:0,left:0,bottom:0,right:0,display:"none","z-index":Pt.settings.zIndex.showBox}).fadeTo(C,u.opacity),u.backgroundBlur&&((o=null===o?Et("#imPageExtContainer"):o).css("transition","filter .2s"),o.css("filter","blur(3px)")),_.append(s),s.show().click(Ft),u.radialBg&&(/Firefox/i.test(navigator.userAgent)?l.css({"background-image":"-moz-radial-gradient(center 45deg, ellipse farthest-corner, "+Pt.utils.hex2rgb(u.background,80,80,80)+" 0%, "+Pt.utils.hex2rgb(u.background,40,40,40)+" 40%, "+Pt.utils.hex2rgb(u.background)+" 100%)"}):/Chrome/i.test(navigator.userAgent)&&l.css({background:"-webkit-gradient(radial, 50% 50%, 0, 50% 50%, 500, from("+Pt.utils.hex2rgb(u.background,80,80,80)+"), to("+Pt.utils.hex2rgb(u.background)+"))"}))}function R(t){var e=g[t].Width()/g[t].Height(),i=g[t].Width()+D,n=g[t].Height()+A,o=O?k.width():k.width()-2*u.windowPadding-(c.outerWidth()+d.outerWidth()),a=O?k.height():k.height()-2*u.windowPadding-Math.max(w.outerHeight(),m.outerHeight(),v.outerHeight())-y.outerHeight(),r=g[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-D)/e+A,i=o,s&&(s.width(i),n+=s.outerHeight())),a<n&&(i=(a-D)*e+D,r=n=a,s&&(s.width(i),r-=o=s.outerHeight(),e=s.width(),a=Math.round(g[t].Width()*r/g[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 j(t){u.showProgress&&1<u.media.length&&w.html(t+1+"/"+u.media.length)}function W(){return u.zoomEnabled&&ut&&F<6&&(T=!0,F++,_t()),!1}function q(){return u.zoomEnabled&&ut&&1<F&&(1==--F&&(T=!1),_t()),!1}function N(t){var e=Pt.utils.fullScreenElement();e&&e!==s.get(0)||(T&&kt(),g[S].DOMObject().is("iframe")&&-1!=navigator.userAgent.indexOf("X5")||H(S,null,null,!0))}function $(t){switch(t.keyCode){case 37:case 40:t.preventDefault(),Tt();break;case 39:case 38:t.preventDefault(),Ot();break;case 27:t.preventDefault(),(O?wt:Ft)()}}function U(){I=setTimeout(function(){Ot(),I=null,U()},u.autoplayTime)}function Y(){null!==I&&clearTimeout(I)}function V(){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()}),St())}function X(){u.sound&&(nt=new Audio(u.sound)).play()}var G,Z=Et("html").hasClass("touchevents")?{innerBorder:0,borderWidth:{left:0,right:0,top:0,bottom:0},windowPadding:0}:{},J=(u=Et.extend({},Pt.settings.imShowBox,u,Z),r=r||0,a=Et(a),r),K=(a.width()&&a.height()&&!a.children("img").length||((Z=a.children("img")).length?a=Z:(G=!1,a.children().each(function(){var t=Et(this);G||0===t.width()||0===t.height()||(a=t,G=!0)}))),Et("html").hasClass("touchevents")),Q=/(iPad|iPhone)/i.test(navigator.userAgent),g=[],o=null,h=null,s=null,p=null,f=null,tt=null,l=null,c=null,d=null,m=null,v=null,n=null,b=null,et=null,w=null,y=null,x=null,C="fade"!=u.effect&&"custom"!=u.effect?250:2,it="fade"!=u.effect?250:2,t=null,k=Et(window),_=Et("body"),Z=Et("head"),nt=null,S=null,ot=a.css("visibility"),at=a.width(),rt=a.height(),st=!1,I=null,M=null,lt=null,ct=null,dt=null,O=!1,T=!1,F=1,ut=!1,ht=!0,pt=!0,e=Pt.l10n.get,D=2*u.innerBorder+u.borderWidth.left+u.borderWidth.right,A=2*u.innerBorder+u.borderWidth.top+u.borderWidth.bottom,gt=0,ft=0,E=function(){for(var t={forceStop:!1},e=0;e<u.media.length;e++)t[e]={loadStarted:!1,loadEnded:!1};return t}(),P=function(t,i,n){u.media[t]&&mt(t,function(t,e){n?P(t+n,i,n):(P(t+1,i,1),P(t-1,i,-1)),i(t,e)})},mt=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 Pt.mediaObject(Et.extend({},u.media[e],{touchDevice:K,android:!1,allowFrameTransparency:u.allowFrameTransparency,load:function(t){g[e]=t,Et.isFunction(i)&&i(e,t);K&&t.AfterMove(function(t,e){t.preventDefault(),T||((Math.abs(e.offsetX)>Math.abs(e.offsetY)?e.offsetX:e.offsetY)<0?Ot:Tt)()}).Gesture(function(t){t.preventDefault(),t.scale<.9&&Ft()}).AfterPinch(function(t){t.preventDefault(),T?(t.scale<1?q:W)():t.scale<.9&&Ft()}),Et.isFunction(n)&&n(t),E[e].loadEnded=!0}})))},vt=function(){tt.css("box-shadow",u.shadow)},bt=function(){tt.css("box-shadow","")},wt=function(){if(u.fullScreenEnabled&&Pt.utils.isFullScreenNativelySupported())if(O)yt();else{if(gt=window.pageXOffset,ft=window.pageYOffset,O=true,Pt.utils.enterFullScreen(s.get(0)),v.html(u.buttonExitFS).attr("title",e("showbox_tip_fs_exit","Exit FullScreen")),Et(document).on("imFullScreenClose",yt),t!=null)clearTimeout(t);t=setTimeout(At,4e3),Et(document).on("mousemove",Ct),Et("#imShowBox").on("click",Ct)}return!1},yt=function(){O&&(O=!1,Pt.utils.exitFullScreen(),xt()),v.html(u.buttonEnterFS).attr("title",e("showbox_tip_fs_enter","Enter FullScreen")),Et(document).off("imFullScreenClose",yt),Et(document).off("mousemove",Ct),Et("#imShowBox").off("click",Ct),null!=t?(clearTimeout(t),t=null):Dt()},xt=function(){(0<gt||0<ft)&&setTimeout(function(){window.scrollTo(gt,ft),ft=gt=0},100)},Ct=function(){null!=t?(clearTimeout(t),t=null):Dt(),t=setTimeout(At,4e3)},kt=function(){return u.zoomEnabled&&ut&&T&&(T=!(F=1),_t()),!1},_t=function(){var t;st?((t=g[S].DOMObject()).css({transform:"scale3d("+F+", "+F+", 1)","transform-origin":"50% 50% 0","transition-property":"transform","transition-duration":T?"300ms":"0"}),(T?(t.addClass("grabbable"),w.fadeOut(),p.fadeOut(),h.css({backgroundColor:"transparent",borderColor:"transparent"}),bt):(t.removeClass("grabbable"),w.fadeIn(),p.fadeIn(),h.css({backgroundColor:u.boxColor,borderColor:u.borderColor}),vt))(),t.parent().css({overflow:T?"visible":"hidden",transform:"translate3d(0, 0, 0)"}).attr("data-x",0).attr("data-y",0),It(),St()):h.on("showboxReady",_t)},St=function(){var t,e,i;u.zoomEnabled&&(t={cursor:"pointer",position:"absolute",top:"0"},e=u.fullScreenEnabled?v.outerWidth():0,ut?(i=0,n.css(t).css({display:"block",right:i+=m.outerWidth()+e}),F<6?n.children().removeClass("disabled"):n.children().addClass("disabled"),b.css(t).css({display:T?"block":"none",right:i+=n.outerWidth()}),et.css(t).css({display:T?"block":"none",right:i+=b.outerWidth()})):(1==u.media.length?n.css("display","none"):n.css(t).css({display:"block",right:m.outerWidth()+e}).children().addClass("disabled"),b.css("display","none"),et.css("display","none")))},It=function(){var r=g[S].DOMObject(),s=r.parent(),l={},c={},d=!1,u=!1,h=!1,p=!1;f.off("mousedown.zoom touchstart.zoom").on("mousedown.zoom touchstart.zoom",function(t){T&&(p=r.outerHeight()*F>k.height(),((h=r.outerWidth()*F>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()*F-k.height())/2,a=(r.outerWidth()*F-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)})},H=function(i,n,o,a){E[i].loadEnded?Mt(i,n,o,a):E[i].loadStarted?setTimeout(function(){H(i,n,o,a)},100):P(r=i,function(t,e){t==i&&Mt(i,n,o,a)})},Mt=function(e,i,t,n){function o(e){null!==S?(p.stop(!1,!1).fadeOut(C/2),g[S].AnimateOut(f,function(t){t.DOMObject().detach(),Et.isFunction(e)&&e()},i)):Et.isFunction(e)&&e()}function a(){g[e].AppendTo(f),f.width(s.width-D).height(s.height-s.dHeight-A),g[e].ContentWidth(s.width-D),g[e].ContentHeight(s.height-s.dHeight-A);var t=null;ht&&(t=u.media[e].effect,g[e].ChangeAnimation("none"),ht=!1),g[e].AnimateIn(f,function(){""!==g[e].GetDescription()&&p.html(g[e].GetDescription()).fadeIn(C),null!==t&&g[e].ChangeAnimation(t),Q&&g[e].DOMObject().is("iframe")?f.css({overflow:"scroll","-webkit-overflow-scrolling":"touch"}):f.css({overflow:"hidden","-webkit-overflow-scrolling":""}),st=!0,h.trigger("showboxReady")},i)}function r(){var t;S=e,d||n?(t=function(){a()},u.shadow&&bt(),h.stop(!1,!1).animate({width:s.width-D,height:s.height-A,left:(k.width()-s.width)/2,top:c()},{duration:32<h.width()?it:C,complete:function(){h.css("overflow","visible").trigger("showboxReady"),u.shadow&&vt(),Et.isFunction(t)&&t()}})):a()}var s=R(e),l=null!==S?R(S):{width:0,height:0},c=(i=i||!1,t=t||!1,st=!1,ut="image"==u.media[e].type,j(e),L(e),function(){var t=(k.height()-s.height)/2,e=Math.max(w.outerHeight(),m.outerHeight(),v.outerHeight())+u.windowPadding,i=y.outerHeight()+u.windowPadding;if(!O){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)},Ot=function(){return T&&kt(),Y(),S+1<g.length?H(S+1):H(0),!1},Tt=function(){return T&&kt(),Y(),H(S-1<0?g.length-1:S-1,!0),!1},Ft=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",$),k.off("resize",N),l.stop(!1,!1).fadeOut(C,function(){l.remove()}),u.backgroundBlur&&(o=null===o?Et("#imPageExtContainer"):o).css("filter","none"),null!==S&&g[S].Stop(),I&&clearTimeout(I),"zoom"!=u.effect&&"hide"!=u.effect||S==J||(a.css("visibility",ot),u.effect="fade"),Et.isFunction(u.onClose)&&u.onClose(),nt&&nt.pause(),u.effect){case"fade":h.stop(!1,!1).fadeOut(C,function(){s.remove(),!t()&&u.fullScreenEnabled&&Pt.utils.isFullScreenNativelySupported()&&xt()});break;case"move":h.stop(!1,!1).animate({top:-h.outerHeight()},{duration:C,complete:function(){s.remove(),!t()&&u.fullScreenEnabled&&Pt.utils.isFullScreenNativelySupported()&&xt()}});break;case"zoom":case"hide":var e,i=a.offset(),n=(i.left-=k.scrollLeft(),i.top-=k.scrollTop(),g[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),f.animate({width:at,height:rt},{duration:C}),""!==u.shadow&&bt(),h.animate({top:i.top,left:i.left,width:at,height:rt,padding:0},{duration:C,complete:function(){"hide"==u.effect&&a.css("visibility",ot),s.remove(),!t()&&u.fullScreenEnabled&&Pt.utils.isFullScreenNativelySupported()&&xt()}});break;default:s.remove(),l.stop().remove(),!t()&&u.fullScreenEnabled&&Pt.utils.isFullScreenNativelySupported()&&xt()}E.forceStop=!0},Dt=function(){s.removeClass("imHideShowBoxControls")},At=function(){s.addClass("imHideShowBoxControls"),t=null},h=Et('<div id="imShowBox"/>'),s=Et('<div id="imShowBoxWrapper"/>'),f=Et("<div />"),p=Et("<div />"),m=Et('<div id="imShowBoxClose"/>').html(u.buttonClose),c=Et('<div id="imShowBoxNext"/>').html(u.buttonRight),d=Et('<div id="imShowBoxPrev"/>').html(u.buttonLeft),v=Et('<div id="imShowBoxFullScreenToggle"/>').html(u.buttonEnterFS),n=Et('<div id="imShowBoxZoomIn"/>').html(u.buttonZoomIn),b=Et('<div id="imShowBoxZoomOut"/>').html(u.buttonZoomOut),et=Et('<div id="imShowBoxZoomRestore"/>').html(u.buttonZoomRestore),w=Et('<div id="imShowBoxProgress"/>'),y=Et('<div id="imShowBoxThumbs"/>'),x=Et('<div id="imShowBoxThumbsDragger"/>');switch(c.css({display:"none"}).click(Ot).attr("title",e("showbox_tip_next","Next")).on("selectstart mousedown",function(){return!1}),d.css({display:"none"}).click(Tt).attr("title",e("showbox_tip_prev","Previous")).on("selectstart mousedown",function(){return!1}),f.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(Ft).attr("title",e("showbox_tip_close","Close")),v.css({display:"none"}).click(wt).attr("title",e(Pt.utils.isFullScreenNativelySupported()?"showbox_tip_fs_enter":"showbox_tip_fs_unavailable"),Pt.utils.isFullScreenNativelySupported()?"Enter FullScreen":"FullScreen unavailable").children().addClass(Pt.utils.isFullScreenNativelySupported()?"":"disabled"),n.css({display:"none"}).click(W).attr("title",e("showbox_tip_zoom_in","Zoom In")),b.css({display:"none"}).click(q).attr("title",e("showbox_tip_zoom_out","Zoom Out")),et.css({display:"none"}).click(kt).attr("title",e("showbox_tip_zoom_restore","Zoom Restore")),w.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(b).append(et).append(w).append(y).css({position:"fixed",top:0,left:0,bottom:0,right:0,display:"none","z-index":Pt.settings.zIndex.showBox+1}),K||s.append(d).append(c),h.append(f).append(p).append(Pt.settings.imLoadingAnimation).css({position:"fixed","background-position":"center center","background-repeat":"no-repeat","border-radius":u.borderRadius,"z-index":Pt.settings.zIndex.showBox+2,overflow:"visible"}),[m,d,c,v,n,b,et,w,y].map(function(t){t.css("z-index",Pt.settings.zIndex.showBox+3)}),st?V():h.on("showboxReady",V),tt="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)?f:h,K&&(ct=k.scrollTop(),lt=k.scrollLeft(),(M=Z.find('meta[name="viewport"]')).length||(M=Et('<meta name="viewport" content="initial-scale=1" />'),Z.append(M)),dt=M.attr("content"),M.attr("content",dt+", user-scalable=no, maximum-scale=1")),u.autoplay&&h.one("showboxReady",U),u.showThumbs&&(y.css({display:"block",height:u.thumbSize+20}),B(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 H(t),!1})})),u.effect){case"none":case"fade":case"move":z(),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 i=function(){P(r,function(t,e){t===r&&(h.find(".imLoadAnim").remove(),H(r,!1,!1),X())}),_.keydown($),k.resize(N)};"move"!=u.effect?h.fadeIn(C,i):(h.animate({top:(k.height()-32)/2},{duration:C}),i());break;case"zoom":case"hide":i=a.offset();i.left-=k.scrollLeft(),i.top-=k.scrollTop(),z(),h.css({width:a.width(),height:a.height(),left:i.left,top:i.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),P(r,function(t,e){var i,n,o;t===r&&(S=t,ut="image"==u.media[t].type,j(t),i=null,a.is("img")&&(i=a.clone().css({width:"100%",height:"100%"}),f.append(i)),"hide"==u.effect&&a.css("visibility","hidden"),h.find(".imLoadAnim").remove(),n=R(t),(o=e.DOMObject()).css({top:0,left:0,width:"100%",height:"100%",display:"none"}),f.append(o),f.stop(!0,!0).animate({width:n.width-D,height:n.height-n.dHeight-A},{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-D,height:n.height-A,"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(){L(t),st=!0,h.trigger("showboxReady"),o.width(n.width-D).height(n.height-n.dHeight-A),H(t),""!==u.shadow&&vt(),e.TriggerAnimationInEnd()}}),i&&i.fadeOut(function(){i.remove()}),o.fadeIn(C),p.empty().fadeOut(C),X(),_.keydown($),k.resize(N))});break;case"custom":u.customEffect&&(z(!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"}),P(r,function(t,e){t===r&&(l.find(".imLoadAnim").remove(),h.fadeIn(C,function(){h.find(".imLoadAnim").remove(),H(r,!1,!1);function t(){h.addClass(u.customEffect)}-1<navigator.userAgent.indexOf("MS IE")?setTimeout(t,2):t(),X()}))}),_.keydown($),k.resize(N))}return!1}})}(_jq,x5engine),!function(p,g){"use strict";p.extend(g,{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 g.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 g.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 g.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">&lt;</p><p class="imPNext">&gt;</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(b,w){"use strict";b.extend(w,{imSplashBox:function(n){var o,a,r,s,l,c,d,e,i,u,h,t='<img class="imCloseInn" src=\''+w.settings.currentPath+"res/imClose.png' alt='"+w.l10n.get("showbox_tip_close","Close")+"' />",p=null,g=b(),f=b(window),m=b("body"),v="im_splash"+(n=b.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+(!w.utils.isOnline()&&n.offlineTimeStamp?"_"+n.offlineTimeStamp:"");return(!n.cookie||"true"!=b.imCookie(v))&&(l=function(){var t,e;switch(s=h?(g=h.DOMObject(),o.add(g).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=f.width()-40,e=f.height()-40,t<r?(r=t,o.add(g).outerWidth(r),s=o.outerHeight()):o.add(g).outerWidth(r),g.length&&e<s&&(r*=e/s,s=e,o.add(g).outerHeight(s).outerWidth(r)),n.position){case"center":a={left:(f.width()-r)/2,top:(f.height()-s)/2};break;case"center-left":a={left:n.margin,top:(f.height()-s)/2};break;case"center-right":a={left:f.width()-r-n.margin,top:(f.height()-s)/2};break;case"bottom":a={left:(f.width()-r)/2,top:f.height()-s-n.margin};break;case"bottom-right":a={left:f.width()-r-n.margin,top:f.height()-s-n.margin};break;case"bottom-left":a={left:n.margin,top:f.height()-s-n.margin};break;case"top":a={left:(f.width()-r)/2,top:n.margin};break;case"top-right":a={left:f.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&&b.imCookie(v,"true",{expires:0,path:"/"}),b.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(b(".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>",b("body").append(t),o=b("#"+n.id).fadeOut(0).css({zIndex:w.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(),f.resize(function(){clearTimeout(t),t=setTimeout(d,100)}),o.find(".close").click(c),i.click(function(){b.isFunction(n.link)?n.link.call(o):""!==n.link&&(location.href=n.link)}),n.effect){case"fromtop":o.css({top:-b(window).height()-s}),o.fadeIn(0),o.animate(a,{duration:500,complete:e});break;case"frombottom":o.css({top:b(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+f.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),b.isFunction(e)&&e()}n.sound&&n.sound&&(p=new Audio(n.sound)).play()},500)},n.media?(u=n.media.load,h=new w.mediaObject(b.extend(n.media,{load:function(t){setTimeout(function(){i(function(){t.AppendTo(b(".mediaTarget")),t.DOMObject().css("position",""),l(),b.isFunction(u)&&u(t)})},100)}}))):i(),{close:function(){b.isFunction(c)&&c()}})}})}(_jq,x5engine),!function(N,$){"use strict";N.extend($,{textTabs:function(l){if(null!==(l=N.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=N(l.target),r=a.find(".tab").not(".tab-scroller"),u=a.find(".tab-scroller"),t=a.find(".text-tabs-outer"),h=a.find(".text-tabs-inner"),p=a.find("[id*="+a.attr("id")+"]"),g=a.find(".text-container"),s=(g.position(),g.width(),[]),f=0,e=N("html").hasClass("touchevents"),m=0,i=null,v=r.width()+1,b=r.height()+1,w=h.height(),y=h.width(),n=null,o=null,x=null,C=0,k=!0,_=(l.setTabScrollWidth&&0<u.filter(":visible").length?t.css({maxWidth:g.width()-u.eq(0).outerWidth(!0)-u.eq(1).outerWidth(!0)}):t.css({maxWidth:""}),c=t.height(),d=t.width(),N("#"+a[0].id+"_tab0").find(".text-tab-content.text-inner.grid-prop.current-tab"));if(!0!==l.enableFixedHeight||e)if(!0===l.setContainerHeight){0<_.length&&0==f&&_.css("height","auto");var S=0,I=0;for(g.height("auto"),p.height("auto").width(g.width()),I=0;I<p.length;I++)S=Math.max(p.eq(I).outerHeight(!0),S);for(I=0;I<p.length;I++)p.eq(I).height(S);0<_.length&&0==f&&(O=parseInt(N("#"+a[0].id+" .text-container").css("min-height"))-parseInt(N(_).css("padding-top"))-parseInt(N(_).css("padding-bottom"))+"px",_.css("height",O)),g.height(S)}else!0===l.setDynamicHeight?(O=p.eq(0)&&1==p.eq(0).find(".text-inner").length?p.eq(0).find(".text-inner").outerHeight(!0):"",g.css("height",O)):g.css("height","");else g.height(l.fixedHeight);if(0<_.length&&0==f)try{_.data("imRollover").start()}catch(t){}e||N("#"+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");var M,O,T,F,D,A=function(e,t,i,n){var o;e!=f&&(W(e),(o=s[f].DOMObject().find(".text-inner").data("imRollover"))&&(null!=n&&n?o.disable():o.stop()),g.css("overflow-x","hidden"),s[e].DOMObject().wrapInner('<div class="temp-wrapper" style="overflow-x: hidden; width: '+g.width()+'px;" />'),s[f].AnimateOut(g,function(t){t.DOMObject().hide(0),setTimeout(function(){q(e)},100)},t),s[e].AnimateIn(g,function(t){t.DOMObject().find(".temp-wrapper").contents().unwrap(),g.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&&H(e),f=e)},E=function(t){t=!!t,R(),A((f+1)%s.length,!1,t)},P=function(t){t=!!t,R(),A(f-1<0?s.length-1:f-1,!0,t)},H=function(t,e){e=null!=e;var i,n="bottom"==l.tabPosition||"top"==l.tabPosition,o=n?v:b,a=n?y:w,r=n?d:c,s=m+t*o<r/2;return!0===l.setDynamicHeight&&(i=p.eq(t)&&1==p.eq(t).find(".text-inner").length?p.eq(t).find(".text-inner").outerHeight(!0):"",g.css("height",i)),2==u.length&&(!(!e&&t*-o<=m&&m<=(t+1)*-o+r)&&(i=s?t*-o:t*-o+r-o,m=Math.min(0,Math.max(-a+r,i)),h.stop(!1,!1),void(n?h.animate({left:m}):h.animate({top:m}))))},B=function(){null!==i&&clearTimeout(i),i=setTimeout(function(){E(!0),B()},l.interval)},L=function(){null!==i&&clearTimeout(i)},z=function(t){t.TriggerAnimationInStart().TriggerAnimationInEnd().AfterMove(function(t,e){t.preventDefault(),((Math.abs(e.offsetX)>Math.abs(e.offsetY)?e.offsetX:e.offsetY)<0?E:P)(!0)})},R=function(){var t=g.get(0).scrollWidth==g.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:g.width(),contentHeight:p.eq(e).height(),touchDevice:t,load:z,selectable:!0})},j=(r.off("click").on("click",function(t){t.preventDefault();t=+N(this).attr("data-index");return j(t),!1}).css("left",0),function(t){0!=k&&null!==t&&!1!==t&&(R(),L(),A(t,t<f,!0))}),W=function(t){var e;k=!1,N("#"+a[0].id+" .text-container").append(N('<div class="grid-prop text-tab-content-place-holder">')),N("#"+a[0].id+" .grid-prop.text-tab-content-place-holder").css("min-height",g.height()),N("#"+a[0].id+" .grid-prop.text-tab-content-place-holder").css("height","100%"),N("#"+a[0].id+" .text-tab-content.current-tab").css("display","block"),N("#"+a[0].id+" .text-tab-content").css("position","").addClass("detach"),N("#"+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*N("#"+a[0].id+" .text-container").width(),N("#"+a[0].id+"_tab"+t).css("left",e))},q=function(t){N("#"+a[0].id+" .text-tab-content").removeClass("detach"),N("#"+a[0].id+" .text-tab-content").addClass("grid-prop"),N("#"+a[0].id+" .grid-prop").removeClass("current-tab"),N("#"+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=N("#"+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",""),N("#"+a[0].id+"_tab"+i+" div").hasClass("text-tab-content")&&(N("#"+a[0].id+"_tab"+i+" .text-tab-content").css({display:"","transform-origin":"",transform:"",left:0,top:0,height:"100%",width:"100%"}),e||N("#"+a[0].id+"_tab"+i+" .text-tab-content").css("position",""))):(n.css("height","100%"),e||n.css("position",""),N("#"+a[0].id+"_tab"+i+" div").hasClass("text-tab-content")&&(N("#"+a[0].id+"_tab"+i+" .text-tab-content").css("height","100%"),e||N("#"+a[0].id+"_tab"+i+" .text-tab-content").css("position","")))}N("#"+a[0].id+"_tab"+t).css("opacity","").addClass("current-tab");var o,t=N("#"+a[0].id+"_tab"+t).find(".text-tab-content.text-inner.grid-prop.current-tab");0<t.length&&(o=parseInt(N("#"+a[0].id+" .text-container").css("min-height"))-parseInt(N(t).css("padding-top"))-parseInt(N(t).css("padding-bottom"))+"px",N(t).css("position","relative"),"Desktop"==$.responsive.getCurrentBreakPoint().name&&N(t).css("height",o)),N("#"+a[0].id+" .text-tab-content-place-holder").remove(),k=!0};return l.slideshow.active&&"none"!=l.slideshow.nextPrevMode&&(M=null!=(M=N(l.target).css("padding-top"))?parseFloat(M):0,N("<img />").one("load",function(){var t=N(this);n=t.css({position:"absolute",top:-1e3}),g.after(n),n.css({top:(g.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(),L(),P()})}).attr("src",l.slideshow.buttonPrev.url),N("<img />").one("load",function(){var t=N(this);o=t.css({position:"absolute",top:-1e3}),g.after(o),t.css({top:(g.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(),L(),E()})}).attr("src",l.slideshow.buttonNext.url),"hover"==l.slideshow.nextPrevMode&&g.parent().mouseenter(function(){null!==x&&(clearTimeout(x),x=null),null!==o&&null!==n&&o.add(n).stop(!1,!1).fadeTo(250,.999)}).mouseleave(function(){null!==o&&null!==n&&(null!==x&&clearTimeout(x),x=setTimeout(function(){o.add(n).stop(!1,!1).fadeOut(250)},50))})),2==u.length&&(u.eq(1).off("click").on("click",function(){"top"==l.tabPosition||"bottom"==l.tabPosition?-y+d<m&&(C=Math.abs((m-d)%v),m=Math.max(-y+d,m-v+C),h.stop(!1,!1).animate({left:m+1})):m>-h.height()+t.height()&&(C=Math.abs((m-c)%b),m=Math.max(-w+c,m-b+C),h.stop(!1,!1).animate({top:m+1}))}),u.eq(0).off("click").on("click",function(){"top"==l.tabPosition||"bottom"==l.tabPosition?m<0&&(C=m%v!=0?v-Math.abs(m%v):0,m=Math.min(0,m+v-C),h.stop(!1,!1).animate({left:m-1})):m<0&&(C=m%b!=0?b-Math.abs(m%b):0,m=Math.min(0,m+b-C),h.stop(!1,!1).animate({top:m-1}))}),e&&(O=g.get(0).scrollWidth==g.get(0).clientWidth,D=F=T=0,new $.mediaObject({type:"dom",url:h,effect:"none",touchDevice:O,load:function(t){t.TriggerAnimationInStart()}}).BeforeMove(function(){T=m}).Move(function(t,e){t.preventDefault(),F="bottom"==l.tabPosition||"top"==l.tabPosition?(m=Math.max(-y+d,Math.min(0,T+e.offsetX)),h.stop(!1,!1).css("left",m),D=e.offsetX-F,e.offsetX):(m=Math.max(-w+c,Math.min(0,T+e.offsetY)),h.stop(!1,!1).css("top",m),D=e.offsetY-F,e.offsetY)}).AfterMove(function(t,e){t.preventDefault(),"bottom"==l.tabPosition||"top"==l.tabPosition?10<Math.abs(F)&&(t=m+10*D,t+=D<0?Math.abs((t-d)%v):Math.abs(t%v),h.stop(!1,!1).animate({left:Math.max(-y+d,Math.min(0,t))},{step:function(t,e){m=t},duration:1e3,easing:"iOsSwing"})):10<Math.abs(F)&&(t=m+10*D,t+=D<0?Math.abs((t-c)%b):Math.abs(t%b),h.stop(!1,!1).animate({top:Math.max(-w+c,Math.min(0,t))},{step:function(t,e){m=t},duration:1e3,easing:"iOsSwing"}))}))),l.autoplay&&B(),{disable:function(){A(0,!1,!1),r&&(H(0,!1),r.eq(0).click(),u.off("click"),r.off("click")),n&&n.remove(),o&&o.remove(),H=function(){},E=function(){},P=function(){},q(0)}}}}})}(_jq,x5engine),!function(S,I){"use strict";S.extend(I,{imTip:{constants:{locked:"imFixedTip",classId:"imTip",arrowClassId:"imTipArrow",borderClassId:"imTipArrowBorder",visibleClassId:"imTipVisible",topClassId:"imTipTop",bottomClassId:"imTipBottom",leftClassId:"imTipLeft",rightClassId:"imTipRight"},Show:function(i,p){function t(){clearTimeout(e),o&&(i.removeClass(v),a&&(a.find("object, embed").remove(),a.removeClass(g.constants.visibleClassId),setTimeout(function(){y&&y.remove(),s=!1,i.attr("title",b).attr("alt",w)},r)))}var e=null,n=I.settings.imTip,o=!1,a=null,r=200,s=!1,g=I.imTip,l=I.utils,c=I.imForm,d=g.constants.classId,u=l.createId(d),f=g.constants.arrowClassId,m=g.constants.borderClassId,h=c.constants.mark,v=g.constants.locked,b="",w="",y=null,x=S(window),C=(i=S(i),p=S.extend(!0,{classes:n.classes,arrow:n.arrow,shape:n.shape,position:n.position,effect:n.effect,showTail:n.showTail,hideOnFocus:!1,hideOnBlur:!1,persistant:n.persistant,unique:n.unique,text:"",width:0,target:i},p),i.attr("id")||i.attr("id",l.createId(d+"_target")),w=i.attr("alt"),b=i.attr("title"),i.attr("title","").attr("alt",""),"text"in p&&p.text&&(p.text=p.text.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"')),function(t,e,i){var n=t,o=e;switch(o.removeClass(g.constants.topClassId),o.removeClass(g.constants.bottomClassId),o.removeClass(g.constants.leftClassId),o.removeClass(g.constants.rightClassId),n){case"top":o.addClass(g.constants.topClassId);break;case"bottom":o.addClass(g.constants.bottomClassId);break;case"left":o.addClass(g.constants.leftClassId);break;case"right":o.addClass(g.constants.rightClassId)}var n=p.target.offset(),a=0,r=e.find("."+f),s=e.find("."+m),l=0;if(void 0===n?n={top:0,left:0,bottom:0,right:0}:(n.top-=p.target.scrollTop(),n.left-=p.target.scrollLeft()),i=i||0,p.showTail&&(a="classic"==p.shape?("top"==t||"bottom"==t?s.outerHeight():s.outerWidth())-+e.css("borderWidth").replace(/(\d+)px/,"$1"):r.outerWidth()),"top"==t){if(i<3&&n.top-e.outerHeight()-a-10-x.scrollTop()<0)return C("bottom",e,i+1);var c,d,u=n.left+(p.target.outerWidth()-e.outerWidth())/2,h=n.top-e.outerHeight()-a;(u=Math.max(u,10))+e.outerWidth()>x.width()&&(u=x.width()+x.scrollLeft()-e.outerWidth()-10),l=Math.floor((e.innerWidth()-a)/2),"bloated"==p.shape||"round"==p.shape?(d=(c=3-a)+2,r.css({borderLeftColor:"transparent",borderRightColor:"transparent",borderBottomColor:"transparent",position:"absolute",left:l,bottom:d}),s.css({borderLeftColor:"transparent",borderRightColor:"transparent",borderBottomColor:"transparent",position:"absolute",left:l,bottom:c})):"polygon"!=p.shape&&"classic"!=p.shape&&r.css({position:"absolute",left:l,bottom:-a})}else if("bottom"==t){if(i<3&&n.top+p.target.outerHeight()+a-x.scrollTop()>x.height())return C("left",e,i+1);u=n.left+(p.target.outerWidth()-e.outerWidth())/2,h=n.top+p.target.outerHeight()+a,(u=Math.max(u,10))+e.outerWidth()>x.width()&&(u=x.width()+x.scrollLeft()-e.outerWidth()-10),l=Math.floor((e.innerWidth()-a)/2),"bloated"==p.shape||"round"==p.shape?(d=(c=3-a)+2,r.css({borderLeftColor:"transparent",borderRightColor:"transparent",borderTopColor:"transparent",position:"absolute",left:l,top:d}),s.css({borderLeftColor:"transparent",borderRightColor:"transparent",borderTopColor:"transparent",position:"absolute",left:l,top:c})):"polygon"!=p.shape&&"classic"!=p.shape&&r.css({position:"absolute",left:l,top:-a,transform:"rotate(180deg)"})}else if("left"==t){if(i<3&&n.left-e.outerWidth()-x.scrollLeft()<0)return C("top",e,i+1);if(u=n.left-e.outerWidth()-a,(h=n.top+(p.target.outerHeight()-e.outerHeight())/2)-x.scrollTop()<0)return C("bottom",e,i+1);if(h+e.outerHeight()-x.scrollTop()>x.height())return C("top",e,i+1);"bloated"==p.shape||"round"==p.shape?(d=(c=5-a)+2,r.css({borderRightColor:"transparent",borderBottomColor:"transparent",borderTopColor:"transparent",position:"absolute",right:d,top:(e.innerHeight()-a)/2}),s.css({borderRightColor:"transparent",borderBottomColor:"transparent",borderTopColor:"transparent",position:"absolute",right:c,top:(e.innerHeight()-a)/2})):"classic"!=p.shape&&r.css({position:"absolute",right:3-a,top:(e.innerHeight()-a)/2,transform:"rotate(-90deg)"})}else if("right"==t){if(i<3&&n.left+p.target.outerWidth()+e.outerWidth()-x.scrollLeft()>x.width())return C("top",e,i+1);if(u=n.left+p.target.outerWidth()+a,(h=n.top+(p.target.outerHeight()-e.outerHeight())/2)-x.scrollTop()<0)return C("bottom",e,i+1);if(h+e.outerHeight()-x.scrollTop()>x.height())return C("top",e,i+1);"bloated"==p.shape||"round"==p.shape?(d=(c=5-a)+2,r.css({borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:"transparent",position:"absolute",left:d,top:(e.innerHeight()-a)/2}),s.css({borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:"transparent",position:"absolute",left:c,top:(e.innerHeight()-a)/2})):"classic"!=p.shape&&r.css({position:"absolute",left:3-a,top:(e.innerHeight()-a)/2,transform:"rotate(90deg)"})}return[h,u]}),k=function(t,e){i.hasClass(v)&&(e.css({top:t[0],left:t[1]}),e.addClass(g.constants.visibleClassId))},c=function(){clearTimeout(e),o=!1},n=function(){p.persistant||(clearTimeout(e),e=setTimeout(t,250),o=!0)},l=S("[tiptarget="+i.attr("id")+"]");if((0===l.length||0<l.length&&-1==l.html().indexOf(p.text))&&(p.unique&&0<S("."+d).length&&(S("."+d).remove(),r=0),i.addClass(v),o=!1,!s)){var _,l=S("[tiptarget="+i.attr("id")+"]");l.length?null!==l&&-1==l.html().indexOf(p.text)&&l.find("."+m).before("<br />"+p.text):(y=S('<div style="position: absolute; top: 0; left: 0;" />'),l=S('<div tiptarget="'+i.attr("id")+'" class="'+I.imTip.constants.classId+" "+p.classes+'" id="'+u+'">'+(p.showTail?'<div class="'+I.imTip.constants.borderClassId+'"></div><div class="'+I.imTip.constants.arrowClassId+'"></div>':"")+"</div>"),S("body").append(y.append(l)),l.append('<div class="imTipContent">'+p.text+"</div>"),a=S("#"+u).css({zIndex:I.settings.zIndex.tip}),s=!0,0<p.width?a.width(p.width):(a.css("white-space","nowrap"),a.find("."+f).outerWidth(),a.find("."+m).outerWidth()),p.arrow||(a.find("."+f).fadeOut(),a.find("."+m).fadeOut()),a.add(i).mouseleave(n).mouseenter(c),clearTimeout(e),o=!1,0<a.find("img").length?(l=a.find("img"),d=l.attr("src"),l.removeAttr("src").one("load",function(){var t=C(p.position,a);setTimeout(function(){k(t,a)},100)}).attr("src",d)):(_=C(p.position,a),setTimeout(function(){k(_,a)},100)))}return!0===p.hideOnFocus?i.hasClass("imDatePickerIcon")?(i.parent().prev("input[type=text]").focus(function(){o=!0,i.removeClass(h),t()}),i.click(function(){i.parent().prev("input[type=text]").focus()})):i.on("click focus",function(){o=!0,i.removeClass(h),t()}):"object"!=typeof p.hideOnFocus&&"string"!=typeof p.hideOnFocus||(S(p.hideOnFocus).click(function(){o=!0,S(p.hideOnFocus).removeClass(h),i.removeClass(h),t()}),i.click(function(){o=!0,i.removeClass(h),S(p.hideOnFocus).removeClass(h),t()})),!0===p.hideOnBlur&&i.on("blur",function(){o=!0,i.removeClass(h),t()}),u}}})}(_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,g){"use strict";t.extend(g.utils,{getCurrentDate:function(t,e){t=null!=t?t:"date";var i=g.l10n.get,n=g.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":var r=i("date_format"),s=i("date_days"),l=i("date_months"),c=i("date_full_months"),d=i("date_full_days"),u=o.getFullYear().toString(),h=n(parseInt(o.getDate(),10)),p=n(parseInt(o.getMonth(),10)+1),a=r.replace(/\[yyyy\]/g,u).replace(/\[yy\]/g,u.substring(2)).replace(/\[aaaa\]/g,u).replace(/\[aa\]/g,u.substring(2)).replace(/\[mm\]/g,p).replace(/\[dd\]/g,h).replace(/\[D\]/g,0<=parseInt(o.getDay(),10)-1?s[parseInt(o.getDay(),10)-1]:s[6]).replace(/\[DD\]/g,0<=parseInt(o.getDay(),10)-1?d[parseInt(o.getDay(),10)-1]:d[6]).replace(/\[M\]/g,l[parseInt(o.getMonth(),10)]).replace(/\[MM\]/g,c[parseInt(o.getMonth(),10)])}return a}})}(_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){$.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];n.target.id in resizeObserver.callbacks&&(0,resizeObserver.callbacks[n.target.id])(n.contentRect,n.target)}})),resizeObserver.callbacks[t.id]=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||"")):""}})}(_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(/&amp;/g,"&").replace(/\&gt;/g,">").replace(/\&lt;/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){for(var e="QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890",i="",n=0,o=t.length-1;0<=o;o--)n+=t.charCodeAt(o)*Math.pow(2,t.length-o);for(var n=n*834+"",a=0;0<n.length;)a+=2*(parseInt(n.charAt(0),10)+5),n=n.substr(1),e.length-1<a&&(a-=e.length-1),i+=e.charAt(a);return i},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}})}(_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,l){"use strict";t.extend(l.utils,{htmlspecialchars:function(t){return t?t.replace(/\"/g,"''").replace(/</g,"&lt;").replace(/>/g,"&gt;"):""},htmlspecialchars_decode:function(t){return t?t.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/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((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=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)}();