var VER="3.2.4",DEBUG=!0,UNDEF="undefined",OBJECT="object",NOLINK="javascript:void(0)",LOCAL=0===location.protocol.indexOf("file:");String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")},String.prototype.trunc=function(t){if(this.length<=t)return this.toString();var e=this.substring(0,t-1),n=e.lastIndexOf(" ");return(n>6&&e.length-n<20?e.substring(0,n):e)+"..."},String.prototype.startsWith=function(t){return 0===this.indexOf(t)},String.prototype.endsWith=function(t){return this.substring(this.length-t.length)===t},String.prototype.getExt=function(){var t=this.lastIndexOf(".");return 0>=t||t>=this.length-1?"":this.substring(t+1).toLowerCase()},String.prototype.replaceExt=function(t){var e=this.lastIndexOf(".");return 0>=e?this:this.substring(0,e+1)+t},String.prototype.fixUrl=function(){for(var t,e,n=this+"";(t=n.indexOf("../"))>0;){if(1===t||-1===(e=n.lastIndexOf("/",t-2)))return n.substring(t+3);n=n.substring(0,e)+n.substring(t+2)}return n},function(t,e){/Trident/.test(navigator.userAgent)?/IEMobile/.test(navigator.userAgent)?(window.navigator.msPointerEnabled?(TOUCH_START="MSPointerDown",TOUCH_MOVE="MSPointerMove",TOUCH_END="MSPointerUp"):(TOUCH_START="pointerDown",TOUCH_MOVE="pointerMove",TOUCH_END="pointerUp"),e.touchMode=!0):e.touchMode=!1:(TOUCH_START="touchstart",TOUCH_MOVE="touchmove",TOUCH_END="touchend",e.touchMode=/(Chrome|CriOS)/.test(navigator.userAgent)?/Mobile/.test(navigator.userAgent):"ontouchstart"in window)}(jQuery,document),function(t){t.fn.addPlayer=function(e,n){if("undefined"!=typeof t.fn.jPlayer){e=t.extend({},t.fn.addPlayer.defaults,e),n=t.extend({},t.fn.addPlayer.text,n);var o=navigator.userAgent.indexOf("Firefox")>=0&&navigator.platform.indexOf("Mac")>=0,a={cont:"jp-cont",mini:"jp-mini",audio:"jp-audio",video:"jp-video",playerType:"jp-type-single",player:"jp-jplayer",title:"jp-title",progress:"jp-progress",controls:"jp-controls-holder",startStop:"jp-startstop",volume:"jp-volume",times:"jp-times",toggles:"jp-toggles",warning:"jp-warning",videoPlay:"jp-video-play",play:"jp-play",pause:"jp-pause",stop:"jp-stop",seekBar:"jp-seek-bar",playBar:"jp-play-bar",mute:"jp-mute",unmute:"jp-unmute",volumeBar:"jp-volume-bar",volumeBarValue:"jp-volume-bar-value",volumeMax:"jp-volume-max",currentTime:"jp-current-time",duration:"jp-duration",fullScreen:"jp-full-screen",restoreScreen:"jp-restore-screen",repeat:"jp-repeat",repeatOff:"jp-repeat-off",gui:"jp-gui",noSolution:"jp-no-solution",playing:"playing"},i=function(t){var e,o=function(t){return''+n[t]+""};return e='
',e+='
',e+='
'+o("play")+o("pause")+o("stop")+"
",e+='
'+o("mute")+o("unmute")+'
',e+='
',e+='
'+(t?"":o("fullScreen")+o("restoreScreen"))+o("repeat")+o("repeatOff")+"
",e+="
"},r=function(t){var e=t.css("paddingTop"),n=t.css("paddingLeft"),o=t.css("paddingRight"),i=t.css("paddingBottom");t.find("."+a.gui).css({bottom:i,left:n,right:o}),t.find("."+a.title).css({top:e,left:n,right:o})},s=function(e,o,s){"absolute"!==e.css("position")&&"fixed"!==e.css("position")&&e.css({position:"relative"}),e.css({overflow:"hidden"});var l,u=t('
').appendTo(e);return u=t('
').appendTo(u),l=t('
').appendTo(u),u.append('
'+n.play+"
"),o&&u.append('
"),u.append('
'+i(s)+"
"),!document.touchMode&&e.hasClass(a.fullScreen)&&u.find("."+a.gui).hide(),e.append('
'+n.unsupportedMediaFormat+"
"),r(e),l},l=function(){var e;return(e=t(this).data("media"))&&e.jPlayer("pause"),!1},u=function(){var e;return(e=t(this).data("media"))&&e.jPlayer("destroy"),t(window).off("keydown",f),!1},d=function(){var e;return(e=t(this).data("media"))&&e.jPlayer("stop"),!1},p=function(){var e;return(e=t(this).data("media"))&&e.jPlayer("play"),!1},c=t(this).eq(0),f=function(t){if(document.activeElement&&("INPUT"===document.activeElement.nodeName||"TEXTAREA"===document.activeElement.nodeName))return!0;var e=t?t.keyCode:window.event.keyCode;return 32===e?(c.find("."+a.player).jPlayer(c.data(a.playing)?"pause":"play"),!1):!0},h=function(t){return e.hasOwnProperty("audio")?e.audio:".mp3.m4a.f4a.rtmpa".indexOf(t.getExt())>0},v=function(){return t("."+a.cont).each(function(){return t(this).data(a.playing)?!0:void 0}),!1},g=function(t){var e,n=h(t)?"a":"v";switch(t.getExt()){case"mp3":e="mp3";break;case"mp4":e="m4"+n;break;case"ogg":e="og"+n;break;case"webm":e="webm"+n;break;case"flv":case"f4a":case"f4v":e="fl"+n;break;case"rtmp":e="rtmp"+n;break;default:e=null}return e};return this.each(function(){var i,r,c,m,y,j,T,b,w,P,x=t(this),O=e.folder||"",S=0;if(e.elem){w=t(this).find(e.elem),j=w.attr("href"),T=w.attr("title");var M=w.find("img:first");M.length?(b=M.attr("src"),T||(T=M.attr("alt"))):b=T=""}else j=e.src,T=e.title||"",b=e.poster||"",w=t('"+(b?'':"")+"").appendTo(t(this));if(LOCAL){var C=t('
'+n.localFlashWarning+"
").appendTo(w);w.css("position","relative"),C.hide(),setTimeout(function(){C.fadeIn()},2e3)}if(j){c=e.auto&&!e.lowPriority&&!v(),j.indexOf("::")>0?(j=j.split("::"),i=h(j[0]),r=g(j[0])):(i=h(j),r=g(j)),this.id||(this.id=e.id+t.fn.addPlayer.id++),y="#"+this.id,t(x).addClass(a.cont),e.mini&&t(x).addClass(a.mini),P=s(x,e.showTitle?T:"",i);var I=function(){var n,o,a={},i=e.relativeUrl?"":location.href.substring(0,location.href.lastIndexOf("/")+1);return t.isArray(j)?(S>=j.length&&(S=0),n=j[S]):(n=j,b&&(a.poster=(i+O+b).fixUrl())),o=g(n),a[o]=(i+O+n).fixUrl(),a},k=function(){if(t.cookie){var e=x.find("."+a.currentTime).text().split(":");e=e.length>2?60*(60*parseInt(e[0],10)+parseInt(e[1],10))+parseInt(e[2],10):60*parseInt(e[0],10)+parseInt(e[1],10),t.cookie("jp_"+x[0].id,(x.data(a.playing)?"1":"0")+"::"+e+"::"+P.jPlayer("option","volume").toString().substring(0,5)+(S?"::"+S:""))}},E=function(e){if(t.cookie){var n=t.cookie("jp_"+e[0].id);if(n)return n=n.split("::"),{playing:"1"===n[0],time:parseInt(n[1]||0,10),volume:parseFloat(n[2]||.8),curr:parseInt(n[3]||0,10)}}return null};m=!i&&!o,x.on("setEndedFn",function(n,o){e.ended=o&&t.isFunction(o)?o:null}),P.jPlayer({cssSelectorAncestor:y,backgroundColor:e.backgroundColor,supplied:r,swfPath:e.resPath+"/"+e.swf,solution:e.solution,size:{width:"100%",height:"100%"},fullWindow:!i&&e.fullScreen,preload:"auto",loop:e.loop,volume:e.volume,autohide:{restored:m,full:m},ready:function(){var n=t(this),o=e.saveStatus?E(x):null;x.data("media",n),e.saveStatus&&(t(window).on("unload",k),o&&(S=o.curr));var a=I();w&&w.hide(),n.jPlayer("setMedia",a),x.on({play:p,pause:l,stop:d,destroy:u}),e.saveStatus&&o?(n.jPlayer("volume",o.volume),n.jPlayer(o.playing?"play":"pause",o.time)):e.auto&&!document.touchMode&&n.jPlayer("play"),e.lowPriority||t(window).on("keydown",f)},play:function(){t(this).jPlayer("pauseOthers"),x.data(a.playing,!0),document.touchMode&&settimeout(function(){x.find("."+a.title).fadeOut(1e3)},600),t.isFunction(e.play)&&e.play.call()},pause:function(){x.data(a.playing,!1),t.isFunction(e.pause)&&e.pause.call()},stop:function(){x.data(a.playing,!1),document.touchMode&&x.find("."+a.title).fadeIn(300),t.isFunction(e.stop)&&e.stop.call()},ended:function(){t.isArray(j)&&(S+1Unsupported media formatYou might need to either update your browser or the Flash plugin or use another browser to play this media.'}}(jQuery),function(t){var e=0,n=0,o=1,a=1,i=2,r=2,s=["left","center","right"],l=["top","middle","bottom"],u="align-left align-center align-right valign-top valign-middle valign-bottom";t.fn.alignTo=function(d,p){if(p=t.extend({},t.fn.alignTo.defaults,p),"string"==typeof d&&(d=t(d)),d instanceof t&&d.length){var c,f,h,v=t(window).width(),g=t(window).height();if("AREA"===d[0].nodeName&&"RECT"===d[0].shape.toUpperCase()){var m=d[0].coords.split(",");f=parseInt(m[2],10)-parseInt(m[0],10),h=parseInt(m[3],10)-parseInt(m[1],10),c=d.parents().not("map").eq(0).offset(),c.left+=parseInt(m[0],10),c.top+=parseInt(m[1],10)}else c=d.offset(),f=d.outerWidth(),h=d.outerHeight();return t(this).each(function(){var d=t(this),m=p.pos[2],y=p.pos[3];d.css("maxHeight","none");var j=d.outerWidth(),T=d.outerHeight(),b=Math.round(c.left+p.pos[2]*f/2+(p.pos[2]-1)*p.gap),w=Math.round(c.top+p.pos[3]*h/2+(p.pos[3]-1)*p.gap),P=Math.round(b-p.pos[0]*j/2),x=Math.round(w-p.pos[1]*T/2);(0>x||x+T>g)&&(p.pos[2]!==o?x=2*x+T>g?g-T:0:p.pos[3]===n?g>2*c.top+h&&(x=c.top+h+p.gap,y=r):p.pos[3]===r&&g<2*c.top+h&&(x=Math.max(0,c.top-T-p.gap),y=n),0>x&&(x=0),x+T>g&&d.css({overflow:"auto",maxHeight:g-x-(parseInt(d.css("paddingTop"),10)+parseInt(d.css("paddingBottom"),10))})),(0>P||P+j>v)&&(p.pos[3]!==a?P=2*P+j>v?v-j:0:p.pos[2]===e?v>2*c.left+f&&(P=c.left+f+p.gap,m=i):p.pos[2]===i&&v<2*c.left+f&&(P=Math.max(0,c.left-j-p.gap),m=e),0>P&&(P=0),P+j>v&&d.css({overflow:"auto",maxWidth:v-P-(parseInt(d.css("paddingLeft"),10)+parseInt(d.css("paddingRight"),10))})),d.css({position:"absolute",left:P,top:x}).removeClass(u).addClass("align-"+s[m]).addClass("valign-"+l[y])})}},t.fn.alignTo.defaults={gap:0,pos:[o,r,o,n]}}(jQuery),function(t){t.fn.addTooltip=function(e,n){e&&"string"!=typeof e&&!e.jquery&&(n=e,e=null);var o={tooltip:"tooltip"},a=".tt";n=t.extend({},t.fn.addTooltip.defaults,n),t.fn.hideAllTooltips=function(){t("."+n.className).hide()};var i=function(e,a){var i;if(a)if("string"==typeof a)i=t("
",{html:a}).appendTo("body");else{if(!a.jquery)return null;i=t.contains(document.body,a[0])?a:a.appendTo("body")}else{if((a=e.data(o.tooltip))?("."===a.charAt(0)?a=e.find(a):"#"===a.charAt(0)&&(a=t(a)),a.jquery&&a.removeClass("hidden")):(a=e.attr("title"),e.removeAttr("title")),!a||!a.length)return null;i=t("
",{html:a}).appendTo("body")}return i.addClass(n.className).hide(),i.append(t("",{"class":n.nub})),i};return this.each(function(){var o,r,s,l,u=t(this),d=!1,p=!1,c=function(){s=clearTimeout(s),d=!0,o.finish().show()},f=function(){p||(clearTimeout(s),d=!1,s=setTimeout(g,100))},h=function(){r=clearTimeout(r),clearTimeout(s),d=!1,s=setTimeout(g,100)},v=function(){return h(),!0},g=function(){!d&&o&&o.stop(!0,!1).fadeOut(200,function(){o.hide()})},m=function(){clearTimeout(s),s=setTimeout(g,n.stay)},y=function(){return(o=i(u,e))?(document.touchMode||o.on("mouseover"+a,c).on("mouseout"+a,f),o.find("input, textarea").on("focus"+a,function(){p=!0,c()}).on("blur"+a,function(){p=!1}),!0):!1},j=function(){var t=u.offset();t.top===l.top&&t.left===l.left&&o.fadeIn(300).alignTo(u,{gap:10,pos:n.pos})},T=function(){if(o)o.stop(!0,!1),s=clearTimeout(s);else if(!y())return;l=u.offset(),clearTimeout(r),r=setTimeout(j,n.delay),document.touchMode?m():d=!0},b=function(t){if(t.preventDefault(),!o||o.is(":hidden"))T();else if(d=!1,h(),"A"===u[0].nodeName){var e=u.attr("href");e&&!e.startsWith("javascript:")?window.location.href=e:u.trigger("click")}return!1},w=function(t){t.preventDefault(),t.stopPropagation()};u.on("removeTooltip",h),document.touchMode?u.on("touchstart"+a+" pointerdown"+a+" MSPointerDown"+a,b).on("touchend"+a+" touchcancel"+a+" pointerup"+a+" MSPointerUp"+a,w).on("click"+a,w):u.on("focus"+a+" mouseenter"+a,T).on("blur"+a+" mouseleave"+a,h).on("click"+a,v)})},t.fn.addTooltip.defaults={delay:50,className:"hint",nub:"nub",stay:2e3,pos:[1,2,1,0]}}(jQuery);