");e.css({height:d,width:u,"max-height":"100%","max-width":"100%"}),c.replaceWith(e)})}T.css({height:d,width:u,"max-height":"100%","max-width":"100%"}).attr({cursor:"pointer"}).append(c),h=c.get(0);function n(){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",n),h.addEventListener("play",function(){n(),p()}),h.addEventListener("pause",f)}),m=function(){4!=h.readyState&&(h.removeEventListener("load",A.Play,!1),h.addEventListener("load",A.Play,!1),h.removeEventListener("canplaythrough",A.Play,!1),h.addEventListener("canplaythrough",A.Play,!1))},g="pause",b=null,v=function(t){t!=g&&(g=t,T.triggerHandler("status_change",[g]),null!==b&&clearInterval(b),"play"==t)&&(b=setInterval(function(){T.triggerHandler("playing",[h.currentTime])},500))},A.Play=function(){return void 0!==h.play&&(h.removeEventListener("onreadystatechange",m,!1),h.addEventListener("onreadystatechange",m,!1),h.play(),m(),v("play"),!0)},A.Pause=function(){return!!h.pause&&(h.pause(),v("pause"),!0)},A.Stop=function(){return A.Pause()},A.Volume=function(t){return null!=t?h.volume=t:h.volume},A.CurrentPosition=function(t){return null!=t?h.currentTime=t:h.currentTime},A.Duration=function(){return h.duration},A.Progress=function(){return h.buffered?h.buffered.length:0},A.FullScreen=function(){}):T=void 0!==a["video/mov"]||void 0!==a["video/aiff"]||void 0!==a["video/m4a"]?(y='")):(I="",/MSIE/.test(navigator.userAgent)&&(I=(I=(I=(I+='\t\n"),q(I)),e();break;case"audio":case"sound":if(n="imaudioplayer_"+Math.round(1e8*Math.random()),T=q('').attr({"data-width":M.width,"data-height":M.height}),r=!1,"string"==typeof M.url&&(M.url=[{src:M.url}]),"object"==typeof M.url)for(o=0;o").attr("src",M.url[s].src));var w=!1;setInterval(function(){w&&T.triggerHandler("playing",[A.CurrentPosition()])},200),A.Play=function(){T.get(0).play(),w=!0,T.triggerHandler("status_change",["play"])},A.Pause=function(){T.get(0).pause(),w=!1,T.triggerHandler("status_change",["pause"])},A.Stop=function(){return A.Pause()},A.Volume=function(t){return"number"==typeof t?T.get(0).volume=t:T.get(0).volume},A.CurrentPosition=function(t){return"number"==typeof t?T.get(0).currentTime=t:T.get(0).currentTime},A.Duration=function(){return T.get(0).duration},A.Progress=function(){return T.get(0).buffered?1:0}}e();break;case"youtube":D=!1,T=q("").css({"background-color":"black"}),i=null,n="imytplayer_"+Math.round(1e8*Math.random(),10),T.append(q("").attr("id",n)),-1!=(l=(l=M.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("").attr({id:"ytjsapi",src:"//www.youtube.com/iframe_api"}),q("head").append(y),Y.onYouTubeIframeAPIReady=function(){N.youtube.jsApiIsLoaded=!0,q("body").triggerHandler(N.youtube.apiLoadedEventName)}),x=M.width&&M.contentWidth?Math.min(M.width,M.contentWidth):Math.max(M.width,M.contentWidth),C=M.height&&M.contentHeight?Math.min(M.height,M.contentHeight):Math.max(M.height,M.contentHeight),T.width(x).height(C).attr({"data-width":x,"data-height":C});var y,x,C,k=!1,_=function(){x=M.width&&M.contentWidth?Math.min(M.width,M.contentWidth):Math.max(M.width,M.contentWidth),C=M.height&&M.contentHeight?Math.min(M.height,M.contentHeight):Math.max(M.height,M.contentHeight),T.children("div").attr({"data-width":x,"data-height":C}),T.find("#"+n).width(x).height(C),N.youtube.jsApiIsLoaded?i=new Y.YT.Player(n,{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:M.showVideoControls?"1":"0",wmode:"opaque",modestbranding:"1",rel:0}}):q("body").one(N.youtube.apiLoadedEventName,_)};A.Play=function(){k?"playVideo"in i&&i.playVideo():(P&&clearTimeout(P),P=setTimeout(A.Play,1e3))},A.Pause=function(){k?"pauseVideo"in i&&i.pauseVideo():(P&&clearTimeout(P),P=setTimeout(A.Pause,1e3))},A.Stop=function(){k?i.stopVideo&&"stopVideo"in i?i.stopVideo():"pauseVideo"in i&&i.pauseVideo():(P&&clearTimeout(P),P=setTimeout(A.Stop,1e3))},T.on("animate_in_end",_),e();break;case"vimeo":D=!1,n="imvimeoplayer_"+Math.round(1e8*Math.random(),10),T=q("").css("background-color","black").width(M.width).height(M.height),i=q(""),T.append(i).attr({"data-width":M.width,"data-height":M.height}),l=M.url.replace(/[w\.]*vimeo\.com\/?/g,"").replace(/https?\:\/\//g,"").replace(/http?\:\/\//g,""),i.attr({src:"//player.vimeo.com/video/"+l+"?player_id="+n,width:"100%",height:"100%",frameborder:0}),e();break;case"code":case"html":(T=q("")).html(N.utils.htmlspecialchars_decode(M.html)).width(M.width).height(M.height).attr({"data-width":M.width,"data-height":M.height}),e();break;case"base64html":(T=q("")).html(atob(M.html)).width(M.width).height(M.height).attr({"data-width":M.width,"data-height":M.height}),e();break;case"swf":var O="swfplayer_"+Math.round(1e3*Math.random());(T=q("").html('').attr({"data-width":M.width,"data-height":M.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"},n={id:O,name:O,align:"middle",allowscriptaccess:"always"};N.utils.loadSwfObject(function(){Y.swfobject.embedSWF(M.url,O,M.width,M.height,"10.0.0","res/expressInstall.swf",t,e,n)})}),e();break;case"dom":T=q(M.url).width(M.width).height(M.height).attr({"data-width":M.width,"data-height":M.height}),e();break;case"iframe":case"url":T=q("",{allowFrameTransparency:M.allowFrameTransparency?"true":"false",src:M.url,border:"0",frameborder:"0",marginwidth:"0",marginheight:"0","data-width":M.width,"data-height":M.height}).width(M.width).height(M.height),e();break;default:var I,S=function(){var t=B(M.width,M.height,M.contentWidth,M.contentHeight,!0);if(T.css({position:"absolute",left:t.x,top:t.y}),M.touchDevice&&T.css("-webkit-backface-visibility","hidden"),T.width(t.width).height(t.height),M.onclick&&(q.isFunction(M.onclick)?T.click(M.onclick).css("cursor","pointer"):0===M.onclick.indexOf("http")&&(T.css("cursor","pointer"),Y.location.href=M.onclick)),M.protect){var i,o,a=T;T=q("");try{T.get(0).getContext&&T.get(0).getContext("2d")?(a.removeAttr("style"),q("body").append(a),i={width:a.width(),height:a.height()},a.detach(),T.attr({"data-width":M.width,"data-height":M.height}).width("100%").height("100%").on("dragstart",function(t){return t.preventDefault(),!1}),o=T.get(0).getContext("2d"),function t(){var e,n;T.parent().length?(n=i.height,(e=i.width)>M.width&&(n=M.width/e*n,e=M.width,n*=1.2,e*=1.2),o.canvas.width=e,o.canvas.height=n,o.clearRect(0,0,e,n),o.drawImage(a[0],0,0,e,n),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("").attr("src",M.url).attr("alt",M.alt||""),M.title&&T.attr("title",M.title),M.width&&M.height?(T.attr({"data-width":M.width,"data-height":M.height}),S()):(I=q("").css({position:"absolute",top:-1e4,left:-1e4}).one("load",function(){var t=q(this);M.width=t.width(),M.height=t.height(),T.attr({"data-width":M.width,"data-height":M.height}),t.remove(),S()}),q("body").prepend(I),I.attr("src",T.attr("src")))}M.selectable||T.attr("unselectable","on").css("user-select","none")}var M=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,ignoreVerticalScroll:!1,selectable:!1,allowFrameTransparency:!1,protect:!1,deferredCaching:!1,load:null,attached:null,error:null,baseUrl:""},t),t=q(Y),T=(q(document),null),F=null,A=this,E=null,e="id"+Math.round(1e8*Math.random()),a=/(iPad|iPhone)/i.test(navigator.userAgent),o=(t.imageCache=[],t.imageCache[e]=[]),D=!0,r=null,s=null,l=null,c=null,n=null,u=null,d=null,h=null,p=!1,f=!1,m=!1,P=null,B=function(t,e,n,i,o){return t=t||0,e=e||0,n=n||t,i=i||e,(o=!!o)&&"dom"!=M.type&&"html"!=M.type&&(nM.moves.length-1||void 0===M.moves[e]||(n=B(M.width*M.moves[e].z,M.height*M.moves[e].z,M.contentWidth,M.contentHeight,!0),i=g(M.moves[e],t),t.animate({left:(M.moves[e].z<=1?n:i).x,top:(M.moves[e].z<=1?n:i).y,width:Math.round(M.width*i.z),height:Math.round(M.height*i.z)},{duration:M.autoplayTime/(M.moves.length-1),complete:function(){b(t,e+1)}}),T.on("animate_out_start",function(){t.stop(!1,!1)}))},H=function(t){q.isFunction(n)&&1==t.touches.length&&n(t),p=!1,f=2==(d=t).touches.length,m=2Math.abs(o)))&&t.preventDefault(),q.isFunction(c)&&1==t.touches.length&&(e=a?d:d.touches[0],i=(n=a?t:t.touches[0]).pageX-e.pageX,o=n.pageY-e.pageY,!M.ignoreVerticalScroll||Math.abs(i)>Math.abs(o))&&c(t,{startX:e.pageX,startY:e.pageY,offsetX:i,offsetY:o}),p=!0,h=t},j=function(t){var e,n,i;p?q.isFunction(r)&&h&&1==d.touches.length&&(e=a?d:d.touches[0],n=(i=a?h:h.touches[0]).pageX-e.pageX,i=i.pageY-e.pageY,!M.ignoreVerticalScroll||Math.abs(n)>Math.abs(i))&&r(t,{startX:e.pageX,startY:e.pageY,offsetX:n,offsetY:i}):T.click()},L=function(t){(m&&l||f&&s)&&t.preventDefault()},R=function(t){m&&l&&t.preventDefault(),f&&s&&!u&&t.preventDefault(),u&&q.isFunction(u)&&u(t)},W=function(t){m&&q.isFunction(l)?l(t):f&&q.isFunction(s)&&s(t)};this.Cache=function(e){switch(q.extend({load:null,error:null},e),M.type){case"image":/^[0-9]+$/.test(M.url)&&(M.url=N.utils.yaKnowWhatToDo(M.url)),o[o.length]=new Image;var n=q(o[o.length-1]);n.one("load",function(){var t;M.width||M.height||(t=n.clone(),q("body").append(t),t.css({width:"auto",height:"auto",position:"absolute",top:-1e4,left:-1e4}),M.width=t.width(),M.height=t.height(),t.remove()),M.thumb?(o[o.length]=new Image,(n=q(o[o.length-1])).one("load",function(){i(e.load)}).on("error",function(){M.thumb=null,i(e.load)}),n.attr("src",M.thumb)):i(e.load)}).on("error",function(){q.isFunction(e.error)&&e.error(A,404)}),n.attr("src",M.url);break;case"video":case"youtube":case"vimeo":M.thumb?(o[o.length]=new Image,(n=q(o[o.length-1])).one("load",function(){i(e.load)}).on("error",function(){M.thumb=null,i(e.load)}),n.attr("src",M.thumb)):i(e.load);break;default:i(e.load)}},this.TriggerAnimationInStart=function(){return T.triggerHandler("animate_in_start"),A},this.TriggerAnimationInEnd=function(){return T.triggerHandler("animate_in_end"),A},this.TriggerAnimationOutStart=function(){return T.triggerHandler("animate_out_start"),A},this.TriggerAnimationOutEnd=function(){return T.triggerHandler("animate_out_end"),A},this.AnimateIn=function(t,n,e){T.find("embed, object, iframe").css("display","none");var i,o=null,a=B(T.attr("data-width"),T.attr("data-height"),M.contentWidth,M.contentHeight,!0);T.css("position","absolute"),o=0").appendTo("body"),u("").appendTo("#"+a+"-menu-opened"),u("#"+a+"_container > *:not(.hamburger-button)").clone(!0).removeClass("hidden").appendTo("#"+a+"_container-menu-opened"),t=u("#"+a+"-menu-opened").find(".multiple-column"),u(t).css("width",""),u(t).css("left",""),0!==u(t).find("ul").length?u(t).children("ul").css({height:"",overflow:"",display:""}):0!==u("#"+a+"-menu-opened").find(".imLevel").find("ul").length&&u("#"+a+"-menu-opened").find(".imLevel").children("ul").css({height:"",overflow:"",display:""}),u("#"+a+"-menu-opened ul li").each(function(){var t=u(this),e=0;t.on("mouseover",function(){clearTimeout(e)}).on(i,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)})}),u("#"+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"),u("#"+a+"-menu-opened").removeClass("animated"),e.addClass("menu-"+a+"-closing"),u("#imPageExtContainer").off("click.close-menu-event"),u("#imContent").off("breakpointChanged.close-menu-event"),setTimeout(function(){e.removeClass("menu-"+a+"-towards-closing"),u("#"+a).find(".label-wrapper-over").remove(),u("#"+a+"-menu-opened").remove(),e.removeClass("menu-"+a+"-closing").removeClass("im-menu-opened").removeClass(n)},r+50),u("#"+a+" .hamburger-button").css("visibility","")}),u("#imPageExtContainer").on("click.close-menu-event",function(t){e.hasClass("menu-"+a+"-opened")&&(t.stopPropagation(),u("#"+a+"-menu-opened .hamburger-menu-close-button").click())}),u("#imContent").on("breakpointChanged.close-menu-event",function(t){e.hasClass("menu-"+a+"-opened")&&u("#"+a+"-menu-opened .hamburger-menu-close-button").click()}),u("#"+a+"-menu-opened .imMnMnCurrent").each(function(){u(this).parents("ul").show(0),u(this).closest(".imLevel").find("> .label-wrapper > .label-inner-wrapper > a").data("linkLevelOpened",1)}),u("#"+a+"-menu-opened #"+a+"_container-menu-opened > ul > .imLevel").each(function(){var e=u(this),t=e.find("> .label-wrapper > .label-inner-wrapper > a");0l.width()+l.scrollLeft()&&o(i),i.hasClass("open-left")&&t.left-en&&(e=w(this),n=e.offset().top+e.outerHeight())}),e}function n(n){n=w.extend({target:null,trigger:null,triggerPartialHide:!0,appear:!1,enabledBreakpoints:null,forceFixed:!0,forceTop:!1,forceLeft:!1,noLeft:!1,useTranslateZ:!1,alwaysVisible:!1},n);var i,o,t,a,r,s,e,l=!1,c=!1,u=w(x),d=!1,h=!1,p=(w("#imFooter"),function(){l=!0,t="function"==typeof n.trigger?n.trigger():w(n.trigger),i=t.offset().top+(n.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),n.forceFixed&&(f(),v())),w("#imContent").one("change",t)}()}),f=function(){l&&(n.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":""}),n.forceFixed&&o.css("position","")),d=!1)},m=function(){return n.noLeft?"":-u.scrollLeft()+a+r},g=function(){o.css({"margin-top":0,left:m(),bottom:"auto","z-index":y.settings.zIndex.stickyBar+(n.forceTop?1:0)}),n.forceFixed&&o.css("position","fixed"),n.useTranslateZ&&o.css("-webkit-transform","translateZ(0)")},b=function(t,e){var n=Math.floor(w("#imContent").offset().top+w("#imContent").outerHeight(!0));e+o.outerHeight(!0)>=n-t&&(e=n-t-o.outerHeight(!0)),o.css("top",e)},v=function(){var t,e;c&&(l||p(),Math.floor(w("#imContent").offset().top+w("#imContent").outerHeight(!0))<=Math.floor(i+o.outerHeight(!0)+parseInt(w("#imContent").css("padding-bottom")))||(t=u.scrollTop(),e=w("#imStickyBarContainer:visible"),e=n.forceTop||0===e.length?0:e.height(),i-e=i.start&&(o.push(n.target.id),c(n.target).trigger("rowEntersInViewport")),-1=i.half&&(a.push(n.target.id),c(n.target).trigger("rowFillsHalfViewport")),-1=i.full&&(r.push(n.target.id),c(n.target).trigger("rowFillsViewport")),-1n.appearAt?e.hasClass(t.visibleClass)||(e.addClass(t.visibleClass),e.fadeIn(1e3),e.one("click.scroll-to-top",function(){var t={duration:n.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,n=o(document.createElement("div")),i=(n.attr("id",e.id),o(document.createElement("img")));i.attr("src",a.settings.currentPath+t.imageFile).attr("alt","scroll to top").attr("id",e.id+"_img"),o("body").append(n.append(i))}}})}(_jq,x5engine),!function(B,H){"use strict";B.extend(H,{panAndZoom:function(t){function m(){function t(t){return i=!1,e(t)}function e(t){return t.preventDefault(),!1}var n=Math.min(x.height(),170)-40-20,i=!1,o=(c=B("").css({position:"absolute",right:10,top:10}).mousemove(function(t){i&&(l.css("top",o(t.pageY-s.offset().top)),t=1-(t.pageY-s.offset().top)/(n-10),P(t*(1-M)+M,null,null,!1))}).mouseleave(t).mouseup(t).on("selectstart mousedown",e),function(t){return Math.min(Math.max(t-10,0),n-20)}),a={position:"absolute",color:"#aaa",border:"1px solid #ccc",background:T,cursor:"pointer","text-align":"center"},r=B("").width(20).height(20).css(a).css({top:0,"border-radius":"5px 5px 0 0"}).text("+").click(function(t){return t.preventDefault(),P(S+.1),!1}).dblclick(e).on("selectstart mousedown",e),a=B("").width(20).height(20).css(a).css({bottom:0,"border-radius":"0 0 5px 5px"}).text("-").click(function(t){return t.preventDefault(),P(S-.1),!1}).dblclick(e).on("selectstart mousedown",e),s=B("").css({margin:"20px 9px",background:T,border:"1px solid #ccc"}).width(2).height(Math.min(n,b.targetHeight-20)),l=B("").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){i=!0}).mouseup(function(t){i=!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){i||(e=(e-M)/(1-M),l.css("top",o((1-e)*n)))})}function g(t){b.enableZoom&&(t.preventDefault(),t=0<(t.originalEvent.detail||t.originalEvent.wheelDelta)?-.2:.2,t*=/(Chrome|IE)/gi.test(navigator.userAgent)?-1:1,P(S+t))}var b=B.extend({target:"",url:"",targetWidth:null,targetHeight:null,autoMove:!0,animate:!1,enableZoom:!1,showZoomControl:!1,showNavigator:!1,protect:!1,freedom:"both",handImage:"res/move.png",lensImage:"res/imsearch.png",helperBg:"black",navigatorSize:30},t),v=null,w=null,y=null,c=null,x=null,C=B("html").hasClass("touchevents"),k=null,_=null,O=0,I=0,S=0,M=0,T="#eee",F=null,A=(Math.random()-.5<0?-1:1)*(100+Math.round(20*Math.random()-10)),E=(Math.random()-.5<0?-1:1)*(100+Math.round(20*Math.random()-10)),D=!1,P=function(t,n,i,e){var o;t=Math.max(Math.min(t,1),M),null!==w&&t!=S&&(null==e&&(e=!0),w.stop(!1,!1),null==n&&(n=(O-b.targetWidth/2)*t/S+b.targetWidth/2),null==i&&(i=(I-b.targetHeight/2)*t/S+b.targetHeight/2),O=n=Math.min(Math.max(n,-k*t+b.targetWidth),0),I=i=Math.min(Math.max(i,-_*t+b.targetHeight),0),o={width:k*t,height:_*t,left:n,top:i},e?w.animate(o,{step:function(t,e){switch(e.prop){case"width":S=t/k;break;case"left":O=n=t;break;case"top":I=i=t}w.triggerHandler("image.change",[S,n,i])},complete:function(){S=t,w.triggerHandler("image.change",[S,n,i])}}):(S=t,window.requestAnimFrame(function(){w.css(o).width(k*t).height(_*t).triggerHandler("image.change",[S,n,i])})))};if(0===(x=B(b.target)).length)return!1;x.css({position:"relative",overflow:"hidden"}).width(b.targetWidth).height(b.targetHeight).prepend(H.settings.imLoadingAnimation),v=new H.mediaObject({url:b.url,effect:"fade",contentWidth:b.targetWidth,contentHeight:b.targetHeight,touchDevice:C,protect:b.protect,load:function(t){var e,n,i,o,a,r,s,l,c,u,d,h={x:0,y:0},p={x:0,y:0},f=null;(w=t.DOMObject()).css({display:"none",position:"absolute"}),"ver"==b.freedom?(k=b.targetWidth,_=b.targetWidth*w.attr("data-height")/w.attr("data-width")):k="hor"==b.freedom?(_=b.targetHeight,b.targetHeight*w.attr("data-width")/w.attr("data-height")):(_=w.attr("data-height"),w.attr("data-width")),x.empty().prepend(w),(M=b.targetWidth/k)*_>b.targetHeight&&(M=b.targetHeight/_),b.enableZoom?(P(Math.min(b.targetWidth,b.targetHeight)/Math.max(_,k),(-k+b.targetWidth)/2,(-_+b.targetHeight)/2,!1),b.showZoomControl&&m()):P(1,(-k+b.targetWidth)/2,(-_+b.targetHeight)/2,!1),C?(e=S,a=o=i=n=null,t.BeforeMove(function(t){t.preventDefault(),e=S,w.stop(!1,!1),h={x:t.touches[0].pageX,y:t.touches[0].pageY},p={x:O,y:I},n=i=null,D=!0}).Move(function(t){D&&(t.preventDefault(),o=n,a=i,I=i=p.y-(h.y-t.touches[0].pageY),O=n=p.x-(h.x-t.touches[0].pageX),(i<-_*S+b.targetHeight||0b.targetHeight&&(c=b.targetHeight/_*k,l=b.targetHeight),c=c*b.navigatorSize/100,l=l*b.navigatorSize/100,(d=new H.mediaObject({url:b.url,effect:"none",width:c,height:l,contentWidth:c,contentHeight:l,touchDevice:!1,deferredCaching:!0,protect:b.protect})).Cache({load:function(){var t=null,o=(y=B("").css({position:"absolute",top:-c-10,left:10,background:T,border:"1px solid "+T}).width(c).height(l).mousedown(function(t){D=!0,r={x:t.pageX,y:t.pageY},s={x:-1*o.css("border-left-width").replace(/px/g,""),y:-1*o.css("border-top-width").replace(/px/g,"")}}).mouseup(function(t){D=!1}).mouseleave(function(t){D=!1}).mousemove(function(t){D&&(t.preventDefault(),O=(s.x+(r.x-t.pageX))/c*k,I=(s.y+(r.y-t.pageY))/l*_,O=Math.min(Math.max(O,-k*S+b.targetWidth),0),I=Math.min(Math.max(I,-_*S+b.targetHeight),0),w.css({top:I,left:O}).triggerHandler("image.change",[S,O,I]))}).on("dragstart",function(t){return t.preventDefault(),!1}),B("").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,n,i){null!==u&&window.cancelAnimFrame(u),u=window.requestAnimFrame(function(){o.css({"border-top-width":-i/e/_*l,"border-bottom-width":l- -i/e/_*l-b.targetHeight*l/(_*e),"border-left-width":-n/e/k*c,"border-right-width":c- -n/e/k*c-b.targetWidth*c/(k*e)})})}),x.append(y.append(d.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",g)}})),w.mousedown(function(t){1!=t.which||b.autoMove||(w.stop(!1,!1).css("cursor","move"),D=!0,h={x:t.pageX,y:t.pageY},p={x:w.position().left,y:w.position().top})}).mouseup(function(){b.autoMove||(D=!1,w.css("cursor","auto"))}).mouseleave(function(){D=!1,w.css("cursor","auto"),null!==f&&window.cancelAnimFrame(f)}).mousemove(function(t){var o,a,e,n;t.preventDefault(),b.autoMove?(D=!0,o=t.pageX-x.offset().left-b.targetWidth/2,a=t.pageY-x.offset().top-b.targetHeight/2,e=Math.abs(o/a),n="","ver"==b.freedom?n+="ns":"hor"==b.freedom?n+="ew":e<1.5&&.5").css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(B("").css({background:b.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0}).fadeTo(0,.75)).append(B("").css({background:"transparent url('"+(b.enableZoom?b.lensImage:b.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})})),v.TriggerAnimationInStart(),w.fadeIn(),b.animate&&function t(e){!D&&M+.05o.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,n=s(this),i=n.data("parallaxLevels")||1;1#$%&*@()]/.test(t),t.length>=o.passwordpolicy.minimumCharacters&&e&&n&&i):0'),t=null,e=o.responsive.getCurrentBreakPoint(),i(window).on("resize",function(){t&&clearTimeout(t),t=setTimeout(function(){var t;o.utils.isInFullScreenMode()||i(window).width()!=n&&(n=i(window).width(),t=o.responsive.getCurrentBreakPoint())&&e&&(e.hash!=t.hash?(i("#imContent").trigger("beforeBreakpointChanged",t).trigger("breakpointChanged",t).trigger("breakpointChangedOrFluid",t),e=t):t.fluid&&i("#imContent").trigger("breakpointChangedOrFluid",t))},50)}))},getCurrentBreakPoint:function(){for(var t=i("#"+o.responsive.interfaceName).width(),e=o.settings.breakPoints,n=0;ni.height-s.outerHeight()?s.animate({top:n-i.height},{duration:"medium",complete:function(){r=setTimeout(function(){c({reset:!1})},1e3*i.time)},easing:o}):s.animate({top:0},{duration:"medium",complete:function(){r=setTimeout(function(){c({reset:!1})},1e3*i.time)},easing:o});break;case"BOTTOM":n=s.css("top").replace("px",""),(n=isNaN(parseInt(n,10))?0:parseInt(n,10))<=0?s.animate({top:n+i.height},{duration:"medium",complete:function(){r=setTimeout(function(){c({reset:!1})},1e3*i.time)},easing:o}):s.animate({top:i.height-s.height()},{duration:"medium",complete:function(){r=setTimeout(function(){c({reset:!1})},1e3*i.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*i.time)},easing:o}):s.animate({left:0},{duration:"medium",complete:function(){r=setTimeout(function(){c({reset:!1})},1e3*i.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*i.time)},easing:o}):s.animate({left:-s.width()+a.width()},{duration:"medium",complete:function(){setTimeout(function(){c({reset:!1})},1e3*i.time)},easing:o})}break;case"CONTINUE":switch(i.direction){case"UP":s.animate({top:-s.outerHeight()},{duration:1e3*i.time,complete:function(){s.css({top:i.outerHeight}),c()},easing:o});break;case"BOTTOM":s.animate({top:i.height},{duration:1e3*i.time,complete:function(){s.css({top:-s.height()}),c()},easing:o});break;case"LEFT":s.animate({left:-s.width()},{duration:1e3*i.time,complete:function(){s.css({left:a.width()}),c()},easing:o});break;case"RIGHT":s.animate({left:a.width()},{duration:1e3*i.time,complete:function(){s.css({left:-s.width()}),c()},easing:o})}break;case"SINGLE":switch(i.direction){case"UP":s.animate({top:0},{duration:1e3*i.time,easing:o});break;case"BOTTOM":s.animate({top:-s.height()+i.height},{duration:1e3*i.time,easing:o});break;case"RIGHT":l=d(s.html()),s.animate({left:-l+a.width()},{duration:1e3*i.time,easing:o});break;case"LEFT":s.animate({left:0},{duration:1e3*i.time,easing:o})}break;default:switch(i.direction){case"UP":s.animate({top:0},{duration:1e3*i.time,complete:function(){i.direction="BOTTOM",c()},easing:o});break;case"BOTTOM":s.animate({top:-s.height()+i.height},{duration:1e3*i.time,complete:function(){i.direction="UP",c()},easing:o});break;case"RIGHT":l=d(s.html()),s.animate({left:-l+a.outerWidth()},{duration:1e3*i.time,complete:function(){i.direction="LEFT",c()},easing:o});break;case"LEFT":s.animate({left:0},{duration:1e3*i.time,complete:function(){i.direction="RIGHT",c()},easing:o})}}}function e(){"PAGINATE"!=i.movement?c():r=setTimeout(function(){c()},1e3*i.time)}function u(){s.stop()}var d=function(t){var t=h("
"),a=O("#"+d).css({zIndex:I.settings.zIndex.tip}),s=!0,0l(t).width()&&1'),s.find('input[name="star-full"]').val("full"),o=t*a,n.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,n,i="jaD9sD3AW423lka25_uncz2j3n9N-2na9HWB23'N@22d23",o="";try{for(n=e=0;e'),n=!!$.imCookie("browser-check-proceed"),i=$("body"),o=(i.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())||n?(e.remove(),!0):(n=(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,'').replace(/\[2\]/g,'').replace(/\[\/[0-9]+\]/g,""),t=$('