'),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="touchstart"in document||"ontouchstart"in document,a=!1,f=[],l=null,c=null,h=null,p=null,d=null,v=null,m=null,g=n.effect!="none"?250:2,y=e(window),b=e("body"),w=e("head"),E=null,S=i.css("visibility"),x=i.width(),T=i.height(),N=!1,C=null,k=null,L=!1,A=null,O=null,M=null,_=null,D=null,P=!1,H=function(r,i){if(n.media[r]===undefined||n.media[r]===null)return;var s=f.length,o=new t.mediaObject(e.extend(n.media[r],{touchDevice:u,android:a,allowFrameTransparency:n.allowFrameTransparency,load:function(t){f[s]=t,e.isFunction(i)&&i(r,t);var n=null;u&&f[s].AfterMove(function(e,t){!k||(k.attr("data-hide")=="false"?k.attr("data-hide","true"):k.stop(!1,!1).fadeOut(),!A||(clearTimeout(A),A=null),A=setTimeout(function(){k.stop(!1,!1).fadeIn()},7e3)),e.preventDefault(),(Math.abs(t.offsetX)>Math.abs(t.offsetY)?t.offsetX:t.offsetY)<0?R():U()}).Gesture(function(e){e.preventDefault(),e.scale<.9&&X()}).AfterPinch(function(e){e.preventDefault(),e.scale<.9&&X()}),H(r+1,i)},error
:function(e,t){o=null,e=null,H(r+1)}}))},B=function(){p=e(document.createElement("div")),b.append(p),p.css({position:"fixed","background-color":n.background,top:0,left:0,bottom:0,right:0,display:"none","z-index":t.settings.zIndex.showBox}).fadeTo(g,n.opacity).click(X),n.radialBg&&(/Firefox/i.test(navigator.userAgent)?p.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)&&p.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)+"))"}))},j=function(){l.css("box-shadow",n.shadow)},F=function(){l.css("box-shadow","")},I=function(e){var t=n.borderWidth.right+n.borderWidth.left+2*n.innerBorder,r=n.borderWidth.top+n.borderWidth.bottom+2*n.innerBorder,i=f[e].Width()/f[e].Height(),s=f[e].Width()+t,o=f[e].Height()+r,u,a=f[e].GetDescription(),l=null;!a||(l=c.clone(),l.css({position:"absolute",top:-1e3,right:"auto",left:"auto",bottom:"auto"}).width(s).html(a),b.append(l),o+=l.outerHeight()),s>y.width()-50&&(o=(y.width()-50-t)/i+r,s=y.width()-50,!l||(l.width(s),o+=l.outerHeight()));if(o>y.height()-50){s=(y.height()-50-t)*i+t,o=y.height()-50,u=o;if(!!l){l.width(s);var h=l.outerHeight();u-=h;var p=l.width(),d=Math.round(f[e].Width()*u/f[e].Height());l.width(d),l.outerHeight()<=h?s=Math.round(d):l.width(p)}}var v=0;return!l||(v=l.outerHeight(),l.remove()),{width:s,height:o,dHeight:v}},q=function(t,r,i,s){var o=I(t),u=l.css("padding-top").replace(/px/g,"")*1+l.css("border-top-width").replace(/px/g,"")*1,a=l.css("padding-bottom").replace(/px/g,"")*1+l.css("border-bottom-width").replace(/px/g,"")*1,p=l.css("padding-left").replace(/px/g,"")*1+l.css("border-left-width").replace(/px/g,"")*1,d=l.css("padding-right").replace(/px/g,"")*1+l.css("border-right-width").replace(/px/g,"")*1,v=E!==null?I(E):{width:0,height:0};r=r?r:!1,i=i?i:!1,N=!1;var b=function(t){E!==null?f[E].AnimateOut(h,function(n){n.DOMObject().detach(),e.isFunction(t)&&t()},r):e.isFunction(t)&&t()},w=function(){h.append(f[t].DOMObject()).width(o.width-p-d).height(o.height-o.dHeight-u-a),c.stop(!1,!1).fadeOut(g/2,function(){f[t].GetDescription()!==""&&c.html(f[t].GetDescription()).fadeIn(g)}),f[t].ContentWidth(o.width-p-d),f[t].ContentHeight(o.height-o.dHeight-u-a),f[t].AnimateIn(h,function(){!!k&&!L&&(L=!0,k.fadeIn())},r),P&&K()},S=function(t){Q(),!n.shadow||F(),m.css("display","none"),l.stop(!1,!1).animate({width:o.width-p-d,height:o.height-u-a,left:(y.width()-o.width)/2,top:(y.height()-o.height)/2},{duration:g,complete:function(){l.css("overflow","visible").trigger("showboxReady"),m.css("display","block"),!n.shadow||j(),e.isFunction(t)&&t()}})},x=function(){E=t,T||s?(Q(!0),S(function(){N=!0,w()})):(N=!0,w())},T=v.width!=o.width||v.height!=o.height;i||!T?(b(),x()):b(x)},R=function(){J(),E+1
d.outerWidth()*2;e={top:(h.height()-v.height())/2,"background-color":n.boxColor,padding:"15px 20px",position:"absolute",cursor:"pointer","font-weight":"bold","font-size":"15pt",color:n.textColor},v.stop(!0,!0).css(e).css(o?i:s).css({left:o?0:-v.outerWidth()}).fadeIn(g),d.stop(!0,!0).css(e).css(o?s:i).css({right:o?0:-d.outerWidth()}).fadeIn(g)}else d.attr("data-loaded")=="true"&&v.attr("data-loaded")=="true"&&(e={cursor:"pointer",position:"absolute"},v.stop(!0,!0).css(e).css({top:(h.height()-v.height())/2+n.buttonLeft.position.y,left:n.buttonLeft.position.x}).fadeIn(g),d.stop(!0,!0).css(e).css({top:(h.height()-v.height())/2+n.buttonRight.position.y,right:n.buttonRight.position.x}).fadeIn(g))},Q=function(e){e=e||!1,v.add(d).stop(!1,!1).fadeOut(e?0:g)};l=e("
"),h=e("
"),c=e("
"),m=e(" "),!n.buttonRight.url&&!n.buttonLeft.url?(d=e("
").html(">"),v=e("
").html("<")):(d=e(" ").one("load",function(){e(this).attr("data-loaded","true")}).attr("src",n.buttonRight.url),v=e(" ").one("load",function(){e(this).attr("data-loaded","true")}).attr("src",n.buttonLeft.url)),d.css("display","none").click(R).on("selectstart mousedown",function(){return!1}),v.css("display","none").click(U).on("selectstart mousedown",function(){return!1}),h.css({position:"relative",height:"100%",overflow:"hidden"}),m.css({position:"absolute",right:-11-n.borderWidth.right,top:-11-n.borderWidth.top,cursor:"pointer",display:"none"}).attr("src",n.closeImg).width(22).height(22).click(X),c.css({"font-family":n.fontFamily,"font-size":n.fontSize,color:n.textColor,padding:5,"text-align":n.textAlignment,"font-style":n.fontStyle,"font-weight":n.fontWeight,position:"absolute",right:0,left:0,bottom:7}),l.append(m).append(h).append(c).append(v).append(d).css({position:"fixed","background-image":'url("'+n.loadingImg+'")',"background-position":"center center","background-repeat":"no-repeat","border-radius":n.borderRadius,"z-index":t.settings.zIndex.showBox+1,overflow:"visible"}),l.mousemove(function(){if(P)return;P=!0;if(f.length<2)return;N&&K(),l.on("showboxReady",K)}).mouseleave(function(){P=!1,Q(),l.off("showboxReady")}),u&&n.media.length>1&&!k&&(k=e('
').css({position:"absolute",bottom:0,right:0,display:"none"}).width(30).height(30).append(e("
").css({background:n.helperBg,"border-top-left-radius":5,position:"absolute",top:0,bottom:0,left:0,right:0,"z-index":10}).fadeTo(0,.75)).append(e("
").css({background:"transparent url('"+n.swipeImg+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0,"z-index":10})).attr("data-hide","true"),h.after(k),_=y.scrollTop(),M=y.scrollLeft(),O=w.find('meta[name="viewport"]'),O.length||(O=e(' '),w.append(O)),D=O.attr("content"),O.attr("content",D+", user-scalable=no, maximum-scale=1")),n.autoplay&&l.one("showboxReady",V);switch(n.effect){case"none":case"fade":case"move":B(),l.css({width:32,height:32,left:(y.width()-32)/2,"background-color":n.boxColor,top:n.effect!="move"?(y.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"}),b.append(l);var G=function(){H(0,function(e,t){e===r&&(l.css("background-image","url()"),q(r,!1,!1))}),b.keydown(W),y.resize(z)};n.effect!="move"?l.fadeIn(g,G):(l.animate({top:(y.height()-32)/2},{duration:g}),G());break;case"zoom":case"hide":var Y=i.offset();Y.left-=y.scrollLeft(),Y.top-=y.scrollTop(),b.append(l),l.css({width:i.width(),height:i.height(),left:Y.left,top:Y.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(g),H(0,function(e,t){if(e===r){E=e;var s=null;i.is("img")&&(s=i.clone().css({width:"100%",height:"100%"}),h.append(s)),n.effect=="hide"&&i.css("visibility","hidden"),l.css("background-image","url()");var o=I(e),u=t.DOMObject();u.css({top:0,left:0,width:"100%",height:"100%",display:"none"}),h.append(u),h.stop(!0,!0).animate({width:o.width,height:o.height-o.dHeight},{duration:g}),t.TriggerAnimationInStart(),B(),l.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,height:o.height,"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:(y.height()-o.height)/2,left:(y.width()-o.width)/2},{duration:g,complete:function(){N=!0,l.trigger("showboxReady"),m.css("display","block"),u.width(o.width).height(o.height-o.dHeight),n.shadow!==""&&j(),t.TriggerAnimationInEnd()}}),s!==null&&s!==undefined&&s.fadeOut(function(){s.remove()}),u.fadeIn(g),c.empty().html(t.GetDescription()),b.keydown(W),y.resize(z)}})}return!1}})}(_jq,x5engine),function(e,t){"use strict";e.extend(t,{imSiteMap:{toggleLevel:function(t){return t=e(t),e(t).next(".imSiteMap").slideToggle("medium","swing",function(){e(t).next("ul:visible").length>0?e(t).children("img").attr("src","res/imfolder_open.gif"):e(t).children("img").attr("src","res/imfolder_closed.gif"),e("#imContent").triggerHandler("change")}),!1},foldAll:function(){return e("#imContent > ul").find(".imSiteMap").slideUp("medium","swing",function(){e(this).prev("span").children("img").attr("src","res/imfolder_closed.gif"),e("#imContent").triggerHandler("change")}),!1},unfoldAll:function(){return e("#imContent > ul").find(".imSiteMap").slideDown("medium","swing",function(){e(this).prev("span").children("img").attr("src","res/imfolder_open.gif"),e("#imContent").triggerHandler("change")}),!1},setup:function(){e("#imContent").triggerHandler("change"),e("img").last().one("load",function(){e("#imContent").triggerHandler("change")})}}})}(_jq,x5engine),function(e,t){"use strict";e.extend(t,{imSlider:{Horizontal:function(n,r){var i=e(n),s=i.find(".imGlContent"),o=i.find(".imRunner"),u=0,a=!1,f="touchstart"in document||"ontouchstart"in document,l=null,c=e.extend({helperBg:"black",swipeImage:"res/move.png"},r);if(!f)i.find(".imLeftArrow").not(".hiddenArrow").off("click").on("click",function(){u+s.innerWidth()>=20?o.innerWidth()%s.innerWidth()===0?u=-o.innerWidth()+s.innerWidth():u=-o.innerWidth()+o.innerWidth()%s.innerWidth():u+=s.innerWidth(),o.stop(!1,!1).animate({left:u})}),i.find(".imRightArrow").not(".hiddenArrow").off("click").on("click",function(){-u0)u=i-(r-e.touches[0].pageX)/2;window.cancelAnimFrame(p),p=window.requestAnimFrame(function(){o.css("left",u)}),r=e.touches[0].pageX,i=u}).AfterMove(function(e){e.preventDefault();if(!!t){!n||(t+=(t-n)*6);var r=Math.abs(t%h);r>h/2?t-=h-r:t+=r,o.stop(!1,!1).animate({left:Math.min(Math.max(t,-f+l),0)},{duration:1e3,easing:"iOsSwing",step:function(e,t){t.prop=="left"&&(u=e)}})}a=!1})}});l=e('
').css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(e("
").css({background:c.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('"+c.swipeImage+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0})),s.append(l)}},Vertical:function(n,r){var i=e(n),s=i.find(".imGlContent"),o=i.find(".imRunner").on("dragstart",function(){return!1}),u=0,a=!1,f="touchstart"in document||"ontouchstart"in document,l=null,c=e.extend({helperBg:"black",swipeImage:"res/move.png"},r);if(!f)i.find(".imTopArrow").off("click").on("click",function(){u+s.innerHeight()>=10?o.innerHeight()%s.innerHeight()===0?u=-o.innerHeight()+s.innerHeight():u=-o.innerHeight()+o.innerHeight()%s.innerHeight():u+=s.innerHeight(),o.animate({top:u})}),i.find(".imBottomArrow").off("click").on("click",function(){-u0)u=i-(r-e.touches[0].pageY)/2;window.cancelAnimFrame(p),p=window.requestAnimFrame(function(){o.css("top",u)}),r=e.touches[0].pageY,i=u}).AfterMove(function(e){e.preventDefault();if(!!t){!n||(t+=(t-n)*6);var r=Math.abs(t%h);r>h/2?t-=h-r:t+=r,o.stop(!1,!1).animate({top:Math.min(Math.max(t,-f+l),0)},{duration:1e3,easing:"iOsSwing",step:function(e,t){t.prop=="top"&&(u=e)}})}a=!1})}});l=e('
').css({position:"absolute",bottom:0,right:0}).width(30).height(30).append(e("
").css({background:c.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('"+c.swipeImage+"') no-repeat center center",position:"absolute",top:0,bottom:0,left:0,right:0})),s.append(l)}},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="touchstart"in document||"ontouchstart"in document,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=t.settings.currentPath+"res/imClose.png",i=500,s,o,u,a,f=null,l=e(window);n=e.extend(!0,{id:"splash",effect:"fade",position:"center",shadow:!0,margin:10,cookie:!1,priority:0,link:"",image:"",text:"",sound:"",onClose:null},n);if(n.cookie&&e.imCookie("im_splash")=="true"&&t.utils.isOnline())return!1;var c=function(){var e,t,r,i=s.find(".splashContent img").first();s.add(i).css({width:"",height:"",right:"",bottom:""}),u=s.outerWidth(),a=s.outerHeight(),t=l.width()-40,r=l.height()-40,u>t?(u=t,s.add(i).outerWidth(u),a=s.outerHeight()):s.add(i).outerWidth(u),!!i.length&&a>r&&(u=r/a*u,a=r,s.add(i).outerHeight(a).outerWidth(u));switch(n.position){case"center":o={left:(l.width()-u)/2,top:(l.height()-a)/2};break;case"bottom-right":o={left:l.width()-u-n.margin,top:l.height()-a-n.margin};break;case"bottom-left":o={left:n.margin,top:l.height()-a-n.margin};break;case"top-right":o={left:l.width()-u-n.margin,top:n.margin};break;case"top-left":o={left:n.margin,top:n.margin}}s.css(o)},h=function(){e.isFunction(n.onClose)&&n.onClose(),s.fadeOut(200,function(){s.remove(),f&&f.Stop()})};e("body").append(''+'
"+(n.text?'
'+n.text+"
":"")+(n.image?'
':"")+(n.sound?'
':"")+"
"),s=e("#"+n.id).fadeOut(0).css({zIndex:t.settings.zIndex.splashBox+n.priority}),n.shadow&&s.css("box-shadow","0px 3px 7px #000"),!n.sound||(f=t.mediaPlayer({url:n.sound,target:s.find(".splashplayer"),type:"audio",width:1,height:1,loop:!0,autoplay:!0}));var p=function(){var t=s.find(".splashContent img").first();setTimeout(function(){s.fadeIn(0),s.fadeOut(0),c();var r;l.resize(function(){clearTimeout(r),r=setTimeout(c,100)}),s.find(".imClose img").click(h),t.click(function(){e.isFunction(n.link)?n.link.call(s):location.href=n.link}),n.cookie&&e.imCookie("im_splash","true",{expires:0});switch(n.effect){case"fromtop":s.css({top:-e(window).height()-a}),s.fadeIn(0),s.animate(o,i);break;case"frombottom":s.css({top:e(window).height()+a}),s.fadeIn(0),s.animate(o,i);break;case"fromleft":s.css({left:-u}),s.fadeIn(0),s.animate(o,i);break;case"fromright":s.css({left:u+l.width()}),s.fadeIn(0),s.animate(o,i);break;case"fade":s.fadeIn(i);break;default:s.fadeIn(0)}},500)};return s.find(".splashContent img").length?(s.find(".splashContent img").first().one("load",p),s.find(".splashContent img").attr("src",n.image)):p(),{close:function(){e.isFunction(h)&&h()}}}})}(_jq,x5engine),function(e,t){"use strict";e.extend(t,{textTabs:function(n){n=e.extend({target:null,width:0,height:0,effect:"horizontalSlide",tabPosition:"top",autoplay:!1,interval:5e3,setTabScrollWidth:!1,setContainerHeight:!1,slideshow:{active:!1,nextPrevMode:"hover",buttonPrev:{url:"",x:0,y:0},buttonNext:{url:"",x:0,y:0}}},n);if(n.target===null)return;var r=e(n.target),i=r.find(".tab").not(".tab-scroller"),s=r.find(".tab-scroller"),o=r.find(".text-tabs-outer"),u=r.find(".text-tabs-inner"),a=r.find("[id*="+r.attr("id")+"]"),f=r.find(".text-container"),l=f.position(),c=f.width(),h=[],p=0,d="touchstart"in document||"ontouchstart"in document,v=0,m=null,g=i.width()+1,y=i.height()+1,b,w,E=u.height(),S=u.width(),x=null,T=null,N=null,C=0;n.setTabScrollWidth&&s.filter(":visible").length>0?o.width(f.width()-s.eq(0).outerWidth(!0)-s.eq(1).outerWidth(!0)):o.css("width",""),b=o.height(),w=o.width();if(n.setContainerHeight){var k=0;f.height("auto"),a.height("auto").width(f.width());for(H=0;H '),h[p].AnimateOut(f,function(e){e.DOMObject().hide(0)},t),h[e].AnimateIn(f,function(e){e.DOMObject().find(".temp-wrapper").contents().unwrap(),f.css("overflow-x","");var t=e.DOMObject().find(".text-inner").data("imRollover");t&&t.start()},t),i.removeClass("selected-text-tab").eq(e).addClass("selected-text-tab"),n&&M(e),p=e},A=function(e){e=e?!0:!1,L((p+1)%h.length,!1,e)},O=function(e){e=e?!0:!1,L(p-1<0?h.length-1:p-1,!0,e)},M=function(e,t){t=t===null||t===undefined?!1:!0;var r=n.tabPosition=="bottom"||n.tabPosition=="top",i=r?g:y,o=r?S:E,a=r?w:b,f=v+e*i=e*-i&&v<=(e+1)*-i+a)return!1;f?l=e*-i:l=e*-i+a-i,v=Math.min(0,Math.max(-o+a,l)),u.stop(!1,!1),r?u.animate({left:v}):u.animate({top:v})},_=function(){m!==null&&clearTimeout(m),m=setTimeout(function(){A(!0),_()},n.interval)},D=function(){m!==null&&clearTimeout(m)},P=function(e){e.TriggerAnimationInStart().TriggerAnimationInEnd().AfterMove(function(e,t){e.preventDefault(),(Math.abs(t.offsetX)>Math.abs(t.offsetY)?t.offsetX:t.offsetY)<0?A(!0):O(!0)}).DOMObject().css({position:"absolute",top:0,left:0})};for(var H=0;H ").one("load",function(){var t=e(this);x=t.css({position:"absolute",top:-1e3}),f.after(x),x.css({top:(f.height()-x.height())/2+n.slideshow.buttonPrev.y,left:0,display:n.slideshow.nextPrevMode=="visible"?"block":"none",cursor:"pointer","z-index":1e3}).click(function(e){e.preventDefault(),D(),O()})}).attr("src",n.slideshow.buttonPrev.url),e(" ").one("load",function(){var t=e(this);T=t.css({position:"absolute",top:-1e3}),f.after(T),t.css({top:(f.height()-T.height())/2+n.slideshow.buttonNext.y,right:0,display:n.slideshow.nextPrevMode=="visible"?"block":"none",cursor:"pointer","z-index":1e3}).click(function(e){e.preventDefault(),D(),A()})}).attr("src",n.slideshow.buttonNext.url),n.slideshow.nextPrevMode=="hover"&&f.parent().mouseenter(function(){N!==null&&(clearTimeout(N),N=null),T!==null&&x!==null&&T.add(x).stop(!1,!1).fadeTo(250,.999)}).mouseleave(function(){T!==null&&x!==null&&(N!==null&&clearTimeout(N),N=setTimeout(function(){T.add(x).stop(!1,!1).fadeOut(250)},50))}));if(s.length==2){s.eq(1).on("click",function(){n.tabPosition=="top"||n.tabPosition=="bottom"?v>-S+w&&(C=Math.abs((v-w)%g),v=Math.max(-S+w,v-g+C),u.stop(!1,!1).animate({left:v+1})):v>-u.height()+o.height()&&(C=Math.abs((v-b)%y),v=Math.max(-E+b,v-y+C),u.stop(!1,!1).animate({top:v+1}))}),s.eq(0).on("click",function(){n.tabPosition=="top"||n.tabPosition=="bottom"?v<0&&(v%g!==0?C=g-Math.abs(v%g):C=0,v=Math.min(0,v+g-C),u.stop(!1,!1).animate({left:v-1})):v<0&&(v%y!==0?C=y-Math.abs(v%y):C=0,v=Math.min(0,v+y-C),u.stop(!1,!1).animate({top:v-1}))});if(d){var j=0,F=0,I=0,q=new t.mediaObject({type:"dom",url:u,effect:"none",touchDevice:!0,load:function(e){e.TriggerAnimationInStart()}});q.BeforeMove(function(){j=v}).Move(function(e,t){e.preventDefault(),n.tabPosition=="bottom"||n.tabPosition=="top"?(v=Math.max(-S+w,Math.min(0,j+t.offsetX)),u.stop(!1,!1).css("left",v),I=t.offsetX-F,F=t.offsetX):(v=Math.max(-E+b,Math.min(0,j+t.offsetY)),u.stop(!1,!1).css("top",v),I=t.offsetY-F,F=t.offsetY)}).AfterMove(function(e,t){e.preventDefault();if(n.tabPosition=="bottom"||n.tabPosition=="top"){if(Math.abs(F)>10){var r=v+I*10;I<0?r+=Math.abs((r-w)%g):r+=Math.abs(r%g),u.stop(!1,!1).animate({left:Math.max(-S+w,Math.min(0,r))},{step:function(e,t){v=e},duration:1e3,easing:"iOsSwing"})}}else if(Math.abs(F)>10){var i=v+I*10;I<0?i+=Math.abs((i-b)%y):i+=Math.abs(i%y),u.stop(!1,!1).animate({top:Math.max(-E+b,Math.min(0,i))},{step:function(e,t){v=e},duration:1e3,easing:"iOsSwing"})}})}}return n.autoplay&&_(),{disable:function(){L(0,!1,!1),!i||(M(0,!1),i.eq(0).click(),s.off("click"),i.off("click")),!x||x.remove(),!T||T.remove(),M=function(){},A=function(){},O=function(){}}}}})}(_jq,x5engine),function(e,t){"use strict";e.extend(t,{imTip:{constants:{locked:"imFixedTip",classId:"imTip",arrowClassId:"imTipArrow",borderClassId:"imTipArrowBorder"},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);r=e.extend(!0,{classes:s.classes,arrow:s.arrow,position:s.position,effect:s.effect,showTail:s.showTail,hideOnFocus:!1,persistant:s.persistant,unique:s.unique,text:"",width:0},r),n=e(n),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),D()}),n.click(function(){n.parent().prev("input[type=text]").focus()})):n.on("click focus",function(){o=!0,n.removeClass(w),D()});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),D()}),n.click(function(){o=!0,n.removeClass(w),e(r.hideOnFocus).removeClass(w),D()})},L=function(){if(!c){var s=e("[tiptarget="+n.attr("id")+"]");if(!s.length){N=e("
");var a=e('");e("body").append(N.append(a)),a.append(r.text),u=e("#"+g).fadeOut(0).css({zIndex:t.settings.zIndex.tip}),c=!0,r.width>0?u.width(r.width):u.css("white-space","nowrap"),r.arrow||(u.find("."+y).fadeOut(),u.find("."+b).fadeOut()),u.add(n).mouseleave(_).mouseenter(M),clearTimeout(i),o=!1;if(u.find("img").length>0){var f=u.find("img"),l=f.attr("src");f.removeAttr("src").one("load",function(){var e=A(r.position,u);O(e,u)}).attr("src",l)}else{var h=A(r.position,u);O(h,u)}}else s!==null&&s.html().indexOf(r.text)==-1&&s.find("."+b).before(" "+r.text)}},A=function(e,t,i){var s,o,u=n.offset(),a=0,f=10,c=t.find("."+y),h=t.find("."+b),p=0;u===undefined?u={top:0,left:0,bottom:0,right:0}:(u.top-=n.scrollTop(),u.left-=n.scrollLeft()),i=i||0,r.showTail&&(a=c.outerWidth(),f=h.outerWidth());var d=t.css("background-color");if(e=="top"){l="top";if(i<3&&u.top-t.outerHeight()-a-10-C.scrollTop()<0)return A("bottom",t,i+1);o=u.left+(n.outerWidth()-t.outerWidth())/2,s=u.top-t.outerHeight()-a,o=Math.max(o,10),o+t.outerWidth()>C.width()&&(o=C.width()+C.scrollLeft()-t.outerWidth()-10),p=Math.floor((t.outerWidth()-a)/2),c.css({borderLeftColor:"transparent",borderRightColor:"transparent",borderBottomColor:"transparent",borderTopColor:d,position:"absolute",left:p,bottom:-a+1}),h.css({borderLeftColor:"transparent",borderRightColor:"transparent",borderBottomColor:"transparent",position:"absolute",left:p,bottom:-a})}else if(e=="bottom"){l="bottom";if(i<3&&u.top+n.outerHeight()+a-C.scrollTop()>C.height())return A("left",t,i+1);o=u.left+(n.outerWidth()-t.outerWidth())/2,s=u.top+n.outerHeight()+a,o=Math.max(o,10),o+t.outerWidth()>C.width()&&(o=C.width()+C.scrollLeft()-t.outerWidth()-10),p=Math.floor((t.outerWidth()-a)/2)-1,c.css({borderLeftColor:"transparent",borderRightColor:"transparent",borderTopColor:"transparent",borderBottomColor:d,position:"absolute",left:p,top:-a+1}),h.css({borderLeftColor:"transparent",borderRightColor:"transparent",borderTopColor:"transparent",position:"absolute",left:p,top:-a})}else if(e=="left"){if(i<3&&u.left-t.outerWidth()-C.scrollLeft()<0)return A("top",t,i+1);o=u.left-t.outerWidth()-a,s=u.top+(n.outerHeight()-t.outerHeight())/2;if(s-C.scrollTop()<0)return A("bottom",t,i+1);if(s+t.outerHeight()-C.scrollTop()>C.height())return A("top",t,i+1);c.css({borderRightColor:"transparent",borderBottomColor:"transparent",borderTopColor:"transparent",borderLeftColor:d,position:"absolute",right:-a+1,top:(t.outerHeight()-a)/2}),h.css({borderRightColor:"transparent",borderBottomColor:"transparent",borderTopColor:"transparent",position:"absolute",right:-a,top:(t.outerHeight()-a)/2})}else if(e=="right"){if(i<3&&u.left+n.outerWidth()+t.outerWidth()-C.scrollLeft()>C.width())return A("top",t,i+1);o=u.left+n.outerWidth()+a,s=u.top+(n.outerHeight()-t.outerHeight())/2;if(s-C.scrollTop()<0)return A("bottom",t,i+1);if(s+t.outerHeight()-C.scrollTop()>C.height())return A("top",t,i+1);c.css({borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:"transparent",position:"absolute",borderRightColor:d,left:-a+1,top:(t.outerHeight()-a)/2}),h.css({borderLeftColor:"transparent",borderBottomColor:"transparent",borderTopColor:"transparent",position:"absolute",left:-a,top:(t.outerHeight()-a)/2})}return[s,o]},O=function(e,t){if(n.hasClass(E))switch(r.effect){case"fade":t.css({top:e[0],left:e[1]}).fadeIn();break;case"bounce":l=="top"?t.css({top:e[0]-50,left:e[1]}):t.css({top:e[0]+50,left:e[1]}),t.fadeIn(100).animate({top:e[0],left:e[1]},600,"imBounce");break;default:t.css({top:e[0],left:e[1]}).fadeIn(0),f=0}},M=function(){clearTimeout(i),o=!1},_=function(){r.persistant||(clearTimeout(i),i=setTimeout(D,250),o=!0)},D=function(){clearTimeout(i),o&&(n.removeClass(E),!u||(u.find("object, embed").remove(),u.stop().fadeOut(f,function(){!N||N.remove(),c=!1,n.attr("title",x).attr("alt",T)})))};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;a.length>0&&u.find("form").append(' ');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 '),r=!!e.imCookie("browser-check-proceed"),i=e("body");i.append(n);if(n.css("position")!="absolute"&&!r){var s=t.l10n,o=s.get("browser_compat_1","Your browser is too old and does not provide the features needed to view this website."),u=s.get("browser_compat_2","Stay up to date and [1]download a modern browser[/1] or [2]proceed anyway[/2]."),a=s.get("browser_compat_link","http://outdatedbrowser.com/");u=u.replace(/\[1\]/g,'').replace(/\[2\]/g,' ').replace(/\[\/[0-9]+\]/g," ");var f=e('");return i.append(f),f.find(".proceed-button").on("click",function(){e.imCookie("browser-check-proceed","true"),f.remove()}),!1}return n.remove(),!0},getIeVersion:function(){var e=navigator.userAgent;if(!/MSIE/i.test(e)&&!/trident/i.test(e)&&!/MSHTML/i.test(e))return!1;var t=e.match(/MSIE ([0-9])/i);return t&&t.length?t[1]:9},isElementInViewport:function(t){var n=t.getBoundingClientRect();return n.top").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('').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(/ /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,t,n,r,i){var s=e.replace("#","").match(/(.{2})/g),o=3;if(i===undefined||i===null)i=!1;while(o--)s[o]=parseInt(s[o],16);t!==null&&(s[0]+=t),n!==null&&(s[1]+=n),r!==null&&(s[2]+=r);for(o=0;o<3;o++)s[o]>255&&(i?s[o]=255:s[o]-=255),s[o]<0&&(i?s[o]=0:s[o]+=255);return"rgb("+s.join(", ")+")"},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;o0?(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||window.location.href,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 e(){swfobject&&x5engine.l10n.loaded()&&x5engine.settings.loaded&&x5engine.cart.loaded?x5engine.boot.run():setTimeout(e,250)}();