(function(e,t){"use strict";e.extend(t,{imAccess:{showLogout:function(){var n=e(".imLogout");if(n.length===0)return;n.empty(),t.utils.isOnline()?e.imCookie("im_access_cookie_uid")!==null&&e.imCookie("im_access_cookie_uid")!==""&&n.append(''+t.l10n.get("private_area_logout")+""):n.append(''+t.l10n.get("private_area_logout")+"")}}})})(_jq,x5engine),function(e,t){"use strict";e.extend(t,{imAdv:{showAdv:function(t){var n=new Date,r=new Date(n.getTime()+n.getTimezoneOffset()*6e4),i=e.extend(!0,{start:new Date(r.getTime()-1),end:new Date(r.getTime()+1),delay:0,callback:null},t);return r>t.start&&r
0){s.slideUp(0);var x=e("#imHeaderBg"),T=0,N=function(){};u=function(){w(),e.isFunction(n.onClose)&&n.onClose(),!c||c.Stop(),s.slideUp({duration:d,step:N,complete:function(){s.remove(),T=0,x.css("margin-top").replace(/px/g,"")*1<2&&x.css("margin-top",0)}})},o=function(r){s.css({position:"fixed",top:0,left:0,right:0,"border-top-width":0,zIndex:t.settings.zIndex.popup});if(n.effect&&n.effect=="fromtop"){var i="";i={left:0,top:0},s.css({top:-e(window).height()+s.height()}),s.fadeIn(0),s.animate(i,{duration:d,complete:r})}y(),b(),s.slideDown({duration:d,step:N,complete:function(){T=s.outerHeight(!0),e.isFunction(r)&&r()}})},!!f&&f.length?(f.one("load",o),f.mouseenter(function(){f.attr("src",n.image).mouseleave(function(){f.attr("src",n.image).off("mouseleave")})}).attr("src",n.image)):n.media?(m=n.media.load,v=new t.mediaObject(e.extend(n.media,{load:function(t){t.AppendTo(e(".mediaTarget")),t.DOMObject().css("position","").height(t.Height()),o(function(){e.isFunction(m)&&m(t)})}}))):o(),s.find(".close").click(u)}}else if(n.position=="bottom"){var C=e("#bottom-alertbox-container");C.length||(C=e('
').css({position:"fixed",bottom:0,left:0,right:0,"z-index":t.settings.zIndex.popup}),a.append(C)),p=0,C.find("[data-priority]").each(function(){var t=e(this).attr("data-priority")*1;!isNaN(t)&&t';Lt.html(Dt).find("div").css({display:"inline-block","background-image":"url('"+At.url+"')","background-repeat":"no-repeat",cursor:"pointer","background-position":"0 0"}).width(At.size).height(At.size).click(function(){F(e(this).attr("data-num")*1)}),O.add(function(e){Lt.find("div").css("background-position","0 0").eq(e).css("background-position",-At.size+"px 0")})}}if(r.random){var Ht=r.media,Bt,jt,Ft;for(Ft=Ht.length;Ft;Bt=Math.round(Math.random()*Ft),jt=Ht[--Ft],Ht[Ft]=Ht[Bt],Ht[Bt]=jt);r.medias=Ht}return X(0),{currentItemIndex:function(){return o},onShowMedia:function(e){return O.add(e),this},showNext:function(){return I(),this},showPrev:function(){return q(),this},stopAutoplay:function(){return W(),this},showMedia:function(e){return F(e,!0,!1,!0),this}}}})}(_jq,x5engine),function(e,t){"use strict";e.extend(t,{imGrid:{cell:function(t){var n,r,i,s,o,u,a=!1;t=e(t);var f=function(){var e=t.css("height");t.css("height","auto");var n=t.height();return t.find("[class*=imCpt]").not("iframe").length>0&&(n+=30),t.css("height",e),n},l=function(){var e=t.offset();n=e.top,r=n+t.outerHeight()},c=function(){var e=t.offset();i=e.left,s=i+t.outerWidth()};this.height=function(e){if(e===null||e===undefined)return t.height();t.height(e-(t.outerHeight()-t.height()))},this.pushY=function(e){t.css("top").match(/^([0-9]+)[a-z]*$/);var n=RegExp.$1*1;n+=e,t.css("top",n+"px")},this.html=function(e){if(e===null||e===undefined)return t.html();t.html(e)},this.isAbsolute=function(e){if(e===null||e===undefined)return a;a=e},this.sy=function(){return l(),n},this.ey=function(){return l(),r},this.sx=function(){return c(),i},this.ex=function(){return c(),s},u=t.offset().top,o=f(),t.height()0&&(f=u.offset().top,a=f+u.innerHeight()),e("[class*=imGrid]").each(function(){var i=e(this).attr("class"),s,o,u;if(/imGrid\[[0-9]+,\s*[0-9]+[,]*\s*[0-9]*\]/.test(i)){i.match(/imGrid\[([0-9]+),\s*([0-9]+)[,]?\s*([0-9]*)\]/),s=RegExp.$1*1,o=RegExp.$2*1;if(n[o]===null||n[o]===undefined)n[o]=[];if(r[s]===null||r[s]===undefined)r[s]=[];u=new t.imGrid.cell(this),u.isAbsolute(RegExp.$3*1==1),n[o][n[o].length]=u,r[s][r[s].length]=u}});for(i=0;i p.sy()&&(h.sx() p.sx())&&p.pushY(h.ey()-p.sy())}n[i][s].ey()>l&&(l=n[i][s].ey())}for(s=0;s 0&&(l>a?u.remove():u.height(a-f-l-(e("#imBtMn").length>0?e("#imBtMn").outerHeight():0)))}}}})}(_jq,x5engine),function(e,t){"use strict";e.extend(t,{image:{activateLazyLoading:function(){e(".imlazyloading[data-src]").each(function(){var n=e(this),r=n.prev("div"),i=n.attr("id"),s=e("").attr("title",n.attr("data-title")).attr("alt",n.attr("data-alt")).addClass("imlazyloading");n.after(s),n.remove(),s.attr("id",i),s.fadeOut(0).one("load",function(){r.remove(),s.show(),s.trigger("imLazyLoadingEnd")}),t.utils.onElementInViewPort(r[0],function(){s.attr("src",n.attr("data-src")),s.trigger("imLazyLoadingStart")})})}}})}(_jq,x5engine),function(e,t,n){"use strict";e.extend(t,{imageSequence:function(){function s(){t=[];var r=e(n).height(),i=e("#imPageExtContainer").height();e(".imImageSequence").each(function(){var n=e(this),s=n.data("sequenceType")||"time";if(s!="scroll")return;var o=n.data("sequencePosition")||0,u=n.data("sequenceCount")||1,a=n.offset().top-r;a<0&&(a=0);var f=n.offset().top+n.height();f>i-r&&(f=i-r);var l=Math.abs(f-a)/u,c=a+l*o,h=a+l*(o+1);o==u-1&&(h=i),t.push({image:n,begin:c,end:h})}),u()}function o(){r=[],e(".imImageSequence").each(function(){var t=e(this),n=t.data("sequenceType")||"time";if(n!="time")return;var i=t.data("sequencePosition")||0,s=t.data("sequenceCount")||1;r.push({image:t,position:i,count:s,current:0})})}function u(){n.requestAnimationFrame(function(){var r=e(n).scrollTop();e.each(t,function(e,t){t.begin<=r&&t.end>=r?t.image.css("opacity",""):t.image.css("opacity","0")})})}function a(){n.requestAnimationFrame(function(){e.each(r,function(e,t){t.position==t.current?t.image.css("opacity",""):t.image.css("opacity","0")})})}function f(){e.each(r,function(e,t){t.current++,t.current>=t.count&&(t.current=0)})}var t=[],r=[],i=null;return{start:function(l){s(),t.length>0&&(e(n).resize(s),e(n).scroll(u)),o(),r.length>0&&(a(),i=setInterval(function(){f(),a()},l||6e3))}}}()})}(_jq,x5engine,window),function(e,t){"use strict";var n=window.requestAnimFrame,r=window.cancelAnimFrame,i=t.utils,s=t.settings;e.extend(t,{imagefx:{opacityIn:function(t,n){e(t).mouseenter(function(){e(this).stop(!1,!1).fadeTo(null,1)}).mouseleave(function(){e(this).stop(!1,!1).fadeTo(null,n)}).fadeTo(0,n)},opacityOut:function(t,n){e(t).mouseleave(function(){e(this).stop(!1,!1).fadeTo(null,1)}).mouseenter(function(){e(this).stop(!1,!1).fadeTo(null,n)})},border:function(t,n,r){var s=e(t),o=i.supportsCSS("boxShadow"),u=function(e,t){s.css(o,"0 0 0 "+e+"px "+n)};!s.parents(".template-object-wrapper").length||(s=s.parents(".template-object-wrapper").first()),s.on("mouseenter",function(){s.stop(!1,!1).animate({"fake-property":r},{step:u})}).on("mouseleave",function(e){s.stop(!1,!1).animate({"fake-property":0},{step:u})})},glow:function(t,n,r){r=r||"#FF9900",n=n||5;var s=e(t),o=i.supportsCSS("boxShadow"),u=function(e,t){s.css(o,"0 0 "+e+"px 0 "+r)};!s.parents(".template-object-wrapper").length||(s=s.parents(".template-object-wrapper").first()),s.on("mouseenter",function(){s.stop(!1,!1).animate({"fake-property":n},{step:u})}).on("mouseleave",function(e){s.stop(!1,!1).animate({"fake-property":0},{step:u})})},jump:function(n,r,i){i=!!i,n=e(n);var o={top:0,left:0},u=!1,a,f=n.parents("[id*='imCellStyle_']"),l=function(){!u&&n.is(":visible")&&(o=n.position(),n.css({position:"absolute",top:o.top,left:o.left}),u=!0),a=n.height(),t.responsive.getCurrentBreakPoint().fluid?f.css("min-height",a+"px"):f.css("min-height","")},c=function(){n.stop(!1,!1).animate({top:o.top,left:o.left},{duration:100,complete:function(){d.css({overflow:"hidden","z-index":p})}})},h=function(){u=!1,n.css({position:"",top:"",left:""})},p,d;n.one("load",l),n.parents("[id*=imCell_]").on("imObjectAnimationEnd",l),e("#imContent").on("breakpointChangedOrFluid",function(){h(),l()}),l(),d=n.parents("[id*='imCell']"),p=d.css("z-index"),n.mouseover(function(){d.css({overflow:"visible","z-index":s.zIndex.menuCell+1}),n.stop(!1,!1).animate({top:o.top-a*r/100},{duration:100,complete:function(){i||c()}})}).mouseleave(function(){i&&c()})},rotate:function(t,n,r){r||(r=.25);var o=i.supportsCSS("transform"),u=i.supportsCSS("transition"),a,f,l=null;t=e(t).css(u,"all "+r+"s ease-in-out 0s").css(o,"none"),o&&u&&(f=t.parents("[id*='imCell']"),a=f.css("z-index"),t.parent().mouseover(function(){f.css({overflow:"visible","z-index":s.zIndex.menuCell+1}),l&&clearTimeout(l),l=setTimeout(function(){t.css(o,"rotate("+n+"deg)")},10)}).mouseleave(function(){t.css(o,"rotate(0deg)"),l&&clearTimeout(l),l=setTimeout(function(){f.css({overflow:"hidden","z-index":a})},r*1e3)}))},overlay:function(n,r,i){var s=e(n),o,u,a,f,l,c,h,p,d,v,m=function(){u=s.position(),a=s.height(),f=s.width(),l=i.substring(i.indexOf("-")+1),c=i.substring(0,i.indexOf("-")),o.css({width:"",height:""}),h=o.width(),p=o.height(),h>f&&(p=Math.ceil(f/h*p),h=f),p>a&&(h=Math.ceil(a/p*h),p=a),d=u.left+(l=="center"?(f-h)/2:l=="right"?f-h:0),v=u.top+(c=="center"?(a-p)/2:c=="bottom"?a-p:0),o.css({position:"absolute",top:v,left:d,"z-index":3}).width(h).height(p)};e("").one("load",function(){o=e("").css("display","none").one("load",function(){s.after(o),m(),o.on("mouseenter",function(){s.triggerHandler("mouseenter")}).on("mouseleave",function(){s.triggerHandler("mouseleave")}),s.parent().on("mouseenter",function(){o.stop(!1,!0).fadeIn(250)}).on("mouseleave",function(){o.stop(!1,!0).fadeOut(250)})}).attr("src",t.settings.currentPath+r)}).attr("src",s.attr("src")),s.parents("[id*=imCell_]").on("imObjectAnimationEnd",m),e("#imContent").on("breakpointChangedOrFluid",m)},innerZoom:function(n,r,s,o){if(o===null||o===undefined)o=!0;s=e.extend({family:"tahoma",size:"8pt",color:"black",style:"normal",weight:"normal"},s),n=e(n);var u=i.supportsCSS("opacity"),a=null,f=null,l=null,c,h=n.parents("[id*='imCell_']"),p=n.parents(".template-object-wrapper"),d,v,m=e("body"),g=function(){c=n.width(),d=n.height(),l=n.attr("style")},y=function(){o||(h.css("overflow","visible"),h.parent().css("overflow-y","visible"))},b=function(){o||(h.css("overflow",""),h.parent().css("overflow-y",""))},w=function(){n.stop(!1,!1).animate({width:c*(o?2:1.5),height:d*(o?2:1.5),top:-d/(o?2:3),left:-c/(o?2:3),opacity:0},{complete:function(){b(),n.css("display","none")}})},E=function(){n.css("display","block"),n.stop(!1,!1).animate({width:c,height:d,top:0,left:0,opacity:1},{complete:function(){b()}})},S=function(){n.parent().is("a")||n.wrap(""),a=n.parent().css({display:"inline-block",position:"relative"}).width(n.width()).height(n.height()-4),f=a.attr("style"),v=e("").css({position:"absolute",top:0,left:0,"font-family":s.family,color:s.color,"font-style":s.style,"font-weight":s.weight,"font-size":s.size,overflow:o?"hidden":"visible","text-align":"center",display:"block",width:"100%"}).html(i.htmlspecialchars_decode(r)),a.prepend(v),n.css({position:"absolute",top:0,left:0,"max-width":"none"}),a.is("a")&&a.find("a").length&&a.find("a").click(function(e){e.stopImmediatePropagation()});if("touchstart"in document||"ontouchstart"in document)(function m(){a.one("click",function(){return w(),!1}).one("mouseleave.innerZoom",function(){y(),E(),m()})})();else{var u=n.css(t.utils.cssPropertyPrefix("clip-path"));if(!!u&&u.indexOf("inset")===0&&!!u.match(/([\-0-9\.]+)%/g)&&RegExp.$1*1>0){var l=(100-RegExp.$1*1)/100*Math.max(p.height(),n.height()),c=h.offset(),d=!1;h.on("mousemove.pathInnerZoom",function(e){!d&&e.clientY-c.top l&&(y(),E(),d=!1)}).on("mouseleave.pathInnerZoom",function(){y(),E(),d=!1})}else a.on("mouseenter.normalInnerZoom",function(){y(),w()}).on("mouseleave.normalInnerZoom",function(){y(),E()})}},x=function(){a.off("click.normalInnerZoom mouseleave.normalInnerZoom"),h.off("mousemove.pathInnerZoom mouseleave.pathInnerZoom"),a.is("a")||n.unwrap(),!v||(v.remove(),v=null),n.add(a).removeAttr("style"),!l||n.attr("style",l),!!f&&!!a&&(a.attr("style",f),a.is("a")&&a.css({width:"100%"}))};g(),e("#imContent").on("breakpointChangedOrFluid",function(){x(),g(),S()}),n.parents("[id*=imCell_]").on("imObjectAnimationEnd",function(){x(),g(),S()}),o&&n.parent().css("overflow","hidden"),!c||!d?n.one("load",function(){g(),S()}):S()},pulse:function(n,r,i){if(i===null||i===undefined)i=!0;n=e(n);var s,o,u=!1,a,f,l=n.is("img")?n:n.find("img").first(),c=n.parents("[id*='imCellStyle_']"),h=n.parents("[id*='imCell_'], [id*='imHeader_imCell_'], [id*='imFooter_imCell_'], .template-object-wrapper"),p=e("body"),d=function(){i||h.css("overflow","visible")},v=function(){i||h.css("overflow","hidden")},m=function(){l.css("height",""),o=c.innerWidth()-c.css("padding-left").replace(/px/g,"")*1-c.css("padding-right").replace(/px/g,"")*1,a=c.innerHeight()-c.css("padding-top").replace(/px/g,"")*1-c.css("padding-bottom").replace(/px/g,"")*1,f=n.position(),l.innerWidth(o),a<=0&&(a=l.height()),t.responsive.getCurrentBreakPoint().fluid?c.css("min-height",a+"px"):c.css("min-height","")},g=function(){n.off("mouseover").on("mouseover",function(){if(u)return;u=!0,n.css({position:"absolute",top:f.top,left:f.left}),d(),n.stop(!1,!1).animate({width:Math.round(o*(1+r)),height:Math.round(a*(1+r)),top:f.top-a*(r/2),left:f.left-o*(r/2)},{duration:100,complete:function(){n.stop(!1,!1).animate({width:o,height:a,top:f.top,left:f.left},{duration:100,complete:function(){u=!1,v(),n.css({position:"",top:"",left:"",height:"",width:""})}})}})})};l.width()>0&&l.height()>0&&!!l.attr("src")?(m(),g()):l.one("load",function(){m(),g()}),n.parents("[id*=imCell_]").on("imObjectAnimationEnd",m),e("#imContent").on("breakpointChangedOrFluid",m)}}})}(_jq,x5engine),function(e,t,n){"use strict";e.extend(t,{mediaObject:function(r){var i=e.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:""},r),s=e(n),o=e(document),u=null,a=null,f=this,l=0,c=0,h=null,p="id"+Math.round(Math.random()*1e8),d=/(iPad|iPhone)/i.test(navigator.userAgent);s.imageCache=[];var v=s.imageCache[p]=[],m=!0,g=null,y=null,b=null,w=null,E=null,S=null,x=null,T=null,N=!1,C=!1,k=!1,L=null,A=function(r){!u||(u.remove(),u=null);var s="",o=null,l=0,c={},p=!1,d="",v="",g="",y=function(){a=e(""),i.thumb?a.attr("src",i.thumb):typeof i.url=="string"&&i.url!==null&&(i.url.indexOf(".gif")!=-1||i.url.indexOf(".png")!=-1||i.url.indexOf(".jpg")!=-1||i.url.indexOf(".jpeg")!=-1)&&a.attr("src",i.url),a.css("cursor","pointer"),i.effect!="random"&&(t.effects[i.effect]?h=t.effects[i.effect]:!t.effects[i.effect]&&!!t.effects.fade?h=t.effects.fade:h={animateIn:function(t,n,r,i,s){var o=t.DOMObject();r=e(r),o.css({position:"absolute",top:0,left:0}),r.append(o),o.show(0),e.isFunction(i)&&i()},animateOut:function(t,n,r,i){e(t.DOMObject()).detach(),e.isFunction(r)&&r()}}),i.touchDevice&&u.on("animate_in_start",function(){var e=u[0];e.removeEventListener("touchstart",D),e.addEventListener("touchstart",D),e.removeEventListener("touchmove",P),e.addEventListener("touchmove",P),e.removeEventListener("touchend",H),e.addEventListener("touchend",H),e.removeEventListener("gesturestart",B),e.addEventListener("gesturestart",B),e.removeEventListener("gesturechange",j),e.addEventListener("gesturechange",j),e.removeEventListener("gestureend",F),e.addEventListener("gestureend",F)}),e.isFunction(r)&&r(f)},b=function(e){switch(e){case"video/mp4":return"avc1.42E01E, mp4a.40.2, avc1.4D401E, mp4a.40.2";case"video/ogv":case"video/ogg":return"theora, vorbis";case"video/webm":return"vp8.0, vorbis";case"audio/ogg":return"vorbis";case"audio/mp4" :return"mp4a.40.5";default:return""}},w=function(e){switch(e.toLowerCase()){case"mp3":return"mpeg";case"mp4":return"mpeg"}return e};switch(i.type){case"video":var E,S="";p=!1,typeof i.url=="string"&&(i.url=[{src:i.url}]);if(typeof i.url=="object")for(l=0;l 0;u=e("").width("100%").attr({"data-width":i.width,"data-height":i.height});if(p){var x=null,T=!1,N=function(){_("play")},C=function(){_("pause")};u.on("animate_out_start",function(){x!==null&&x.paused!==!0&&x.pause(),x.removeEventListener("play",N),x.removeEventListener("pause",C)}),u.on("animate_in_end",function(){u.empty(),E=e("").width("100%").attr({width:"100%",controls:!0,controlsList:"nodownload"}),t.utils.isOnline()&&E.attr("preload","metadata");if(i.url.length>1)for(var n in i.url)E.append(e("").attr("src",i.url[n].src));else{for(var r in i.url)E.attr("src",i.url[r].src);E.on("error",function(n){var r=e(' ");r.width(u.parent().width()).height(u.parent().height()),E.replaceWith(r)})}u.css({height:i.height,"max-height":"100%"}).width("100%").attr({cursor:"pointer"}).append(E),x=E.get(0);var s=function(){var e=(u.width()-E.outerWidth())/2,t=(u.height()-E.outerHeight())/2;E.css({"margin-top":t+"px","margin-bottom":t+"px","margin-left":e+"px","margin-right":e+"px"})};x.addEventListener("loadeddata",s),x.addEventListener("play",function(){s(),N()}),x.addEventListener("pause",C)});var k=function(){x.readyState!=4&&(x.removeEventListener("load",f.Play,!1),x.addEventListener("load",f.Play,!1),x.removeEventListener("canplaythrough",f.Play,!1),x.addEventListener("canplaythrough",f.Play,!1))},A="pause",M=null,_=function(e){e!=A&&(A=e,u.triggerHandler("status_change",[A]),M!==null&&clearInterval(M),e=="play"&&(M=setInterval(function(){u.triggerHandler("playing",[x.currentTime])},500)))};f.Play=function(){return x.play!==undefined?(x.removeEventListener("onreadystatechange",k,!1),x.addEventListener("onreadystatechange",k,!1),x.play(),k(),_("play"),!0):!1},f.Pause=function(){return x.pause?(x.pause(),_("pause"),!0):!1},f.Stop=function(){return f.Pause()},f.Volume=function(e){return e!==null&&e!==undefined?x.volume=e:x.volume},f.CurrentPosition=function(e){return e!==null&&e!==undefined?x.currentTime=e:x.currentTime},f.Duration=function(){return x.duration},f.Progress=function(){return x.buffered?x.buffered.length:0},f.FullScreen=function(){}}else if(c["video/mov"]!==undefined||c["video/aiff"]!==undefined||c["video/m4a"]!==undefined){var I=c["video/mov"]?c["video/mov"]:c["video/aiff"]?c["video/aiff"]:c["video/m4a"],q='",u=e(q)}else{var R="";/MSIE/.test(navigator.userAgent)&&(R+=' \n"),u=e(R)}y();break;case"audio":case"sound":s="imaudioplayer_"+Math.round(Math.random()*1e8),u=e(''),p=!1,typeof i.url=="string"&&(i.url=[{src:i.url}]);if(typeof i.url=="object")for(l=0;l'+t.l10n.get("error_notsupported_video")+"0;if(p){t.utils.isOnline()&&u.attr("preload","metadata"),i.loop&&u.prop("loop",!0);for(v in i.url)u.append(e("").attr("src",i.url[v].src));var U=!1;setInterval(function(){U&&u.triggerHandler("playing",[f.CurrentPosition()])},200),f.Play=function(){u.get(0).play(),U=!0,u.triggerHandler("status_change",["play"])},f.Pause=function(){u.get(0).pause(),U=!1,u.triggerHandler("status_change",["pause"])},f.Stop=function(){return f.Pause()},f.Volume=function(e){return typeof e=="number"?u.get(0).volume=e:u.get(0).volume},f.CurrentPosition=function(e){return typeof e=="number"?u.get(0).currentTime=e:u.get(0).currentTime},f.Duration=function(){return u.get(0).duration},f.Progress=function(){return u.get(0).buffered?1:0}}y();break;case"youtube":m=!1,u=e("").css({"background-color":"black"}),o=null,s="imytplayer_"+Math.round(Math.random()*1e8,10),u.append(e("").attr("id",s)),g=i.url.replace(/https?\:\/\/[w]*\.?youtube\.com\/watch\?v=/g,""),g=g.replace(/https?\:\/\/youtu\.be\/?/g,""),g.indexOf("&")!=-1&&(g=g.substring(0,g.indexOf("&")));var z=null;e("#ytjsapi").length===0&&(z=e("").attr({id:"ytjsapi",src:"//www.youtube.com/iframe_api"}),e("head").append(z),n.onYouTubeIframeAPIReady=function(){t.youtube.jsApiIsLoaded=!0,e("body").triggerHandler(t.youtube.apiLoadedEventName)});var W=!1,X=function(){var r,a;!i.width||!i.contentWidth?r=Math.max(i.width,i.contentWidth):r=Math.min(i.width,i.contentWidth),!i.height||!i.contentHeight?a=Math.max(i.height,i.contentHeight):a=Math.min(i.height,i.contentHeight),u.width(r).height(a),u.children("div").attr({"data-width":r,"data-height":a}),u.find("#"+s).width(r).height(a),t.youtube.jsApiIsLoaded?o=new n.YT.Player(s,{height:a,width:r,videoId:g,events:{onReady:function(){W=!0},onError:function(e){var t="";switch(e.data){case 2:t="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:t="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:t="The owner of the requested video does not allow it to be played in embedded players."}u.empty().append(t)}},playerVars:{controls:i.showVideoControls?"1":"0",wmode:"opaque",modestbranding:"1",rel:0}}):e("body").one(t.youtube.apiLoadedEventName,X)};f.Play=function(){W?"playVideo"in o&&o.playVideo():(!L||clearTimeout(L),L=setTimeout(f.Play,1e3))},f.Pause=function(){W?"pauseVideo"in o&&o.pauseVideo():(!L||clearTimeout(L),L=setTimeout(f.Pause,1e3))},f.Stop=function(){W?!!o.stopVideo&&"stopVideo"in o?o.stopVideo():"pauseVideo"in o&&o.pauseVideo():(!L||clearTimeout(L),L=setTimeout(f.Stop,1e3))},u.on("animate_in_end",X),y();break;case"vimeo":m=!1,s="imvimeoplayer_"+Math.round(Math.random()*1e8,10),u=e("").css("background-color","black").width(i.width).height(i.height),o=e(""),u.append(o).attr({"data-width":i.width,"data-height":i.height}),g=i.url.replace(/[w\.]*vimeo\.com\/?/g,"").replace(/https?\:\/\//g,"").replace(/http?\:\/\//g,""),o.attr({src:"//player.vimeo.com/video/"+g+"?player_id="+s,width:"100%",height:"100%",frameborder:0}),o.css({"min-width":i.width,"min-height":i.height}),y();break;case"code":case"html":u=e(""),u.html(t.utils.htmlspecialchars_decode(i.html)).width(i.width).height(i.height),y();break;case"base64html":u=e(""),u.html(atob(i.html)).width(i.width).height(i.height),y();break;case"swf":var V="swfplayer_"+Math.round(Math.random()*1e3);u=e("").html(''),u.on("animate_in_end",function(){var e={},r={quality:"high",bgcolor:"#ffffff",play:"true",loop:"false",wmode:"transparent",scale:"noscale",menu:"true",devicefont:"false",salign:"lt",allowscriptaccess:"always",allowFullScreen:"true"},s={id:V,name:V,align:"middle",allowscriptaccess:"always"};t.utils.loadSwfObject(function(){n.swfobject.embedSWF(i.url,V,i.width,i.height,"10.0.0","res/expressInstall.swf",e,r,s)})}),y();break;case"dom":u=e(i.url).width(i.width).height(i.height).attr({"data-width":i.width,"data-height":i.height}),y();break;case"iframe":case"url":u=e("",{allowFrameTransparency:i.allowFrameTransparency?"true":"false",src:i.url,border:"0",frameborder:"0",marginwidth:"0",marginheight:"0","data-width":i.width,"data-height":i.height}).width(i.width).height(i.height),y();break;default:var J=function(){var t=O(i.width,i.height,i.contentWidth,i.contentHeight,!0);u.css({position:"absolute",left:t.x,top:t.y}),i.touchDevice&&u.css("-webkit-backface-visibility","hidden"),u.width(t.width).height(t.height),!i.onclick||(e.isFunction(i.onclick)?u.click(i.onclick).css("cursor","pointer"):i.onclick.indexOf("http")===0&&(u.css("cursor","pointer"),n.location.href=i.onclick));if(i.protect){var r=u;u=e("");try{if(!u.get(0).getContext||!u.get(0).getContext("2d"))u=r;else{r.removeAttr("style"),e("body").append(r);var s={width:r.width(),height:r.height()};r.detach(),u.attr({"data-width":i.width,"data-height":i.height}).width("100%").height("100%").on("dragstart",function(e){return e.preventDefault(),!1});var o=u.get(0).getContext("2d");(function f(){if(!u.parent().length){setTimeout(f,100);return}var t=s.width,n=s.height;t>i.width&&(n=i.width/t*n,t=i.width,n*=1.2,t*=1.2),o.canvas.width=t,o.canvas.height=n,o.clearRect(0,0,t,n),o.drawImage(r[0],0,0,t,n),e("#imContent").one("breakpointChangedOrFluid",f),u.one("image.change",f)})()}}catch(a){u=r}u.on("contextmenu",function(e){return!1})}y()};u=e("").attr("src",i.url);if(!i.width||!i.height){var K=e("").css({position:"absolute",top:-1e4}).one("load",function(){var t=e(this);i.width=t.width(),i.height=t.height(),u.attr({"data-width":i.width,"data-height":i.height}),t.remove(),J()});e("body").prepend(K),K.attr("src",u.attr("src"))}else u.attr({"data-width":i.width,"data-height":i.height}),J()}i.selectable||u.attr("unselectable","on").css("user-select","none")},O=function(e,t,n,r,s){return s=!!s,s&&i.type!="dom"&&i.type!="html"&&(n i.moves.length-1||i.moves[t]===undefined)return;var n=O(i.width*i.moves[t].z,i.height*i.moves[t].z,i.contentWidth,i.contentHeight,!0),r=M(i.moves[t],e);e.animate({left:i.moves[t].z<=1?n.x:r.x,top:i.moves[t].z<=1?n.y:r.y,width:Math.round(i.width*r.z),height:Math.round(i.height*r.z)},{duration:i.autoplayTime/(i.moves.length-1),complete:function(){_(e,t+1)}}),u.on("animate_out_start",function(){e.stop(!1,!1)})},D=function(t){e.isFunction(E)&&t.touches.length==1&&E(t),x=t,N=!1,C=t.touches.length==2,k=t.touches.length>2},P=function(t){!w&&(!!g&&t.touches.length==1||!!y&&t.touches.length==2||!!b&&t.touches.length>2)&&t.preventDefault();if(e.isFunction(w)&&t.touches.length==1){var n=d?x:x.touches[0],r=d?t:t.touches[0];w(t,{startX:n.pageX,startY:n.pageY,offsetX:r.pageX-n.pageX,offsetY:r.pageY-n.pageY})}N=!0,T=t},H=function(t){if(!N)u.click();else if(e.isFunction(g)&&!!T&&x.touches.length==1){var n=d?x:x.touches[0],r=d?T:T.touches[0];g(t,{startX:n.pageX,startY:n.pageY,offsetX:r.pageX-n.pageX,offsetY:r.pageY-n.pageY})}},B=function(e){(k&&!!b||C&&!!y)&&e.preventDefault()},j=function(t){k&&!!b&&t.preventDefault(),C&&!!y&&!S&&t.preventDefault(),!!S&&e.isFunction(S)&&S(t)},F=function(t){k&&e.isFunction(b)?b(t):C&&e.isFunction(y)&&y(t)};this.Cache=function(n){e.extend({load:null,error:null},n);switch(i.type){case"image":/^[0-9]+$/.test(i.url)&&(i.url=t.utils.yaKnowWhatToDo(i.url)),v[v.length]=new Image;var r=e(v[v.length-1]);r.one("load",function(){if(!i.width&&!i.height){var t=r.clone();e("body").append(t),t.css({width:"auto",height:"auto",position:"absolute",top:-1e4}),i.width=t.width(),i.height=t.height(),t.remove()}i.thumb?(v[v.length]=new Image,r=e(v[v.length-1]),r.one("load",function(){A(n.load)}).on("error",function(){i.thumb=null,A(n.load)}),r.attr("src",i.thumb)):A(n.load)}).on("error",function(){e.isFunction(n.error)&&n.error(f,404)}),r.attr("src",i.url);break;case"video":case"youtube":case"vimeo":i.thumb?(v[v.length]=new Image,r=e(v[v.length-1]),r.one("load",function(){A(n.load)}).on("error",function(){i.thumb=null,A(n.load)}),r.attr("src",i.thumb)):A(n.load);break;default:A(n.load)}},this.TriggerAnimationInStart=function(){return u.triggerHandler("animate_in_start"),f},this.TriggerAnimationInEnd=function(){return u.triggerHandler("animate_in_end"),f},this.TriggerAnimationOutStart=function(){return u.triggerHandler("animate_out_start"),f},this.TriggerAnimationOutEnd=function(){return u.triggerHandler("animate_out_end"),f},this.AnimateIn=function(n,r,s){u.find("embed, object, iframe").css("display","none");var o=function(t){var n=t.DOMObject();n.find("embed, object, iframe").css("display","block"),n.trigger("animate_in_end"),i.moves.length>1&&i.type==="image"&&_(u,1),e.isFunction(r)&&r(t)},a=null,l=O(u.attr("data-width"),u.attr("data-height"),i.contentWidth,i.contentHeight,!0);u.css("position","absolute");if(i.moves.length>0&&i.type==="image"){var c=M(i.moves[0],u);a={y:c.y,x:c.x,width:Math.round(l.width*c.z),height:Math.round(l.height*c.z)}}else i.type!="dom"&&i.type!="html"?a={y:l.y,x:l.x,width:l.width,height:l.height}:a={y:0,x:0,width:l.width,height:l.height};u.trigger("animate_in_start");if(i.effect=="random"){var p=["fade","horizontalSlide","verticalSlide","zoom","elasticFromTop","elasticFromBottom","elasticFromRight","elasticFromLeft","bounceFromTop","bounceFromBottom","bounceFromLeft","bounceFromRight","rotateLinear"],d=Math.max(0,Math.floor(Math.random()*p.length));t.effects[p[d]]?h=t.effects[p[d]]:h=t.effects.fade}if(!h)u.trigger("animate_in_end");else{var v=t.utils.supportsCSS("transformOrigin"),m=t.utils.supportsCSS("transform");v&&u.css(v,"50% 50%"),m&&u.css(m,"none"),h.animateIn(f,a,n,o,s)}},this.AnimateOut=function(n,r,s){u.find("embed, object, iframe").css("display","none");var o=function(t){var n=t.DOMObject();n.trigger("animate_out_end"),e.isFunction(r)&&r(t)};if(i.effect=="random"){var a=["fade","horizontalSlide","verticalSlide","zoom","elasticFromTop","elasticFromBottom","elasticFromRight","elasticFromLeft","bounceFromTop","bounceFromBottom","bounceFromLeft","bounceFromRight","rotateLinear"],l=Math.max(0,Math.floor(Math.random()*a.length));h=t.effects[a[l]]}u.trigger("animate_out_start"),h!==null&&h!==undefined?h.animateOut(f,n,o,s):u.trigger("animate_out_end")},this.ChangeAnimation=function(e){!t.effects[e]||(h=t.effects[e])},this.DOMObject=function(){return u},this.GetThumb=function(){return a},this.Type=function(){return i.type},this.Play=function(){return!1},this.Pause=function(){return!1},this.Stop=function(){return!1},this.Volume=function(e){return 0},this.CurrentPosition=function(e){return 0},this.Duration=function(){return 0},this.GetDescription=function(){return t.utils.htmlspecialchars_decode(i.description)},this.AutoplayTime=function(){return i.autoplayTime},this.OnPlaying=function(e){u.on("playing",e)},this.OnStatusChange=function(e){u.on("status_change",e)},this.Width=function(){return i.moves.length===0?i.width!==null?i.width:u.attr("data-width"):i.moves[0].z*i.width},this.Height=function(){return i.moves.length===0?i.height!==null?i.height:u.attr("data-height"):i.moves[0].z*i.height},this.ContentHeight=function(e){if(e===null||e===undefined)return i.contentHeight;i.contentHeight=e},this.ContentWidth=function(e){if(e===null||e===undefined)return i.contentWidth;i.contentWidth=e},this.Overlay=function(){return m},this.AfterPinch=function(e){return y=e,f},this.Pinch=function(e){return S=e,f},this.Gesture=function(e){return b=e,f},this.Move=function(e){return w=e,f},this.AfterMove=function(e){return g=e,f},this.BeforeMove=function(e){return E=e,f},this.FullScreen=function(){return!1},this.AppendTo=function(t,n){return t.append(u),e.isFunction(i.attached)?i.attached(this,n):e.isFunction(n)&&n(this),this},i.deferredCaching||this.Cache({load:i.load,error:i.error})}})}(_jq,x5engine,window),function(e,t){"use strict";e.extend(t,{mediaPlayer:function(n){n=e.extend({url:"",type:"audio",width:400,height:400,showVideoControls:!0,target:"body",autoplay:!1,loop:!1,baseUrl:""},n);var r=e(n.target),i=new t.mediaObject({url:n.url,type:n.type,showVideoControls:n.showVideoControls,effect:"none",width:n.width,height:n.height-(!n.autoHideControls&&n.type!="youtube"&&n.type!="vimeo"?n.controlsHeight:0),baseUrl:n.baseUrl,load:function(e){return r.append(e.DOMObject()).css({"background-color":n.type!="audio"?n.bgColor:"transparent",position:"relative",margin:"0 auto"}).width(n.width).height(n.height),e.AnimateIn(),n.autoplay===!0?e.Play():n.autoplay=="onscreen"&&t.utils.onElementInViewPort(r[0],function(){e.Play()}),{Stop:function(){e&&e.Stop()},Play:function(){e&&e.Play()}}}})}})}(_jq,x5engine),function(e,t){"use strict";e.extend(t,{initMenu:function(t,n){var r=e("body");e("#"+t+" li").each(function(){var t=e(this),n="imMnMnCurrent",r=t.attr("data-link-anchor"),i=t.attr("data-link-hash"),s=e("[data-link-hash="+i+"]"),o=t.attr("data-link-paths"),u=function(e){!e||t.add(s).parents("ul").find("."+n).removeClass(n),t.add(t.add(s).parents("li")).add(s).addClass(n)};!r||t.on("click",function(){u(!0)});if(!!o){var a=o.substring(0,1);o=o.substring(1);var f=o.split(a),l=!1;for(var c=0;c 0)return;e(this).css("visibility","hidden"),e("").appendTo("body"),e("#"+t+" > *:not(.hamburger-button)").clone(!0).removeClass("hidden").appendTo("#"+t+"-menu-opened");var i=e("#"+t+"-menu-opened").find(".multiple-column");e(i).css("width",""),e(i).css("left",""),e(i).find("ul").length!==0?e(i).children("ul").css({height:"",overflow:"",display:""}):e("#"+t+"-menu-opened").find(".imLevel").find("ul").length!==0&&e("#"+t+"-menu-opened").find(".imLevel").children("ul").css({height:"",overflow:"",display:""}),e("#"+t+"-menu-opened ul li").each(function(){var t=e(this),n=0;t.on("mouseover",function(){clearTimeout(n),t.children("ul, .multiple-column").stop(!1,!1).show()}).on("mouseleave",function(){n=setTimeout(function(){t.children("ul, .multiple-column").stop(!1,!1).hide()},500)})}),e("#"+t+"-menu-opened .hamburger-menu-close-button").add("#"+t+"-menu-opened .imLevel[data-link-paths]").one("click",function(){r.removeClass("menu-"+t+"-opened"),e("#"+t+"-menu-opened").removeClass("animated"),r.addClass("menu-"+t+"-closing"),e("#imPageExtContainer").off("click.close-menu-event"),e(window).off("resize.close-menu-event"),setTimeout(function(){e("#"+t).find(".label-wrapper-over").remove(),e("#"+t+"-menu-opened").remove(),r.removeClass("menu-"+t+"-closing").removeClass("im-menu-opened")},n),e("#"+t+" .hamburger-button").css("visibility","")}),e("#imPageExtContainer").on("click.close-menu-event",function(n){r.hasClass("menu-"+t+"-opened")&&(n.stopPropagation(),e("#"+t+"-menu-opened .hamburger-menu-close-button").click())}),e(window).on("resize.close-menu-event",function(n){r.hasClass("menu-"+t+"-opened")&&e("#"+t+"-menu-opened .hamburger-menu-close-button").click()}),e("#"+t+"-menu-opened .imMnMnCurrent").each(function(){e(this).parents("ul").show(0),e(this).closest(".imLevel").find("> .label-wrapper > .label-inner-wrapper > a").data("linkLevelOpened",1)}),e("#"+t+"-menu-opened > ul > .imLevel").each(function(){var t=e(this),n=t.find("> .label-wrapper > .label-inner-wrapper > a");n.length>0&&e(this).children("ul").length>0&&n.on("touchend",function(n){e(this).data("linkLevelOpened")=="1"?e(this).data("linkLevelOpened",0):(n.preventDefault(),e(this).data("linkLevelOpened",1),t.trigger("mouseover"))})}),setTimeout(function(){r.addClass("menu-"+t+"-opened").addClass("im-menu-opened"),e("#"+t+"-menu-opened").addClass("animated")},10)});var i=e("#"+t),s,o=e(window),u=i.children("ul, .multiple-column"),a=i.find(".hamburger-button"),f=function(e){e.add(e.find("ul")).toggleClass("open-right").toggleClass("open-left")};i.find(".imLevel").on("mouseenter",function(){var n=e(this),r,s,u,a,l,c=n.find(".multiple-column");if(n.parents("#"+t+"-menu-opened").length>0)return;if(!c.length&&i.css("float")!="right"){if(n.find("li").first().is(":visible"))return;r=n.offset(),s=n.children("ul"),u=n.parents("ul").first(),n.parents(".imLevel").length||s.add(s.find("ul")).each(function(){e(this).removeClass("open-right").removeClass("open-left").addClass(e(this).attr("data-original-position"))});if(!s.attr("data-computed-width")){var h=s.clone();i.append(h),h.show(0).css({position:"absolute",top:-1e3,width:"",height:"",display:"block"}),s.attr("data-computed-width",h.find("li").outerWidth()),h.remove()}var p=s.attr("data-computed-width")*1;s.hasClass("open-right")&&r.left+n.outerWidth()+p>o.width()+o.scrollLeft()&&f(s),s.hasClass("open-left")&&r.left-p 0&&c.css("left",-Math.min(d,r.left))}})}})}(_jq,x5engine),function(e,t,n){"use strict";function r(){var t=e("#imHeader"),n=0;return e("#imHeader [id^=imHeader_imMenuObject_]:not(.template-object-wrapper):visible").each(function(r){e(this).offset().top+e(this).outerHeight()>n&&(t=e(this),n=t.offset().top+t.outerHeight())}),t}function i(r){r=e.extend({target:null,trigger:null,triggerPartialHide:!0,appear:!1,enabledBreakpoints:null,forceTop:!1,useTranslateZ:!1},r);var i=!1,s=!1,o=e(n),u,a,f,l,c=!1,h=!1,p,d=e("#imFooter"),v=function(){i=!0,f=typeof r.trigger=="function"?r.trigger():e(r.trigger),u=f.offset().top+(r.triggerPartialHide?0:f.outerHeight()),function t(n){if(!!n&&n.target!=n.currentTarget)return;p=a.parent().offset().left,a.css("position")!="fixed"&&(l=a.position().left),e("#imContent").one("change",t)}()},m=function(){i&&(r.appear?a.stop(!1,!1).animate({top:-a.outerHeight(!0)},{duration:200,complete:function(){a.css({visibility:"hidden",overflow:"hidden"})}}):a.stop().css({position:"","margin-top":"",left:"",top:"","z-index":""}),c=!1)},g=function(){return-o.scrollLeft()+l+p},y=function(){a.css({position:"fixed","margin-top":0,left:g(),bottom:"auto","z-index":t.settings.zIndex.stickyBar+(r.forceTop?1:0)}),r.useTranslateZ&&a.css("-webkit-transform","translateZ(0)")},b=function(e,t){var n=d.length?d.offset().top:0,r=t;r+a.outerHeight(!0)>=n-e&&(r=n-e-a.outerHeight(!0)),a.css("top",r)},w=function(){if(!s)return;i||v();var t=d.length?d.offset().top:0,n=u+a.outerHeight(!0)+parseInt(e("#imContent").css("padding-bottom"));if(t<=n)return;var f=o.scrollTop(),l=e("#imStickyBarContainer:visible"),p=r.forceTop||l.length===0?0:l.height();u-p n.appearAt?t.hasClass(r.visibleClass)||(t.addClass(r.visibleClass),t.fadeIn(1e3),t.one("click.scroll-to-top",function(){e("html, body").stop().animate({scrollTop:0},n.speed,"swing"),t.off("click.scroll-to-top"),t.fadeOut(1e3)})):t.hasClass(r.visibleClass)&&(t.removeClass(r.visibleClass),t.fadeOut(1e3))};t.imPageToTop.createButton(n),e(window).on("ready scroll",s)},createButton:function(n){var r=t.imPageToTop.constants,i=e(document.createElement("div"));i.attr("id",r.id);var s=e(document.createElement("img"));s.attr("src",t.settings.currentPath+n.imageFile).attr("alt","scroll to top").attr("id",r.id+"_img"),e("body").append(i.append(s))}}})}(_jq,x5engine),function(e,t){"use strict";e.extend(t,{panAndZoom:function(n){var r=e.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},n),i=null,s=null,o=null,u=null,a=null,f=e("html").hasClass("touchevents"),l=null,c=null,h=0,p=0,d=0,v=0,m="#eee",g="#ccc",y="#aaa",b=null,w=(Math.random()-.5<0?-1:1)*(100+Math.round(Math.random()*20-10)),E=(Math.random()-.5<0?-1:1)*(100+Math.round(Math.random()*20-10)),S=!1,x=function(){var n={x:0,y:0},i={x:0,y:0},u=r.targetWidth/l*c,f=r.targetWidth,v=null;u>r.targetHeight&&(f=r.targetHeight/c*l,u=r.targetHeight),f=f*r.navigatorSize/100,u=u*r.navigatorSize/100;var g=new t.mediaObject({url:r.url,effect:"none",width:f,height:u,contentWidth:f,contentHeight:u,touchDevice:!1,deferredCaching:!0,protect:r.protect});g.Cache({load:function(){var t=null;o=e("").css({position:"absolute",top:-f-10,left:10,background:m,border:"1px solid "+m}).width(f).height(u).mousedown(function(e){S=!0,n={x:e.pageX,y:e.pageY},i={x:y.css("border-left-width").replace(/px/g,"")*-1,y:y.css("border-top-width").replace(/px/g,"")*-1}}).mouseup(function(e){S=!1}).mouseleave(function(e){S=!1}).mousemove(function(e){S&&(e.preventDefault(),h=(i.x+(n.x-e.pageX))/f*l,p=(i.y+(n.y-e.pageY))/u*c,h=Math.min(Math.max(h,-l*d+r.targetWidth),0),p=Math.min(Math.max(p,-c*d+r.targetHeight),0),s.css({top:p,left:h}).triggerHandler("image.change",[d,h,p]))}).on("dragstart",function(e){return e.preventDefault(),!1});var y=e("").css({position:"absolute",top:0,bottom:0,left:0,right:0,border:"0px solid "+m,background:"transparent"}).fadeTo(0,.75);s.on("image.change",function(e,t,n,i){v!==null&&window.cancelAnimFrame(v),v=window.requestAnimFrame(function(){y.css({"border-top-width":-i/t/c*u,"border-bottom-width":u- -i/t/c*u-r.targetHeight*u/(c*t),"border-left-width":-n/t/l*f,"border-right-width":f- -n/t/l*f-r.targetWidth*f/(l*t)})})}),a.append(o.append(g.DOMObject()).append(y)).mouseleave(function(){t=setTimeout(function(){o.stop(!1,!1).animate({top:-o.height()-20})},1e3)}).mouseenter(function(){t!==null&&(clearTimeout(t),t=null),o.stop(!1,!1).animate({top:10})}),o.on("mousewheel DOMMouseScroll",C)}})},T=function(){var t=20,n=10,i=Math.min(a.height(),170)-2*t-2*n,o=!1,f=function(e){return o=!1,l(e)},l=function(e){return e.preventDefault(),!1};u=e("").css({position:"absolute",right:10,top:n}).mousemove(function(e){if(o){E.css("top",c(e.pageY-w.offset().top));var n=1-(e.pageY-w.offset().top)/(i-t/2);N(n*(1-v)+v,null,null,!1)}}).mouseleave(f).mouseup(f).on("selectstart mousedown",l);var c=function(e){return Math.min(Math.max(e-t/2,0),i-t)},h={position:"absolute",color:y,border:"1px solid "+g,background:m,cursor:"pointer"},p=e("").width(t).height(t).css(h).css({top:0,"border-radius":"5px 5px 0 0"}).text("+").click(function(e){return e.preventDefault(),N(d+.1),!1}).dblclick(l).on("selectstart mousedown",l),b=e("").width(t).height(t).css(h).css({bottom:0,"border-radius":"0 0 5px 5px"}).text("-").click(function(e){return e.preventDefault(),N(d-.1),!1}).dblclick(l).on("selectstart mousedown",l),w=e("").css({margin:t+"px 9px",background:m,border:"1px solid "+g}).width(2).height(Math.min(i,r.targetHeight-20)),E=e("").css({"border-radius":5,position:"absolute",margin:t+5+"px 0",bottom:0,left:5,border:"1px solid "+y,background:m,cursor:"pointer"}).width(10).height(10).mousedown(function(e){o=!0}).mouseup(function(e){o=!1}).on("dragstart",l).on("selectstart mousedown",l);a.append(u.append(w.append(E)).append(p).append(b)),s.on("image.change",function(e,t){if(o)return;t=(t-v)/(1-v),E.css("top",c((1-t)*i))})},N=function(e,t,n,i){var o=d,u=null;e=Math.max(Math.min(e,1),v);if(s===null||e==d)return;if(i===undefined||i===null)i=!0;s.stop(!1,!1);if(t===null||t===undefined)t=(h-r.targetWidth/2)*e/d+r.targetWidth/2;if(n===null||n===undefined)n=(p-r.targetHeight/2)*e/d+r.targetHeight/2;h=t=Math.min(Math.max(t,-l*e+r.targetWidth),0),p=n=Math.min(Math.max(n,-c*e+r.targetHeight),0);var a={width:l*e,height:c*e,left:t,top:n};i?s.animate(a,{step:function(e,r){switch(r.prop){case"width":d=e/l;break;case"left":h=t=e;break;case"top":p=n=e}s.triggerHandler("image.change",[d,t,n])},complete:function(){d=e,s.triggerHandler("image.change",[d,t,n])}}):(d=e,u!==null&&window.cancelAnimFrame(u),u=window.requestAnimFrame(function(){s.css(a).width(l*e).height(c*e).triggerHandler("image.change",[d,t,n])}))},C=function(e){if(r.enableZoom){e.preventDefault();var t=(e.originalEvent.detail?e.originalEvent.detail:e.originalEvent.wheelDelta)>0?-0.2:.2;t*=/(Chrome|IE)/gi.test(navigator.userAgent)?-1:1,N(d+t)}};a=e(r.target);if(a.length===0)return!1;a.css({position:"relative",overflow:"hidden"}).width(r.targetWidth).height(r.targetHeight).prepend(t.settings.imLoadingAnimation),i=new t.mediaObject({url:r.url,effect:"fade",contentWidth:r.targetWidth,contentHeight:r.targetHeight,touchDevice:f,protect:r.protect,load:function(t){var n={x:0,y:0},o={x:0,y:0},u=null;s=t.DOMObject(),s.css({display:"none",position:"absolute"}),c=s.attr("data-height"),l=s.attr("data-width"),a.empty().prepend(s),v=r.targetWidth/l,v*c>r.targetHeight&&(v=r.targetHeight/c),r.enableZoom?(N(Math.min(r.targetWidth,r.targetHeight)/Math.max(c,l),(-l+r.targetWidth)/2,(-c+r.targetHeight)/2,!1),r.showZoomControl&&T()):N(1,(-l+r.targetWidth)/2,(-c+r.targetHeight)/2,!1);if(!f)r.showNavigator&&x(),s.mousedown(function(e){e.which==1&&!r.autoMove&&(s.stop(!1,!1).css("cursor","move"),S=!0,n={x:e.pageX,y:e.pageY},o={x:s.position().left,y:s.position().top})}).mouseup(function(){r.autoMove||(S=!1,s.css("cursor","auto"))}).mouseleave(function(){S=!1,s.css("cursor","auto"),u!==null&&window.cancelAnimFrame(u)}).mousemove(function(e){e.preventDefault();if(!r.autoMove)S&&(h=Math.min(Math.max(o.x-(n.x-e.pageX),-l*d+r.targetWidth),0),p=Math.min(Math.max(o.y-(n.y-e.pageY),-c*d+r.targetHeight),0),s.css({top:p,left:h}).triggerHandler("image.change",[d,h,p]));else{S=!0;var t=e.pageX-a.offset().left-r.targetWidth/2,i=e.pageY-a.offset().top-r.targetHeight/2,f=Math.abs(t/i),v="";f<1.5&&f>.5?(v+=i<0?"n":"s",v+=t<0?"w":"e"):f>1?v+=t<0?"w":"e":f<1&&(v+=i<0?"n":"s"),s.css("cursor",v+"-resize"),u!==null&&window.cancelAnimFrame(u ),function m(e){var n=t*d*e/400,o=i*d*e/400;S&&(p=Math.min(Math.max(p-o,-c*d+r.targetHeight),0),h=Math.min(Math.max(h-n,-l*d+r.targetWidth),0),s.css({top:p,left:h}).triggerHandler("image.change",[d,h,p]));var a=new Date;u=window.requestAnimFrame(function(){m(new Date-a)})}(0)}}),r.enableZoom&&s.dblclick(function(e){d!=1?N(1):N(v)}),s.on("mousewheel DOMMouseScroll",C).on("dragstart",function(){return!1}),a.append(b=e("").css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(e("").css({background:r.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0}).fadeTo(0,.75)).append(e("").css({background:"transparent url('"+(r.enableZoom?r.lensImage:r.handImage)+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0}))).mouseenter(function(){b.stop(!1,!1).animate({right:-30,bottom:-30})}).mouseleave(function(){b.stop(!1,!1).animate({right:0,bottom:0})});else{var m=d,g=null,y=null,k=null,L=null;t.BeforeMove(function(e){e.preventDefault(),m=d,s.stop(!1,!1),n={x:e.touches[0].pageX,y:e.touches[0].pageY},o={x:h,y:p},g=y=null,S=!0}).Move(function(e){if(!S)return;e.preventDefault(),k=g,L=y,p=y=o.y-(n.y-e.touches[0].pageY),h=g=o.x-(n.x-e.touches[0].pageX);if(y<-c*d+r.targetHeight||y>0)p=y=o.y-(n.y-e.touches[0].pageY)/2;if(g<-l*d+r.targetWidth||g>0)h=o.x-(n.x-e.touches[0].pageX)/2;s.css("top",y),s.css("left",g),n={x:e.touches[0].pageX,y:e.touches[0].pageY},o={x:h,y:p}}).AfterMove(function(e){e.preventDefault(),g!==null&&y!==null&&(k!==null&&L!==null&&(g+=(g-k)*6,y+=(y-L)*6),s.stop(!1,!1).animate({top:Math.min(Math.max(y,-c*d+r.targetHeight),0),left:Math.min(Math.max(g,-l*d+r.targetWidth),0)},{duration:1e3,easing:"iOsSwing",step:function(e,t){t.prop=="top"&&(p=e),t.prop=="left"&&(h=e)}})),S=!1}),r.enableZoom&&i.Pinch(function(e){S=!1,e.preventDefault(),N(e.scale*m,null,null,!1)})}i.TriggerAnimationInStart(),s.fadeIn(),r.animate&&function A(e){if(!S&&d>v+.05){var t=e/1e3*w,n=e/1e3*E;h+=t*d,p+=n*d;if(p<-c*d+r.targetHeight||p>0)E*=-1,p=Math.min(Math.max(p,-c*d+r.targetHeight),0);if(h<-l*d+r.targetWidth||h>0)w*=-1,h=Math.min(Math.max(h,-l*d+r.targetWidth),0);s.css({top:p,left:h}).triggerHandler("image.change",[d,h,p])}var i=new Date;window.requestAnimFrame(function(){A(new Date-i)})}(0)}})}})}(_jq,x5engine),function(e,t,n){"use strict";e.extend(t,{parallax:function(){function r(){n.requestAnimationFrame(function(){t=[];var r=e(n).height();e(".imParallax").each(function(){var n=e(this),i=n.find(".imParallaxBackground");if(i.length==0)return;var s=n.offset().top+n.height()/2,o=r/2+n.height()/2,u=i.data("parallaxDirection")||"down",a=i.data("parallaxZoom")||0;a=a*50/(a+100);if(u=="fixed"){var f=-(r/n.height()-1);i.css("top",f*50+"%"),i.css("bottom",f*50+"%"),a=100/(2+2*-f)+50}t.push({background:i,focusPoint:s,maxDistance:o,hidden:!0,direction:u,scale:a}),i.css("will-change","transform")}),i()})}function i(){n.requestAnimationFrame(function(){var r=e(n).scrollTop(),i=e(n).height(),s=r+i/2;e.each(t,function(t,n){var r=n.focusPoint-s;r>n.maxDistance?r=n.maxDistance:r<-n.maxDistance&&(r=-n.maxDistance);var i=r*n.scale/n.maxDistance;n.direction!="up"&&(i=-i),n.background.each(function(t){var r=e(this),s=r.data("parallaxLevels")||1;if(s>1&&n.direction!="fixed"){var o=r.data("parallaxLevel")||0,u=(n.direction=="down"?s-o:o+1)/s;r.css("transform","translate3d(0, "+i*u+"%, 0")}else r.css("transform","translate3d(0, "+i+"%, 0)")}),n.hidden&&(n.background.css("visibility","visible"),n.hidden=!1)})})}var t=[];return{start:function(){r(),e("#imContent").on("breakpointChanged",r),e(n).resize(r),e(n).scroll(i)}}}()})}(_jq,x5engine,window),function(e,t){"use strict";e.extend(t,{passwordpolicy:{requiredPolicy:!1,minimumCharacters:6,includeUppercase:!1,includeNumeric:!1,includeSpecial:!1,init:function(n){n=e.extend({requiredPolicy:!1,minimumCharacters:6,includeUppercase:!1,includeNumeric:!1,includeSpecial:!1},n),t.passwordpolicy.requiredPolicy=n.requiredPolicy=="true",t.passwordpolicy.minimumCharacters=parseInt(n.minimumCharacters),t.passwordpolicy.includeUppercase=n.includeUppercase=="true",t.passwordpolicy.includeNumeric=n.includeNumeric=="true",t.passwordpolicy.includeSpecial=n.includeSpecial=="true",n.requiredPolicy=="true"&&t.imForm.activeFocusPasswordPolicy(t.passwordpolicy.getPolicy())},getMinimumCharacters:function(){return t.passwordpolicy.minimumCharacters},getPolicy:function(){var e=["form_password"];return e.push("form_password_length"),t.passwordpolicy.includeUppercase&&e.push("form_password_upper"),t.passwordpolicy.includeNumeric&&e.push("form_password_numeric"),t.passwordpolicy.includeSpecial&&e.push("form_password_special"),e},isValidPassword:function(e){var n=!t.passwordpolicy.includeUppercase||t.passwordpolicy.includeUppercase&&/[A-Z]/.test(e),r=!t.passwordpolicy.includeNumeric||t.passwordpolicy.includeNumeric&&/[0-9]/.test(e),i=/[!?<>#$%&*@()]/,s=!t.passwordpolicy.includeSpecial||t.passwordpolicy.includeSpecial&&i.test(e);return e.length>=t.passwordpolicy.minimumCharacters&&n&&r&&s}}})}(_jq,x5engine),function(e,t){"use strict";e.extend(!0,t,{responsive:{interfaceName:"media-query-to-js",init:function(){var n=e(window).width();if(!t.settings.breakPoints||!t.settings.breakPoints.length)return;e("body").append('');var r=null,i=t.responsive.getCurrentBreakPoint();e(window).on("resize",function(){!r||clearTimeout(r),r=setTimeout(function(){if(t.utils.isInFullScreenMode())return;if(e(window).width()==n)return;n=e(window).width();var r=t.responsive.getCurrentBreakPoint();!!r&&!!i&&(i.hash!=r.hash?(e("#imContent").trigger("beforeBreakpointChanged",r).trigger("breakpointChanged",r).trigger("breakpointChangedOrFluid",r),i=r):r.fluid&&e("#imContent").trigger("breakpointChangedOrFluid",r))},50)})},getCurrentBreakPoint:function(){var n=e("#"+t.responsive.interfaceName).width(),r=t.settings.breakPoints;for(var i=0;i t.height-o.outerHeight()?o.animate({top:l-t.height},{duration:"medium",complete:function(){i=setTimeout(function(){f({reset:!1})},t.time*1e3)},easing:r}):o.animate({top:0},{duration:"medium",complete:function(){i=setTimeout(function(){f({reset:!1})},t.time*1e3)},easing:r});break;case"BOTTOM":l=o.css("top").replace("px",""),l=isNaN(parseInt(l,10))?0:parseInt(l,10),l<=0?o.animate({top:l+t.height},{duration:"medium",complete:function(){i=setTimeout(function(){f({reset:!1})},t.time*1e3)},easing:r}):o.animate({top:t.height-o.height()},{duration:"medium",complete:function(){i=setTimeout(function(){f({reset:!1})},t.time*1e3)},easing:r});break;case"LEFT":a=o.css("left").replace("px",""),a=isNaN(parseInt(a,10))?0:parseInt(a,10),a>-o.width()+n.width()?o.animate({left:a-n.width()},{duration:"medium",complete:function(){i=setTimeout(function(){f({reset:!1})},t.time*1e3)},easing:r}):o.animate({left:0},{duration:"medium",complete:function(){i=setTimeout(function(){f({reset:!1})},t.time*1e3)},easing:r});break;case"RIGHT":a=o.css("left").replace("px",""),a=isNaN(parseInt(a,10))?0:parseInt(a,10),a<0?o.animate({left:a+n.width()},{duration:"medium",complete:function(){setTimeout(function(){f({reset:!1})},t.time*1e3)},easing:r}):o.animate({left:-o.width()+n.width()},{duration:"medium",complete:function(){setTimeout(function(){f({reset:!1})},t.time*1e3)},easing:r})}break;case"CONTINUE":switch(t.direction){case"UP":o.animate({top:-o.outerHeight()},{duration:t.time*1e3,complete:function(){o.css({top:t.outerHeight}),f()},easing:r});break;case"BOTTOM":o.animate({top:t.height},{duration:t.time*1e3,complete:function(){o.css({top:-o.height()}),f()},easing:r});break;case"LEFT":o.animate({left:-o.width()},{duration:t.time*1e3,complete:function(){o.css({left:n.width()}),f()},easing:r});break;case"RIGHT":o.animate({left:n.width()},{duration:t.time*1e3,complete:function(){o.css({left:-o.width()}),f()},easing:r})}break;case"SINGLE":switch(t.direction){case"UP":o.animate({top:0},{duration:t.time*1e3,easing:r});break;case"BOTTOM":o.animate({top:-o.height()+t.height},{duration:t.time*1e3,easing:r});break;case"RIGHT":u=h(o.html()),o.animate({left:-u+n.width()},{duration:t.time*1e3,easing:r});break;case"LEFT":o.animate({left:0},{duration:t.time*1e3,easing:r})}break;default:switch(t.direction){case"UP":o.animate({top:0},{duration:t.time*1e3,complete:function(){t.direction="BOTTOM",f()},easing:r});break;case"BOTTOM":o.animate({top:-o.height()+t.height},{duration:t.time*1e3,complete:function(){t.direction="UP",f()},easing:r});break;case"RIGHT":u=h(o.html()),o.animate({left:-u+n.outerWidth()},{duration:t.time*1e3,complete:function(){t.direction="LEFT",f()},easing:r});break;case"LEFT":o.animate({left:0},{duration:t.time*1e3,complete:function(){t.direction="RIGHT",f()},easing:r})}}},l=function(){t.movement!="PAGINATE"?f():i=setTimeout(function(){f()},t.time*1e3)},c=function(){o.stop()},h=function(r){var i=e(" ").css({position:"absolute",top:-1e3}).width(5e7),s=i.children().css({width:"auto","white-space":t.direction=="UP"||t.direction=="BOTTOM"?"normal":"nowrap",display:"inline-block","padding-top":a.top,"padding-bottom":a.bottom,"padding-right":a.right,"padding-left":a.left}),o=0;return n.append(i),o=s.outerWidth(!0)+30,i.remove(),o},p=function(){switch(t.movement){case"CONTINUE":switch(t.direction){case"UP":o.css({left:0,top:t.height});break;case"BOTTOM":o.css({left:0,top:-o.height()});break;case"LEFT":o.css("left",n.width()).width(h(o.html()));break;case"RIGHT":o.css("left",-o.width()).width(h(o.html()))}break;case"PAGINATE":switch(t.direction){case"BOTTOM":o.css({left:0,top:-o.height()+t.height});break;case"UP":o.css({left:0,top:0});break;case"RIGHT":u=h(o.html()),o.css("left",-u+n.width()).width(u);break;case"LEFT":o.css("left",0).width(h(o.html()))}break;default:switch(t.direction){case"UP":o.css({left:0,top:-o.height()+t.height});break;case"BOTTOM":o.css({left:0,top:0});break;case"LEFT":u=h(o.html()),o.css("left",-u+n.width()).width(u);break;case"RIGHT":o.css("left",0).width(h(o.html()))}}},d=function(){c(),e(o.eq(0).contents()).unwrap(),n.height("auto")};(function v(){if(!n.is(":visible")){setTimeout(v,300);return}n.height(t.height).css({position:"relative",overflow:"hidden"}).wrapInner('"+r+"'),o=e("#"+n.attr("id")+"_runner").css({position:"absolute","padding-top":a.top,"padding-bottom":a.bottom,"padding-right":a.right,"padding-left":a.left,"white-space":t.direction=="UP"||t.direction=="BOTTOM"?"normal":"nowrap"}).width(n.width()-a.left-a.right),t.mouselock&&(t.movement!="PAGINATE"?n.mouseenter(function(){o.pauseAnim()}).mouseleave(function(){o.resAnim()}):n.mouseover(function(){i!==null&&clearTimeout(i)}).mouseleave(function(){i=setTimeout(function(){f({reset:!1})},t.time*1e3)})),t.autostart&&l(),n.data("imRollover",{start:function(){l()},stop:function(){c()},disable:function(){d()}})})()}})}(_jq,x5engine),function(e,t){"use strict";e.extend(t,{imShowBox:function(n,r,i){n=e.extend({},t.settings.imShowBox,n),r=r||0,i=e(i);if(!i.width()||!i.height()||i.children("img").length){var s=i.children("img");if(s.length)i=s;else{var o=!1;i.children().each(function(){var t=e(this);!o&&t.width()!==0&&t.height()!==0&&(i=t,o=!0)})}}var u=e("html").hasClass("touchevents"),a=/(iPad|iPhone)/i.test(navigator.userAgent),f=!1,l=[],c=null,h=null,p=null,d=null,v=null,m=null,g=null,y=null,b=null,w=null,E=null,S=null,x=null,T=null,N=null,C=null,k=n.effect!="fade"&&n.effect!="custom"?250:2,L=n.effect!="fade"?250:2,A=null,O=e(window),M=e("body"),_=e("head"),D=null,P=null,H=i.css("visibility"),B=i.width(),j=i.height(),F=!1,I=null,q=null,R=null,U=null,z=null,W=!1,X=!1,V=!1,J=1,K=!1,Q=10,G=!0,Y=!0,Z=t.l10n.get,et=n.innerBorder*2+n.borderWidth.left+n.borderWidth.right,tt=n.innerBorder*2+n.borderWidth.top+n.borderWidth.bottom,nt=function(r,i){if(n.media[r]===undefined||n.media[r]===null)return;var s=l.length,o=n.media[r].load;if(n.media[r].effect===undefined||n.media[r].effect===null)n.media[r].effect=n.transitionEffect;var a=new t.mediaObject(e.extend({},n.media[r],{touchDevice:u,android:f,allowFrameTransparency:n.allowFrameTransparency,load:function(t){l[s]=t,e.isFunction(i)&&i(r,t);var n=null;u&&l[s].AfterMove(function(e,t){e.preventDefault(),V||((Math.abs(t.offsetX)>Math.abs(t.offsetY)?t.offsetX:t.offsetY)<0?Nt():Ct())}).Gesture(function(e){e.preventDefault(),e.scale<.9&&At()}).AfterPinch(function(e){e.preventDefault(),V?e.scale<1?bt():yt():e.scale<.9&&At()}),e.isFunction(o)&&o(t),nt(r+1,i)},error:function(e,t){a=null,e=null,nt(r+1)}}))},rt=function(t,r){if(!n.showThumbs||n.media[t]===undefined||n.media[t]===null)return;var i=e("");i.css({"background-position":"center center","background-repeat":"no-repeat","background-size":"cover",width:n.thumbSize,height:n.thumbSize,display:"none",cursor:"pointer","box-shadow":"0 0 2px "+n.background});var s="",o=n.media[t].type;n.media[t].thumbUrl===undefined?["video","youtube","vimeo"].indexOf(o)!=-1?s="res/video_thumb.png":o=="image"?s=n.media[t].url:s="res/impage.png":s=n.media[t].thumbUrl,e("").on("load",function(){i.css("background-image","url("+s+")"),e.isFunction(r)&&r(t,i)}).attr("src",s),rt(t+1,r)},it=function(e,t){t.css({"float":"left",margin:Q+"px"});if(e>0){var n;for(var r=e-1;r>=0;r--){n=C.find("[data-index="+r+"]");if(n.length>0){n.after(t);return}}}C.prepend(t)},st=function(e){C.find(".im-showbox-thumb").css("opacity",1),C.find(".im-showbox-thumb[data-index="+e+"]").css("opacity",.6);var t=n.thumbSize+Q*2,r=O.width()/2-(e*t+t/2);C.css("left",r),Y&&(C.animate({bottom:0},500),Y=!1)},ot=function(r){m=e(document.createElement("div")),M.append(m),m.addClass("showbox-bg"),!r||m.prepend(t.settings.imLoadingAnimation),m.css({position:"fixed","background-color":n.background,top:0,left:0,bottom:0,right:0,display:"none","z-index":t.settings.zIndex.showBox}).fadeTo(k,n.opacity),ut(),n.radialBg&&(/Firefox/i.test(navigator.userAgent)?m.css({"background-image":"-moz-radial-gradient(center 45deg, ellipse farthest-corner, "+t.utils.hex2rgb(n.background,80,80,80)+" 0%, "+t.utils.hex2rgb(n.background,40,40,40)+" 40%, "+t.utils.hex2rgb(n.background)+" 100%)"}):/Chrome/i.test(navigator.userAgent)&&m.css({background:"-webkit-gradient(radial, 50% 50%, 0, 50% 50%, 500, from("+t.utils.hex2rgb(n.background,80,80,80)+"), to("+t.utils.hex2rgb(n.background)+"))"}))},ut=function(e){M.append(h),h.show().click(At)},at=function(){v.css("box-shadow",n.shadow)},ft=function(){v.css("box-shadow","")},lt=function(){return X?O.width():O.width()-n.windowPadding*2-(g.outerWidth()+y.outerWidth())},ct=function(){return X?O.height():O.height()-n.windowPadding*2-Math.max(T.outerHeight(),b.outerHeight(),w.outerHeight())-N.outerHeight()},ht=function(e){var t=l[e].Width()/l[e].Height(),n=l[e].Width()+et,r=l[e].Height()+tt,i=lt(),s=ct(),o,u=l[e].GetDescription(),a=null;!u||(a=p.clone(),a.css({position:"absolute",top:-1e3,right:"auto",left:"auto",bottom:"auto"}).width(n).html(u),M.append(a),r+=a.outerHeight()),n>i&&(r=(i-et)/t+tt,n=i,!a||(a.width(n),r+=a.outerHeight()));if(r>s){n=(s-et)*t+et,r=s,o=r;if(!!a){a.width(n);var f=a.outerHeight();o-=f;var c=a.width(),h=Math.round(l[e].Width()*o/l[e].Height());a.width(h),a.outerHeight()<=f?n=Math.round(h):a.width(c)}}var d=0;return!a||(d=a.outerHeight(),a.remove()),{width:n,height:r,dHeight:d}},pt=function(e){n.showProgress&&n.media.length>1&&T.html(e+1+"/"+n.media.length)},dt=function(){return n.fullScreenEnabled&&t.utils.isFullScreenNativelySupported()&&(X?mt():vt()),!1},vt=function(){X=!0,t.utils.enterFullScreen(h.get(0)),w.html(n.buttonExitFS).attr("title",Z("showbox_tip_fs_exit","Exit FullScreen")),e(document).on("imFullScreenClose",mt),A!=null&&clearTimeout(A),A=setTimeout(Ht,4e3),e(document).on("mousemove",gt)},mt=function(){X&&(X=!1,t.utils.exitFullScreen()),w.html(n.buttonEnterFS).attr("title",Z("showbox_tip_fs_enter","Enter FullScreen")),e(document).off("imFullScreenClose",mt),e(document).off("mousemove",gt),A!=null?(clearTimeout(A),A=null):Pt()},gt=function(){A!=null?(clearTimeout(A),A=null):Pt(),A=setTimeout(Ht,4e3)},yt=function(){return n.zoomEnabled&&K&&J<6&&(V=!0,J++,Et()),!1},bt=function(){return n.zoomEnabled&&K&&J>1&&(J--,J==1&&(V=!1),Et()),!1},wt=function(){return n.zoomEnabled&&K&&V&&(J=1,V=!1,Et()),!1},Et=function(){if(!F){c.on("showboxReady",Et);return}var e=l[P].DOMObject();e.css({transform:"scale3d("+J+", "+J+", 1)","transform-origin":"50% 50% 0","transition-property":"transform","transition-duration":V?"300ms":"0"}),V?(e.addClass("grabbable"),T.fadeOut(),p.fadeOut()):(e.removeClass("grabbable"),T.fadeIn(),p.fadeIn()),e.parent().css({overflow:V?"visible":"hidden",transform:"translate3d(0, 0, 0)"}).attr("data-x",0).attr("data-y",0),xt(),St()},St=function(){if(n.zoomEnabled){var e={cursor:"pointer",position:"absolute",top:"0"},t=n.fullScreenEnabled?w.outerWidth():0;if(!K)n.media.length==1?E.css("display","none"):E.css(e).css({display:"block",right:b.outerWidth()+t}).children().addClass("disabled"),S.css("display","none"),x.css("display","none");else{var r=0;E.css(e).css({display:"block",right:r+=b.outerWidth()+t}),J<6?E.children().removeClass("disabled"):E.children().addClass("disabled"),S.css(e).css({display:V?"block":"none",right:r+=E.outerWidth()}),x.css(e).css({display:V?"block":"none",right:r+=S.outerWidth()})}}},xt=function(){var e=l[P].DOMObject(),t=e.parent(),n={},r={},i=!1,s=!1,o=!1,u=!1,a=function(n,r,i,s){var o=parseInt(t.attr("data-x"))+(r.x-n.x),u=parseInt(t.attr("data-y"))+(r.y-n.y),a=(e.outerHeight()-O.height())/2,f=(e.outerWidth()-O.width())/2;s&&(u<=-a?u=-a:u>=a&&(u=a)),i&&(o<=-f?o=-f:o>=f&&(o=f)),s?t.attr("data-y",u):u=t.attr("data-y"),i?t.attr("data-x",o):o=t.attr("data-x"),t.css("transform","translate3d("+o+"px, "+u+"px, 0)")};d.off("mousedown.zoom touchstart.zoom").on("mousedown.zoom touchstart.zoom",function(t){if(V){u=e.outerHeight()>O.height(),o=e.outerWidth()>O.width();if(o||u)t.preventDefault(),n=t.type=="mousedown"?{x:t.pageX,y:t.pageY}:{x:t.originalEvent.targetTouches[0].pageX,y:t.originalEvent.targetTouches[0].pageY},e.removeClass("grabbable").addClass("grabbing"),s=!0}}),O.off("mousemove.zoom touchmove.zoom").on("mousemove.zoom touchmove.zoom",function(e){if(s){var a,f;i=!0,r=e.type=="mousemove"?{x:e.pageX,y:e.pageY}:{x:e.originalEvent.targetTouches[0].pageX,y:e.originalEvent.targetTouches[0].pageY},u?f=parseInt(t.attr("data-y"))+(r.y-n.y):f=t.attr("data-y"),o?a=parseInt(t.attr("data-x"))+(r.x-n.x):a=t.attr("data-x"),t.css("transform","translate3d("+a+"px, "+f+"px, 0)")}}),O.off("mouseup.zoom touchend.zoom").on("mouseup.zoom touchend.zoom",function(t){s&&(s=!1,e.removeClass("grabbing").addClass("grabbable"),i&&(n.x!==r.x||n.y!==r.y)&&(t.type=="mouseup"&&(r={x:t.pageX,y:t.pageY}),a(n,r,o,u)),i=!1)})},Tt=function(t,r,i,s){var o=ht(t),u=P!==null?ht(P):{width:0,height:0};r=r?r:!1,i=i?i:!1,F=!1,K=n.media[t].type=="image",pt(t),st(t);var f=function(t){P!==null?(p.stop(!1,!1).fadeOut(k/2),l[P].AnimateOut(d,function(n){n.DOMObject().detach(),e.isFunction(t)&&t()},r)):e.isFunction(t)&&t()},h=function(){l[t].AppendTo(d),d.width(o.width-et).height(o.height-o.dHeight-tt),l[t].ContentWidth(o.width-et),l[t].ContentHeight(o.height-o.dHeight-tt);var e=null;G&&(e=n.media[t].effect,l[t].ChangeAnimation("none"),G=!1),l[t].AnimateIn(d,function(){l[t].GetDescription()!==""&&p.html(l[t].GetDescription()).fadeIn(k),e!==null&&l[t].ChangeAnimation(e),a&&l[t].DOMObject().is("iframe")?d.css({overflow:"scroll","-webkit-overflow-scrolling":"touch"}):d.css({overflow:"hidden","-webkit-overflow-scrolling":""}),F=!0,c.trigger("showboxReady")},r)},v=function(){var e=(O.height()-o.height)/2,t=Math.max(T.outerHeight(),b.outerHeight(),w.outerHeight())+n.windowPadding,r=N.outerHeight()+n.windowPadding;if(!X){if(e32?L:k,complete:function(){c.css("overflow","visible").trigger("showboxReady"),!n.shadow||at(),e.isFunction(t)&&t()}})},g=function(){P=t,y||s?m(function(){h()}):h()},y=u.width!=o.width||u.height!=o.height;i||!y?(f(),g()):f(g)},Nt=function(){return V&&wt(),Mt(),P+1 1&&(y.stop(!0,!0).css(e).css({top:(O.height()-y.height())/2,left:0}).fadeIn(k),g.stop(!0,!0).css(e).css({top:(O.height()-g.height())/2,right:0}).fadeIn(k)),n.fullScreenEnabled&&w.stop(!0,!0).css(e).css({top:0,display:"block",right:b.outerWidth()}),St()},Dt=function(e){A=null,e=e||!1,y.add(g).stop(!1,!1).fadeOut(e?0:L)},Pt=function(){h.removeClass("imHideShowBoxControls")},Ht=function(){h.addClass("imHideShowBoxControls"),A=null},Bt=function(){!n.sound||(D=new Audio(n.sound),D.play())};c=e(''),h=e(''),d=e(""),p=e(""),b=e('').html(n.buttonClose),g=e('').html(n.buttonRight),y=e('').html(n.buttonLeft),w=e('').html(n.buttonEnterFS),E=e('').html(n.buttonZoomIn),S=e('').html(n.buttonZoomOut),x=e('').html(n.buttonZoomRestore),T=e(''),N=e(''),C=e(''),g.css({display:"none"}).click(Nt).attr("title",Z("showbox_tip_next","Next")).on("selectstart mousedown",function(){return!1}),y.css({display:"none"}).click(Ct).attr("title",Z("showbox_tip_prev","Previous")).on("selectstart mousedown",function(){return!1}),d.addClass(n.boxClass).css({position:"relative",height:"100%",overflow:"hidden"}),p.css({"font-family":n.fontFamily,"font-size":n.fontSize,color:n.textColor,"padding-top":0,"padding-left":n.innerBorder,"padding-right":n.innerBorder,"padding-bottom":n.innerBorder,"text-align":n.textAlignment,"font-style":n.fontStyle,"font-weight":n.fontWeight,"line-height":1.4,position:"absolute",right:0,left:0,bottom:0}),b.css({position:"absolute",right:0,top:0,cursor:"pointer",display:"block"}).click(At).attr("title",Z("showbox_tip_close","Close")),w.css({display:"none"}).click(dt).attr("title",Z(t.utils.isFullScreenNativelySupported()?"showbox_tip_fs_enter":"showbox_tip_fs_unavailable"),t.utils.isFullScreenNativelySupported()?"Enter FullScreen":"FullScreen unavailable").children().addClass(t.utils.isFullScreenNativelySupported()?"":"disabled"),E.css({display:"none"}).click(yt).attr("title",Z("showbox_tip_zoom_in","Zoom In")),S.css({display:"none"}).click(bt).attr("title",Z("showbox_tip_zoom_out","Zoom Out")),x.css({display:"none"}).click(wt).attr("title",Z("showbox_tip_zoom_restore","Zoom Restore")),T.css({position:"absolute",padding:10,top:0,left:0,"text-shadow":"0 0 2px "+n.background}).addClass("im-common-button-text-style"),N.css({position:"absolute",bottom:0,left:0,width:"100%",display:"none"}),C.css({position:"absolute",bottom:-(n.thumbSize+Q*2),left:0,width:n.media.length*(n.thumbSize+Q*2),"transition-duration":"200ms"}),N.append(C),c.click(function(e){e.stopPropagation()}),h.append(c).append(b).append(w).append(E).append(S).append(x).append(y).append(g).append(T).append(N).css({position:"fixed",top:0,left:0,bottom:0,right:0,display:"none","z-index":t.settings.zIndex.showBox+1}),c.append(d).append(p).append(t.settings.imLoadingAnimation).css({position:"fixed","background-position":"center center","background-repeat":"no-repeat","border-radius":n.borderRadius,"z-index":t.settings.zIndex.showBox+2,overflow:"visible"}),[b,y,g,w,E,S,x,T,N].map(function(e){e.css("z-index",t.settings.zIndex.showBox+3)}),F?_t():c.on("showboxReady",_t),v=n.boxColor=="transparent"&&(n.borderWidth.top===0&&n.borderWidth.bottom===0&&n.borderWidth.left===0&&n.borderWidth.right===0||n.borderColor=="transparent transparent transparent transparent")?d:c,u&&(U=O.scrollTop(),R=O.scrollLeft(),q=_.find('meta[name="viewport"]'),q.length||(q=e(''),_.append(q)),z=q.attr("content"),q.attr("content",z+", user-scalable=no, maximum-scale=1")),n.autoplay&&c.one("showboxReady",Ot),n.showThumbs&&(N.css({display:"block",height:n.thumbSize+Q*2}),rt(0,function(e,t){it(e,t),t.fadeIn(k).click(function(){return Tt(e),!1})}));switch(n.effect){case"none":case"fade":case"move":ot(),c.css({width:32,height:32,left:(O.width()-32)/2,"background-color":n.boxColor,top:n.effect!="move"?(O.height()-32)/2:-50,padding:n.innerBorder,"border-top-width":n.borderWidth.top,"border-right-width":n.borderWidth.right,"border-bottom-width":n.borderWidth.bottom,"border-left-width":n.borderWidth.left,"border-style":"solid","border-color":n.borderColor,display:n.effect!="move"?"none":"block"});var jt=function(){nt(0,function(e,t){e===r&&(c.find(".imLoadAnim").remove(),Tt(r,!1,!1),Bt())}),M.keydown(Lt),O.resize(kt)};n.effect!="move"?c.fadeIn(k,jt):(c.animate({top:(O.height()-32)/2},{duration:k}),jt());break;case"zoom":case"hide":var Ft=i.offset();Ft.left-=O.scrollLeft(),Ft.top-=O.scrollTop(),ot(),c.css({width:i.width(),height:i.height(),left:Ft.left,top:Ft.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(k),nt(0,function(e,t){if(e===r){P=e,K=n.media[e].type=="image",pt(e);var s=null;i.is("img")&&(s=i.clone().css({width:"100%",height:"100%"}),d.append(s)),n.effect=="hide"&&i.css("visibility","hidden"),c.find(".imLoadAnim").remove();var o=ht(e),u=t.DOMObject();u.css({top:0,left:0,width:"100%",height:"100%",display:"none"}),d.append(u),d.stop(!0,!0).animate({width:o.width-et,height:o.height-o.dHeight-tt},{duration:k}),t.TriggerAnimationInStart(),c.css({"background-color":n.boxColor,"border-top-width":0,"border-right-width":0,"border-bottom-width":0,"border-left-width":0,"border-style":"solid","border-color":n.borderColor}).stop(!0,!0).animate({padding:n.innerBorder,width:o.width-et,height:o.height-tt,"border-top-width":n.borderWidth.top,"border-right-width":n.borderWidth.right,"border-bottom-width":n.borderWidth.bottom,"border-left-width":n.borderWidth.left,top:(O.height()-o.height)/2,left:(O.width()-o.width)/2},{duration:k,complete:function(){st(e),F=!0,c.trigger("showboxReady"),u.width(o.width-et).height(o.height-o.dHeight-tt),Tt(e),n.shadow!==""&&at(),t.TriggerAnimationInEnd()}}),!s||s.fadeOut(function(){s.remove()}),u.fadeIn(k),p.empty().fadeOut(k),Bt(),M.keydown(Lt),O.resize(kt)}});break;case"custom":!n.customEffect||(ot(!0),c.css({width:32,height:32,left:(O.width()-32)/2,"background-color":n.boxColor,top:n.effect!="move"?(O.height()-32)/2:-50,padding:n.innerBorder,"border-top-width":n.borderWidth.top,"border-right-width":n.borderWidth.right,"border-bottom-width":n.borderWidth.bottom,"border-left-width":n.borderWidth.left,"border-style":"solid","border-color":n.borderColor,display:"none"}),nt(0,function(e,t){e===r&&(m.find(".imLoadAnim").remove(),c.fadeIn(k,function(){c.find(".imLoadAnim").remove(),Tt(r,!1,!1);var e=function(){c.addClass(n.customEffect)};navigator.userAgent.indexOf("MS IE")>-1?setTimeout(e,2):e(),Bt()}))}),M.keydown(Lt),O.resize(kt))}return!1}})}(_jq,x5engine),function(e,t){"use strict";e.extend(t,{imSlider:{Horizontal:function(n,r){var i=e(n),s=0,o=0,u=i.find(".imGlContent"),a=i.find(".imRunner"),f=0,l=!1,c=e("html").hasClass("touchevents"),h=null,p=e.extend({helperBg:"black",swipeImage:"res/move.png",visibleImagesCount:0},r);if(!c)o=a.find("img").length,i.find(".imLeftArrow").not(".hiddenArrow").off("click").on("click",function(){s===0?s=o-p.visibleImagesCount:(s-=p.visibleImagesCount,s=Math.max(s,0)),f=-a.find("img").eq(s).position().left,a.stop(!1,!1).animate({left:f})}),i.find(".imRightArrow").not(".hiddenArrow").off("click").on("click",function(){var e=o-p.visibleImagesCount;s>=e?s=0:(s+=p.visibleImagesCount,s=Math.min(s,e)),f=-a.find("img").eq(s).position().left,a.stop(!1,!1).animate({left:f})});else{i.find(".imLeftArrow").add(i.find(".imRightArrow")).css("visibility","hidden");var d=a.find("img").outerWidth(!0),v=null,m=new t.mediaObject({type:"dom",url:n+" .imRunner",width:a.width(),height:a.height(),effect:"none",touchDevice:!0,load:function(e){var t,n,r,i,s=a.width(),o=u.width();e.TriggerAnimationInStart().TriggerAnimationInEnd().BeforeMove(function(e){a.stop(!1,!1),r=e.touches[0].pageX,i=f,d=a.find("img").outerWidth(!0),t=null}).Move(function(e){e.preventDefault(),n=t,f=t=i-(r-e.touches[0].pageX);if(t<-s+o||t>0)f=i-(r-e.touches[0].pageX)/2;window.cancelAnimFrame(v),v=window.requestAnimFrame(function(){a.css("left",f)}),r=e.touches[0].pageX,i=f}).AfterMove(function(e){e.preventDefault();if(!!t){!n||(t+=(t-n)*6);var r=Math.abs(t%d);r>d/2?t-=d-r:t+=r,a.stop(!1,!1).animate({left:Math.min(Math.max(t,-s+o),0)},{duration:1e3,easing:"iOsSwing",step:function(e,t){t.prop=="left"&&(f=e)}})}l=!1})}});h=e('').css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(e("").css({background:p.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0}).fadeTo(0,.75)).append(e("").css({background:"transparent url('"+p.swipeImage+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0})),u.append(h)}},Vertical:function(n,r){var i=e(n),s=0,o,u=i.find(".imGlContent"),a=i.find(".imRunner").on("dragstart",function(){return!1}),f=0,l=!1,c=e("html").hasClass("touchevents"),h=null,p=e.extend({helperBg:"black",swipeImage:"res/move.png",visibleImagesCount:0},r);if(!c)o=a.find("img").length,i.find(".imTopArrow").off("click").on("click",function(){s===0?s=o-p.visibleImagesCount:(s-=p.visibleImagesCount,s=Math.max(s,0)),f=-a.find("img").eq(s).position().top,a.stop(!1,!1).animate({top :f})}),i.find(".imBottomArrow").off("click").on("click",function(){var e=o-p.visibleImagesCount;s>=e?s=0:(s+=p.visibleImagesCount,s=Math.min(s,e)),f=-a.find("img").eq(s).position().top,a.stop(!1,!1).animate({top:f})});else{i.find(".imTopArrow").add(i.find(".imBottomArrow")).css("visibility","hidden");var d=0,v=null,m=new t.mediaObject({type:"dom",url:n+" .imRunner",width:a.width(),height:a.height(),effect:"none",touchDevice:!0,load:function(e){var t,n,r,i,s=a.height(),o=u.height();e.TriggerAnimationInStart().TriggerAnimationInEnd().BeforeMove(function(e){a.stop(!1,!1),r=e.touches[0].pageY,i=f,d=a.find("img").outerHeight(!0),t=null}).Move(function(e){e.preventDefault(),n=t,f=t=i-(r-e.touches[0].pageY);if(t<-s+o||t>0)f=i-(r-e.touches[0].pageY)/2;window.cancelAnimFrame(v),v=window.requestAnimFrame(function(){a.css("top",f)}),r=e.touches[0].pageY,i=f}).AfterMove(function(e){e.preventDefault();if(!!t){!n||(t+=(t-n)*6);var r=Math.abs(t%d);r>d/2?t-=d-r:t+=r,a.stop(!1,!1).animate({top:Math.min(Math.max(t,-s+o),0)},{duration:1e3,easing:"iOsSwing",step:function(e,t){t.prop=="top"&&(f=e)}})}l=!1})}});h=e('').css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(e("").css({background:p.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0}).fadeTo(0,.75)).append(e("").css({background:"transparent url('"+p.swipeImage+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0})),u.append(h)}},Page:function(n,r){var i=e(n),s=e(n+" .imSPage"),o=e(n+" .imRunner").on("dragstart",function(){return!1}),u=0,a=10,f=!1,l=e("html").hasClass("touchevents"),c=s.width(),h=s.length*c,p=null,d=e.extend({helperBg:"black",swipeImage:"res/move.png"},r);if(t.responsive.getCurrentBreakPoint().fluid){o.width("auto");return}o.width(h);if(!l){i.append(' ');var v=e(n+" .imSControls");v.css({"border-radius":a+"px "+a+"px 0 0",color:"black",bottom:-v.height()-50}),e(n+" .imPPrev").off("click").on("click",function(){u+c>0?u=-h+c:u+=c,o.animate({left:u})}),e(n+" .imPNext").off("click").on("click",function(){u-c<-h+c?u=0:u-=c,o.animate({left:u})}),i.mouseleave(function(){v.stop(!0,!0).animate({bottom:-v.height()-50})}).mouseover(function(){v.stop(!0,!0).animate({bottom:0})})}else{var m=new t.mediaObject({type:"dom",url:n+" .imRunner",width:h,height:o.height(),effect:"none",touchDevice:!0,load:function(e){var t,n,r,s,a=i.width();e.TriggerAnimationInStart().TriggerAnimationInEnd().BeforeMove(function(e){o.stop(!1,!1),r=e.touches[0].pageX,s=u,t=null}).Move(function(e){e.preventDefault(),n=t,u=t=s-(r-e.touches[0].pageX);if(t<-h+a||t>0)u=s-(r-e.touches[0].pageX)/2;o.css("left",u),r=e.touches[0].pageX,s=u}).AfterMove(function(e,r){e.preventDefault();if(!!t){var i=Math.abs(t%c);t+=i,Math.abs(r.offsetX)>30&&(t+=t-i-n<0?-c:c),o.stop(!1,!1).animate({left:Math.min(Math.max(t,-h+a),0)},{duration:1e3,easing:"iOsSwing",step:function(e,t){t.prop=="left"&&(u=e)}})}f=!1})}});p=e('').css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(e("").css({background:d.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0}).fadeTo(0,.75)).append(e("").css({background:"transparent url('"+d.swipeImage+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0})),i.append(p)}}}})}(_jq,x5engine),function(e,t){"use strict";e.extend(t,{imSplashBox:function(n){var r='",i=500,s,o,u,a,f,l=null,c=e(),h=e(window);n=e.extend(!0,{id:"splash",effect:"fade",position:"center",shadow:!0,margin:10,cookie:!1,priority:0,link:"",media:null,text:"",sound:"",onClose:null,elementClose:r,offlineTimeStamp:0},n);var p="im_splash"+n.id+(!t.utils.isOnline()&&!!n.offlineTimeStamp?"_"+n.offlineTimeStamp:"");if(n.cookie&&e.imCookie(p)=="true")return!1;var d=function(){var e,t,r;f?(c=f.DOMObject(),s.add(c).css({width:"",height:"",right:"",bottom:""}),u=f.Width(),a=f.Height()):(u=s.width(),a=s.height()),t=h.width()-40,r=h.height()-40,u>t?(u=t,s.add(c).outerWidth(u),a=s.outerHeight()):s.add(c).outerWidth(u),!!c.length&&a>r&&(u=r/a*u,a=r,s.add(c).outerHeight(a).outerWidth(u));switch(n.position){case"center":o={left:(h.width()-u)/2,top:(h.height()-a)/2};break;case"center-left":o={left:n.margin,top:(h.height()-a)/2};break;case"center-right":o={left:h.width()-u-n.margin,top:(h.height()-a)/2};break;case"bottom":o={left:(h.width()-u)/2,top:h.height()-a-n.margin};break;case"bottom-right":o={left:h.width()-u-n.margin,top:h.height()-a-n.margin};break;case"bottom-left":o={left:n.margin,top:h.height()-a-n.margin};break;case"top":o={left:(h.width()-u)/2,top:n.margin};break;case"top-right":o={left:h.width()-u-n.margin,top:n.margin};break;case"top-left":o={left:n.margin,top:n.margin}}s.css(o)},v=function(t){n.cookie&&e.imCookie(p,"true",{expires:0}),e.isFunction(n.onClose)&&n.onClose(),s.fadeOut(200,function(){s.remove(),l&&l.pause()}),t.stopPropagation()},m='<
>
';n.elementClose!==""&&(m+='",e("body").append(m),s=e("#"+n.id).fadeOut(0).css({zIndex:t.settings.zIndex.splashBox+n.priority}),n.shadow&&s.css("box-shadow","0px 3px 7px #000");var g=function(t){var r=f?f.DOMObject():s.find(".splashContent");setTimeout(function(){s.fadeIn(0),s.fadeOut(0),d();var f;h.resize(function(){clearTimeout(f),f=setTimeout(d,100)}),s.find(".close").click(v),r.click(function(){e.isFunction(n.link)?n.link.call(s):n.link!==""&&(location.href=n.link)});switch(n.effect){case"fromtop":s.css({top:-e(window).height()-a}),s.fadeIn(0),s.animate(o,{duration:i,complete:t});break;case"frombottom":s.css({top:e(window).height()+a}),s.fadeIn(0),s.animate(o,{duration:i,complete:t});break;case"fromleft":s.css({left:-u}),s.fadeIn(0),s.animate(o,{duration:i,complete:t});break;case"fromright":s.css({left:u+h.width()}),s.fadeIn(0),s.animate(o,{duration:i,complete:t});break;case"fade":s.fadeIn(i,t);break;default:s.css("display",""),s.addClass(n.effect),e.isFunction(t)&&t()}!n.sound||!n.sound||(l=new Audio(n.sound),l.play())},500)};if(!n.media)g();else{var y=n.media.load;f=new t.mediaObject(e.extend(n.media,{load:function(t){t.AppendTo(e(".mediaTarget")),t.DOMObject().css("position",""),setTimeout(function(){g(function(){e.isFunction(y)&&y(t)})},100)}}))}return{close:function(){e.isFunction(v)&&v()}}}})}(_jq,x5engine),function(e,t){"use strict";e.extend(t,{imTip:{constants:{locked:"imFixedTip",classId:"imTip",arrowClassId:"imTipArrow",borderClassId:"imTipArrowBorder",visibleClassId:"imTipVisible",topClassId:"imTipTop",bottomClassId:"imTipBottom",leftClassId:"imTipLeft",rightClassId:"imTipRight"},Show:function(n,r){var i=null,s=t.settings.imTip,o=!1,u=null,a=null,f=200,l="top",c=!1,h=!1,p=t.imTip,d=t.utils,v=t.imForm,m=p.constants.classId,g=d.createId(m),y=p.constants.arrowClassId,b=p.constants.borderClassId,w=v.constants.mark,E=p.constants.locked,S=null,x="",T="",N=null,C=e(window);n=e(n),r=e.extend(!0,{classes:s.classes,arrow:s.arrow,shape:s.shape,position:s.position,effect:s.effect,showTail:s.showTail,hideOnFocus:!1,hideOnBlur:!1,persistant:s.persistant,unique:s.unique,text:"",width:0,target:n},r),n.attr("id")||n.attr("id",d.createId(m+"_target")),T=n.attr("alt"),x=n.attr("title"),n.attr("title","").attr("alt",""),"text"in r&&!!r.text&&(r.text=r.text.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"'));var k=function(){var t=e("[tiptarget="+n.attr("id")+"]");if(t.length===0||t.length>0&&t.html().indexOf(r.text)==-1)r.unique&&e("."+m).length>0&&(e("."+m).remove(),f=0),n.addClass(E),o=!1,L();if(r.hideOnFocus===!0)n.hasClass("imDatePickerIcon")?(n.parent().prev("input[type=text]").focus(function(){o=!0,n.removeClass(w),P()}),n.click(function(){n.parent().prev("input[type=text]").focus()})):n.on("click focus",function(){o=!0,n.removeClass(w),P()});else if(typeof r.hideOnFocus=="object"||typeof r.hideOnFocus=="string")e(r.hideOnFocus).click(function(){o=!0,e(r.hideOnFocus).removeClass(w),n.removeClass(w),P()}),n.click(function(){o=!0,n.removeClass(w),e(r.hideOnFocus).removeClass(w),P()});r.hideOnBlur===!0&&n.on("blur",function(){o=!0,n.removeClass(w),P()})},L=function(){if(!c){var s=e("[tiptarget="+n.attr("id")+"]");if(!s.length){N=e('');var a=e('"),!n.text||(m+=' "),m+=n.media?'':"",m+="'+n.elementClose+""+"'+(r.showTail?'':"")+"");e("body").append(N.append(a)),a.append(''+r.text+""),u=e("#"+g).css({zIndex:t.settings.zIndex.tip}),c=!0;if(r.width>0)u.width(r.width);else{u.css("white-space","nowrap");var f=u.find("."+y).outerWidth(),l=u.find("."+b).outerWidth()}r.arrow||(u.find("."+y).fadeOut(),u.find("."+b).fadeOut()),u.add(n).mouseleave(D).mouseenter(_),clearTimeout(i),o=!1;if(u.find("img").length>0){var h=u.find("img"),p=h.attr("src");h.removeAttr("src").one("load",function(){var e=A(r.position,u);setTimeout(function(){M(e,u)},100)}).attr("src",p)}else{var d=A(r.position,u);setTimeout(function(){M(d,u)},100)}}else s!==null&&s.html().indexOf(r.text)==-1&&s.find("."+b).before("
"+r.text)}},A=function(e,t,n){O(e,t);var i,s,o=r.target.offset(),u=0,a=10,f=t.find("."+y),l=t.find("."+b),c=0;o===undefined?o={top:0,left:0,bottom:0,right:0}:(o.top-=r.target.scrollTop(),o.left-=r.target.scrollLeft()),n=n||0,r.showTail&&(u=f.outerWidth(),a=l.outerWidth());var h="";r.shape=="classic"?h=t.css("background-color"):r.shape=="bloated"&&r.shape=="round"&&(h=f.css("background-color"));if(e=="top"){if(n<3&&o.top-t.outerHeight()-u-10-C.scrollTop()<0)return A("bottom",t,n+1);s=o.left+(r.target.outerWidth()-t.outerWidth())/2,i=o.top-t.outerHeight()-u,s=Math.max(s,10),s+t.outerWidth()>C.width()&&(s=C.width()+C.scrollLeft()-t.outerWidth()-10),c=Math.floor((t.innerWidth()-u)/2);if(r.shape=="classic"||r.shape=="bloated"||r.shape=="round"){var p=0;if(r.shape=="bloated"||r.shape=="round")p=3;p-=u;var d=p+1;if(r.shape=="bloated"||r.shape=="round")d+=1;f.css({borderLeftColor:"transparent",borderRightColor:"transparent",borderBottomColor:"transparent",borderTopColor:h,position:"absolute",left:c,bottom:d}),l.css({borderLeftColor:"transparent",borderRightColor:"transparent",borderBottomColor:"transparent",position:"absolute",left:c,bottom:p})}else r.shape!="polygon"&&f.css({position:"absolute",left:c,bottom:-u})}else if(e=="bottom"){if(n<3&&o.top+r.target.outerHeight()+u-C.scrollTop()>C.height())return A("left",t,n+1);s=o.left+(r.target.outerWidth()-t.outerWidth())/2,i=o.top+r.target.outerHeight()+u,s=Math.max(s,10),s+t.outerWidth()>C.width()&&(s=C.width()+C.scrollLeft()-t.outerWidth()-10),c=Math.floor((t.innerWidth()-u)/2);if(r.shape=="classic"||r.shape=="bloated"||r.shape=="round"){var p=0;if(r.shape=="bloated"||r.shape=="round")p=3;p-=u;var d=p+1;if(r.shape=="bloated"||r.shape=="round")d+=1;f.css({borderLeftColor:"transparent",borderRightColor:"transparent",borderTopColor:"transparent",borderBottomColor:h,position:"absolute",left:c,top:d}),l.css({borderLeftColor:"transparent",borderRightColor:"transparent",borderTopColor:"transparent",position:"absolute",left:c,top:p})}else r.shape!="polygon"&&f.css({position:"absolute",left:c,top:-u,transform:"rotate(180deg)"})}else if(e=="left"){if(n<3&&o.left-t.outerWidth()-C.scrollLeft()<0)return A("top",t,n+1);s=o.left-t.outerWidth()-u,i=o.top+(r.target.outerHeight()-t.outerHeight())/2;if(i-C.scrollTop()<0)return A("bottom",t,n+1);if(i+t.outerHeight()-C.scrollTop()>C.height())return A("top",t,n+1);if(r.shape=="classic"||r.shape=="bloated"||r.shape=="round"){var p=0;if(r.shape=="bloated"||r.shape=="round")p=5;p-=u;var d=p+1;if(r.shape=="bloated"||r.shape=="round")d+=1;f.css({borderRightColor:"transparent",borderBottomColor:"transparent",borderTopColor:"transparent",borderLeftColor:h,position:"absolute",right:d,top:(t.innerHeight()-u)/2}),l.css({borderRightColor:"transparent",borderBottomColor:"transparent",borderTopColor:"transparent",position:"absolute",right:p,top:(t.innerHeight()-u)/2})}else f.css({position:"absolute",right:-u+3,top:(t.innerHeight()-u)/2,transform:"rotate(-90deg)"})}else if(e=="right"){if(n<3&&o.left+r.target.outerWidth()+t.outerWidth()-C.scrollLeft()>C.width())return A("top",t,n+1);s=o.left+r.target.outerWidth()+u,i=o.top+(r.target.outerHeight()-t.outerHeight())/2;if(i-C.scrollTop()<0)return A("bottom",t,n+1);if(i+t.outerHeight()-C.scrollTop()>C.height())return A("top",t,n+1);if(r.shape=="classic"||r.shape=="bloated"||r.shape=="round"){var p=0;if(r.shape=="bloated"||r.shape=="round")p=5;p-=u;var d=p+1;if(r.shape=="bloated"||r.shape=="round")d+=1;f.css({borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:"transparent",position:"absolute",borderRightColor:h,left:d,top:(t.innerHeight()-u)/2}),l.css({borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:"transparent",position:"absolute",left:p,top:(t.innerHeight()-u)/2})}else f.css({position:"absolute",left:-u+3,top:(t.innerHeight()-u)/2,transform:"rotate(90deg)"})}return[i,s]},O=function(e,t){t.removeClass(p.constants.topClassId),t.removeClass(p.constants.bottomClassId),t.removeClass(p.constants.leftClassId),t.removeClass(p.constants.rightClassId);switch(e){case"top":t.addClass(p.constants.topClassId);break;case"bottom":t.addClass(p.constants.bottomClassId);break;case"left":t.addClass(p.constants.leftClassId);break;case"right":t.addClass(p.constants.rightClassId)}},M=function(e,t){n.hasClass(E)&&(t.css({top:e[0],left:e[1]}),t.addClass(p.constants.visibleClassId))},_=function(){clearTimeout(i),o=!1},D=function(){r.persistant||(clearTimeout(i),i=setTimeout(P,250),o=!0)},P=function(){clearTimeout(i),o&&(n.removeClass(E),!u||(u.find("object, embed").remove(),u.removeClass(p.constants.visibleClassId),setTimeout(function(){!N||N.remove(),c=!1,n.attr("title",x).attr("alt",T)},f)))};return k(),g}}})}(_jq,x5engine),function(e,t){"use strict";e.extend(t,{topic:function(n){var r=e.extend({target:null,scrollbar:!0},n),i=e(r.target),s=i.find(".topic-comments"),o=i.find(".topic-summary"),u=i.find(".topic-form"),a=u.find("form"),f=0,l=0,c=null,h=null,p=0,d=0,v=null,m=0,g=!1,y=null;if(!i.length)return;if(r.scrollbar&&s.length){var b=function(){l=s.outerHeight(!0),f=i.height(),o.length&&(f-=o.outerHeight(!0)),u.length&&(f-=u.outerHeight(!0))},w=function(e){e=Math.max(-l+f,Math.min(0,e)),s.css("top",e),e=e/(f-l)*(d-m),v.css("top",e)};b();if(l>f){s.width(s.width()-10),b(),c=e("").css({overflow:"hidden",position:"relative"}).height(f),s.css({position:"absolute",top:0,left:0}).wrap(c),c=s.parent(),h=e("").css({position:"absolute",top:0,right:4,bottom:0,"background-color":"#aaa"}).width(2),c.append(h),h.append(v=e("").css({position:"absolute",top:0,left:-4,"border-radius":4,"background-color":"#888",cursor:"pointer"}).width(10).height(m=f/l*f)),p=h.offset().top,d=h.height(),v.mousedown(function(e){e.preventDefault(),g=!0}).on("dragstart",function(){return!1}),e("body").mouseup(function(e){e.preventDefault(),g=!1}).mousemove(function(e){g&&(y!==null&&window.cancelAnimFrame(y),y=window.requestAnimFrame(function(){var t=e.pageY-p-m/2;t=Math.max(0,Math.min(d-m,t)),v.stop(!1,!1).css("top",t),s.stop(!1,!1).css("top",-t/(d-m)*(l-f)),y=null}))}).mouseleave(function(e){g=!1}),c.on("mousewheel DOMMouseScroll",function(e){return e.preventDefault(),y!==null&&window.cancelAnimFrame(y),y=window.requestAnimFrame(function(){var t=(e.originalEvent.detail?e.originalEvent.detail:e.originalEvent.wheelDelta)>0?-20:20;t*=/(Chrome|IE)/gi.test(navigator.userAgent)?-1:1;var n=s.position().top+t;w(n),y=null}),!1});var E=0;c[0].addEventListener("touchstart",function(e){e.touches.length>0&&(e.preventDefault(),E=e.touches[0].pageY)}),c[0].addEventListener("touchmove",function(e){if(e.touches.length>0){e.preventDefault();var t=s.position().top-E+e.touches[0].pageY;w(t),E=e.touches[0].pageY}})}}i.find(".variable-star-rating").each(function(){var n=e(this),r=n.width(),i=n.children("span"),s=i.width(),o=5,u=r/o,a=n.attr("data-url");n.mousemove(function(r){var o=Math.floor((r.pageX-n.offset().left)/u)+1;i.width(o*u),n.off("mouseleave").mouseleave(function(){i.width(s)}),n.off("click").one("click",function(){if(a!==undefined)t.utils.isOnline()&&e.ajax({url:a,type:"POST",data:{x5topicid:n.attr("data-id"),rating:o,imJsCheck:"jsactive"},success:function(){t.utils.isOnline()&&e.imCookie("vtd"+n.attr("data-id"),"1",{path:"/"}),window.top.location.reload()}});else{var r=o;n.parent().find("input[type=hidden]").remove(),n.after(''),s=r*u}})})})}})}(_jq,x5engine),function(e,t){e.extend(t.utils,{yaKnowWhatToDo:function(e){var t="jaD9sD3AW423lka25_uncz2j3n9N-2na9HWB23'N@22d23",n,r,i="";try{for(n=0,r=0;n '),t=!!$.imCookie("browser-check-proceed"),n=$("body");n.append(e);if(e.css("position")!="absolute"&&!t){var r=x5engine.l10n,i=r.get("browser_compat_1","Your browser is too old and does not provide the features needed to view this website."),s=r.get("browser_compat_2","Stay up to date and [1]download a modern browser[/1] or [2]proceed anyway[/2]."),o=r.get("browser_compat_link","http://outdatedbrowser.com/");s=s.replace(/\[1\]/g,'').replace(/\[2\]/g,'').replace(/\[\/[0-9]+\]/g,"");var u=$(' ");return n.append(u),u.find(".proceed-button").on("click",function(){$.imCookie("browser-check-proceed","true"),u.remove()}),!1}return e.remove(),!0},isElementInViewport:function(e,t){t===undefined&&(t=0),t>$(e).outerHeight()&&(t=$(e).outerHeight()-1);var n=$(window),r={top:n.scrollTop(),left:n.scrollLeft()};r.right=r.left+n.width(),r.bottom=r.top+n.height();var i={top:$(e).offset().top,left:$(e).offset().left};return i.right=i.left+$(e).outerWidth(),i.bottom=i.top+$(e).outerHeight(),!(r.righti.right||r.bottom-t i.bottom)},onElementInViewPort:function(e,t,n){if(!$.isFunction(t))return;if(x5engine.utils.isElementInViewport(e,n)){t();return}var r=function(){x5engine.utils.isElementInViewport(e,n)&&(t(),$(window).off("scroll",r))};$(window).on("scroll",r)},onLazyLoadedElement:function(e,t){if(!$.isFunction(t))return;var n=function(){$(e).off("imLazyLoadingEnd",".imlazyloading",n),t()};$(e).on("imLazyLoadingEnd",".imlazyloading",n)},revealObject:function(e){var t=$(e),n=$("#imContent");x5engine.utils.supportAnimation(e)?(t.on("webkitAnimationEnd oanimationend msAnimationEnd animationend",function(e){t.off("webkitAnimationEnd oanimationend msAnimationEnd animationend"),t.trigger("imObjectAnimationEnd"),t.parents(".imPageRow").css("overflow",""),n.trigger("change")}),t.addClass("animated"),t.trigger("imObjectAnimationStart"),t.parents(".imPageRow").css("overflow","hidden"),n.trigger("change")):(t.trigger("imObjectAnimationStart").trigger("imObjectAnimationEnd"),n.trigger("change"))},supportAnimation:function(e){return!$("html").hasClass("no-cssanimations")},imPreloadImages:function(e){var t=$(window);t.x5ImageCache=[];var n=t.x5ImageCache;for(var r=0;r '),function t(){typeof window.swfobject=="object"&&$.isFunction(window.swfobject.embedSWF)?$.isFunction(e)&&e():setTimeout(t,500)}()},isInFullScreenMode:function(){return!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)},setupPage:function(){setTimeout(function(){eval(atob("eDVlbmdpbmUuaW1TcGxhc2hCb3goe3Bvc2l0aW9uOiAiYm90dG9tLWxlZnQiLCB0ZXh0OiB4NWVuZ2luZS5sMTBuLmdldCgiYmFubmVyX2RlbW8iKSwgaWQ6ICJkbS1tZXNzYWdlIiwgZWxlbWVudENsb3NlOiAiWCJ9KQ=="))},5e3)}})}(_jq,x5engine),function(e,t){e.extend(t.utils,{enterFullScreen:function(e){if(a.isFullScreen())return;a.open(e,{toggleClass:"im-fullscreen-entered",styles:{overflow:"hidden"}})},exitFullScreen:function(){if(!a.isFullScreen())return;a.exit()},isFullScreen:function(){return a.isFullScreen()},fullScreenElement:function(){return a.element()},isFullScreenNativelySupported:function(){var e=navigator.userAgent.match(/Android.*Chrome\/(\d+)\./);if(!!e&&parseInt(e[1])<37)return!1;var t=i("fullscreenEnabled");return n(i("fullscreenElement"))&&(!n(t)||t===!0)}});var n=function(e){return typeof e!="undefined"},r=function(t,n,r){var i=function(){};i.prototype=n.prototype,t.prototype=new i,t.prototype.constructor=t,n.prototype.constructor=n,t._super=n.prototype,r&&e.extend(t.prototype,r)},i=function(e,t){var r=[["",""],["exit","cancel"],["screen","Screen"]],i=["","o","ms","moz","webkit","webkitCurrent"],s;typeof e=="string"&&(t=e,e=document);for(var o=0;o ").replace(/\</g,"<");if(a.graphics){var l=a.effect!="none"?200:0;r&&i&&r.add(i).remove();var c=function(){r.width(Math.min(a.width,u.width()-40)).css({top:(u.height()-r.outerHeight())/2,left:(u.width()-r.outerWidth())/2})};i=e('').css("z-index",t.settings.zIndex.popup).click(function(){f(l)}).fadeOut(1,function(){e(this).fadeTo(l,a.opacity)}),r=e(' '+a.text+'').css({zIndex:t.settings.zIndex.popup+1,"border-radius":a.borderRadius+"px","box-shadow":a.shadow!==""?a.shadow:"0"}).hide(0),s=r.find(".imGuiButton").css("border-radius",a.borderRadius+"px").click(function(){f(l)}),o.append(i,r),c(),r.fadeIn(l);var h=null;e(window).on("resize",function(){clearTimeout(h),h=setTimeout(c,50)})}else window.alert(a.text.replace(/OK
/g,"\n").replace(/<([A-Z][A-Z0-9]*)\b[^>]*\/?>/g,""))},this.removeLabels=function(){e(".imGuiLabel").remove()},this.showLabel=function(t){var n=e(""+t.text+"").css({"box-shadow":t.shadow,"border-radius":"3px"});e("body").append(n);if(t.object!==null){var r=e(t.object),i=r.offset(),s=Math.max(0,i.top+Math.floor((r.outerHeight()-n.outerHeight())/2));n.css({position:"absolute",top:s,left:i.left+r.outerWidth()+10})}else{n.css({width:200,height:50,padding:10});var o=n.outerHeight(),u=30;n.css({position:"fixed",bottom:-o,right:u,overflow:"hidden",cursor:"pointer"}).animate({bottom:10})}n.fadeTo(300,.8).click(function(){n.fadeOut(100,function(){n.remove()})})}}})}(_jq,x5engine),function(e,t){"use strict";e.extend(t.utils,{imFormatInt:function(e){return e<10&&(e="0"+e),e},hex2rgb:function(e,n,r,i,s){return t.utils.shiftColor(e,n,r,i,s)},shiftColor:function(e,t,n,r,i){var s,o;i|=!1;if(e==="transparent")return"rgba(0,0,0,0)";if(e.indexOf("#")===0){s=e.replace("#","").match(/(.{2})/g);for(o=0;o255&&(i?s[o]=255:s[o]-=255),s[o]<0&&(i?s[o]=0:s[o]+=255);return"rgba("+s.join(", ")+")"},rgb2hex:function(e){return e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i),e&&e.length===4?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""},rgbDiff:function(e,t,n,r,i,s){var o,u,a,f=1;return s!==null&&s!==undefined?(s=s.replace(/[^\d,]/g,"").split(","),o=s[0],u=s[1],a=s[2],s.length==4&&(f=s[3])):(o=e,u=t,a=n,r!==null&&r!==undefined&&(f=r)),i>127&&(i=127),o+=o>127?-i:i,u+=u>127?-i:i,a+=a>127?-i:i,"rgba("+o+","+u+","+a+","+f+")"},createId:function(t){t=t||"imObj";var n=0;while(e("#"+t+n).length>0)n++;return t+n},imHash:function(e){var t="QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890",n="",r=0,i=2;for(var s=e.length-1;s>=0;s--)r+=e.charCodeAt(s)*Math.pow(i,e.length-s);r*=834,r+="";var o=0;while(r.length>0)o+=(parseInt(r.charAt(0),10)+5)*2,r=r.substr(1),o>t.length-1&&(o-=t.length-1),n+=t.charAt(o);return n},round:function(t,n){return n=n||0,(Math.round(t*Math.pow(10,n))/Math.pow(10,n)).toFixed(n)}})}(_jq,x5engine),function(e,t){"use strict";e.extend(t.utils,{htmlspecialchars:function(e){return e?e.replace(/\"/g,"''").replace(//g,">"):""},htmlspecialchars_decode :function(e){return e?e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'"):""},emailTo:function(e,t,n,r){var i="",s=[];for(var o=0;o 0?(n=t.indexOf(e),n!=-1?(n+=e.length,r=t.indexOf("&",n),r==-1&&(r=t.length),t.substring(n,r)):null):null},imOpenLocation:function(e){document.location=e},isOnline:function(){return!t.settings.islocal},location:function(e,n,r,i){var s=-1,o=-1,u="",a=n||t.utils.currentPagePath,f=(s=e.indexOf("#"))!=-1?e.substring(s):"";typeof r=="undefined"&&(r=!0),typeof i=="undefined"&&(i=window);if(e.indexOf("../")==-1&&e.indexOf("/")!==0){u=f?e.replace(f,""):e,(o=a.indexOf("#"))!=-1&&(a=a.substring(0,o)),a!=u&&(u.indexOf("http")!==0&&(a=a.substring(a.lastIndexOf("/")+1)),(o=u.indexOf("/"))!=-1&&(u=u.substring(0,o)));if(u==a||u==="")return t.utils.scrollTo(f||0,function(){r&&(i.location.hash=f)}),!1}return i.location.href=e,!0}})}(_jq,x5engine),function(e,t){e.extend(t,{youtube:{jsApiIsLoaded:!1,apiLoadedEventName:"youtube_api_loaded"}})}(_jq,x5engine),function checkLoading(){x5engine.l10n.loaded()&&x5engine.settings.loaded&&x5engine.cart.loaded?x5engine.boot.run():setTimeout(checkLoading,250)}();