'),o=e("#"+n.attr("id")+"_runner").css({position:"absolute","padding-top":u.top,"padding-bottom":u.bottom,"padding-right":u.right,"padding-left":u.left,"white-space":t.direction=="UP"||t.direction=="BOTTOM"?"normal":"nowrap"}).width(n.width()-u.left-u.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(){a({reset:!1})},t.time*1e3)}));var h=0,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(c(o.html()));break;case"RIGHT":o.css("left",-o.width()).width(c(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":h=c(o.html()),o.css("left",-h+n.width()).width(h);break;case"LEFT":o.css("left",0).width(c(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":h=c(o.html()),o.css("left",-h+n.width()).width(h);break;case"RIGHT":o.css("left",0).width(c(o.html()))}}};t.autostart&&f(),n.data("imRollover",{start:function(){f()},stop:function(){l()}})}})}(_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=f[e].Width(),r=f[e].Height(),i,s=f[e].GetDescription(),o=null;!s||(o=c.clone(),o.css({position:"absolute",top:-1e3,right:"auto",left:"auto",bottom:"auto"}).width(t).html(s),b.append(o),r+=o.outerHeight()),t+n.borderWidth.right+n.borderWidth.left+2*n.innerBorder>y.width()-50&&(r=r*(y.width()-50-n.borderWidth.top-n.borderWidth.bottom-2*n.innerBorder)/t,t=y.width()-50-n.borderWidth.right-n.borderWidth.left-2*n.innerBorder,!o||(o.width(t),r+=o.outerHeight()));if(r+n.borderWidth.top+n.borderWidth.bottom+2*n.innerBorder>y.height()-50){t=t*(y.height()-50-n.borderWidth.right-n.borderWidth.left-2*n.innerBorder)/r,r=y.height()-50-n.borderWidth.top-n.borderWidth.bottom-2*n.innerBorder,i=r;if(!!o){o.width(t);var u=o.outerHeight();i-=u;var a=o.width(),l=Math.round(f[e].Width()*i/f[e].Height());o.width(l),o.outerHeight()<=u?t=Math.round(l):o.width(a)}}var h=0;return!o||(h=o.outerHeight(),o.remove()),{width:t,height:r,dHeight:h}},q=function(t,r,i,s){var o=I(t),u=E!==null?I(E):{width:0,height:0};r=r?r:!1,i=i?i:!1,N=!1;var a=function(t){E!==null?f[E].AnimateOut(h,function(n){n.DOMObject().detach(),e.isFunction(t)&&t()},r):e.isFunction(t)&&t()},p=function(){h.append(f[t].DOMObject()).width(o.width).height(o.height-o.dHeight),c.stop(!1,!1).fadeOut(g/2,function(){f[t].GetDescription()!==""&&c.html(f[t].GetDescription()).fadeIn(g)}),f[t].ContentWidth(o.width),f[t].ContentHeight(o.height-o.dHeight),f[t].AnimateIn(h,function(){!!k&&!L&&(L=!0,k.fadeIn())},r),P&&K()},d=function(t){Q(),!n.shadow||F(),m.css("display","none"),l.stop(!1,!1).animate({width:o.width,height:o.height,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()}})},v=function(){E=t,b||s?(Q(!0),d(function(){N=!0,p()})):(N=!0,p())},b=u.width!=o.width||u.height!=o.height;i||!b?(a(),v()):a(v)},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).bind("selectstart mousedown",function(){return!1}),v.css("display","none").click(U).bind("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.bind("showboxReady",K)}).mouseleave(function(){P=!1,Q(),l.unbind("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+" .imGlContent"),s=e(n+" .imRunner"),o=e(n),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)e(n+" .imLeftArrow").not(".hiddenArrow").click(function(){u+i.innerWidth()>=20?s.innerWidth()%i.innerWidth()===0?u=-s.innerWidth()+i.innerWidth():u=-s.innerWidth()+s.innerWidth()%i.innerWidth():u+=i.innerWidth(),s.stop(!1,!1).animate({left:u})}),e(n+" .imRightArrow").not(".hiddenArrow").click(function(){-u0)u=o-(r-e.touches[0].pageX)/2;window.cancelAnimFrame(p),p=window.requestAnimFrame(function(){s.css("left",u)}),r=e.touches[0].pageX,o=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,s.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})),i.append(l)}},Vertical:function(n,r){var i=e(n+" .imGlContent"),s=e(n+" .imRunner").bind("dragstart",function(){return!1}),o=e(n),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)e(n+" .imTopArrow").click(function(){u+i.innerHeight()>=10?s.innerHeight()%i.innerHeight()===0?u=-s.innerHeight()+i.innerHeight():u=-s.innerHeight()+s.innerHeight()%i.innerHeight():u+=i.innerHeight(),s.animate({top:u})}),e(n+" .imBottomArrow").click(function(){-u0)u=o-(r-e.touches[0].pageY)/2;window.cancelAnimFrame(p),p=window.requestAnimFrame(function(){s.css("top",u)}),r=e.touches[0].pageY,o=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,s.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})),i.append(l)}},Page:function(n,r){var i=e(n),s=e(n+" .imSPage"),o=e(n+" .imRunner").bind("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);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").click(function(){u+c>0?u=-h+c:u+=c,o.animate({left:u})}),e(n+" .imPNext").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="res/imClose.png",i=500,s=t.settings.imSplashBox,o,u,a,f,l=null,c=e(window);n=e.extend(!0,{effect:s.effect,position:s.position,shadow:s.shadow,margin:s.margin,width:s.width,height:s.height,cookie:s.cookie,link:s.link,image:s.image,sound:s.sound},n);if(n.cookie&&e.imCookie("im_splash")=="true"&&t.utils.isOnline())return!1;var h=function(){switch(n.position){case"center":u={left:(c.width()-a)/2,top:(c.height()-f)/2};break;case"bottom-right":u={left:c.width()-a-n.margin,top:c.height()-f-n.margin};break;case"bottom-left":u={left:n.margin,top:c.height()-f-n.margin};break;case"top-right":u={left:c.width()-a-n.margin,top:n.margin};break;case"top-left":u={left:n.margin,top:n.margin}}o.css(u)},p=function(){o.fadeOut(200,function(){o.remove(),l&&l.Stop()})};e("body").append(''),n.sound!==""&&n.sound!==null&&n.sound!==undefined&&(l=t.mediaPlayer({url:n.sound,target:e("#imSplashBox #splashplayer"),type:"audio",width:1,height:1,loop:!0,autoplay:!0})),o=e("#imSplashBox").fadeOut(0).css({zIndex:t.settings.zIndex.splashBox}),n.shadow&&o.css("box-shadow","0px 3px 7px #000"),e("#splashContent img").first().one("load",function(){setTimeout(function(){o.fadeIn(0),a=o.outerWidth(),f=o.outerHeight(),o.fadeOut(0),h(),c.resize(h),e("#imClose img").click(p),e("#splashContent img").click(function(){e.isFunction(n.link)?n.link.call(o):location.href=n.link}),n.cookie&&e.imCookie("im_splash","true",{expires:0});switch(n.effect){case"fromtop":o.css({top:-e(window).height()-f}),o.fadeIn(0),o.animate(u,i);break;case"frombottom":o.css({top:e(window).height()+f}),o.fadeIn(0),o.animate(u,i);break;case"fromleft":o.css({left:-a}),o.fadeIn(0),o.animate(u,i);break;case"fromright":o.css({left:a+c.width()}),o.fadeIn(0),o.animate(u,i);break;case"fade":o.fadeIn(i);break;default:o.fadeIn(0)}},500)}),e("#splashContent img").attr("src",n.image)}})}(_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.bind("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}).bind("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.bind("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.unbind("mouseleave").mouseleave(function(){i.width(s)}),n.unbind("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").replace(/\</g,"<");if(a.graphics){var l=a.effect!="none"?200:0;r&&i&&r.add(i).remove(),i=e('').css("z-index",t.settings.zIndex.popup).width(u.width()).height(u.height()).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),r.width(a.width).css({position:"fixed",top:(u.height()-r.outerHeight())/2,left:(u.width()-r.outerWidth())/2}).fadeIn(l)}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()})})}},scrollTo:function(t,n){var r=e(window);typeof t!="number"&&(t=e(t),t.length?t=t.offset().top:t=0),e("html, body").animate({scrollTop:t},{complete:function(){e.isFunction(n)&&n()}})},autoHeight:function(){e(".autoHeight").height("auto")},imPopUpWin:function(e,t,n,r,i,s){var o;i=i?i:!1,s=s?s:1,t=t?t:"",n=n?n:-1,r=r?r:-1;if(i===!0)o="";else if(n==-1||r==-1)o="width="+screen.width+",height="+screen.height+",top=0,left=0,scrollbars="+s+",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no";else{var u=screen.width?(screen.width-n)/2:100,a=screen.height?(screen.height-r)/2:100;o="width="+n+",height="+r+",top="+a+",left="+u+",scrollbars="+s+",location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no"}var f=window.open(e,t,o);return f.focus(),!1},switchFocus:function(t){e(t).find(":input").each(function(){var t=e(this).attr("type");t!="button"&&t!="submit"&&t!="reset"&&(e(this).focus(function(){e(this).addClass("imFormFocus")}),e(this).blur(function(){e(this).removeClass("imFormFocus")}))})},popup:function(e){var n=new t.utils.Gui;n.showPopUp(e)}})}(_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){var i=-1,s=-1,o="",u=n||window.location.href,a=(i=e.indexOf("#"))!=-1?e.substring(i):"";typeof r=="undefined"&&(r=!0);if(e.indexOf("../")==-1&&e.indexOf("/")!==0){o=a?e.replace(a,""):e,(s=u.indexOf("#"))!=-1&&(u=u.substring(0,s)),u!=o&&(o.indexOf("http")!==0&&(u=u.substring(u.lastIndexOf("/")+1)),(s=o.indexOf("/"))!=-1&&(o=o.substring(0,s)));if(o==u||o==="")return t.utils.scrollTo(a||0,function(){r&&(window.location.hash=a)}),!1}return r&&(window.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)}();