'),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=n.effect!="fade"&&n.effect!="custom"?250:2,b=n.effect!="fade"?250:2,w=e(window),E=e("body"),S=e("head"),x=null,T=null,N=i.css("visibility"),C=i.width(),k=i.height(),L=!1,A=null,O=null,M=!1,_=null,D=null,P=null,H=null,B=null,j=!1,F=function(r,i){if(n.media[r]===undefined||n.media[r]===null)return;var s=l.length,o=n.media[r].load,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){!O||(O.attr("data-hide")=="false"?O.attr("data-hide","true"):O.stop(!1,!1).fadeOut(),!_||(clearTimeout(_),_=null),_=setTimeout(function(){O.stop(!1,!1).fadeIn()},7e3)),e.preventDefault(),(Math.abs(t.offsetX)>Math.abs(t.offsetY)?t.offsetX:t.offsetY)<0?W():X()}).Gesture(function(e){e.preventDefault(),e.scale<.9&&K()}).AfterPinch(function(e){e.preventDefault(),e.scale<.9&&K()}),e.isFunction(o)&&o(t),F(r+1,i)},error:function(e,t){a=null,e=null,F(r+1)}}))},I=function(r){d=e(document.createElement("div")),E.append(d),d.addClass("showbox-bg"),!r||d.prepend(t.settings.imLoadingAnimation),d.css({position:"fixed","background-color":n.background,top:0,left:0,bottom:0,right:0,display:"none","z-index":t.settings.zIndex.showBox}).fadeTo(y,n.opacity).click(K),n.radialBg&&(/Firefox/i.test(navigator.userAgent)?d.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)&&d.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)+"))"}))},q=function(){c.css("box-shadow",n.shadow)},R=function(){c.css("box-shadow","")},U=function(e){var t=n.borderWidth.right+n.borderWidth.left+2*n.innerBorder,r=n.borderWidth.top+n.borderWidth.bottom+2*n.innerBorder,i=l[e].Width()/l[e].Height(),s=l[e].Width()+t,o=l[e].Height()+r,u,a=l[e].GetDescription(),f=null;!a||(f=h.clone(),f.css({position:"absolute",top:-1e3,right:"auto",left:"auto",bottom:"auto"}).width(s).html(a),E.append(f),o+=f.outerHeight()),s>w.width()-50&&(o=(w.width()-50-t)/i+r,s=w.width()-50,!f||(f.width(s),o+=f.outerHeight()));if(o>w.height()-50){s=(w.height()-50-t)*i+t,o=w.height()-50,u=o;if(!!f){f.width(s);var c=f.outerHeight();u-=c;var p=f.width(),d=Math.round(l[e].Width()*u/l[e].Height());f.width(d),f.outerHeight()<=c?s=Math.round(d):f.width(p)}}var v=0;return!f||(v=f.outerHeight(),f.remove()),{width:s,height:o,dHeight:v}},z=function(t,r,i,s){var o=U(t),u=c.css("padding-top").replace(/px/g,"")*1+c.css("border-top-width").replace(/px/g,"")*1,f=c.css("padding-bottom").replace(/px/g,"")*1+c.css("border-bottom-width").replace(/px/g,"")*1,d=c.css("padding-left").replace(/px/g,"")*1+c.css("border-left-width").replace(/px/g,"")*1,v=c.css("padding-right").replace(/px/g,"")*1+c.css("border-right-width").replace(/px/g,"")*1,m=T!==null?U(T):{width:0,height:0};r=r?r:!1,i=i?i:!1,L=!1;var E=function(t){T!==null?l[T].AnimateOut(p,function(n){n.DOMObject().detach(),e.isFunction(t)&&t()},r):e.isFunction(t)&&t()},S=function(){l[t].AppendTo(p),p.width(o.width-d-v).height(o.height-o.dHeight-u-f),h.stop(!1,!1).fadeOut(y/2,function(){l[t].GetDescription()!==""&&h.html(l[t].GetDescription()).fadeIn(y)}),l[t].ContentWidth(o.width-d-v),l[t].ContentHeight(o.height-o.dHeight-u-f),l[t].AnimateIn(p,function(){!!O&&!M&&(M=!0,O.fadeIn()),a&&l[t].DOMObject().is("iframe")?p.css({overflow:"scroll","-webkit-overflow-scrolling":"touch"}):p.css({overflow:"hidden","-webkit-overflow-scrolling":""})},r),j&&Y()},x=function(t){Z(),!n.shadow||R(),g.css("display","none"),c.stop(!1,!1).animate({width:o.width-d-v,height:o.height-u-f,left:(w.width()-o.width)/2,top:(w.height()-o.height)/2},{duration:c.width()>32?b:y,complete:function(){c.css("overflow","visible").trigger("showboxReady"),g.css("display","block"),!n.shadow||q(),e.isFunction(t)&&t()}})},N=function(){T=t,C||s?(Z(!0),x(function(){L=!0,S()})):(L=!0,S())},C=m.width!=o.width||m.height!=o.height;i||!C?(E(),N()):E(N)},W=function(){G(),T+1
v.outerWidth()*2;e={top:(p.height()-m.height())/2,"background-color":n.boxColor,padding:"15px 20px",position:"absolute",cursor:"pointer","font-weight":"bold","font-size":"15pt",color:n.textColor},m.stop(!0,!0).css(e).css(o?i:s).css({left:o?0:-m.outerWidth()}).fadeIn(y),v.stop(!0,!0).css(e).css(o?s:i).css({right:o?0:-v.outerWidth()}).fadeIn(y)}else v.attr("data-loaded")=="true"&&m.attr("data-loaded")=="true"&&(e={cursor:"pointer",position:"absolute"},m.stop(!0,!0).css(e).css({top:(p.height()-m.height())/2+n.buttonLeft.position.y,left:n.buttonLeft.position.x}).fadeIn(y),v.stop(!0,!0).css(e).css({top:(p.height()-m.height())/2+n.buttonRight.position.y,right:n.buttonRight.position.x}).fadeIn(y))},Z=function(e){e=e||!1,m.add(v).stop(!1,!1).fadeOut(e?0:b)},et=function(){!n.sound||(x=new Audio(n.sound),x.play())};c=e('
'),p=e("
"),h=e("
"),g=e(" "),!n.buttonRight.url&&!n.buttonLeft.url?(v=e("
").html(">"),m=e("
").html("<")):(v=e(" ").one("load",function(){e(this).attr("data-loaded","true")}).attr("src",n.buttonRight.url),m=e(" ").one("load",function(){e(this).attr("data-loaded","true")}).attr("src",n.buttonLeft.url)),v.css("display","none").click(W).on("selectstart mousedown",function(){return!1}),m.css("display","none").click(X).on("selectstart mousedown",function(){return!1}),p.css({position:"relative",height:"100%",overflow:"hidden"}),g.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(K),h.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}),c.append(g).append(p).append(h).append(m).append(v).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+1,overflow:"visible"}),c.mousemove(function(){if(j)return;j=!0;if(l.length<2)return;L&&Y(),c.on("showboxReady",Y)}).mouseleave(function(){j=!1,Z(),c.off("showboxReady")}),u&&n.media.length>1&&!O&&(O=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"),p.after(O),H=w.scrollTop(),P=w.scrollLeft(),D=S.find('meta[name="viewport"]'),D.length||(D=e(' '),S.append(D)),B=D.attr("content"),D.attr("content",B+", user-scalable=no, maximum-scale=1")),n.autoplay&&c.one("showboxReady",Q);switch(n.effect){case"none":case"fade":case"move":I(),c.css({width:32,height:32,left:(w.width()-32)/2,"background-color":n.boxColor,top:n.effect!="move"?(w.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"}),E.append(c);var tt=function(){F(0,function(e,t){e===r&&(c.find(".imLoadAnim").remove(),z(r,!1,!1),et())}),E.keydown(J),w.resize(V)};n.effect!="move"?c.fadeIn(y,tt):(c.animate({top:(w.height()-32)/2},{duration:y}),tt());break;case"zoom":case"hide":var nt=i.offset();nt.left-=w.scrollLeft(),nt.top-=w.scrollTop(),E.append(c),c.css({width:i.width(),height:i.height(),left:nt.left,top:nt.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(y),F(0,function(e,t){if(e===r){T=e;var s=null;i.is("img")&&(s=i.clone().css({width:"100%",height:"100%"}),p.append(s)),n.effect=="hide"&&i.css("visibility","hidden"),c.find(".imLoadAnim").remove();var o=U(e),u=t.DOMObject();u.css({top:0,left:0,width:"100%",height:"100%",display:"none"}),p.append(u);var a=n.borderWidth.right+n.borderWidth.left+2*n.innerBorder,f=n.borderWidth.top+n.borderWidth.bottom+2*n.innerBorder;p.stop(!0,!0).animate({width:o.width-a,height:o.height-o.dHeight-f},{duration:y}),t.TriggerAnimationInStart(),I(),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-a,height:o.height-f,"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:(w.height()-o.height)/2,left:(w.width()-o.width)/2},{duration:y,complete:function(){L=!0,c.trigger("showboxReady"),g.css("display","block"),u.width(o.width-a).height(o.height-o.dHeight-f),n.shadow!==""&&q(),t.TriggerAnimationInEnd()}}),!s||s.fadeOut(function(){s.remove()}),u.fadeIn(y),h.empty().html(t.GetDescription()),et(),E.keydown(J),w.resize(V)}});break;case"custom":!n.customEffect||(I(!0),c.css({width:32,height:32,left:(w.width()-32)/2,"background-color":n.boxColor,top:n.effect!="move"?(w.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"}),E.append(c),F(0,function(e,t){e===r&&(d.find(".imLoadAnim").remove(),c.fadeIn(y,function(){c.find(".imLoadAnim").remove(),z(r,!1,!1);var e=function(){c.addClass(n.customEffect)};navigator.userAgent.indexOf("MS IE")>-1?setTimeout(e,2):e(),et()}))}),E.keydown(J),w.resize(V))}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("#imSitemapPage > 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("#imSitemapPage > 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=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=t.settings.currentPath+"res/imClose.png",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},n);if(n.cookie&&e.imCookie("im_splash")=="true"&&t.utils.isOnline())return!1;var p=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"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-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)},d=function(){e.isFunction(n.onClose)&&n.onClose(),s.fadeOut(200,function(){s.remove(),l&&l.pause()})};e("body").append(''+'
"+(n.text?'
'+n.text+"
":"")+(n.media?'
':"")+"
"),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 v=function(t){var r=f?f.DOMObject():s.find(".splashContent");setTimeout(function(){s.fadeIn(0),s.fadeOut(0),p();var f;h.resize(function(){clearTimeout(f),f=setTimeout(p,100)}),s.find(".imClose img").click(d),r.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,{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)v();else{var m=n.media.load;f=new t.mediaObject(e.extend(n.media,{load:function(t){t.AppendTo(e(".mediaTarget")),t.DOMObject().css("position",""),setTimeout(function(){v(function(){e.isFunction(m)&&m(t)})},100)}}))}return{close:function(){e.isFunction(d)&&d()}}}})}(_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;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},isElementInViewport:function(t,n){n===undefined&&(n=0),n>e(t).outerHeight()&&(n=e(t).outerHeight()-1);var r=e(window),i={top:r.scrollTop(),left:r.scrollLeft()};i.right=i.left+r.width(),i.bottom=i.top+r.height();var s={top:e(t).offset().top,left:e(t).offset().left};return s.right=s.left+e(t).outerWidth(),s.bottom=s.top+e(t).outerHeight(),!(i.rights.right||i.bottom-ns.bottom)},onElementInViewPort:function(n,r,i){if(!e.isFunction(r))return;if(t.utils.isElementInViewport(n,i)){r();return}var s=function(){t.utils.isElementInViewport(n,i)&&(r(),e(window).off("scroll",s))};e(window).on("scroll",s)},onLazyLoadedElement:function(t,n){if(!e.isFunction(n))return;var r=function(){e(t).off("imLazyLoadingEnd",".imlazyloading",r),n()};e(t).on("imLazyLoadingEnd",".imlazyloading",r)},revealObject:function(n){var r=e(n),i=e("#imContent");t.utils.supportAnimation(n)?(r.on("webkitAnimationEnd oanimationend msAnimationEnd animationend",function(e){r.off("webkitAnimationEnd oanimationend msAnimationEnd animationend"),r.trigger("imObjectAnimationEnd"),i.trigger("change")}),r.addClass("animated"),r.trigger("imObjectAnimationStart"),i.trigger("change")):(r.trigger("imObjectAnimationStart").trigger("imObjectAnimationEnd"),i.trigger("change"))},supportAnimation:function(t){return!e("html").hasClass("no-cssanimations")},imPreloadImages:function(t){var n=e(window);n.x5ImageCache=[];var r=n.x5ImageCache;for(var i=0;i'),function r(){typeof window.swfobject=="object"&&e.isFunction(window.swfobject.embedSWF)?e.isFunction(n)&&n():setTimeout(r,500)}()},isInFullScreenMode:function(){return!!(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement)}})}(_jq,x5engine),function(e,t){"use strict";e.extend(t.utils,{Gui:function(){var n=t.settings.imPopUp,r=null,i=null,s=null,o=e("body"),u=e(window),a=e(document),f=function(t){i.add(r).fadeOut(t,function(){e(this).remove()})};this.showPopUp=function(a){a=e.extend(!0,{width:n.width,borderRadius:n.borderRadius,backGround:n.background,effect:n.effect,textColor:n.textColor,boxColor:n.boxColor,opacity:n.opacity,shadow:n.shadow,graphics:!0},a),a.text=a.text.replace(/&/g,"&").replace(/\>/g,">").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||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 e(){x5engine.l10n.loaded()&&x5engine.settings.loaded&&x5engine.cart.loaded?x5engine.boot.run():setTimeout(e,250)}();