function addThisListp(n,t,i,r,u){var f=$(n).text();return $.ajax({url:"/page/BLKLADD",type:"POST",data:{list:u,rid:i,ids:t==1?r:"",subjects:$("#sbject").val(),brands:$("#brnds").val(),sourceListId:0},success:function(n){_message(f,"Ekleme İşlemi Yapıldı");__popup_nextprev(this,1);self.opener.LoadList(n.data);self.opener.refreshListCount();self.opener.LoadListForList(n.data)}}),!1}function addallList(n,t,i,r){var u="";if($(n).parent().parent().find("li input[type='checkbox']").each(function(){$(this).attr("checked")&&(u+=","+$(this).val())}),u==""){alert("Lütfen liste seçiniz.");return}return $.ajax({url:"/page/BLKLADD",type:"POST",data:{list:u,rid:i,ids:t==1?r:"",subjects:$("#sbject").val(),brands:$("#brnds").val(),sourceListId:0},success:function(n){_message("","Ekleme İşlemi Yapıldı");__popup_nextprev(this,1);self.opener.LoadList(n.data);self.opener.refreshListCount();self.opener.LoadListForList(n.data)}}),!1}function __popup_nextprev(n,t){spin=_processing();var i=self.opener._popup_nextprev(n,t);if(i===undefined){alert("Bu pencere ile ilgili yeni bir arama yapıldı. Lütfen bu pencereyi kapatıp listeden yeni bir kayıt seçiniz.");spin.hide();return}i!="*timer*"?(window.location.href=i,spin.hide()):(self.opener.window.globalWaitLoad=!1,setInterval(function(){if(!self.opener._popup_waitLoad()){setTimeout("__popup_nextprev(null,2)",1e3);return}},1e3))}function __popupSimuleNextrecord(){if(self.opener!=undefined&&self.opener!=null){var n=self.opener._popup_nextprev_url(null,1);n=n.replace("f=","g=");$("iframe[name='_readerframe']").attr("src",n)}}function refreshPopup(){var n=window.location.href;n.indexOf("refresh=")==-1&&(n+=n.indexOf("?")>-1?"&refresh=true":"?refresh=true");window.location.href=n}function deletePopup(n,t,i){var r=$("#result_Table_"+t+" tr[data-id='"+i+"']"),u=$(r).attr("data-id"),t=_GetActiveRID(),f=$(r).find(".draggableNews a.poplink").text();$(r).css("background-color","#E1F8FF");$.ajax({url:"/page/RRLID",type:"POST",data:{id:u,rid:t},success:function(){_nextprev(this,1);$(r).animate({opacity:.25,position:"absolute",height:"toggle"},1500,function(){$(this).remove()})}})}function deleteWebCast(n,t){console.log(t);$.ajax({url:"/page/WebCastRemove",type:"POST",data:{rid:t},success:function(){_nextprev(this,1);$(_p).animate({opacity:.25,position:"absolute",height:"toggle"},1500,function(){$(this).remove()})}})}function _changeHeight(){var n,i,t;typeof innerWidth=="number"?(myWidth=window.innerWidth,myHeight=window.innerHeight):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?(myWidth=document.documentElement.clientWidth,myHeight=document.documentElement.clientHeight):document.body&&(document.body.clientWidth||document.body.clientHeight)&&(myWidth=document.body.clientWidth,myHeight=document.body.clientHeight);n=myHeight;i=_GetActiveRID();n=n-$("body").find(".title").height()-$("body").find(".subject").height()-10;i==4&&$("body").find(".show .main .viewerframe").height(n);t=0;$(".footer").get(0)!=undefined&&(t=76);n=n-t;$("body").find(".show .left").height(n);$("body").find(".show .main").height(n)}function exportformstart(n){if(n==0){var f=getActiveSubjectList(),e=getActiveBrandList(),t=_GetActiveRID();$("#resultDateRangeD"+t)!=undefined&&$("input[name='date']").val($("#resultDateRangeD"+t).val());$("#date")!=undefined&&$("input[name='date']").val($("#date").val());t==555&&($("input[name='MediaType']").each(function(){$(this).attr("checked")=="checked"&&$("input[name='rid2']").val($(this).val())}),$("input[name='date']").val($("#resultDateArsiv").val()));$("input[name='hdsubject']").val(f);$("input[name='hdbrands']").val(e);$("input[name='rid']").val(t);$("input[name='page']").val($("#activePage").val());$("input[name='showtype']").val($("#activeShowType").val());var r="",u="",i=$(".bd-content section#content .tab section.data .datatable th a[class*='active']");i&&(r=$(i).attr("data-sort-field"),u=$(i).attr("data-sort-direct"));$("input[name='sf']").val(r);$("input[name='sd']").val(u)}}function StartAsync(){$("#asynctitlemaster").show().toggleClass("asynctoogleclass",3e3);$("#asynctitlemaster").toggleClass("asynctoogleclass",1e3);globaltimer==1&&(globaltimer=0,CheckSync())}function _message(n,t,i){$.gritter.add({title:n,text:t,time:i!=undefined?i:3e3,fade_out_speed:350})}function check(n){$.ajax({url:"/export/checkstatusput/"+n,dataType:"json",cache:!1,success:function(t){$("#statusbar"+n).css("width",t.percent+"%");$("#statustext"+n).html("("+t.percent+"%)");$("#statusbar"+n).find("span").html(t.percent+"%");t.percent==100&&t.isEnd==1?($("#statustext"+n).html(""),$("#panel2"+n).html("<a target='_blank' href='"+$("#panel2"+n).attr("data-file")+"'>İndir<\/a> ")):t.percent==100&&t.isEnd==0?($("#statustext"+n).html(""),$("#panel2"+n).html("Hazırlanıyor..."),isWindowOpen==1&&setTimeout("check('"+n+"');",1e3)):isWindowOpen==1&&setTimeout("check('"+n+"');",1e3)}})}function _triggerClick(){return $.ajax({url:"/export/checkstatus",type:"GET",cache:!1,success:function(n){$.fancybox.open(n,{beforeClose:function(){isWindowOpen=0}})}}),!1}function submitdownloadForm(n){var t=(new Date).getTime();$(n).find("input[name='token']").val(t);fileDownloadCheckTimer=window.setInterval(function(){var n=$.cookie("fileDownloadToken");n==t&&finishDownload()},500);$(n).submit()}function CheckSync(){globaltimer!=1&&$.ajax({url:"/export/CheckSync/",cache:!1,dataType:"json",success:function(n){n.isSession==1?($("#asynctitlemaster").show(),n.isMessage>0&&$(n.Messages).each(function(){if(_message("Dosya Durumu",$(this)[0].message),$(this)[0].viewLink!=""){var n='<a class="fancypdf" href="'+$(this)[0].viewLink+'" style="width:5px;height:5px;display:none;"> <\/a>';$("body").append(n);$(".fancypdf").click(function(){return $.fancybox({type:"html",autoSize:!1,content:'<embed src="'+this.href+'#nameddest=self&page=1&view=FitH,0&zoom=80,0,0" type="application/pdf" height="99%" width="100%" />',beforeClose:function(){$(".fancybox-inner").unwrap()}}),!1});$(".fancypdf").trigger("click")}else alert('İndirme işlemi tamamlanan dosyaları görüntülemek için ekranda bulunan "Dışa Aktarımlar" butonuna tıklayınız.')}),setTimeout("CheckSync()",2500),globaltimer=0):globaltimer=1}})}function listexportformstart(n){var i,r,t;n==0&&(i=getActiveSubjectList(),r=getActiveBrandList(),$("input[name='hdsubject']").val(i),$("input[name='hdbrands']").val(r),$("input[name='rid']").val(_GetActiveRID()),t="",$("#data_list_1 li input[type='checkbox']").each(function(){$(this).attr("checked")&&(t+=","+$(this).val())}),$("input[name='list']").val(t),t==""&&($.fancybox.close(),alert("Lütfen liste seçiniz")))}function getActiveSubjectList(){return $("#sbject").val()}function getActiveBrandList(){return $("#brnds").val()}function _onsubmitdownload(n){var t=(new Date).getTime();return $(n).find("input[name='token']").val(t),fileDownloadCheckTimer=window.setInterval(function(){var n=$.cookie("fileDownloadToken");n==t&&finishDownload()},500),!0}function finishDownload(){window.clearInterval(fileDownloadCheckTimer);$.cookie("fileDownloadToken",null);$.fancybox.close()}function onsubmitfancy(n){n.error==1?alert(n.message):($.fancybox.close(),alert("Mailiniz Gönderildi"))}function _loading(){return!1}function _GetActiveRID(){return parseInt($("#rid").val())}function getSubjectBrandFormDataObj(n,t,i,r,u){var f=$("#sbject").val(),e=$("#brnds").val();return{sbjct:f,brnds:e,LinkId:t,ResultId:i,rid:n,pageno:r,isH:u}}function __textHightlight(){if(!$.browser.msie||$.browser.version!="8.0"){var n=$("#toptable .col-sm-6 .row .ml-auto strong[data-id='brands']").html().split(",");(n!=null||n!=[])&&n.forEach(function(n){$(".inpadding .text").highlight(n,{element:"em",className:"texthight"})})}}function _btnTriggerpagetype(){$(".windowContainer .inpadding .pagetype button").unbind("click");$(".windowContainer .inpadding .pagetype button").click(function(){return $(this).parent().find("button").each(function(){$(this).removeClass("active")}),$(this).addClass("active"),$(".inpadding .paging a").length>1&&($(this).attr("data-type")=="all"?$.ajax({url:"/page/GetResultAllPage",type:"POST",data:{id:$(this).parent().attr("data-id"),rid:$(this).parent().attr("data-rid")},success:function(n){$(".inpadding .text").html(n);__textHightlight()}}):showPageimage($(".inpadding .paging a.selected").get(0))),!1})}function setWindowIcon(){$(".rightMenu li a[class=zoomin]").click(function(){var n=$(this).parent().parent().parent().find(".data").attr("data-zoom");return n=parseInt(n)+5,n>150&&(n=150),$(this).parent().parent().parent().find(".data").width(n+"%"),$(this).parent().parent().parent().find(".data").attr("data-zoom",n),$(this).parent().parent().parent().find(".data").removeClass("datapopup"),!1});$(".rightMenu li a[class=zoomout]").click(function(){var n=$(this).parent().parent().parent().find(".data").attr("data-zoom");return n=parseInt(n)-5,n<30&&(n=30),$(this).parent().parent().parent().find(".data").width(n+"%"),$(this).parent().parent().parent().find(".data").attr("data-zoom",n),$(this).parent().parent().parent().find(".data").removeClass("datapopup"),!1});$(".rightMenu li a[class=full]").click(function(){return w=150,$(this).parent().parent().parent().find(".data").width(w+"%"),$(this).parent().parent().parent().find(".data").attr("data-zoom",w),$(this).parent().parent().parent().find(".data").removeClass("datapopup"),!1});$(".zoommenu ul li a[class=zoomin]").click(function(){var n=$("#pressimage").attr("data-zoom");return n=parseInt(n)+5,n>150&&(n=150),$("#pressimage").width(n+"%"),$("#pressimage").attr("data-zoom",n),$("#pressimage").removeClass("datapopup"),!1});$(".zoommenu ul li a[class=zoomout]").click(function(){var n=$("#pressimage").attr("data-zoom");return n=parseInt(n)-5,n<30&&(n=30),$("#pressimage").width(n+"%"),$("#pressimage").attr("data-zoom",n),$("#pressimage").removeClass("datapopup"),!1});$(".zoommenu ul li a[class=zoomfull]").click(function(){return w=150,$("#pressimage").width(w+"%"),$("#pressimage").attr("data-zoom",w),$("#pressimage").removeClass("datapopup"),!1});$(".zoommenu ul li a[class=showtitle]").click(function(){var t=0,r,n,i;return $(".windowContainer").find(".subject").css("display")=="none"?($(".windowContainer").find(".subject").css("display","table"),t=1):($(".windowContainer").find(".subject").css("display","none"),t=0),$.cookie("cookieInfoViewFlag2",null),$.cookie("cookieInfoViewFlag2",t,{path:"/",expires:100,secure:!1,raw:!0}),r=_GetActiveRID(),n=window.innerHeight,$(".apwrap").height(n+12),$(".windowContainer").height(n+12),i=$(".windowContainer").find(".subject").height(),$(".windowContainer").find(".subject").css("display")=="none"&&(i=0),n=n-$(".windowContainer").find(".title").height()-i-0,$(".windowContainer").find(".show .left").height(n),$(".windowContainer").find(".show .main").height(n),r==4&&$(".windowContainer").find(".show .main .viewerframe").height(n),!1})}function changeInfoViewInitial(){var i=$.cookie("cookieInfoViewFlag2"),r=_GetActiveRID(),n,t;return r==1?i==null||i==1?$(".windowContainer").find(".subject").css("display","table"):$(".windowContainer").find(".subject").css("display","none"):$(".windowContainer").find(".subject").css("display","table"),n=window.innerHeight,$(".apwrap").height(n+12),$(".windowContainer").height(n+12),t=$(".windowContainer").find(".subject").height(),$(".windowContainer").find(".subject").css("display")=="none"&&(t=0),n=n-$(".windowContainer").find(".title").height()-t-0,$(".windowContainer").find(".show .left").height(n),$(".windowContainer").find(".show .main").height(n),r==4&&$(".windowContainer").find(".show .main .viewerframe").height(n),!1}function changepressfullpage(n){$(n).parent().find("button").removeClass("active");$(n).addClass("active");$(".left .inpadding .page a:first-child").trigger("click")}function __controlPageView(){$(".inpadding .pagetype button").removeClass("active");$(".inpadding .pagetype button[data-type='page']").addClass("active")}function changeTextView(n){return $(n).hasClass("active")?($(n).removeClass("active"),$(".inpadding .text").hide(),$("#pressimage").show(),$(".inpadding .pagetype").hide(),$(".windowContainer .rightMenu li[data-role='i']").css("opacity","1")):($(n).addClass("active"),$(".inpadding .text").show(),$(".inpadding .pagetype").show(),$("#pressimage").hide(),$(".windowContainer .rightMenu li[data-role='i']").css("opacity",".15"),__textHightlight()),!1}function changeTextViewen(n){return $(n).hasClass("active")?($(n).removeClass("active"),$(".inpadding .texten").hide(),$("#pressimage").show(),$(".inpadding .pagetype").hide(),$(".windowContainer .rightMenu li[data-role='i']").css("opacity","1")):($(n).addClass("active"),$(".inpadding .text").showhide,$(".inpadding .texten").show(),$(".inpadding .pagetype").hide(),$("#pressimage").hide(),$(".windowContainer .rightMenu li[data-role='i']").css("opacity",".15")),!1}function highlighterPopup(){highlighterStatus=highlighterStatus==1?0:1;$("div.page.paging a.selected")[0].click()}function showPageimage(n){var u,e;$(n).parent().find("a").each(function(){$(this).removeClass("selected")});$(n).addClass("selected");u=$(n).attr("href");$("#pressimage").attr("src","");var r=$(n).attr("data-oid"),f=$(n).attr("data-id"),t=1;$(n).attr("data-ish")&&(t=$(n).attr("data-ish"));t=highlighterStatus;var i=$(n).attr("data-pageno"),o=$(n).attr("data-stxcm"),s=$(n).attr("data-adv")+"$";if($("#pageHeaderTable .col-6 .row .ml-auto strong[data-id='pageno']").html(i),$("#pageHeaderTable .col-6 .row .ml-auto strong[data-id='stxcm']").html(o),typeof $(n).attr("data-adv")=="undefined"?$("#pageHeaderTable .col-6 .row .ml-auto strong[data-id='adv']").html("n/a"):$("#pageHeaderTable .col-6 .row .ml-auto strong[data-id='adv']").html(s),$("#activePage").get(0)!=undefined&&$("#activePage").val(i),$("#activeShowType").val("k"),parseInt(r)>0&&$(".inpadding .presstype button.active").attr("data-type")=="k")if(e=getSubjectBrandFormDataObj(_GetActiveRID(),r,f,i,t),$.browser.msie||!0){var h=$(n).attr("data-href"),c=$("#sbject").val(),l=$("#brnds").val(),a=$("#refresh").val();$("#pressimage").attr("src",h+"?h="+t+"&s="+c+"&b="+l+"&r="+a)}else $.ajax({cache:!0,url:u,type:"POST",contentType:"application/json",data:JSON.stringify(e),success:function(n){$("#pressimage").attr("src","data:image/jpeg;base64,"+n);isiPad&&$(".scroll-pane").getNiceScroll().resize()}});else $("#activeShowType").val("p"),$("#pressimage").attr("src",$(n).attr("data-fullpage-href")),$(".scroll-pane").getNiceScroll().resize();return $("#pressimage").css("left",""),$("#pressimage").css("top",""),$(n).hasClass("firstPage")&&$("#activeShowType").val("c"),__controlPageView(),parseInt(r)>0?$.ajax({url:"/page/GetResultLink",type:"POST",data:{resultid:f,rid:1,pageno:i},success:function(n){$(".inpadding .text").html(n);__textHightlight()}}):$(".inpadding .text").html(""),!1}function _processing(){var n=document.createElement("div"),t,i;return document.body.appendChild(n),t=new Spinner({lines:13,length:11,width:5,radius:17,corners:1,rotate:0,color:"#FFF",speed:1,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2e9,top:"auto",left:"auto"}).spin(n),i=iosOverlay({text:"Yükleniyor",duration:6e5,spinner:t}),i}var isiPad,highlighterStatus,fileDownloadCheckTimer,globaltimer,globalbrandCount;(function(){function y(){return function(){}}function s(n){return function(){return this[n]}}function p(n){return function(){return n}}function n(t,i,r){if("string"==typeof t){if(0===t.indexOf("#")&&(t=t.slice(1)),n.wa[t])return n.wa[t];t=n.v(t)}if(!t||!t.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return t.player||new n.w(t,i,r)}function ut(n){n.t("vjs-lock-showing")}function vt(t,i,r,u){return r!==f?(t.a.style[i]=-1!==(""+r).indexOf("%")||-1!==(""+r).indexOf("px")?r:"auto"===r?"":r+"px",u||t.j("resize"),t):t.a?(r=t.a.style[i],u=r.indexOf("px"),-1!==u?parseInt(r.slice(0,u),10):parseInt(t.a["offset"+n.$(i)],10)):0}function yt(t,i){var r,u,f,e;return(r=t.a,u=n.Xc(r),e=f=r.offsetWidth,r=t.handle,t.g.zd)?(e=u.top,u=i.changedTouches?i.changedTouches[0].pageY:i.pageY,r&&(r=r.v().offsetHeight,e+=r/2,f-=r),Math.max(0,Math.min(1,(e-u+f)/f))):(f=u.left,u=i.changedTouches?i.changedTouches[0].pageX:i.pageX,r&&(r=r.v().offsetWidth,f+=r/2,e-=r),Math.max(0,Math.min(1,(u-f)/e)))}function ui(t,i){t.Z(i);i.d("click",n.bind(t,function(){ut(this)}))}function pt(n){n.oa=r;n.va.m("vjs-lock-showing");n.a.setAttribute("aria-pressed",r);n.J&&0<n.J.length&&n.J[0].v().focus()}function ft(n){n.oa=i;ut(n.va);n.a.setAttribute("aria-pressed",i)}function fi(t){var i={sources:[],tracks:[]},r,f,u,e;if(n.k.B(i,n.wb(t)),t.hasChildNodes())for(t=t.childNodes,u=0,e=t.length;u<e;u++)r=t[u],f=r.nodeName.toLowerCase(),"source"===f?i.sources.push(n.wb(r)):"track"===f&&i.tracks.push(n.wb(r));return i}function wt(t,u,f){t.h?(t.aa=i,t.h.D(),t.Db&&(t.Db=i,clearInterval(t.Qa)),t.Eb&&bt(t),t.h=i):"Html5"!==u&&t.F&&(t.a.removeChild(t.F),t.F.player=e,t.F=e);t.ia=u;t.aa=i;var o=n.k.B({source:f,parentEl:t.a},t.g[u.toLowerCase()]);f&&(f.src==t.u.src&&0<t.u.currentTime&&(o.startTime=t.u.currentTime),t.u.src=f.src);t.h=new window.videojs[u](t,o);t.h.M(function(){if(this.b.Ta(),!this.l.progressEvents){var t=this.b;t.Db=r;t.Qa=setInterval(n.bind(t,function(){this.u.kb<this.buffered().end(0)?this.j("progress"):1==this.Ia()&&(clearInterval(this.Qa),this.j("progress"))}),500);t.h.U("progress",function(){this.l.progressEvents=r;var n=this.b;n.Db=i;clearInterval(n.Qa)})}this.l.timeupdateEvents||(t=this.b,t.Eb=r,t.d("play",t.yc),t.d("pause",t.ya),t.h.U("timeupdate",function(){this.l.timeupdateEvents=r;bt(this.b)}))})}function bt(n){n.Eb=i;n.ya();n.n("play",n.yc);n.n("pause",n.ya)}function h(t,i,r){if(t.h&&!t.h.aa)t.h.M(function(){this[i](r)});else try{t.h[i](r)}catch(u){throw n.log(u),u;}}function o(t,r){if(t.h&&t.h.aa)try{return t.h[r]()}catch(u){throw t.h[r]===f?n.log("Video.js: "+r+" method not defined for "+t.ia+" playback technology.",u):"TypeError"==u.name?(n.log("Video.js: "+r+" unavailable on "+t.ia+" playback technology element.",u),t.h.aa=i):n.log(u),u;}}function kt(t){t.Zc=i;n.n(document,"keydown",t.hc);document.documentElement.style.overflow=t.Uc;n.t(document.body,"vjs-full-window");t.j("exitFullWindow")}function k(n,t){return t!==f?(t=!!t,t!==n.Ob&&((n.Ob=t)?(n.ja=r,n.t("vjs-user-inactive"),n.m("vjs-user-active"),n.j("useractive")):(n.ja=i,n.h.U("mousemove",function(n){n.stopPropagation();n.preventDefault()}),n.t("vjs-user-active"),n.m("vjs-user-inactive"),n.j("userinactive"))),n):n.Ob}function ei(){var t=n.media.Ua[d];return function(){throw Error('The "'+t+"\" method is not available on the playback technology's API");}}function oi(){var n=ot[l],t=n.charAt(0).toUpperCase()+n.slice(1);dt["set"+t]=function(t){return this.a.vjs_setProperty(n,t)}}function ni(n){dt[n]=function(){return this.a.vjs_getProperty(n)}}function w(n){return n.za=n.za||[],n.za}function ti(n,t,r){for(var o=n.za,f=0,s=o.length,u,e;f<s;f++)u=o[f],u.id()===t?(u.show(),e=u):r&&u.K()==r&&0<u.mode()&&u.disable();(t=e?e.K():r?r:i)&&n.j(t+"trackchange")}function ii(t){0===t.ha&&t.load();0===t.ga&&(t.b.d("timeupdate",n.bind(t,t.update,t.Q)),t.b.d("ended",n.bind(t,t.reset,t.Q)),("captions"===t.A||"subtitles"===t.A)&&t.b.V.textTrackDisplay.Z(t))}function ri(n){var t=n.split(":"),i,r,u;return n=0,3==t.length?(i=t[0],r=t[1],t=t[2]):(i=0,r=t[0],t=t[1]),t=t.split(/\s+/),t=t.splice(0,1)[0],t=t.split(/\.|,/),u=parseFloat(t[1]),t=t[0],n+=3600*parseFloat(i),n+=60*parseFloat(r),n+=parseFloat(t),u&&(n+=u/1e3),n}function u(n,t){var r=n.split("."),i=st,u;for((r[0]in i)||!i.execScript||i.execScript("var "+r[0]);r.length&&(u=r.shift());)!r.length&&t!==f?i[u]=t:i=i[u]?i[u]:i[u]={}}var f=void 0,r=!0,e=null,i=!1,t,it,b,ht,ct,g,lt,rt,a,nt,at,v,c,et,d,l,tt,st;for(document.createElement("video"),document.createElement("audio"),document.createElement("track"),it=n,window.Qd=window.Rd=n,n.Rb="4.2",n.Bc="https:"==document.location.protocol?"https://":"http://",n.options={techOrder:["html5","flash"],html5:{},flash:{},width:300,height:150,defaultVolume:0,children:{mediaLoader:{},posterImage:{},textTrackDisplay:{},loadingSpinner:{},bigPlayButton:{},controlBar:{}},notSupportedMessage:'Sorry, no compatible source and playback technology were found for this video. Try using another browser like <a href="http://bit.ly/ccMUEC">Chrome<\/a> or download the latest <a href="http://adobe.ly/mwfN1">Adobe Flash Player<\/a>.'},"GENERATED_CDN_VSN"!==n.Rb&&(it.options.flash.swf=n.Bc+"vjs.zencdn.net/"+n.Rb+"/video-js.swf"),n.wa={},n.ka=n.CoreObject=y(),n.ka.extend=function(t){var u,i,r;t=t||{};u=t.init||t.i||this.prototype.init||this.prototype.i||y();i=function(){u.apply(this,arguments)};i.prototype=n.k.create(this.prototype);i.prototype.constructor=i;i.extend=n.ka.extend;i.create=n.ka.create;for(r in t)t.hasOwnProperty(r)&&(i.prototype[r]=t[r]);return i},n.ka.create=function(){var t=n.k.create(this.prototype);return this.apply(t,arguments),t},n.d=function(t,r,u){var f=n.getData(t);f.z||(f.z={});f.z[r]||(f.z[r]=[]);u.s||(u.s=n.s++);f.z[r].push(u);f.W||(f.disabled=i,f.W=function(i){var r;if(!f.disabled&&(i=n.gc(i),r=f.z[i.type],r))for(var r=r.slice(0),u=0,e=r.length;u<e&&!i.lc();u++)r[u].call(t,i)});1==f.z[r].length&&(document.addEventListener?t.addEventListener(r,f.W,i):document.attachEvent&&t.attachEvent("on"+r,f.W))},n.n=function(t,i,r){var u,f;if(n.kc(t)&&(u=n.getData(t),u.z))if(i){if(f=u.z[i],f){if(r){if(r.s)for(u=0;u<f.length;u++)f[u].s===r.s&&f.splice(u--,1)}else u.z[i]=[];n.dc(t,i)}}else for(f in u.z)i=f,u.z[i]=[],n.dc(t,i)},n.dc=function(t,r){var u=n.getData(t);0===u.z[r].length&&(delete u.z[r],document.removeEventListener?t.removeEventListener(r,u.W,i):document.detachEvent&&t.detachEvent("on"+r,u.W));n.Ab(u.z)&&(delete u.z,delete u.W,delete u.disabled);n.Ab(u)&&n.qc(t)},n.gc=function(n){function o(){return r}function s(){return i}var u,t,f;if(!n||!n.Bb){u=n||window.event;n={};for(t in u)"layerX"!==t&&"layerY"!==t&&(n[t]=u[t]);n.target||(n.target=n.srcElement||document);n.relatedTarget=n.fromElement===n.target?n.toElement:n.fromElement;n.preventDefault=function(){u.preventDefault&&u.preventDefault();n.returnValue=i;n.zb=o};n.zb=s;n.stopPropagation=function(){u.stopPropagation&&u.stopPropagation();n.cancelBubble=r;n.Bb=o};n.Bb=s;n.stopImmediatePropagation=function(){u.stopImmediatePropagation&&u.stopImmediatePropagation();n.lc=o;n.stopPropagation()};n.lc=s;n.clientX!=e&&(t=document.documentElement,f=document.body,n.pageX=n.clientX+(t&&t.scrollLeft||f&&f.scrollLeft||0)-(t&&t.clientLeft||f&&f.clientLeft||0),n.pageY=n.clientY+(t&&t.scrollTop||f&&f.scrollTop||0)-(t&&t.clientTop||f&&f.clientTop||0));n.which=n.charCode||n.keyCode;n.button!=e&&(n.button=n.button&1?0:n.button&4?1:n.button&2?2:0)}return n},n.j=function(t,u){var f=n.kc(t)?n.getData(t):{},e=t.parentNode||t.ownerDocument;return"string"==typeof u&&(u={type:u,target:t}),u=n.gc(u),f.W&&f.W.call(t,u),e&&!u.Bb()&&u.bubbles!==i?n.j(e,u):e||u.zb()||(f=n.getData(u.target),!u.target[u.type])||(f.disabled=r,"function"==typeof u.target[u.type]&&u.target[u.type](),f.disabled=i),!u.zb()},n.U=function(t,i,r){function u(){n.n(t,i,u);r.apply(this,arguments)}u.s=r.s=r.s||n.s++;n.d(t,i,u)},b=Object.prototype.hasOwnProperty,n.e=function(n,t){var r,i;r=document.createElement(n||"div");for(i in t)b.call(t,i)&&(-1!==i.indexOf("aria-")||"role"==i?r.setAttribute(i,t[i]):r[i]=t[i]);return r},n.$=function(n){return n.charAt(0).toUpperCase()+n.slice(1)},n.k={},n.k.create=Object.create||function(n){function t(){}return t.prototype=n,new t},n.k.ta=function(n,t,i){for(var r in n)b.call(n,r)&&t.call(i||this,r,n[r])},n.k.B=function(n,t){if(!t)return n;for(var i in t)b.call(t,i)&&(n[i]=t[i]);return n},n.k.fc=function(t,i){var r,u,f;t=n.k.copy(t);for(r in i)b.call(i,r)&&(u=t[r],f=i[r],t[r]=n.k.mc(u)&&n.k.mc(f)?n.k.fc(u,f):i[r]);return t},n.k.copy=function(t){return n.k.B({},t)},n.k.mc=function(n){return!!n&&"object"==typeof n&&"[object Object]"===n.toString()&&n.constructor===Object},n.bind=function(t,i,r){function u(){return i.apply(t,arguments)}return i.s||(i.s=n.s++),u.s=r?r+"_"+i.s:i.s,u},n.qa={},n.s=1,n.expando="vdata"+(new Date).getTime(),n.getData=function(t){var i=t[n.expando];return i||(i=t[n.expando]=n.s++,n.qa[i]={}),n.qa[i]},n.kc=function(t){return t=t[n.expando],!(!t||n.Ab(n.qa[t]))},n.qc=function(t){var i=t[n.expando];if(i){delete n.qa[i];try{delete t[n.expando]}catch(r){t.removeAttribute?t.removeAttribute(n.expando):t[n.expando]=e}}},n.Ab=function(n){for(var t in n)if(n[t]!==e)return i;return r},n.m=function(n,t){-1==(" "+n.className+" ").indexOf(" "+t+" ")&&(n.className=""===n.className?t:n.className+" "+t)},n.t=function(n,t){var i,r;if(-1!=n.className.indexOf(t)){for(i=n.className.split(" "),r=i.length-1;0<=r;r--)i[r]===t&&i.splice(r,1);n.className=i.join(" ")}},n.ma=n.e("video"),n.G=navigator.userAgent,n.Hc=/iPhone/i.test(n.G),n.Gc=/iPad/i.test(n.G),n.Ic=/iPod/i.test(n.G),n.Fc=n.Hc||n.Gc||n.Ic,ht=n,g=n.G.match(/OS (\d+)_/i),ct=g&&g[1]?g[1]:f,ht.Cd=ct,n.Dc=/Android/i.test(n.G),lt=n,a=n.G.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i),a?(nt=a[1]&&parseFloat(a[1]),at=a[2]&&parseFloat(a[2]),rt=nt&&at?parseFloat(a[1]+"."+a[2]):nt?nt:e):rt=e,lt.Cc=rt,n.Jc=n.Dc&&/webkit/i.test(n.G)&&2.3>n.Cc,n.Ec=/Firefox/i.test(n.G),n.Dd=/Chrome/i.test(n.G),n.Mc=("ontouchstart"in window),n.wb=function(n){var s,u,f,o,t;if(s={},n&&n.attributes&&0<n.attributes.length)for(u=n.attributes,t=u.length-1;0<=t;t--)f=u[t].name,o=u[t].value,("boolean"==typeof n[f]||-1!==",autoplay,controls,loop,muted,default,".indexOf(","+f+","))&&(o=o!==e?r:i),s[f]=o;return s},n.Hd=function(n,t){var i="";return document.defaultView&&document.defaultView.getComputedStyle?i=document.defaultView.getComputedStyle(n,"").getPropertyValue(t):n.currentStyle&&(i=n["client"+t.substr(0,1).toUpperCase()+t.substr(1)]+"px"),i},n.yb=function(n,t){t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n)},n.Nb={},n.v=function(n){return 0===n.indexOf("#")&&(n=n.slice(1)),document.getElementById(n)},n.Ka=function(n,t){t=t||n;var r=Math.floor(n%60),u=Math.floor(n/60%60),i=Math.floor(n/3600),f=Math.floor(t/60%60),e=Math.floor(t/3600);return(isNaN(n)||Infinity===n)&&(i=u=r="-"),i=0<i||0<e?i+":":"",i+(((i||10<=f)&&10>u?"0"+u:u)+":")+(10>r?"0"+r:r)},n.Pc=function(){document.body.focus();document.onselectstart=p(i)},n.yd=function(){document.onselectstart=p(r)},n.trim=function(n){return(n+"").replace(/^\s+|\s+$/g,"")},n.round=function(n,t){return t||(t=0),Math.round(n*Math.pow(10,t))/Math.pow(10,t)},n.sb=function(n,t){return{length:1,start:function(){return n},end:function(){return t}}},n.get=function(n,t,i){var u,r;"undefined"==typeof XMLHttpRequest&&(window.XMLHttpRequest=function(){try{return new window.ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(n){}try{return new window.ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(t){}try{return new window.ActiveXObject("Msxml2.XMLHTTP")}catch(i){}throw Error("This browser does not support XMLHttpRequest.");});r=new XMLHttpRequest;try{r.open("GET",n)}catch(f){i(f)}u=0===n.indexOf("file:")||0===window.location.href.indexOf("file:")&&-1===n.indexOf("http");r.onreadystatechange=function(){4===r.readyState&&(200===r.status||u&&0===r.status?t(r.responseText):i&&i())};try{r.send()}catch(e){i&&i(e)}},n.qd=function(t){try{var u=window.localStorage||i;u&&(u.volume=t)}catch(r){22==r.code||1014==r.code?n.log("LocalStorage Full (VideoJS)",r):18==r.code?n.log("LocalStorage not allowed (VideoJS)",r):n.log("LocalStorage Error (VideoJS)",r)}},n.ic=function(t){return t.match(/^https?:\/\//)||(t=n.e("div",{innerHTML:'<a href="'+t+'">x<\/a>'}).firstChild.href),t},n.log=function(){n.log.history=n.log.history||[];n.log.history.push(arguments);window.console&&window.console.log(Array.prototype.slice.call(arguments))},n.Xc=function(n){var i,t;return(n.getBoundingClientRect&&n.parentNode&&(i=n.getBoundingClientRect()),!i)?{left:0,top:0}:(n=document.documentElement,t=document.body,{left:i.left+(window.pageXOffset||t.scrollLeft)-(n.clientLeft||t.clientLeft||0),top:i.top+(window.pageYOffset||t.scrollTop)-(n.clientTop||t.clientTop||0)})},n.c=n.ka.extend({i:function(t,r,u){if(this.b=t,this.g=n.k.copy(this.g),r=this.options(r),this.Q=r.id||(r.el&&r.el.id?r.el.id:t.id()+"_component_"+n.s++),this.cd=r.name||e,this.a=r.el||this.e(),this.H=[],this.pb={},this.V={},(t=this.g)&&t.children){var f=this;n.k.ta(t.children,function(n,t){t===i||t.loadEvent||(f[n]=f.Z(n,t))})}this.M(u)}}),t=n.c.prototype,t.D=function(){if(this.j("dispose"),this.H)for(var t=this.H.length-1;0<=t;t--)this.H[t].D&&this.H[t].D();this.V=this.pb=this.H=e;this.n();this.a.parentNode&&this.a.parentNode.removeChild(this.a);n.qc(this.a);this.a=e},t.L=s("b"),t.options=function(t){return t===f?this.g:this.g=n.k.fc(this.g,t)},t.e=function(t,i){return n.e(t,i)},t.v=s("a"),t.id=s("Q"),t.name=s("cd"),t.children=s("H"),t.Z=function(t,i){var r,u;return"string"==typeof t?(u=t,i=i||{},r=i.componentClass||n.$(u),i.name=u,r=new window.videojs[r](this.b||this,i)):r=t,this.H.push(r),"function"==typeof r.id&&(this.pb[r.id()]=r),(u=u||r.name&&r.name())&&(this.V[u]=r),"function"==typeof r.el&&r.el()&&(this.ra||this.a).appendChild(r.el()),r},t.removeChild=function(n){if("string"==typeof n&&(n=this.V[n]),n&&this.H){for(var t=i,u=this.H.length-1;0<=u;u--)if(this.H[u]===n){t=r;this.H.splice(u,1);break}t&&(this.pb[n.id]=e,this.V[n.name]=e,(t=n.v())&&t.parentNode===(this.ra||this.a)&&(this.ra||this.a).removeChild(n.v()))}},t.T=p(""),t.d=function(t,i){return n.d(this.a,t,n.bind(this,i)),this},t.n=function(t,i){return n.n(this.a,t,i),this},t.U=function(t,i){return n.U(this.a,t,n.bind(this,i)),this},t.j=function(t,i){return n.j(this.a,t,i),this},t.M=function(n){return n&&(this.aa?n.call(this):(this.Ra===f&&(this.Ra=[]),this.Ra.push(n))),this},t.Ta=function(){var n,t,i;if(this.aa=r,n=this.Ra,n&&0<n.length){for(t=0,i=n.length;t<i;t++)n[t].call(this);this.Ra=[];this.j("ready")}},t.m=function(t){return n.m(this.a,t),this},t.t=function(t){return n.t(this.a,t),this},t.show=function(){return this.a.style.display="block",this},t.C=function(){return this.a.style.display="none",this},t.disable=function(){this.C();this.show=y()},t.width=function(n,t){return vt(this,"width",n,t)},t.height=function(n,t){return vt(this,"height",n,t)},t.Tc=function(n,t){return this.width(n,r).height(t)},n.q=n.c.extend({i:function(t,u){var f,e;n.c.call(this,t,u);f=i;this.d("touchstart",function(n){n.preventDefault();f=r});this.d("touchmove",function(){f=i});e=this;this.d("touchend",function(n){f&&e.p(n);n.preventDefault()});this.d("click",this.p);this.d("focus",this.Na);this.d("blur",this.Ma)}}),t=n.q.prototype,t.e=function(t,i){return i=n.k.B({className:this.T(),innerHTML:'<div class="vjs-control-content"><span class="vjs-control-text">'+(this.pa||"Need Text")+"<\/span><\/div>",nd:"button","aria-live":"polite",tabIndex:0},i),n.c.prototype.e.call(this,t,i)},t.T=function(){return"vjs-control "+n.c.prototype.T.call(this)},t.p=y(),t.Na=function(){n.d(document,"keyup",n.bind(this,this.ba))},t.ba=function(n){(32==n.which||13==n.which)&&(n.preventDefault(),this.p())},t.Ma=function(){n.n(document,"keyup",n.bind(this,this.ba))},n.O=n.c.extend({i:function(t,i){n.c.call(this,t,i);this.Oc=this.V[this.g.barName];this.handle=this.V[this.g.handleName];t.d(this.oc,n.bind(this,this.update));this.d("mousedown",this.Oa);this.d("touchstart",this.Oa);this.d("focus",this.Na);this.d("blur",this.Ma);this.d("click",this.p);this.b.d("controlsvisible",n.bind(this,this.update));t.M(n.bind(this,this.update));this.P={}}}),t=n.O.prototype,t.e=function(t,i){return i=i||{},i.className+=" vjs-slider",i=n.k.B({nd:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),n.c.prototype.e.call(this,t,i)},t.Oa=function(t){t.preventDefault();n.Pc();this.P.move=n.bind(this,this.Gb);this.P.end=n.bind(this,this.Hb);n.d(document,"mousemove",this.P.move);n.d(document,"mouseup",this.P.end);n.d(document,"touchmove",this.P.move);n.d(document,"touchend",this.P.end);this.Gb(t)},t.Hb=function(){n.yd();n.n(document,"mousemove",this.P.move,i);n.n(document,"mouseup",this.P.end,i);n.n(document,"touchmove",this.P.move,i);n.n(document,"touchend",this.P.end,i);this.update()},t.update=function(){var u;if(this.a){var t,i=this.xb(),r=this.handle,f=this.Oc;isNaN(i)&&(i=0);t=i;r&&(t=this.a.offsetWidth,u=r.v().offsetWidth,t=u?u/t:0,i*=1-t,t=i+t/2,r.v().style.left=n.round(100*i,2)+"%");f.v().style.width=n.round(100*t,2)+"%"}},t.Na=function(){n.d(document,"keyup",n.bind(this,this.ba))},t.ba=function(n){37==n.which?(n.preventDefault(),this.uc()):39==n.which&&(n.preventDefault(),this.vc())},t.Ma=function(){n.n(document,"keyup",n.bind(this,this.ba))},t.p=function(n){n.stopImmediatePropagation();n.preventDefault()},n.ea=n.c.extend(),n.ea.prototype.defaultValue=0,n.ea.prototype.e=function(t,i){return i=i||{},i.className+=" vjs-slider-handle",i=n.k.B({innerHTML:'<span class="vjs-control-text">'+this.defaultValue+"<\/span>"},i),n.c.prototype.e.call(this,"div",i)},n.la=n.c.extend(),n.la.prototype.e=function(){var t=this.options().Rc||"ul";return this.ra=n.e(t,{className:"vjs-menu-content"}),t=n.c.prototype.e.call(this,"div",{append:this.ra,className:"vjs-menu"}),t.appendChild(this.ra),n.d(t,"click",function(n){n.preventDefault();n.stopImmediatePropagation()}),t},n.N=n.q.extend({i:function(t,i){n.q.call(this,t,i);this.selected(i.selected)}}),n.N.prototype.e=function(t,i){return n.q.prototype.e.call(this,"li",n.k.B({className:"vjs-menu-item",innerHTML:this.g.label},i))},n.N.prototype.p=function(){this.selected(r)},n.N.prototype.selected=function(n){n?(this.m("vjs-selected"),this.a.setAttribute("aria-selected",r)):(this.t("vjs-selected"),this.a.setAttribute("aria-selected",i))},n.R=n.q.extend({i:function(t,i){n.q.call(this,t,i);this.va=this.Ja();this.Z(this.va);this.J&&0===this.J.length&&this.C();this.d("keyup",this.ba);this.a.setAttribute("aria-haspopup",r);this.a.setAttribute("role","button")}}),t=n.R.prototype,t.oa=i,t.Ja=function(){var i=new n.la(this.b),t;if(this.options().title&&i.v().appendChild(n.e("li",{className:"vjs-menu-title",innerHTML:n.$(this.A),wd:-1})),this.J=this.createItems())for(t=0;t<this.J.length;t++)ui(i,this.J[t]);return i},t.sa=y(),t.T=function(){return this.className+" vjs-menu-button "+n.q.prototype.T.call(this)},t.Na=y(),t.Ma=y(),t.p=function(){this.U("mouseout",n.bind(this,function(){ut(this.va);this.a.blur()}));this.oa?ft(this):pt(this)},t.ba=function(n){n.preventDefault();32==n.which||13==n.which?this.oa?ft(this):pt(this):27==n.which&&this.oa&&ft(this)},n.w=n.c.extend({i:function(t,u,f){this.F=t;u=n.k.B(fi(t),u);this.u={};this.pc=u.poster;this.rb=u.controls;t.controls=i;n.c.call(this,this,u,f);this.controls()?this.m("vjs-controls-enabled"):this.m("vjs-controls-disabled");this.U("play",function(t){n.j(this.a,{type:"firstplay",target:this.a})||(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())});this.d("ended",this.ed);this.d("play",this.Jb);this.d("firstplay",this.fd);this.d("pause",this.Ib);this.d("progress",this.hd);this.d("durationchange",this.dd);this.d("error",this.Fb);this.d("fullscreenchange",this.gd);n.wa[this.Q]=this;u.plugins&&n.k.ta(u.plugins,function(n,t){this[n](t)},this);var e,o,h,s;e=this.rc;t=function(){e();clearInterval(o);o=setInterval(n.bind(this,e),250)};u=function(){e();clearInterval(o)};this.d("mousedown",t);this.d("mousemove",e);this.d("mouseup",u);this.d("keydown",e);this.d("keyup",e);this.d("touchstart",t);this.d("touchmove",e);this.d("touchend",u);this.d("touchcancel",u);h=setInterval(n.bind(this,function(){this.ja&&(this.ja=i,k(this,r),clearTimeout(s),s=setTimeout(n.bind(this,function(){this.ja||k(this,i)}),2e3))}),250);this.d("dispose",function(){clearInterval(h);clearTimeout(s)})}}),t=n.w.prototype,t.g=n.options,t.D=function(){this.j("dispose");this.n("dispose");n.wa[this.Q]=e;this.F&&this.F.player&&(this.F.player=e);this.a&&this.a.player&&(this.a.player=e);clearInterval(this.Qa);this.ya();this.h&&this.h.D();n.c.prototype.D.call(this)},t.e=function(){var u=this.a=n.c.prototype.e.call(this,"div"),t=this.F,i,e,o,s,f;if(t.removeAttribute("width"),t.removeAttribute("height"),t.hasChildNodes()){for(i=t.childNodes,e=i.length,f=[];e--;)o=i[e],s=o.nodeName.toLowerCase(),("source"===s||"track"===s)&&f.push(o);for(i=0;i<f.length;i++)t.removeChild(f[i])}return t.id=t.id||"vjs_video_"+n.s++,u.id=t.id,u.className=t.className,t.id+="_html5_api",t.className="vjs-tech",t.player=u.player=this,this.m("vjs-paused"),this.width(this.g.width,r),this.height(this.g.height,r),t.parentNode&&t.parentNode.insertBefore(u,t),n.yb(t,u),u},t.yc=function(){this.ec&&this.ya();this.ec=setInterval(n.bind(this,function(){this.j("timeupdate")}),250)},t.ya=function(){clearInterval(this.ec)},t.ed=function(){this.g.loop&&(this.currentTime(0),this.play())},t.Jb=function(){n.t(this.a,"vjs-paused");n.m(this.a,"vjs-playing")},t.fd=function(){this.g.starttime&&this.currentTime(this.g.starttime);this.m("vjs-has-started")},t.Ib=function(){n.t(this.a,"vjs-playing");n.m(this.a,"vjs-paused")},t.hd=function(){1==this.Ia()&&this.j("loadedalldata")},t.dd=function(){this.duration(o(this,"duration"))},t.Fb=function(t){n.log("Video Error",t)},t.gd=function(){this.I?this.m("vjs-fullscreen"):this.t("vjs-fullscreen")},t.play=function(){return h(this,"play"),this},t.pause=function(){return h(this,"pause"),this},t.paused=function(){return o(this,"paused")===i?i:r},t.currentTime=function(n){return n!==f?(this.u.nc=n,h(this,"setCurrentTime",n),this.Eb&&this.j("timeupdate"),this):this.u.currentTime=o(this,"currentTime")||0},t.duration=function(n){return n!==f?(this.u.duration=parseFloat(n),this):this.u.duration},t.buffered=function(){var t=o(this,"buffered"),r=t.length-1,i=this.u.kb=this.u.kb||0;return t&&0<=r&&t.end(r)!==i&&(i=t.end(r),this.u.kb=i),n.sb(0,i)},t.Ia=function(){return this.duration()?this.buffered().end(0)/this.duration():0},t.volume=function(t){return t!==f?(t=Math.max(0,Math.min(1,parseFloat(t))),this.u.volume=t,h(this,"setVolume",t),n.qd(t),this):(t=parseFloat(o(this,"volume")),isNaN(t)?1:t)},t.muted=function(n){return n!==f?(h(this,"setMuted",n),this):o(this,"muted")||i},t.Sa=function(){return o(this,"supportsFullScreen")||i},t.xa=function(){var t=n.Nb.xa;return this.I=r,t?(n.d(document,t.ub,n.bind(this,function(){this.I=document[t.I];this.I===i&&n.n(document,t.ub,arguments.callee);this.j("fullscreenchange")})),this.a[t.sc]()):this.h.Sa()?h(this,"enterFullScreen"):(this.Zc=r,this.Uc=document.documentElement.style.overflow,n.d(document,"keydown",n.bind(this,this.hc)),document.documentElement.style.overflow="hidden",n.m(document.body,"vjs-full-window"),this.j("enterFullWindow"),this.j("fullscreenchange")),this},t.nb=function(){var t=n.Nb.xa;return this.I=i,t?document[t.mb]():this.h.Sa()?h(this,"exitFullScreen"):(kt(this),this.j("fullscreenchange")),this},t.hc=function(n){27===n.keyCode&&(this.I===r?this.nb():kt(this))},t.src=function(t){var r,u,e,o,s,f,c,l;if(t instanceof Array){n:{for(r=t,u=0,e=this.g.techOrder;u<e.length;u++)if(o=n.$(e[u]),s=window.videojs[o],s.isSupported())for(f=0,c=r;f<c.length;f++)if(l=c[f],s.canPlaySource(l)){r={source:l,h:o};break n}r=i}r?(t=r.source,r=r.h,r==this.ia?this.src(t):wt(this,r,t)):this.a.appendChild(n.e("p",{innerHTML:this.options().notSupportedMessage}))}else t instanceof Object?window.videojs[this.ia].canPlaySource(t)?this.src(t.src):this.src([t]):(this.u.src=t,this.aa?(h(this,"src",t),"auto"==this.g.preload&&this.load(),this.g.autoplay&&this.play()):this.M(function(){this.src(t)}));return this},t.load=function(){return h(this,"load"),this},t.currentSrc=function(){return o(this,"currentSrc")||this.u.src||""},t.Pa=function(n){return n!==f?(h(this,"setPreload",n),this.g.preload=n,this):o(this,"preload")},t.autoplay=function(n){return n!==f?(h(this,"setAutoplay",n),this.g.autoplay=n,this):o(this,"autoplay")},t.loop=function(n){return n!==f?(h(this,"setLoop",n),this.g.loop=n,this):o(this,"loop")},t.poster=function(n){return n!==f&&(this.pc=n),this.pc},t.controls=function(n){return n!==f?(n=!!n,this.rb!==n&&((this.rb=n)?(this.t("vjs-controls-disabled"),this.m("vjs-controls-enabled"),this.j("controlsenabled")):(this.t("vjs-controls-enabled"),this.m("vjs-controls-disabled"),this.j("controlsdisabled"))),this):this.rb},n.w.prototype.Qb,t=n.w.prototype,t.Pb=function(n){return n!==f?(n=!!n,this.Qb!==n&&((this.Qb=n)?(this.m("vjs-using-native-controls"),this.j("usingnativecontrols")):(this.t("vjs-using-native-controls"),this.j("usingcustomcontrols"))),this):this.Qb},t.error=function(){return o(this,"error")},t.seeking=function(){return o(this,"seeking")},t.ja=r,t.rc=function(){this.ja=r},t.Ob=r,et=document.createElement("div"),c={},et.Ed!==f?(c.sc="requestFullscreen",c.mb="exitFullscreen",c.ub="fullscreenchange",c.I="fullScreen"):(document.mozCancelFullScreen?(v="moz",c.I=v+"FullScreen"):(v="webkit",c.I=v+"IsFullScreen"),et[v+"RequestFullScreen"]&&(c.sc=v+"RequestFullScreen",c.mb=v+"CancelFullScreen"),c.ub=v+"fullscreenchange"),document[c.mb]&&(n.Nb.xa=c),n.Ea=n.c.extend(),n.Ea.prototype.g={Jd:"play",children:{playToggle:{},currentTimeDisplay:{},timeDivider:{},durationDisplay:{},remainingTimeDisplay:{},progressControl:{},fullscreenToggle:{},volumeControl:{},muteToggle:{}}},n.Ea.prototype.e=function(){return n.e("div",{className:"vjs-control-bar"})},n.Wb=n.q.extend({i:function(t,i){n.q.call(this,t,i);t.d("play",n.bind(this,this.Jb));t.d("pause",n.bind(this,this.Ib))}}),t=n.Wb.prototype,t.pa="Play",t.T=function(){return"vjs-play-control "+n.q.prototype.T.call(this)},t.p=function(){this.b.paused()?this.b.play():this.b.pause()},t.Jb=function(){n.t(this.a,"vjs-paused");n.m(this.a,"vjs-playing");this.a.children[0].children[0].innerHTML="Pause"},t.Ib=function(){n.t(this.a,"vjs-playing");n.m(this.a,"vjs-paused");this.a.children[0].children[0].innerHTML="Play"},n.Xa=n.c.extend({i:function(t,i){n.c.call(this,t,i);t.d("timeupdate",n.bind(this,this.Ba))}}),n.Xa.prototype.e=function(){var t=n.c.prototype.e.call(this,"div",{className:"vjs-current-time vjs-time-controls vjs-control"});return this.content=n.e("div",{className:"vjs-current-time-display",innerHTML:'<span class="vjs-control-text">Current Time <\/span>0:00',"aria-live":"off"}),t.appendChild(n.e("div").appendChild(this.content)),t},n.Xa.prototype.Ba=function(){var t=this.b.Lb?this.b.u.currentTime:this.b.currentTime();this.content.innerHTML='<span class="vjs-control-text">Current Time <\/span>'+n.Ka(t,this.b.duration())},n.Ya=n.c.extend({i:function(t,i){n.c.call(this,t,i);t.d("timeupdate",n.bind(this,this.Ba))}}),n.Ya.prototype.e=function(){var t=n.c.prototype.e.call(this,"div",{className:"vjs-duration vjs-time-controls vjs-control"});return this.content=n.e("div",{className:"vjs-duration-display",innerHTML:'<span class="vjs-control-text">Duration Time <\/span>0:00',"aria-live":"off"}),t.appendChild(n.e("div").appendChild(this.content)),t},n.Ya.prototype.Ba=function(){var t=this.b.duration();t&&(this.content.innerHTML='<span class="vjs-control-text">Duration Time <\/span>'+n.Ka(t))},n.$b=n.c.extend({i:function(t,i){n.c.call(this,t,i)}}),n.$b.prototype.e=function(){return n.c.prototype.e.call(this,"div",{className:"vjs-time-divider",innerHTML:"<div><span>/<\/span><\/div>"})},n.eb=n.c.extend({i:function(t,i){n.c.call(this,t,i);t.d("timeupdate",n.bind(this,this.Ba))}}),n.eb.prototype.e=function(){var t=n.c.prototype.e.call(this,"div",{className:"vjs-remaining-time vjs-time-controls vjs-control"});return this.content=n.e("div",{className:"vjs-remaining-time-display",innerHTML:'<span class="vjs-control-text">Remaining Time <\/span>-0:00',"aria-live":"off"}),t.appendChild(n.e("div").appendChild(this.content)),t},n.eb.prototype.Ba=function(){this.b.duration()&&(this.content.innerHTML='<span class="vjs-control-text">Remaining Time <\/span>-'+n.Ka(this.b.duration()-this.b.currentTime()))},n.Fa=n.q.extend({i:function(t,i){n.q.call(this,t,i)}}),n.Fa.prototype.pa="Fullscreen",n.Fa.prototype.T=function(){return"vjs-fullscreen-control "+n.q.prototype.T.call(this)},n.Fa.prototype.p=function(){this.b.I?(this.b.nb(),this.a.children[0].children[0].innerHTML="Fullscreen"):(this.b.xa(),this.a.children[0].children[0].innerHTML="Non-Fullscreen")},n.cb=n.c.extend({i:function(t,i){n.c.call(this,t,i)}}),n.cb.prototype.g={children:{seekBar:{}}},n.cb.prototype.e=function(){return n.c.prototype.e.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.Xb=n.O.extend({i:function(t,i){n.O.call(this,t,i);t.d("timeupdate",n.bind(this,this.Aa));t.M(n.bind(this,this.Aa))}}),t=n.Xb.prototype,t.g={children:{loadProgressBar:{},playProgressBar:{},seekHandle:{}},barName:"playProgressBar",handleName:"seekHandle"},t.oc="timeupdate",t.e=function(){return n.O.prototype.e.call(this,"div",{className:"vjs-progress-holder","aria-label":"video progress bar"})},t.Aa=function(){var t=this.b.Lb?this.b.u.currentTime:this.b.currentTime();this.a.setAttribute("aria-valuenow",n.round(100*this.xb(),2));this.a.setAttribute("aria-valuetext",n.Ka(t,this.b.duration()))},t.xb=function(){var n;return"Flash"===this.b.ia&&this.b.seeking()?(n=this.b.u,n=n.nc?n.nc:this.b.currentTime()):n=this.b.currentTime(),n/this.b.duration()},t.Oa=function(t){n.O.prototype.Oa.call(this,t);this.b.Lb=r;this.Ad=!this.b.paused();this.b.pause()},t.Gb=function(n){n=yt(this,n)*this.b.duration();n==this.b.duration()&&(n-=.1);this.b.currentTime(n)},t.Hb=function(t){n.O.prototype.Hb.call(this,t);this.b.Lb=i;this.Ad&&this.b.play()},t.vc=function(){this.b.currentTime(this.b.currentTime()+5)},t.uc=function(){this.b.currentTime(this.b.currentTime()-5)},n.$a=n.c.extend({i:function(t,i){n.c.call(this,t,i);t.d("progress",n.bind(this,this.update))}}),n.$a.prototype.e=function(){return n.c.prototype.e.call(this,"div",{className:"vjs-load-progress",innerHTML:'<span class="vjs-control-text">Loaded: 0%<\/span>'})},n.$a.prototype.update=function(){this.a.style&&(this.a.style.width=n.round(100*this.b.Ia(),2)+"%")},n.Vb=n.c.extend({i:function(t,i){n.c.call(this,t,i)}}),n.Vb.prototype.e=function(){return n.c.prototype.e.call(this,"div",{className:"vjs-play-progress",innerHTML:'<span class="vjs-control-text">Progress: 0%<\/span>'})},n.fb=n.ea.extend(),n.fb.prototype.defaultValue="00:00",n.fb.prototype.e=function(){return n.ea.prototype.e.call(this,"div",{className:"vjs-seek-handle"})},n.hb=n.c.extend({i:function(t,r){n.c.call(this,t,r);t.h&&t.h.l&&t.h.l.volumeControl===i&&this.m("vjs-hidden");t.d("loadstart",n.bind(this,function(){t.h.l&&t.h.l.volumeControl===i?this.m("vjs-hidden"):this.t("vjs-hidden")}))}}),n.hb.prototype.g={children:{volumeBar:{}}},n.hb.prototype.e=function(){return n.c.prototype.e.call(this,"div",{className:"vjs-volume-control vjs-control"})},n.gb=n.O.extend({i:function(t,i){n.O.call(this,t,i);t.d("volumechange",n.bind(this,this.Aa));t.M(n.bind(this,this.Aa));setTimeout(n.bind(this,this.update),0)}}),t=n.gb.prototype,t.Aa=function(){this.a.setAttribute("aria-valuenow",n.round(100*this.b.volume(),2));this.a.setAttribute("aria-valuetext",n.round(100*this.b.volume(),2)+"%")},t.g={children:{volumeLevel:{},volumeHandle:{}},barName:"volumeLevel",handleName:"volumeHandle"},t.oc="volumechange",t.e=function(){return n.O.prototype.e.call(this,"div",{className:"vjs-volume-bar","aria-label":"volume level"})},t.Gb=function(n){this.b.volume(yt(this,n))},t.xb=function(){return this.b.muted()?0:this.b.volume()},t.vc=function(){this.b.volume(this.b.volume()+.1)},t.uc=function(){this.b.volume(this.b.volume()-.1)},n.ac=n.c.extend({i:function(t,i){n.c.call(this,t,i)}}),n.ac.prototype.e=function(){return n.c.prototype.e.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"><\/span>'})},n.ib=n.ea.extend(),n.ib.prototype.defaultValue="00:00",n.ib.prototype.e=function(){return n.ea.prototype.e.call(this,"div",{className:"vjs-volume-handle"})},n.da=n.q.extend({i:function(t,r){n.q.call(this,t,r);t.d("volumechange",n.bind(this,this.update));t.h&&t.h.l&&t.h.l.volumeControl===i&&this.m("vjs-hidden");t.d("loadstart",n.bind(this,function(){t.h.l&&t.h.l.volumeControl===i?this.m("vjs-hidden"):this.t("vjs-hidden")}))}}),n.da.prototype.e=function(){return n.q.prototype.e.call(this,"div",{className:"vjs-mute-control vjs-control",innerHTML:'<div><span class="vjs-control-text">Mute<\/span><\/div>'})},n.da.prototype.p=function(){this.b.muted(this.b.muted()?i:r)},n.da.prototype.update=function(){var t=this.b.volume(),i=3;for(0===t||this.b.muted()?i=0:.33>t?i=1:.67>t&&(i=2),this.b.muted()?"Unmute"!=this.a.children[0].children[0].innerHTML&&(this.a.children[0].children[0].innerHTML="Unmute"):"Mute"!=this.a.children[0].children[0].innerHTML&&(this.a.children[0].children[0].innerHTML="Mute"),t=0;4>t;t++)n.t(this.a,"vjs-vol-"+t);n.m(this.a,"vjs-vol-"+i)},n.na=n.R.extend({i:function(t,r){n.R.call(this,t,r);t.d("volumechange",n.bind(this,this.update));t.h&&t.h.l&&t.h.l.zc===i&&this.m("vjs-hidden");t.d("loadstart",n.bind(this,function(){t.h.l&&t.h.l.zc===i?this.m("vjs-hidden"):this.t("vjs-hidden")}));this.m("vjs-menu-button")}}),n.na.prototype.Ja=function(){var t=new n.la(this.b,{Rc:"div"}),i=new n.gb(this.b,n.k.B({zd:r},this.g.Sd));return t.Z(i),t},n.na.prototype.p=function(){n.da.prototype.p.call(this);n.R.prototype.p.call(this)},n.na.prototype.e=function(){return n.q.prototype.e.call(this,"div",{className:"vjs-volume-menu-button vjs-menu-button vjs-control",innerHTML:'<div><span class="vjs-control-text">Mute<\/span><\/div>'})},n.na.prototype.update=n.da.prototype.update,n.bb=n.q.extend({i:function(t,i){n.q.call(this,t,i);t.poster()&&t.controls()||this.C();t.d("play",n.bind(this,this.C))}}),n.bb.prototype.e=function(){var t=n.e("div",{className:"vjs-poster",tabIndex:-1}),i=this.b.poster();return i&&("backgroundSize"in t.style?t.style.backgroundImage='url("'+i+'")':t.appendChild(n.e("img",{src:i}))),t},n.bb.prototype.p=function(){this.L().controls()&&this.b.play()},n.Ub=n.c.extend({i:function(t,i){n.c.call(this,t,i);t.d("canplay",n.bind(this,this.C));t.d("canplaythrough",n.bind(this,this.C));t.d("playing",n.bind(this,this.C));t.d("seeked",n.bind(this,this.C));t.d("seeking",n.bind(this,this.show));t.d("seeked",n.bind(this,this.C));t.d("error",n.bind(this,this.show));t.d("waiting",n.bind(this,this.show))}}),n.Ub.prototype.e=function(){return n.c.prototype.e.call(this,"div",{className:"vjs-loading-spinner"})},n.Va=n.q.extend(),n.Va.prototype.e=function(){return n.q.prototype.e.call(this,"div",{className:"vjs-big-play-button",innerHTML:"<span><\/span>","aria-label":"play video"})},n.Va.prototype.p=function(){this.b.play()},n.r=n.c.extend({i:function(t,u,f){n.c.call(this,t,u,f);var o,e;e=this;o=this.L();t=function(){var n,f,t,s,u;o.controls()&&!o.Pb()&&(e.d("mousedown",e.p),e.d("touchstart",function(n){n.preventDefault();n.stopPropagation();f=k(this.b)}),n=function(n){n.stopPropagation();f&&this.b.rc()},e.d("touchmove",n),e.d("touchleave",n),e.d("touchcancel",n),e.d("touchend",n),t=0,e.d("touchstart",function(){t=(new Date).getTime();u=r}),n=function(){u=i},e.d("touchmove",n),e.d("touchleave",n),e.d("touchcancel",n),e.d("touchend",function(){u===r&&(s=(new Date).getTime()-t,250>s&&this.j("tap"))}),e.d("tap",e.jd))};u=n.bind(e,e.md);this.M(t);o.d("controlsenabled",t);o.d("controlsdisabled",u)}}),n.r.prototype.md=function(){this.n("tap");this.n("touchstart");this.n("touchmove");this.n("touchleave");this.n("touchcancel");this.n("touchend");this.n("click");this.n("mousedown")},n.r.prototype.p=function(n){0===n.button&&this.L().controls()&&(this.L().paused()?this.L().play():this.L().pause())},n.r.prototype.jd=function(){k(this.L(),!k(this.L()))},n.r.prototype.l={volumeControl:r,fullscreenResize:i,progressEvents:i,timeupdateEvents:i},n.media={},n.media.Ua="play pause paused currentTime setCurrentTime duration buffered volume setVolume muted setMuted width height supportsFullScreen enterFullScreen src load currentSrc preload setPreload autoplay setAutoplay loop setLoop error networkState readyState seeking initialTime startOffsetTime played seekable ended videoTracks audioTracks videoWidth videoHeight textTracks defaultPlaybackRate playbackRate mediaGroup controller controls defaultMuted".split(" "),d=n.media.Ua.length-1;0<=d;d--)n.r.prototype[n.media.Ua[d]]=ei();n.o=n.r.extend({i:function(t,u,f){if(this.l.volumeControl=n.o.Qc(),this.l.movingMediaElementInDOM=!n.Fc,this.l.fullscreenResize=r,n.r.call(this,t,u,f),(u=u.source)&&this.a.currentSrc==u.src?t.j("loadstart"):u&&(this.a.src=u.src),n.Mc&&t.options().nativeControlsForTouch!==i){var o,e,s,h;o=this;e=this.L();u=e.controls();o.a.controls=!!u;s=function(){o.a.controls=r};h=function(){o.a.controls=i};e.d("controlsenabled",s);e.d("controlsdisabled",h);u=function(){e.n("controlsenabled",s);e.n("controlsdisabled",h)};o.d("dispose",u);e.d("usingcustomcontrols",u);e.Pb(r)}for(t.M(function(){this.F&&this.g.autoplay&&this.paused()&&(delete this.F.poster,this.play())}),t=n.o.Za.length-1;0<=t;t--)n.d(this.a,n.o.Za[t],n.bind(this.b,this.Wc));this.Ta()}});t=n.o.prototype;t.D=function(){n.r.prototype.D.call(this)};t.e=function(){var r=this.b,t=r.F,o,u,f;for(t&&this.l.movingMediaElementInDOM!==i||(t?(t.player=e,r.F=e,r.v().removeChild(t),t=t.cloneNode(i)):t=n.e("video",{id:r.id()+"_html5_api",className:"vjs-tech"}),t.player=r,n.yb(t,r.v())),o=["autoplay","preload","loop","muted"],u=o.length-1;0<=u;u--)f=o[u],r.g[f]!==e&&(t[f]=r.g[f]);return t};t.Wc=function(n){this.j(n);n.stopPropagation()};t.play=function(){this.a.play()};t.pause=function(){this.a.pause()};t.paused=function(){return this.a.paused};t.currentTime=function(){return this.a.currentTime};t.pd=function(t){try{this.a.currentTime=t}catch(i){n.log(i,"Video is not ready. (Video.js)")}};t.duration=function(){return this.a.duration||0};t.buffered=function(){return this.a.buffered};t.volume=function(){return this.a.volume};t.ud=function(n){this.a.volume=n};t.muted=function(){return this.a.muted};t.sd=function(n){this.a.muted=n};t.width=function(){return this.a.offsetWidth};t.height=function(){return this.a.offsetHeight};t.Sa=function(){return"function"==typeof this.a.webkitEnterFullScreen&&(/Android/.test(n.G)||!/Chrome|Mac OS X 10.5/.test(n.G))?r:i};t.src=function(n){this.a.src=n};t.load=function(){this.a.load()};t.currentSrc=function(){return this.a.currentSrc};t.Pa=function(){return this.a.Pa};t.td=function(n){this.a.Pa=n};t.autoplay=function(){return this.a.autoplay};t.od=function(n){this.a.autoplay=n};t.controls=function(){return this.a.controls};t.loop=function(){return this.a.loop};t.rd=function(n){this.a.loop=n};t.error=function(){return this.a.error};t.seeking=function(){return this.a.seeking};n.o.isSupported=function(){return!!n.ma.canPlayType};n.o.lb=function(t){try{return!!n.ma.canPlayType(t.type)}catch(i){return""}};n.o.Qc=function(){var t=n.ma.volume;return n.ma.volume=t/2+.1,t!==n.ma.volume};n.o.Za="loadstart suspend abort error emptied stalled loadedmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate progress play pause ratechange volumechange".split(" ");n.Jc&&(document.createElement("video").constructor.prototype.canPlayType=function(n){return n&&-1!=n.toLowerCase().indexOf("video/mp4")?"maybe":""});n.f=n.r.extend({i:function(t,i,u){var o,s,h,e;n.r.call(this,t,i,u);o=i.source;u=i.parentEl;s=this.a=n.e("div",{id:t.id()+"_temp_flash"});h=t.id()+"_flash_api";t=t.g;var f=n.k.B({readyFunction:"videojs.Flash.onReady",eventProxyFunction:"videojs.Flash.onEvent",errorEventProxyFunction:"videojs.Flash.onError",autoplay:t.autoplay,preload:t.Pa,loop:t.loop,muted:t.muted},i.flashVars),c=n.k.B({wmode:"opaque",bgcolor:"#000000"},i.params),l=n.k.B({id:h,name:h,"class":"vjs-tech"},i.attributes);o&&(o.type&&n.f.ad(o.type)?(t=n.f.wc(o.src),f.rtmpConnection=encodeURIComponent(t.qb),f.rtmpStream=encodeURIComponent(t.Mb)):f.src=encodeURIComponent(n.ic(o.src)));n.yb(s,u);i.startTime&&this.M(function(){this.load();this.play();this.currentTime(i.startTime)});i.iFrameMode!==r||n.Ec?n.f.Vc(i.swf,s,f,c,l):(e=n.e("iframe",{id:h+"_iframe",name:h+"_iframe",className:"vjs-tech",scrolling:"no",marginWidth:0,marginHeight:0,frameBorder:0}),f.readyFunction="ready",f.eventProxyFunction="events",f.errorEventProxyFunction="errors",n.d(e,"load",n.bind(this,function(){var r,t=e.contentWindow;r=e.contentDocument?e.contentDocument:e.contentWindow.document;r.write(n.f.jc(i.swf,f,c,l));t.player=this.b;t.ready=n.bind(this.b,function(t){var i=this.h;i.a=r.getElementById(t);n.f.ob(i)});t.events=n.bind(this.b,function(n,t){this&&"flash"===this.ia&&this.j(t)});t.errors=n.bind(this.b,function(t,i){n.log("Flash Error",i)})})),s.parentNode.replaceChild(e,s))}});t=n.f.prototype;t.D=function(){n.r.prototype.D.call(this)};t.play=function(){this.a.vjs_play()};t.pause=function(){this.a.vjs_pause()};t.src=function(t){if(n.f.$c(t)?(t=n.f.wc(t),this.Nd(t.qb),this.Od(t.Mb)):(t=n.ic(t),this.a.vjs_src(t)),this.b.autoplay()){var i=this;setTimeout(function(){i.play()},0)}};t.currentSrc=function(){var t=this.a.vjs_getProperty("currentSrc"),i,r;return t==e&&(i=this.Ld(),r=this.Md(),i&&r&&(t=n.f.vd(i,r))),t};t.load=function(){this.a.vjs_load()};t.poster=function(){this.a.vjs_getProperty("poster")};t.buffered=function(){return n.sb(0,this.a.vjs_getProperty("buffered"))};t.Sa=p(i);var dt=n.f.prototype,ot="rtmpConnection rtmpStream preload currentTime defaultPlaybackRate playbackRate autoplay loop mediaGroup controller controls volume muted defaultMuted".split(" "),gt="error currentSrc networkState readyState seeking initialTime duration startOffsetTime paused played seekable ended videoTracks audioTracks videoWidth videoHeight textTracks".split(" ");for(l=0;l<ot.length;l++)ni(ot[l]),oi();for(l=0;l<gt.length;l++)ni(gt[l]);n.f.isSupported=function(){return 10<=n.f.version()[0]};n.f.lb=function(t){if(t.type in n.f.Yc||t.type in n.f.xc)return"maybe"};n.f.Yc={"video/flv":"FLV","video/x-flv":"FLV","video/mp4":"MP4","video/m4v":"MP4"};n.f.xc={"rtmp/mp4":"MP4","rtmp/flv":"FLV"};n.f.onReady=function(t){t=n.v(t);var i=t.player||t.parentNode.player,r=i.h;t.player=i;r.a=t;n.f.ob(r)};n.f.ob=function(t){t.v().vjs_getProperty?t.Ta():setTimeout(function(){n.f.ob(t)},50)};n.f.onEvent=function(t,i){n.v(t).player.j(i)};n.f.onError=function(t,i){n.v(t).player.j("error");n.log("Flash Error",i,t)};n.f.version=function(){var n="0,0,0";try{n=new window.ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1]}catch(t){try{navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin&&(n=(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1])}catch(i){}}return n.split(",")};n.f.Vc=function(t,i,r,u,f){t=n.f.jc(t,r,u,f);t=n.e("div",{innerHTML:t}).childNodes[0];r=i.parentNode;i.parentNode.replaceChild(t,i);var e=r.childNodes[0];setTimeout(function(){e.style.display="block"},1e3)};n.f.jc=function(t,i,r,u){var f="",e="",o="";return i&&n.k.ta(i,function(n,t){f+=n+"="+t+"&amp;"}),r=n.k.B({movie:t,flashvars:f,allowScriptAccess:"always",allowNetworking:"all"},r),n.k.ta(r,function(n,t){e+='<param name="'+n+'" value="'+t+'" />'}),u=n.k.B({data:t,width:"100%",height:"100%"},u),n.k.ta(u,function(n,t){o+=n+'="'+t+'" '}),'<object type="application/x-shockwave-flash"'+o+">"+e+"<\/object>"};n.f.vd=function(n,t){return n+"&"+t};n.f.wc=function(n){var i={qb:"",Mb:""},t,r;return n?(t=n.indexOf("&"),-1!==t?r=t+1:(t=r=n.lastIndexOf("/")+1,0===t&&(t=r=n.length)),i.qb=n.substring(0,t),i.Mb=n.substring(r,n.length),i):i};n.f.ad=function(t){return t in n.f.xc};n.f.Lc=/^rtmp[set]?:\/\//i;n.f.$c=function(t){return n.f.Lc.test(t)};n.Kc=n.c.extend({i:function(t,i,r){if(n.c.call(this,t,i,r),t.g.sources&&0!==t.g.sources.length)t.src(t.g.sources);else for(i=0,r=t.g.techOrder;i<r.length;i++){var u=n.$(r[i]),f=window.videojs[u];if(f&&f.isSupported()){wt(t,u);break}}}});n.X=n.c.extend({i:function(t,i){n.c.call(this,t,i);this.Q=i.id||"vjs_"+i.kind+"_"+i.language+"_"+n.s++;this.tc=i.src;this.Sc=i["default"]||i.dflt;this.xd=i.title;this.Id=i.srclang;this.bd=i.label;this.fa=[];this.bc=[];this.ga=this.ha=0;this.b.d("fullscreenchange",n.bind(this,this.Nc))}});t=n.X.prototype;t.K=s("A");t.src=s("tc");t.tb=s("Sc");t.title=s("xd");t.label=s("bd");t.readyState=s("ha");t.mode=s("ga");t.Nc=function(){this.a.style.fontSize=this.b.I?140*(screen.width/this.b.width())+"%":""};t.e=function(){return n.c.prototype.e.call(this,"div",{className:"vjs-"+this.A+" vjs-text-track"})};t.show=function(){ii(this);this.ga=2;n.c.prototype.show.call(this)};t.C=function(){ii(this);this.ga=1;n.c.prototype.C.call(this)};t.disable=function(){2==this.ga&&this.C();this.b.n("timeupdate",n.bind(this,this.update,this.Q));this.b.n("ended",n.bind(this,this.reset,this.Q));this.reset();this.b.V.textTrackDisplay.removeChild(this);this.ga=0};t.load=function(){0===this.ha&&(this.ha=1,n.get(this.tc,n.bind(this,this.kd),n.bind(this,this.Fb)))};t.Fb=function(n){this.error=n;this.ha=3;this.j("error")};t.kd=function(t){var i,u;t=t.split("\n");for(var r="",f=1,e=t.length;f<e;f++)if(r=n.trim(t[f])){for(-1==r.indexOf("-->")?(i=r,r=n.trim(t[++f])):i=this.fa.length,i={id:i,index:this.fa.length},u=r.split(" --> "),i.startTime=ri(u[0]),i.ua=ri(u[1]),u=[];t[++f]&&(r=n.trim(t[f]));)u.push(r);i.text=u.join("<br/>");this.fa.push(i)}this.ha=2;this.j("loaded")};t.update=function(){var u;if(0<this.fa.length&&(u=this.b.currentTime(),this.Kb===f||u<this.Kb||this.La<=u)){var s=this.fa,e=this.b.duration(),o=0,h=i,a=[],c,l,n,t;for(u>=this.La||this.La===f?t=this.vb!==f?this.vb:0:(h=r,t=this.Cb!==f?this.Cb:s.length-1);;){if(n=s[t],n.ua<=u)o=Math.max(o,n.ua),n.Ha&&(n.Ha=i);else if(u<n.startTime){if(e=Math.min(e,n.startTime),n.Ha&&(n.Ha=i),!h)break}else h?(a.splice(0,0,n),l===f&&(l=t),c=t):(a.push(n),c===f&&(c=t),l=t),e=Math.min(e,n.ua),o=Math.max(o,n.startTime),n.Ha=r;if(h)if(0===t)break;else t--;else if(t===s.length-1)break;else t++}for(this.bc=a,this.La=e,this.Kb=o,this.vb=c,this.Cb=l,u=this.bc,s="",e=0,o=u.length;e<o;e++)s+='<span class="vjs-tt-cue">'+u[e].text+"<\/span>";this.a.innerHTML=s;this.j("cuechange")}};t.reset=function(){this.La=0;this.Kb=this.b.duration();this.Cb=this.vb=0};n.Sb=n.X.extend();n.Sb.prototype.A="captions";n.Yb=n.X.extend();n.Yb.prototype.A="subtitles";n.Tb=n.X.extend();n.Tb.prototype.A="chapters";n.Zb=n.c.extend({i:function(t,i,r){var u;if(n.c.call(this,t,i,r),t.g.tracks&&0<t.g.tracks.length)for(i=this.b,t=t.g.tracks,r=0;r<t.length;r++){u=t[r];var e=i,o=u.kind,s=u.label,h=u.language,f=u;u=e.za=e.za||[];f=f||{};f.kind=o;f.label=s;f.language=h;o=n.$(o||"subtitles");e=new window.videojs[o+"Track"](e,f);u.push(e)}}});n.Zb.prototype.e=function(){return n.c.prototype.e.call(this,"div",{className:"vjs-text-track-display"})};n.Y=n.N.extend({i:function(t,i){var r=this.ca=i.track;i.label=r.label();i.selected=r.tb();n.N.call(this,t,i);this.b.d(r.K()+"trackchange",n.bind(this,this.update))}});n.Y.prototype.p=function(){n.N.prototype.p.call(this);ti(this.b,this.ca.Q,this.ca.K())};n.Y.prototype.update=function(){this.selected(2==this.ca.mode())};n.ab=n.Y.extend({i:function(t,u){u.track={K:function(){return u.kind},L:t,label:function(){return u.kind+" off"},tb:p(i),mode:p(i)};n.Y.call(this,t,u);this.selected(r)}});n.ab.prototype.p=function(){n.Y.prototype.p.call(this);ti(this.b,this.ca.Q,this.ca.K())};n.ab.prototype.update=function(){for(var u=w(this.b),n=0,e=u.length,t,f=r;n<e;n++)t=u[n],t.K()==this.ca.K()&&2==t.mode()&&(f=i);this.selected(f)};n.S=n.R.extend({i:function(t,i){n.R.call(this,t,i);1>=this.J.length&&this.C()}});n.S.prototype.sa=function(){var i=[],r,t;for(i.push(new n.ab(this.b,{kind:this.A})),t=0;t<w(this.b).length;t++)r=w(this.b)[t],r.K()===this.A&&i.push(new n.Y(this.b,{track:r}));return i};n.Ca=n.S.extend({i:function(t,i,r){n.S.call(this,t,i,r);this.a.setAttribute("aria-label","Captions Menu")}});n.Ca.prototype.A="captions";n.Ca.prototype.pa="Captions";n.Ca.prototype.className="vjs-captions-button";n.Ga=n.S.extend({i:function(t,i,r){n.S.call(this,t,i,r);this.a.setAttribute("aria-label","Subtitles Menu")}});n.Ga.prototype.A="subtitles";n.Ga.prototype.pa="Subtitles";n.Ga.prototype.className="vjs-subtitles-button";n.Da=n.S.extend({i:function(t,i,r){n.S.call(this,t,i,r);this.a.setAttribute("aria-label","Chapters Menu")}});t=n.Da.prototype;t.A="chapters";t.pa="Chapters";t.className="vjs-chapters-button";t.sa=function(){for(var r=[],t,i=0;i<w(this.b).length;i++)t=w(this.b)[i],t.K()===this.A&&r.push(new n.Y(this.b,{track:t}));return r};t.Ja=function(){for(var u,r=w(this.b),i=0,e=r.length,t,f,o=this.J=[];i<e;i++)if(t=r[i],t.K()==this.A&&t.tb()){if(2>t.readyState()){this.Fd=t;t.d("loaded",n.bind(this,this.Ja));return}f=t;break}if(r=this.va=new n.la(this.b),r.a.appendChild(n.e("li",{className:"vjs-menu-title",innerHTML:n.$(this.A),wd:-1})),f)for(t=f.fa,i=0,e=t.length;i<e;i++)u=t[i],u=new n.Wa(this.b,{track:f,cue:u}),o.push(u),r.Z(u);return 0<this.J.length&&this.show(),r};n.Wa=n.N.extend({i:function(t,i){var f=this.ca=i.track,r=this.cue=i.cue,u=t.currentTime();i.label=r.text;i.selected=r.startTime<=u&&u<r.ua;n.N.call(this,t,i);f.d("cuechange",n.bind(this,this.update))}});n.Wa.prototype.p=function(){n.N.prototype.p.call(this);this.b.currentTime(this.cue.startTime);this.update(this.cue.startTime)};n.Wa.prototype.update=function(){var n=this.cue,t=this.b.currentTime();this.selected(n.startTime<=t&&t<n.ua)};n.k.B(n.Ea.prototype.g.children,{subtitlesButton:{},captionsButton:{},chaptersButton:{}});"undefined"!=typeof JSON&&"function"===window.JSON.parse?n.JSON=window.JSON:(n.JSON={},tt=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n.JSON.parse=function(a,c){function d(n,t){var r,u,i=n[t];if(i&&"object"==typeof i)for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(u=d(i,r),u!==f?i[r]=u:delete i[r]);return c.call(n,t,i)}var e;if(a=String(a),tt.lastIndex=0,tt.test(a)&&(a=a.replace(tt,function(n){return"\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return e=eval("("+a+")"),"function"==typeof c?d({"":e},""):e;throw new SyntaxError("JSON.parse(): invalid or malformed JSON data");});n.cc=function(){var t,i,r=document.getElementsByTagName("video"),u,o;if(r&&0<r.length)for(u=0,o=r.length;u<o;u++)if((i=r[u])&&i.getAttribute)i.player===f&&(t=i.getAttribute("data-setup"),t!==e&&(t=n.JSON.parse(t||"{}"),it(i,t)));else{n.jb();break}else n.Ac||n.jb()};n.jb=function(){setTimeout(n.cc,1)};"complete"===document.readyState?n.Ac=r:n.U(window,"load",function(){n.Ac=r});n.jb();n.ld=function(t,i){n.w.prototype[t]=i};st=this;st.Bd=r;u("videojs",n);u("_V_",n);u("videojs.options",n.options);u("videojs.players",n.wa);u("videojs.cache",n.qa);u("videojs.Component",n.c);n.c.prototype.player=n.c.prototype.L;n.c.prototype.dispose=n.c.prototype.D;n.c.prototype.createEl=n.c.prototype.e;n.c.prototype.el=n.c.prototype.v;n.c.prototype.addChild=n.c.prototype.Z;n.c.prototype.children=n.c.prototype.children;n.c.prototype.on=n.c.prototype.d;n.c.prototype.off=n.c.prototype.n;n.c.prototype.one=n.c.prototype.U;n.c.prototype.trigger=n.c.prototype.j;n.c.prototype.triggerReady=n.c.prototype.Ta;n.c.prototype.show=n.c.prototype.show;n.c.prototype.hide=n.c.prototype.C;n.c.prototype.width=n.c.prototype.width;n.c.prototype.height=n.c.prototype.height;n.c.prototype.dimensions=n.c.prototype.Tc;n.c.prototype.ready=n.c.prototype.M;n.c.prototype.addClass=n.c.prototype.m;n.c.prototype.removeClass=n.c.prototype.t;u("videojs.Player",n.w);n.w.prototype.dispose=n.w.prototype.D;n.w.prototype.requestFullScreen=n.w.prototype.xa;n.w.prototype.cancelFullScreen=n.w.prototype.nb;n.w.prototype.bufferedPercent=n.w.prototype.Ia;n.w.prototype.usingNativeControls=n.w.prototype.Pb;u("videojs.MediaLoader",n.Kc);u("videojs.TextTrackDisplay",n.Zb);u("videojs.ControlBar",n.Ea);u("videojs.Button",n.q);u("videojs.PlayToggle",n.Wb);u("videojs.FullscreenToggle",n.Fa);u("videojs.BigPlayButton",n.Va);u("videojs.LoadingSpinner",n.Ub);u("videojs.CurrentTimeDisplay",n.Xa);u("videojs.DurationDisplay",n.Ya);u("videojs.TimeDivider",n.$b);u("videojs.RemainingTimeDisplay",n.eb);u("videojs.Slider",n.O);u("videojs.ProgressControl",n.cb);u("videojs.SeekBar",n.Xb);u("videojs.LoadProgressBar",n.$a);u("videojs.PlayProgressBar",n.Vb);u("videojs.SeekHandle",n.fb);u("videojs.VolumeControl",n.hb);u("videojs.VolumeBar",n.gb);u("videojs.VolumeLevel",n.ac);u("videojs.VolumeMenuButton",n.na);u("videojs.VolumeHandle",n.ib);u("videojs.MuteToggle",n.da);u("videojs.PosterImage",n.bb);u("videojs.Menu",n.la);u("videojs.MenuItem",n.N);u("videojs.MenuButton",n.R);n.R.prototype.createItems=n.R.prototype.sa;n.S.prototype.createItems=n.S.prototype.sa;n.Da.prototype.createItems=n.Da.prototype.sa;u("videojs.SubtitlesButton",n.Ga);u("videojs.CaptionsButton",n.Ca);u("videojs.ChaptersButton",n.Da);u("videojs.MediaTechController",n.r);n.r.prototype.features=n.r.prototype.l;n.r.prototype.l.volumeControl=n.r.prototype.l.zc;n.r.prototype.l.fullscreenResize=n.r.prototype.l.Gd;n.r.prototype.l.progressEvents=n.r.prototype.l.Kd;n.r.prototype.l.timeupdateEvents=n.r.prototype.l.Pd;u("videojs.Html5",n.o);n.o.Events=n.o.Za;n.o.isSupported=n.o.isSupported;n.o.canPlaySource=n.o.lb;n.o.prototype.setCurrentTime=n.o.prototype.pd;n.o.prototype.setVolume=n.o.prototype.ud;n.o.prototype.setMuted=n.o.prototype.sd;n.o.prototype.setPreload=n.o.prototype.td;n.o.prototype.setAutoplay=n.o.prototype.od;n.o.prototype.setLoop=n.o.prototype.rd;u("videojs.Flash",n.f);n.f.isSupported=n.f.isSupported;n.f.canPlaySource=n.f.lb;n.f.onReady=n.f.onReady;u("videojs.TextTrack",n.X);n.X.prototype.label=n.X.prototype.label;u("videojs.CaptionsTrack",n.Sb);u("videojs.SubtitlesTrack",n.Yb);u("videojs.ChaptersTrack",n.Tb);u("videojs.autoSetup",n.cc);u("videojs.plugin",n.ld);u("videojs.createTimeRange",n.sb)})(),function(n){function g(){var n=document.getElementsByTagName("script"),t=n[n.length-1].src.split("?")[0];return t.split("/").length>0?t.split("/").slice(0,-1).join("/")+"/":""}function rt(n,t,i){for(var r=0;r<t.length;r++)i(n,t[r])}var o=!1,l=!1,k=5e3,d=2e3,u=0,t=n,nt=g(),y=["ms","moz","webkit","o"],i=window.requestAnimationFrame||!1,r=window.cancelAnimationFrame||!1,p,s,f,e;if(!i)for(p in y)s=y[p],i||(i=window[s+"RequestAnimationFrame"]),r||(r=window[s+"CancelAnimationFrame"]||window[s+"CancelRequestAnimationFrame"]);var h=window.MutationObserver||window.WebKitMutationObserver||!1,w={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"5px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:60,mousescrollstep:24,touchbehavior:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:!1,cursordragontouch:!1,oneaxismousemode:"auto"},v=!1,tt=function(){function e(){var u=["-moz-grab","-webkit-grab","grab"],i,r;for((n.ischrome&&!n.ischrome22||n.isie)&&(u=[]),i=0;i<u.length;i++)if(r=u[i],t.style.cursor=r,t.style.cursor==r)return r;return"url(http://www.google.com/intl/en_ALL/mapfiles/openhand.cur),n-resize"}var t,n,r,i;if(v)return v;for(t=document.createElement("DIV"),n={},n.haspointerlock=("pointerLockElement"in document)||("mozPointerLockElement"in document)||("webkitPointerLockElement"in document),n.isopera=("opera"in window),n.isopera12=n.isopera&&("getUserMedia"in navigator),n.isoperamini=Object.prototype.toString.call(window.operamini)==="[object OperaMini]",n.isie=("all"in document)&&("attachEvent"in t)&&!n.isopera,n.isieold=n.isie&&!("msInterpolationMode"in t.style),n.isie7=n.isie&&!n.isieold&&(!("documentMode"in document)||document.documentMode==7),n.isie8=n.isie&&("documentMode"in document)&&document.documentMode==8,n.isie9=n.isie&&("performance"in window)&&document.documentMode>=9,n.isie10=n.isie&&("performance"in window)&&document.documentMode>=10,n.isie9mobile=/iemobile.9/i.test(navigator.userAgent),n.isie9mobile&&(n.isie9=!1),n.isie7mobile=!n.isie9mobile&&n.isie7&&/iemobile/i.test(navigator.userAgent),n.ismozilla=("MozAppearance"in t.style),n.iswebkit=("WebkitAppearance"in t.style),n.ischrome=("chrome"in window),n.ischrome22=n.ischrome&&n.haspointerlock,n.ischrome26=n.ischrome&&("transition"in t.style),n.cantouch=("ontouchstart"in document.documentElement)||("ontouchstart"in window),n.hasmstouch=window.navigator.msPointerEnabled||!1,n.ismac=/^mac$/i.test(navigator.platform),n.isios=n.cantouch&&/iphone|ipad|ipod/i.test(navigator.platform),n.isios4=n.isios&&!("seal"in Object),n.isandroid=/android/i.test(navigator.userAgent),n.trstyle=!1,n.hastransform=!1,n.hastranslate3d=!1,n.transitionstyle=!1,n.hastransition=!1,n.transitionend=!1,r=["transform","msTransform","webkitTransform","MozTransform","OTransform"],i=0;i<r.length;i++)if(typeof t.style[r[i]]!="undefined"){n.trstyle=r[i];break}n.hastransform=n.trstyle!=!1;n.hastransform&&(t.style[n.trstyle]="translate3d(1px,2px,3px)",n.hastranslate3d=/translate3d/.test(t.style[n.trstyle]));n.transitionstyle=!1;n.prefixstyle="";n.transitionend=!1;var r=["transition","webkitTransition","MozTransition","OTransition","OTransition","msTransition","KhtmlTransition"],u=["","-webkit-","-moz-","-o-","-o","-ms-","-khtml-"],f=["transitionend","webkitTransitionEnd","transitionend","otransitionend","oTransitionEnd","msTransitionEnd","KhtmlTransitionEnd"];for(i=0;i<r.length;i++)if(r[i]in t.style){n.transitionstyle=r[i];n.prefixstyle=u[i];n.transitionend=f[i];break}return n.ischrome26&&(n.prefixstyle=u[1]),n.hastransition=n.transitionstyle,n.cursorgrabvalue=e(),n.hasmousecapture="setCapture"in t,n.hasMutationObserver=h!==!1,t=null,v=n,n},it=function(n,f){function it(){var n=e.win,t;if("zIndex"in n)return n.zIndex();while(n.length>0){if(n[0].nodeType==9)return!1;if(t=n.css("zIndex"),!isNaN(t)&&t!=0)return parseInt(t);n=n.parent()}return!1}function c(n,t,i){var u=n.css(t),r=parseFloat(u),f;return isNaN(r)?(r=y[u]||0,f=r==3?i?e.win.outerHeight()-e.win.innerHeight():e.win.outerWidth()-e.win.innerWidth():1,e.isie8&&r&&(r+=1),f?r:0):r}function p(n,t,i,r){e._bind(n,t,function(r){var r=r?r:window.event,u={original:r,target:r.target||r.srcElement,type:"wheel",deltaMode:r.type=="MozMousePixelScroll"?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return r.preventDefault?r.preventDefault():r.returnValue=!1,!1},stopImmediatePropagation:function(){r.stopImmediatePropagation?r.stopImmediatePropagation():r.cancelBubble=!0}};return t=="mousewheel"?(u.deltaY=-1/40*r.wheelDelta,r.wheelDeltaX&&(u.deltaX=-1/40*r.wheelDeltaX)):u.deltaY=r.detail,i.call(n,u)},r)}function g(n,t,i){var u,r;if(n.deltaMode==0?(u=-Math.floor(n.deltaX*(e.opt.mousescrollstep/54)),r=-Math.floor(n.deltaY*(e.opt.mousescrollstep/54))):n.deltaMode==1&&(u=-Math.floor(n.deltaX*e.opt.mousescrollstep),r=-Math.floor(n.deltaY*e.opt.mousescrollstep)),t&&e.opt.oneaxismousemode&&u==0&&r&&(u=r,r=0),u&&(e.scrollmom&&e.scrollmom.stop(),e.lastdeltax+=u,e.debounced("mousewheelx",function(){var n=e.lastdeltax;e.lastdeltax=0;e.rail.drag||e.doScrollLeftBy(n)},120)),r){if(e.opt.nativeparentscrolling&&i&&!e.ispage&&!e.zoomactive)if(r<0){if(e.getScrollTop()>=e.page.maxh)return!0}else if(e.getScrollTop()<=0)return!0;e.scrollmom&&e.scrollmom.stop();e.lastdeltay+=r;e.debounced("mousewheely",function(){var n=e.lastdeltay;e.lastdeltay=0;e.rail.drag||e.doScrollBy(n)},120)}return n.stopImmediatePropagation(),n.preventDefault()}var e=this,a,s,y;if(this.version="3.5.0 BETA5",this.name="nicescroll",this.me=f,this.opt={doc:t("body"),win:!1},t.extend(this.opt,w),this.opt.snapbackspeed=80,n||!1)for(a in e.opt)typeof n[a]!="undefined"&&(e.opt[a]=n[a]);this.doc=e.opt.doc;this.iddoc=this.doc&&this.doc[0]?this.doc[0].id||"":"";this.ispage=/BODY|HTML/.test(e.opt.win?e.opt.win[0].nodeName:this.doc[0].nodeName);this.haswrapper=e.opt.win!==!1;this.win=e.opt.win||(this.ispage?t(window):this.doc);this.docscroll=this.ispage&&!this.haswrapper?t(window):this.win;this.body=t("body");this.viewport=!1;this.isfixed=!1;this.iframe=!1;this.isiframe=this.doc[0].nodeName=="IFRAME"&&this.win[0].nodeName=="IFRAME";this.istextarea=this.win[0].nodeName=="TEXTAREA";this.forcescreen=!1;this.canshowonmouseevent=e.opt.autohidemode!="scroll";this.onmousedown=!1;this.onmouseup=!1;this.onmousemove=!1;this.onmousewheel=!1;this.onkeypress=!1;this.ongesturezoom=!1;this.onclick=!1;this.onscrollstart=!1;this.onscrollend=!1;this.onscrollcancel=!1;this.onzoomin=!1;this.onzoomout=!1;this.view=!1;this.page=!1;this.scroll={x:0,y:0};this.scrollratio={x:0,y:0};this.cursorheight=20;this.scrollvaluemax=0;this.checkrtlmode=!1;this.scrollrunning=!1;this.scrollmom=!1;this.observer=!1;this.observerremover=!1;do this.id="ascrail"+d++;while(document.getElementById(this.id));if(this.rail=!1,this.cursor=!1,this.cursorfreezed=!1,this.selectiondrag=!1,this.zoom=!1,this.zoomactive=!1,this.hasfocus=!1,this.hasmousefocus=!1,this.visibility=!0,this.locked=!1,this.hidden=!1,this.cursoractive=!0,this.overflowx=e.opt.overflowx,this.overflowy=e.opt.overflowy,this.nativescrollingarea=!1,this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltax=0,this.lastdeltay=0,this.detected=tt(),s=t.extend({},this.detected),this.canhwscroll=s.hastransform&&e.opt.hwacceleration,this.ishwscroll=this.canhwscroll&&e.haswrapper,this.istouchcapable=!1,s.cantouch&&s.ischrome&&!s.isios&&!s.isandroid&&(this.istouchcapable=!0,s.cantouch=!1),s.cantouch&&s.ismozilla&&!s.isios&&!s.isandroid&&(this.istouchcapable=!0,s.cantouch=!1),e.opt.enablemouselockapi||(s.hasmousecapture=!1,s.haspointerlock=!1),this.delayed=function(n,t,i,r){var u=e.delaylist[n],f=(new Date).getTime();if(!r&&u&&u.tt)return!1;u&&u.tt&&clearTimeout(u.tt);u&&u.last+i>f&&!u.tt?e.delaylist[n]={last:f+i,tt:setTimeout(function(){e.delaylist[n].tt=0;t.call()},i)}:u&&u.tt||(e.delaylist[n]={last:f,tt:0},setTimeout(function(){t.call()},0))},this.debounced=function(n,t,i){var r=e.delaylist[n],u=(new Date).getTime();e.delaylist[n]=t;r||setTimeout(function(){var t=e.delaylist[n];e.delaylist[n]=!1;t.call()},i)},this.synched=function(n,t){function r(){e.onsync||(i(function(){e.onsync=!1;for(n in e.synclist){var t=e.synclist[n];t&&t.call(e);e.synclist[n]=!1}}),e.onsync=!0)}return e.synclist[n]=t,r(),n},this.unsynched=function(n){e.synclist[n]&&(e.synclist[n]=!1)},this.css=function(n,t){for(var i in t)e.saved.css.push([n,i,n.css(i)]),n.css(i,t[i])},this.scrollTop=function(n){return typeof n=="undefined"?e.getScrollTop():e.setScrollTop(n)},this.scrollLeft=function(n){return typeof n=="undefined"?e.getScrollLeft():e.setScrollLeft(n)},BezierClass=function(n,t,i,r,u,f,e){this.st=n;this.ed=t;this.spd=i;this.p1=r||0;this.p2=u||1;this.p3=f||0;this.p4=e||1;this.ts=(new Date).getTime();this.df=this.ed-this.st},BezierClass.prototype={B2:function(n){return 3*n*n*(1-n)},B3:function(n){return 3*n*(1-n)*(1-n)},B4:function(n){return(1-n)*(1-n)*(1-n)},getNow:function(){var t=(new Date).getTime(),n=1-(t-this.ts)/this.spd,i=this.B2(n)+this.B3(n)+this.B4(n);return n<0?this.ed:this.st+Math.round(this.df*i)},update:function(n,t){return this.st=this.getNow(),this.ed=n,this.spd=t,this.ts=(new Date).getTime(),this.df=this.ed-this.st,this}},this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"};s.hastranslate3d&&s.isios&&this.doc.css("-webkit-backface-visibility","hidden");function v(){var n=e.doc.css(s.trstyle);return n&&n.substr(0,6)=="matrix"?n.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/):!1}this.getScrollTop=function(n){if(!n){var t=v();if(t)return t.length==16?-t[13]:-t[5];if(e.timerscroll&&e.timerscroll.bz)return e.timerscroll.bz.getNow()}return e.doc.translate.y};this.getScrollLeft=function(n){if(!n){var t=v();if(t)return t.length==16?-t[12]:-t[4];if(e.timerscroll&&e.timerscroll.bh)return e.timerscroll.bh.getNow()}return e.doc.translate.x};this.notifyScrollEvent=document.createEvent?function(n){var t=document.createEvent("UIEvents");t.initUIEvent("scroll",!1,!0,window,1);n.dispatchEvent(t)}:document.fireEvent?function(n){var t=document.createEventObject();n.fireEvent("onscroll");t.cancelBubble=!0}:function(){};s.hastranslate3d&&e.opt.enabletranslate3d?(this.setScrollTop=function(n,t){e.doc.translate.y=n;e.doc.translate.ty=n*-1+"px";e.doc.css(s.trstyle,"translate3d("+e.doc.translate.tx+","+e.doc.translate.ty+",0px)");t||e.notifyScrollEvent(e.win[0])},this.setScrollLeft=function(n,t){e.doc.translate.x=n;e.doc.translate.tx=n*-1+"px";e.doc.css(s.trstyle,"translate3d("+e.doc.translate.tx+","+e.doc.translate.ty+",0px)");t||e.notifyScrollEvent(e.win[0])}):(this.setScrollTop=function(n,t){e.doc.translate.y=n;e.doc.translate.ty=n*-1+"px";e.doc.css(s.trstyle,"translate("+e.doc.translate.tx+","+e.doc.translate.ty+")");t||e.notifyScrollEvent(e.win[0])},this.setScrollLeft=function(n,t){e.doc.translate.x=n;e.doc.translate.tx=n*-1+"px";e.doc.css(s.trstyle,"translate("+e.doc.translate.tx+","+e.doc.translate.ty+")");t||e.notifyScrollEvent(e.win[0])})}else this.getScrollTop=function(){return e.docscroll.scrollTop()},this.setScrollTop=function(n){return e.docscroll.scrollTop(n)},this.getScrollLeft=function(){return e.docscroll.scrollLeft()},this.setScrollLeft=function(n){return e.docscroll.scrollLeft(n)};this.getTarget=function(n){return n?n.target?n.target:n.srcElement?n.srcElement:!1:!1};this.hasParent=function(n,t){if(!n)return!1;for(var i=n.target||n.srcElement||n||!1;i&&i.id!=t;)i=i.parentNode||!1;return i!==!1};y={thin:1,medium:3,thick:5};this.getOffset=function(){if(e.isfixed)return{top:parseFloat(e.win.css("top")),left:parseFloat(e.win.css("left"))};if(!e.viewport)return e.win.offset();var n=e.win.offset(),t=e.viewport.offset();return{top:n.top-t.top+e.viewport.scrollTop(),left:n.left-t.left+e.viewport.scrollLeft()}};this.updateScrollBar=function(n){var r,t,u,i;if(e.ishwscroll)e.rail.css({height:e.win.innerHeight()}),e.railh&&e.railh.css({width:e.win.innerWidth()});else if(r=e.getOffset(),t={top:r.top,left:r.left},t.top+=c(e.win,"border-top-width",!0),u=(e.win.outerWidth()-e.win.innerWidth())/2,t.left+=e.rail.align?e.win.outerWidth()-c(e.win,"border-right-width")-e.rail.width:c(e.win,"border-left-width"),i=e.opt.railoffset,i&&(i.top&&(t.top+=i.top),e.rail.align&&i.left&&(t.left+=i.left)),e.locked||e.rail.css({top:t.top,left:t.left,height:n?n.h:e.win.innerHeight()}),e.zoom&&e.zoom.css({top:t.top+1,left:e.rail.align==1?t.left-20:t.left+e.rail.width+4}),e.railh&&!e.locked){var t={top:r.top,left:r.left},f=e.railh.align?t.top+c(e.win,"border-top-width",!0)+e.win.innerHeight()-e.railh.height:t.top+c(e.win,"border-top-width",!0),o=t.left+c(e.win,"border-left-width");e.railh.css({top:f,left:o,width:e.railh.width})}};this.doRailClick=function(n,t,i){var r,f,u,o;e.locked||(e.cancelEvent(n),t?(r=i?e.doScrollLeft:e.doScrollTop,u=i?(n.pageX-e.railh.offset().left-e.cursorwidth/2)*e.scrollratio.x:(n.pageY-e.rail.offset().top-e.cursorheight/2)*e.scrollratio.y,r(u)):(r=i?e.doScrollLeftBy:e.doScrollBy,u=i?e.scroll.x:e.scroll.y,o=i?n.pageX-e.railh.offset().left:n.pageY-e.rail.offset().top,f=i?e.view.w:e.view.h,u>=o?r(f):r(-f)))};e.hasanimationframe=i;e.hascancelanimationframe=r;e.hasanimationframe?e.hascancelanimationframe||(r=function(){e.cancelAnimationFrame=!0}):(i=function(n){return setTimeout(n,15-Math.floor(+new Date/1e3)%16)},r=clearInterval);this.init=function(){var f,n,p,c,w,tt,a,r,i,v,y,d,g,rt,ft,et;if((e.saved.css=[],s.isie7mobile)||s.isoperamini)return!0;if(s.hasmstouch&&e.css(e.ispage?t("html"):e.win,{"-ms-touch-action":"none"}),e.zindex="auto",e.zindex=e.ispage||e.opt.zindex!="auto"?e.opt.zindex:it()||"auto",e.ispage||e.zindex=="auto"||e.zindex>u&&(u=e.zindex),e.isie&&e.zindex==0&&e.opt.zindex=="auto"&&(e.zindex="auto"),!e.ispage||!s.cantouch&&!s.isieold&&!s.isie9mobile){f=e.docscroll;e.ispage&&(f=e.haswrapper?e.win:e.doc);s.isie9mobile||e.css(f,{"overflow-y":"hidden"});e.ispage&&s.isie7&&(e.doc[0].nodeName=="BODY"?e.css(t("html"),{"overflow-y":"hidden"}):e.doc[0].nodeName=="HTML"&&e.css(t("body"),{"overflow-y":"hidden"}));!s.isios||e.ispage||e.haswrapper||e.css(t("body"),{"-webkit-overflow-scrolling":"touch"});r=t(document.createElement("div"));r.css({position:"relative",top:0,float:"right",width:e.opt.cursorwidth,height:"0px","background-color":e.opt.cursorcolor,border:e.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":e.opt.cursorborderradius,"-moz-border-radius":e.opt.cursorborderradius,"border-radius":e.opt.cursorborderradius});r.hborder=parseFloat(r.outerHeight()-r.innerHeight());e.cursor=r;n=t(document.createElement("div"));n.attr("id",e.id);n.addClass("nicescroll-rails");w=["left","right"];for(tt in w)c=w[tt],p=e.opt.railpadding[c],p?n.css("padding-"+c,p+"px"):e.opt.railpadding[c]=0;if(n.append(r),n.width=Math.max(parseFloat(e.opt.cursorwidth),r.outerWidth())+e.opt.railpadding.left+e.opt.railpadding.right,n.css({width:n.width+"px",zIndex:e.zindex,background:e.opt.background,cursor:"default"}),n.visibility=!0,n.scrollable=!0,n.align=e.opt.railalign=="left"?0:1,e.rail=n,e.rail.drag=!1,a=!1,!e.opt.boxzoom||e.ispage||s.isieold||(a=document.createElement("div"),e.bind(a,"click",e.doZoom),e.zoom=t(a),e.zoom.css({cursor:"pointer","z-index":e.zindex,backgroundImage:"url("+nt+"zoomico.png)",height:18,width:18,backgroundPosition:"0px 0px"}),e.opt.dblclickzoom&&e.bind(e.win,"dblclick",e.doZoom),s.cantouch&&e.opt.gesturezoom&&(e.ongesturezoom=function(n){return n.scale>1.5&&e.doZoomIn(n),n.scale<.8&&e.doZoomOut(n),e.cancelEvent(n)},e.bind(e.win,"gestureend",e.ongesturezoom))),e.railh=!1,e.opt.horizrailenabled&&(e.css(f,{"overflow-x":"hidden"}),r=t(document.createElement("div")),r.css({position:"relative",top:0,height:e.opt.cursorwidth,width:"0px","background-color":e.opt.cursorcolor,border:e.opt.cursorborder,"background-clip":"padding-box","-webkit-border-radius":e.opt.cursorborderradius,"-moz-border-radius":e.opt.cursorborderradius,"border-radius":e.opt.cursorborderradius}),r.wborder=parseFloat(r.outerWidth()-r.innerWidth()),e.cursorh=r,i=t(document.createElement("div")),i.attr("id",e.id+"-hr"),i.addClass("nicescroll-rails"),i.height=Math.max(parseFloat(e.opt.cursorwidth),r.outerHeight()),i.css({height:i.height+"px",zIndex:e.zindex,background:e.opt.background}),i.append(r),i.visibility=!0,i.scrollable=!0,i.align=e.opt.railvalign=="top"?0:1,e.railh=i,e.railh.drag=!1),e.ispage?(n.css({position:"fixed",top:"0px",height:"100%"}),n.align?n.css({right:"0px"}):n.css({left:"0px"}),e.body.append(n),e.railh&&(i.css({position:"fixed",left:"0px",width:"100%"}),i.align?i.css({bottom:"0px"}):i.css({top:"0px"}),e.body.append(i))):(e.ishwscroll?(e.win.css("position")=="static"&&e.css(e.win,{position:"relative"}),v=e.win[0].nodeName=="HTML"?e.body:e.win,e.zoom&&(e.zoom.css({position:"absolute",top:1,right:0,"margin-right":n.width+4}),v.append(e.zoom)),n.css({position:"absolute",top:0}),n.align?n.css({right:0}):n.css({left:0}),v.append(n),i&&(i.css({position:"absolute",left:0,bottom:0}),i.align?i.css({bottom:0}):i.css({top:0}),v.append(i))):(e.isfixed=e.win.css("position")=="fixed",y=e.isfixed?"fixed":"absolute",e.isfixed||(e.viewport=e.getViewport(e.win[0])),e.viewport&&(e.body=e.viewport,/relative|absolute/.test(e.viewport.css("position"))==!1&&e.css(e.viewport,{position:"relative"})),n.css({position:y}),e.zoom&&e.zoom.css({position:y}),e.updateScrollBar(),e.body.append(n),e.zoom&&e.body.append(e.zoom),e.railh&&(i.css({position:y}),e.body.append(i))),s.isios&&e.css(e.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),s.isie&&e.opt.disableoutline&&e.win.attr("hideFocus","true"),s.iswebkit&&e.opt.disableoutline&&e.win.css({outline:"none"})),e.opt.autohidemode===!1?(e.autohidedom=!1,e.rail.css({opacity:e.opt.cursoropacitymax}),e.railh&&e.railh.css({opacity:e.opt.cursoropacitymax})):e.opt.autohidemode===!0?(e.autohidedom=t().add(e.rail),s.isie8&&(e.autohidedom=e.autohidedom.add(e.cursor)),e.railh&&(e.autohidedom=e.autohidedom.add(e.railh)),e.railh&&s.isie8&&(e.autohidedom=e.autohidedom.add(e.cursorh))):e.opt.autohidemode=="scroll"?(e.autohidedom=t().add(e.rail),e.railh&&(e.autohidedom=e.autohidedom.add(e.railh))):e.opt.autohidemode=="cursor"?(e.autohidedom=t().add(e.cursor),e.railh&&(e.autohidedom=e.autohidedom.add(e.cursorh))):e.opt.autohidemode=="hidden"&&(e.autohidedom=!1,e.hide(),e.locked=!1),s.isie9mobile)e.scrollmom=new b(e),e.onmangotouch=function(){var n=e.getScrollTop(),t=e.getScrollLeft(),c,s;if(n==e.scrollmom.lastscrolly&&t==e.scrollmom.lastscrollx)return!0;var r=n-e.mangotouch.sy,u=t-e.mangotouch.sx,h=Math.round(Math.sqrt(Math.pow(u,2)+Math.pow(r,2)));if(h!=0){var f=r<0?-1:1,o=u<0?-1:1,i=+new Date;e.mangotouch.lazy&&clearTimeout(e.mangotouch.lazy);i-e.mangotouch.tm>80||e.mangotouch.dry!=f||e.mangotouch.drx!=o?(e.scrollmom.stop(),e.scrollmom.reset(t,n),e.mangotouch.sy=n,e.mangotouch.ly=n,e.mangotouch.sx=t,e.mangotouch.lx=t,e.mangotouch.dry=f,e.mangotouch.drx=o,e.mangotouch.tm=i):(e.scrollmom.stop(),e.scrollmom.update(e.mangotouch.sx-u,e.mangotouch.sy-r),c=i-e.mangotouch.tm,e.mangotouch.tm=i,s=Math.max(Math.abs(e.mangotouch.ly-n),Math.abs(e.mangotouch.lx-t)),e.mangotouch.ly=n,e.mangotouch.lx=t,s>2&&(e.mangotouch.lazy=setTimeout(function(){e.mangotouch.lazy=!1;e.mangotouch.dry=0;e.mangotouch.drx=0;e.mangotouch.tm=0;e.scrollmom.doMomentum(30)},100)))}},d=e.getScrollTop(),g=e.getScrollLeft(),e.mangotouch={sy:d,ly:d,dry:0,sx:g,lx:g,drx:0,lazy:!1,tm:0},e.bind(e.docscroll,"scroll",e.onmangotouch);else{if((s.cantouch||e.istouchcapable||e.opt.touchbehavior||s.hasmstouch)&&(e.scrollmom=new b(e),e.ontouchstart=function(n){var r,i,o,u,n,f,l;if(n.pointerType&&n.pointerType!=2)return!1;if(!e.locked){if(s.hasmstouch)for(i=n.target?n.target:!1;i;){if(r=t(i).getNiceScroll(),r.length>0&&r[0].me==e.me)break;if(r.length>0)return!1;if(i.nodeName=="DIV"&&i.id==e.id)break;i=i.parentNode?i.parentNode:!1}if(e.cancelScroll(),i=e.getTarget(n),i&&(o=/INPUT/i.test(i.nodeName)&&/range/i.test(i.type),o))return e.stopPropagation(n);if(!("clientX"in n)&&"changedTouches"in n&&(n.clientX=n.changedTouches[0].clientX,n.clientY=n.changedTouches[0].clientY),e.forcescreen&&(u=n,n={original:n.original?n.original:n},n.clientX=u.screenX,n.clientY=u.screenY),e.rail.drag={x:n.clientX,y:n.clientY,sx:e.scroll.x,sy:e.scroll.y,st:e.getScrollTop(),sl:e.getScrollLeft(),pt:2,dl:!1},e.ispage||!e.opt.directionlockdeadzone)e.rail.drag.dl="f";else{var h={w:t(window).width(),h:t(window).height()},c={w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},a=Math.max(0,c.h-h.h),v=Math.max(0,c.w-h.w);e.rail.drag.ck=!e.rail.scrollable&&e.railh.scrollable?a>0?"v":!1:e.rail.scrollable&&!e.railh.scrollable?v>0?"h":!1:!1;e.rail.drag.ck||(e.rail.drag.dl="f")}if(e.opt.touchbehavior&&e.isiframe&&s.isie&&(f=e.win.position(),e.rail.drag.x+=f.left,e.rail.drag.y+=f.top),e.hasmoving=!1,e.lastmouseup=!1,e.scrollmom.reset(n.clientX,n.clientY),!s.cantouch&&!this.istouchcapable&&!s.hasmstouch){if(l=i?/INPUT|SELECT|TEXTAREA/i.test(i.nodeName):!1,!l)return!e.ispage&&s.hasmousecapture&&i.setCapture(),e.opt.touchbehavior?e.cancelEvent(n):e.stopPropagation(n);/SUBMIT|CANCEL|BUTTON/i.test(t(i).attr("type"))&&(pc={tg:i,click:!1},e.preventclick=pc)}}},e.ontouchend=function(n){return n.pointerType&&n.pointerType!=2?!1:e.rail.drag&&e.rail.drag.pt==2&&(e.scrollmom.doMomentum(),e.rail.drag=!1,e.hasmoving&&(e.hasmoving=!1,e.lastmouseup=!0,e.hideCursor(),s.hasmousecapture&&document.releaseCapture(),!s.cantouch))?e.cancelEvent(n):void 0},rt=e.opt.touchbehavior&&e.isiframe&&!s.hasmousecapture,e.ontouchmove=function(n,i){var w,v,n,y,p,u,h;if(n.pointerType&&n.pointerType!=2)return!1;if(e.rail.drag&&e.rail.drag.pt==2){if(s.cantouch&&typeof n.original=="undefined")return!0;e.hasmoving=!0;e.preventclick&&!e.preventclick.click&&(e.preventclick.click=e.preventclick.tg.onclick||!1,e.preventclick.tg.onclick=e.onpreventclick);w=t.extend({original:n},n);n=w;"changedTouches"in n&&(n.clientX=n.changedTouches[0].clientX,n.clientY=n.changedTouches[0].clientY);e.forcescreen&&(v=n,n={original:n.original?n.original:n},n.clientX=v.screenX,n.clientY=v.screenY);y=ofy=0;rt&&!i&&(p=e.win.position(),y=-p.left,ofy=-p.top);var f=n.clientY+ofy,b=f-e.rail.drag.y,o=n.clientX+y,k=o-e.rail.drag.x,r=e.rail.drag.st-b;if(e.ishwscroll&&e.opt.bouncescroll?r<0?r=Math.round(r/2):r>e.page.maxh&&(r=e.page.maxh+Math.round((r-e.page.maxh)/2)):(r<0&&(r=0,f=0),r>e.page.maxh&&(r=e.page.maxh,f=0)),e.railh&&e.railh.scrollable&&(u=e.rail.drag.sl-k,e.ishwscroll&&e.opt.bouncescroll?u<0?u=Math.round(u/2):u>e.page.maxw&&(u=e.page.maxw+Math.round((u-e.page.maxw)/2)):(u<0&&(u=0,o=0),u>e.page.maxw&&(u=e.page.maxw,o=0))),h=!1,e.rail.drag.dl)h=!0,e.rail.drag.dl=="v"?u=e.rail.drag.sl:e.rail.drag.dl=="h"&&(r=e.rail.drag.st);else{var c=Math.abs(b),l=Math.abs(k),a=e.opt.directionlockdeadzone;if(e.rail.drag.ck=="v"){if(c>a&&l<=c*.3)return e.rail.drag=!1,!0;l>a&&(e.rail.drag.dl="f",t("body").scrollTop(t("body").scrollTop()))}else if(e.rail.drag.ck=="h"){if(l>a&&c<=l*.3)return e.rail.drag=!1,!0;c>a&&(e.rail.drag.dl="f",t("body").scrollLeft(t("body").scrollLeft()))}}if(e.synched("touchmove",function(){e.rail.drag&&e.rail.drag.pt==2&&(e.prepareTransition&&e.prepareTransition(0),e.rail.scrollable&&e.setScrollTop(r),e.scrollmom.update(o,f),e.railh&&e.railh.scrollable?(e.setScrollLeft(u),e.showCursor(r,u)):e.showCursor(r),s.isie10&&document.selection.clear())}),s.ischrome&&e.istouchcapable&&(h=!1),h)return e.cancelEvent(n)}}),e.onmousedown=function(n,t){if(!e.rail.drag||e.rail.drag.pt==1){if(e.locked)return e.cancelEvent(n);e.cancelScroll();e.rail.drag={x:n.clientX,y:n.clientY,sx:e.scroll.x,sy:e.scroll.y,pt:1,hr:!!t};var i=e.getTarget(n);return!e.ispage&&s.hasmousecapture&&i.setCapture(),e.isiframe&&!s.hasmousecapture&&(e.saved.csspointerevents=e.doc.css("pointer-events"),e.css(e.doc,{"pointer-events":"none"})),e.cancelEvent(n)}},e.onmouseup=function(n){if(e.rail.drag)return(s.hasmousecapture&&document.releaseCapture(),e.isiframe&&!s.hasmousecapture&&e.doc.css("pointer-events",e.saved.csspointerevents),e.rail.drag.pt!=1)?void 0:(e.rail.drag=!1,e.cancelEvent(n))},e.onmousemove=function(n){var t,i;if(e.rail.drag)return e.rail.drag.pt!=1?void 0:s.ischrome&&n.which==0?e.onmouseup(n):(e.cursorfreezed=!0,e.rail.drag.hr?(e.scroll.x=e.rail.drag.sx+(n.clientX-e.rail.drag.x),e.scroll.x<0&&(e.scroll.x=0),t=e.scrollvaluemaxw,e.scroll.x>t&&(e.scroll.x=t)):(e.scroll.y=e.rail.drag.sy+(n.clientY-e.rail.drag.y),e.scroll.y<0&&(e.scroll.y=0),i=e.scrollvaluemax,e.scroll.y>i&&(e.scroll.y=i)),e.synched("mousemove",function(){e.rail.drag&&e.rail.drag.pt==1&&(e.showCursor(),e.rail.drag.hr?e.doScrollLeft(Math.round(e.scroll.x*e.scrollratio.x),e.opt.cursordragspeed):e.doScrollTop(Math.round(e.scroll.y*e.scrollratio.y),e.opt.cursordragspeed))}),e.cancelEvent(n))},s.cantouch||e.opt.touchbehavior)e.onpreventclick=function(n){if(e.preventclick)return e.preventclick.tg.onclick=e.preventclick.click,e.preventclick=!1,e.cancelEvent(n)},e.bind(e.win,"mousedown",e.ontouchstart),e.onclick=s.isios?!1:function(n){return e.lastmouseup?(e.lastmouseup=!1,e.cancelEvent(n)):!0},e.opt.grabcursorenabled&&s.cursorgrabvalue&&(e.css(e.ispage?e.doc:e.win,{cursor:s.cursorgrabvalue}),e.css(e.rail,{cursor:s.cursorgrabvalue}));else{function ut(n){var i,t,r;e.selectiondrag&&(n&&(i=e.win.outerHeight(),t=n.pageY-e.selectiondrag.top,t>0&&t<i&&(t=0),t>=i&&(t-=i),e.selectiondrag.df=t),e.selectiondrag.df!=0)&&(r=-Math.floor(e.selectiondrag.df/6)*2,e.doScrollBy(r),e.debounced("doselectionscroll",function(){ut()},50))}e.hasTextSelected="getSelection"in document?function(){return document.getSelection().rangeCount>0}:"selection"in document?function(){return document.selection.type!="None"}:function(){return!1};e.onselectionstart=function(){e.ispage||(e.selectiondrag=e.win.offset())};e.onselectionend=function(){e.selectiondrag=!1};e.onselectiondrag=function(n){e.selectiondrag&&e.hasTextSelected()&&e.debounced("selectionscroll",function(){ut(n)},250)}}s.hasmstouch&&(e.css(e.rail,{"-ms-touch-action":"none"}),e.css(e.cursor,{"-ms-touch-action":"none"}),e.bind(e.win,"MSPointerDown",e.ontouchstart),e.bind(document,"MSPointerUp",e.ontouchend),e.bind(document,"MSPointerMove",e.ontouchmove),e.bind(e.cursor,"MSGestureHold",function(n){n.preventDefault()}),e.bind(e.cursor,"contextmenu",function(n){n.preventDefault()}));this.istouchcapable&&(e.bind(e.win,"touchstart",e.ontouchstart),e.bind(document,"touchend",e.ontouchend),e.bind(document,"touchcancel",e.ontouchend),e.bind(document,"touchmove",e.ontouchmove));e.bind(e.cursor,"mousedown",e.onmousedown);e.bind(e.cursor,"mouseup",e.onmouseup);e.railh&&(e.bind(e.cursorh,"mousedown",function(n){e.onmousedown(n,!0)}),e.bind(e.cursorh,"mouseup",function(n){if(!e.rail.drag||e.rail.drag.pt!=2)return e.rail.drag=!1,e.hasmoving=!1,e.hideCursor(),s.hasmousecapture&&document.releaseCapture(),e.cancelEvent(n)}));!e.opt.cursordragontouch&&(s.cantouch||e.opt.touchbehavior)||(e.rail.css({cursor:"default"}),e.railh&&e.railh.css({cursor:"default"}),e.jqbind(e.rail,"mouseenter",function(){e.canshowonmouseevent&&e.showCursor();e.rail.active=!0}),e.jqbind(e.rail,"mouseleave",function(){e.rail.active=!1;e.rail.drag||e.hideCursor()}),e.opt.sensitiverail&&(e.bind(e.rail,"click",function(n){e.doRailClick(n,!1,!1)}),e.bind(e.rail,"dblclick",function(n){e.doRailClick(n,!0,!1)}),e.bind(e.cursor,"click",function(n){e.cancelEvent(n)}),e.bind(e.cursor,"dblclick",function(n){e.cancelEvent(n)})),e.railh&&(e.jqbind(e.railh,"mouseenter",function(){e.canshowonmouseevent&&e.showCursor();e.rail.active=!0}),e.jqbind(e.railh,"mouseleave",function(){e.rail.active=!1;e.rail.drag||e.hideCursor()}),e.opt.sensitiverail&&(e.bind(e.railh,"click",function(n){e.doRailClick(n,!1,!0)}),e.bind(e.railh,"dblclick",function(n){e.doRailClick(n,!0,!0)}),e.bind(e.cursorh,"click",function(n){e.cancelEvent(n)}),e.bind(e.cursorh,"dblclick",function(n){e.cancelEvent(n)}))));s.cantouch||e.opt.touchbehavior?(e.bind(s.hasmousecapture?e.win:document,"mouseup",e.ontouchend),e.bind(document,"mousemove",e.ontouchmove),e.onclick&&e.bind(document,"click",e.onclick),e.opt.cursordragontouch&&(e.bind(e.cursor,"mousedown",e.onmousedown),e.bind(e.cursor,"mousemove",e.onmousemove),e.cursorh&&e.bind(e.cursorh,"mousedown",e.onmousedown),e.cursorh&&e.bind(e.cursorh,"mousemove",e.onmousemove))):(e.bind(s.hasmousecapture?e.win:document,"mouseup",e.onmouseup),e.bind(document,"mousemove",e.onmousemove),e.onclick&&e.bind(document,"click",e.onclick),!e.ispage&&e.opt.enablescrollonselection&&(e.bind(e.win[0],"mousedown",e.onselectionstart),e.bind(document,"mouseup",e.onselectionend),e.bind(e.cursor,"mouseup",e.onselectionend),e.cursorh&&e.bind(e.cursorh,"mouseup",e.onselectionend),e.bind(document,"mousemove",e.onselectiondrag)),e.zoom&&(e.jqbind(e.zoom,"mouseenter",function(){e.canshowonmouseevent&&e.showCursor();e.rail.active=!0}),e.jqbind(e.zoom,"mouseleave",function(){e.rail.active=!1;e.rail.drag||e.hideCursor()})));e.opt.enablemousewheel&&(e.isiframe||e.bind(s.isie&&e.ispage?document:e.win,"mousewheel",e.onmousewheel),e.bind(e.rail,"mousewheel",e.onmousewheel),e.railh&&e.bind(e.railh,"mousewheel",e.onmousewheelhr));e.ispage||s.cantouch||/HTML|BODY/.test(e.win[0].nodeName)||(e.win.attr("tabindex")||e.win.attr({tabindex:k++}),e.jqbind(e.win,"focus",function(n){o=e.getTarget(n).id||!0;e.hasfocus=!0;e.canshowonmouseevent&&e.noticeCursor()}),e.jqbind(e.win,"blur",function(){o=!1;e.hasfocus=!1}),e.jqbind(e.win,"mouseenter",function(n){l=e.getTarget(n).id||!0;e.hasmousefocus=!0;e.canshowonmouseevent&&e.noticeCursor()}),e.jqbind(e.win,"mouseleave",function(){l=!1;e.hasmousefocus=!1}))}e.onkeypress=function(n){var i,f,u;if(e.locked&&e.page.maxh==0||(n=n?n:window.e,i=e.getTarget(n),i&&/INPUT|TEXTAREA|SELECT|OPTION/.test(i.nodeName)&&(f=i.getAttribute("type")||i.type||!1,!f||!/submit|button|cancel/i.tp)))return!0;if(e.hasfocus||e.hasmousefocus&&!o||e.ispage&&!o&&!l){if(u=n.keyCode,e.locked&&u!=27)return e.cancelEvent(n);var r=n.ctrlKey||!1,s=n.shiftKey||!1,t=!1;switch(u){case 38:case 63233:e.doScrollBy(72);t=!0;break;case 40:case 63235:e.doScrollBy(-72);t=!0;break;case 37:case 63232:e.railh&&(r?e.doScrollLeft(0):e.doScrollLeftBy(72),t=!0);break;case 39:case 63234:e.railh&&(r?e.doScrollLeft(e.page.maxw):e.doScrollLeftBy(-72),t=!0);break;case 33:case 63276:e.doScrollBy(e.view.h);t=!0;break;case 34:case 63277:e.doScrollBy(-e.view.h);t=!0;break;case 36:case 63273:e.railh&&r?e.doScrollPos(0,0):e.doScrollTo(0);t=!0;break;case 35:case 63275:e.railh&&r?e.doScrollPos(e.page.maxw,e.page.maxh):e.doScrollTo(e.page.maxh);t=!0;break;case 32:e.opt.spacebarenabled&&(s?e.doScrollBy(e.view.h):e.doScrollBy(-e.view.h),t=!0);break;case 27:e.zoomactive&&(e.doZoom(),t=!0)}if(t)return e.cancelEvent(n)}};e.opt.enablekeyboard&&e.bind(document,s.isopera&&!s.isopera12?"keypress":"keydown",e.onkeypress);e.bind(window,"resize",e.lazyResize);e.bind(window,"orientationchange",e.lazyResize);e.bind(window,"load",e.lazyResize);!s.ischrome||e.ispage||e.haswrapper||(ft=e.win.attr("style"),et=parseFloat(e.win.css("width"))+1,e.win.css("width",et),e.synched("chromefix",function(){e.win.attr("style",ft)}));e.onAttributeChange=function(){e.lazyResize(250)};e.ispage||e.haswrapper||(h!==!1?(e.observer=new h(function(n){n.forEach(e.onAttributeChange)}),e.observer.observe(e.win[0],{childList:!0,characterData:!1,attributes:!0,subtree:!1}),e.observerremover=new h(function(n){n.forEach(function(n){if(n.removedNodes.length>0)for(var t in n.removedNodes)if(n.removedNodes[t]==e.win[0])return e.remove()})}),e.observerremover.observe(e.win[0].parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(e.bind(e.win,s.isie&&!s.isie9?"propertychange":"DOMAttrModified",e.onAttributeChange),s.isie9&&e.win[0].attachEvent("onpropertychange",e.onAttributeChange),e.bind(e.win,"DOMNodeRemoved",function(n){n.target==e.win[0]&&e.remove()})));!e.ispage&&e.opt.boxzoom&&e.bind(window,"resize",e.resizeZoom);e.istextarea&&e.bind(e.win,"mouseup",e.lazyResize);e.checkrtlmode=!0;e.lazyResize(30)}if(this.doc[0].nodeName=="IFRAME"){function ot(){var n,r,i;e.iframexd=!1;try{n="contentDocument"in this?this.contentDocument:this.contentWindow.document;r=n.domain}catch(e){e.iframexd=!0;n=!1}if(e.iframexd)return"console"in window&&console.log("NiceScroll error: policy restriced iframe"),!0;e.forcescreen=!0;e.isiframe&&(e.iframe={doc:t(n),html:e.doc.contents().find("html")[0],body:e.doc.contents().find("body")[0]},e.getContentSize=function(){return{w:Math.max(e.iframe.html.scrollWidth,e.iframe.body.scrollWidth),h:Math.max(e.iframe.html.scrollHeight,e.iframe.body.scrollHeight)}},e.docscroll=t(e.iframe.body));s.isios||!e.opt.iframeautoresize||e.isiframe||(e.win.scrollTop(0),e.doc.height(""),i=Math.max(n.getElementsByTagName("html")[0].scrollHeight,n.body.scrollHeight),e.doc.height(i));e.lazyResize(30);s.isie7&&e.css(t(e.iframe.html),{"overflow-y":"hidden"});e.css(t(e.iframe.body),{"overflow-y":"hidden"});s.isios&&e.haswrapper&&(e.css(t(n.body),{"-webkit-transform":"translate3d(0,0,0)"}),console.log(1));"contentWindow"in this?e.bind(this.contentWindow,"scroll",e.onscroll):e.bind(n,"scroll",e.onscroll);e.opt.enablemousewheel&&e.bind(n,"mousewheel",e.onmousewheel);e.opt.enablekeyboard&&e.bind(n,s.isopera?"keypress":"keydown",e.onkeypress);(s.cantouch||e.opt.touchbehavior)&&(e.bind(n,"mousedown",e.ontouchstart),e.bind(n,"mousemove",function(n){e.ontouchmove(n,!0)}),e.opt.grabcursorenabled&&s.cursorgrabvalue&&e.css(t(n.body),{cursor:s.cursorgrabvalue}));e.bind(n,"mouseup",e.ontouchend);e.zoom&&(e.opt.dblclickzoom&&e.bind(n,"dblclick",e.doZoom),e.ongesturezoom&&e.bind(n,"gestureend",e.ongesturezoom))}this.doc[0].readyState&&this.doc[0].readyState=="complete"&&setTimeout(function(){ot.call(e.doc[0],!1)},500);e.bind(this.doc,"load",ot)}};this.showCursor=function(n,t){(e.cursortimeout&&(clearTimeout(e.cursortimeout),e.cursortimeout=0),e.rail)&&(e.autohidedom&&(e.autohidedom.stop().css({opacity:e.opt.cursoropacitymax}),e.cursoractive=!0),e.rail.drag&&e.rail.drag.pt==1||(typeof n!="undefined"&&n!==!1&&(e.scroll.y=Math.round(n*1/e.scrollratio.y)),typeof t!="undefined"&&(e.scroll.x=Math.round(t*1/e.scrollratio.x))),e.cursor.css({height:e.cursorheight,top:e.scroll.y}),e.cursorh&&(!e.rail.align&&e.rail.visibility?e.cursorh.css({width:e.cursorwidth,left:e.scroll.x+e.rail.width}):e.cursorh.css({width:e.cursorwidth,left:e.scroll.x}),e.cursoractive=!0),e.zoom&&e.zoom.stop().css({opacity:e.opt.cursoropacitymax}))};this.hideCursor=function(n){e.cursortimeout||e.rail&&e.autohidedom&&(e.cursortimeout=setTimeout(function(){e.rail.active&&e.showonmouseevent||(e.autohidedom.stop().animate({opacity:e.opt.cursoropacitymin}),e.zoom&&e.zoom.stop().animate({opacity:e.opt.cursoropacitymin}),e.cursoractive=!1);e.cursortimeout=0},n||e.opt.hidecursordelay))};this.noticeCursor=function(n,t,i){e.showCursor(t,i);e.rail.active||e.hideCursor(n)};this.getContentSize=e.ispage?function(){return{w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth),h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}}:e.haswrapper?function(){return{w:e.doc.outerWidth()+parseInt(e.win.css("paddingLeft"))+parseInt(e.win.css("paddingRight")),h:e.doc.outerHeight()+parseInt(e.win.css("paddingTop"))+parseInt(e.win.css("paddingBottom"))}}:function(){return{w:e.docscroll[0].scrollWidth,h:e.docscroll[0].scrollHeight}};this.onResize=function(n,t){var i,r,u;if(!e.win)return!1;if(!e.haswrapper&&!e.ispage){if(e.win.css("display")=="none")return e.visibility&&e.hideRail().hideRailHr(),!1;e.hidden||e.visibility||e.showRail().showRailHr()}var f=e.page.maxh,o=e.page.maxw,s={h:e.view.h,w:e.view.w};if(e.view={w:e.ispage?e.win.width():parseInt(e.win[0].clientWidth),h:e.ispage?e.win.height():parseInt(e.win[0].clientHeight)},e.page=t?t:e.getContentSize(),e.page.maxh=Math.max(0,e.page.h-e.view.h),e.page.maxw=Math.max(0,e.page.w-e.view.w),e.page.maxh==f&&e.page.maxw==o&&e.view.w==s.w){if(e.ispage||(i=e.win.offset(),e.lastposition&&(r=e.lastposition,r.top==i.top&&r.left==i.left)))return e;e.lastposition=i}return(e.page.maxh==0?(e.hideRail(),e.scrollvaluemax=0,e.scroll.y=0,e.scrollratio.y=0,e.cursorheight=0,e.setScrollTop(0),e.rail.scrollable=!1):e.rail.scrollable=!0,e.page.maxw==0?(e.hideRailHr(),e.scrollvaluemaxw=0,e.scroll.x=0,e.scrollratio.x=0,e.cursorwidth=0,e.setScrollLeft(0),e.railh.scrollable=!1):e.railh.scrollable=!0,e.locked=e.page.maxh==0&&e.page.maxw==0,e.locked)?(e.ispage||e.updateScrollBar(e.view),!1):(e.hidden||e.visibility?e.hidden||e.railh.visibility||e.showRailHr():e.showRail().showRailHr(),e.istextarea&&e.win.css("resize")&&e.win.css("resize")!="none"&&(e.view.h-=20),e.cursorheight=Math.min(e.view.h,Math.round(e.view.h*(e.view.h/e.page.h))),e.cursorheight=e.opt.cursorfixedheight?e.opt.cursorfixedheight:Math.max(e.opt.cursorminheight,e.cursorheight),e.cursorwidth=Math.min(e.view.w,Math.round(e.view.w*(e.view.w/e.page.w))),e.cursorwidth=e.opt.cursorfixedheight?e.opt.cursorfixedheight:Math.max(e.opt.cursorminheight,e.cursorwidth),e.scrollvaluemax=e.view.h-e.cursorheight-e.cursor.hborder,e.railh&&(e.railh.width=e.page.maxh>0?e.view.w-e.rail.width:e.view.w,e.scrollvaluemaxw=e.railh.width-e.cursorwidth-e.cursorh.wborder),e.checkrtlmode&&e.railh&&(e.checkrtlmode=!1,e.opt.rtlmode&&e.scroll.x==0&&e.setScrollLeft(e.page.maxw)),e.ispage||e.updateScrollBar(e.view),e.scrollratio={x:e.page.maxw/e.scrollvaluemaxw,y:e.page.maxh/e.scrollvaluemax},u=e.getScrollTop(),u>e.page.maxh?e.doScrollTop(e.page.maxh):(e.scroll.y=Math.round(e.getScrollTop()*(1/e.scrollratio.y)),e.scroll.x=Math.round(e.getScrollLeft()*(1/e.scrollratio.x)),e.cursoractive&&e.noticeCursor()),e.scroll.y&&e.getScrollTop()==0&&e.doScrollTo(Math.floor(e.scroll.y*e.scrollratio.y)),e)};this.resize=e.onResize;this.lazyResize=function(n){return n=isNaN(n)?30:n,e.delayed("resize",e.resize,n),e};this._bind=function(n,t,i,r){e.events.push({e:n,n:t,f:i,b:r,q:!1});n.addEventListener?n.addEventListener(t,i,r||!1):n.attachEvent?n.attachEvent("on"+t,i):n["on"+t]=i};this.jqbind=function(n,i,r){e.events.push({e:n,n:i,f:r,q:!0});t(n).bind(i,r)};this.bind=function(n,t,i,r){var u="jquery"in n?n[0]:n,f,o;t=="mousewheel"?"onwheel"in e.win?e._bind(u,"wheel",i,r||!1):(f=typeof document.onmousewheel!="undefined"?"mousewheel":"DOMMouseScroll",p(u,f,i,r||!1),f=="DOMMouseScroll"&&p(u,"MozMousePixelScroll",i,r||!1)):u.addEventListener?(s.cantouch&&/mouseup|mousedown|mousemove/.test(t)&&(o=t=="mousedown"?"touchstart":t=="mouseup"?"touchend":"touchmove",e._bind(u,o,function(n){var t;n.touches?n.touches.length<2&&(t=n.touches.length?n.touches[0]:n,t.original=n,i.call(this,t)):n.changedTouches&&(t=n.changedTouches[0],t.original=n,i.call(this,t))},r||!1)),e._bind(u,t,i,r||!1),s.cantouch&&t=="mouseup"&&e._bind(u,"touchcancel",i,r||!1)):e._bind(u,t,function(n){return n=n||window.event||!1,n&&n.srcElement&&(n.target=n.srcElement),"pageY"in n||(n.pageX=n.clientX+document.documentElement.scrollLeft,n.pageY=n.clientY+document.documentElement.scrollTop),i.call(u,n)===!1||r===!1?e.cancelEvent(n):!0})};this._unbind=function(n,t,i,r){n.removeEventListener?n.removeEventListener(t,i,r):n.detachEvent?n.detachEvent("on"+t,i):n["on"+t]=!1};this.unbindAll=function(){for(var n,t=0;t<e.events.length;t++)n=e.events[t],n.q?n.e.unbind(n.n,n.f):e._unbind(n.e,n.n,n.f,n.b)};this.cancelEvent=function(n){var n=n.original?n.original:n?n:window.event||!1;return n?(n.preventDefault&&n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.preventManipulation&&n.preventManipulation(),n.cancelBubble=!0,n.cancel=!0,n.returnValue=!1,!1):!1};this.stopPropagation=function(n){var n=n.original?n.original:n?n:window.event||!1;return n?n.stopPropagation?n.stopPropagation():(n.cancelBubble&&(n.cancelBubble=!0),!1):!1};this.showRail=function(){return e.page.maxh!=0&&(e.ispage||e.win.css("display")!="none")&&(e.visibility=!0,e.rail.visibility=!0,e.rail.css("display","block")),e};this.showRailHr=function(){return e.railh?(e.page.maxw!=0&&(e.ispage||e.win.css("display")!="none")&&(e.railh.visibility=!0,e.railh.css("display","block")),e):e};this.hideRail=function(){return e.visibility=!1,e.rail.visibility=!1,e.rail.css("display","none"),e};this.hideRailHr=function(){return e.railh?(e.railh.visibility=!1,e.railh.css("display","none"),e):e};this.show=function(){return e.hidden=!1,e.locked=!1,e.showRail().showRailHr()};this.hide=function(){return e.hidden=!0,e.locked=!0,e.hideRail().hideRailHr()};this.toggle=function(){return e.hidden?e.show():e.hide()};this.remove=function(){var r,i,n,u;for(e.stop(),e.cursortimeout&&clearTimeout(e.cursortimeout),e.doZoomOut(),e.unbindAll(),s.isie9&&e.win[0].detachEvent("onpropertychange",e.onAttributeChange),e.observer!==!1&&e.observer.disconnect(),e.observerremover!==!1&&e.observerremover.disconnect(),e.events=null,e.cursor&&e.cursor.remove(),e.cursorh&&e.cursorh.remove(),e.rail&&e.rail.remove(),e.railh&&e.railh.remove(),e.zoom&&e.zoom.remove(),r=0;r<e.saved.css.length;r++)i=e.saved.css[r],i[0].css(i[1],typeof i[2]=="undefined"?"":i[2]);e.saved=!1;e.me.data("__nicescroll","");n=t.nicescroll;n.each(function(t){if(this&&this.id===e.id){delete n[t];for(var i=++t;i<n.length;i++,t++)n[t]=n[i];n.length--;n.length&&delete n[n.length]}});for(u in e)e[u]=null,delete e[u];e=null};this.scrollstart=function(n){return this.onscrollstart=n,e};this.scrollend=function(n){return this.onscrollend=n,e};this.scrollcancel=function(n){return this.onscrollcancel=n,e};this.zoomin=function(n){return this.onzoomin=n,e};this.zoomout=function(n){return this.onzoomout=n,e};this.isScrollable=function(n){var i=n.target?n.target:n,r,u;if(i.nodeName=="OPTION")return!0;while(i&&i.nodeType==1&&!/BODY|HTML/.test(i.nodeName)){if(r=t(i),u=r.css("overflowY")||r.css("overflowX")||r.css("overflow")||"",/scroll|auto/.test(u))return i.clientHeight!=i.scrollHeight;i=i.parentNode?i.parentNode:!1}return!1};this.getViewport=function(n){for(var i=n&&n.parentNode?n.parentNode:!1,r,u;i&&i.nodeType==1&&!/BODY|HTML/.test(i.nodeName);){if((r=t(i),u=r.css("overflowY")||r.css("overflowX")||r.css("overflow")||"",/scroll|auto/.test(u)&&i.clientHeight!=i.scrollHeight)||r.getNiceScroll().length>0)return r;i=i.parentNode?i.parentNode:!1}return!1};this.onmousewheel=function(n){var t,i,r;return e.locked?(e.debounced("checkunlock",e.resize,250),!0):e.rail.drag?e.cancelEvent(n):(e.opt.oneaxismousemode=="auto"&&n.deltaX!=0&&(e.opt.oneaxismousemode=!1),e.opt.oneaxismousemode&&n.deltaX==0&&!e.rail.scrollable)?e.railh&&e.railh.scrollable?e.onmousewheelhr(n):!0:(t=+new Date,i=!1,e.opt.preservenativescrolling&&e.checkarea+600<t&&(e.nativescrollingarea=e.isScrollable(n),i=!0),e.checkarea=t,e.nativescrollingarea)?!0:(r=g(n,!1,i),r&&(e.checkarea=0),r)};this.onmousewheelhr=function(n){if(e.locked||!e.railh.scrollable)return!0;if(e.rail.drag)return e.cancelEvent(n);var t=+new Date,i=!1;return(e.opt.preservenativescrolling&&e.checkarea+600<t&&(e.nativescrollingarea=e.isScrollable(n),i=!0),e.checkarea=t,e.nativescrollingarea)?!0:e.locked?e.cancelEvent(n):g(n,!0,i)};this.stop=function(){return e.cancelScroll(),e.scrollmon&&e.scrollmon.stop(),e.cursorfreezed=!1,e.scroll.y=Math.round(e.getScrollTop()*(1/e.scrollratio.y)),e.noticeCursor(),e};this.getTransitionSpeed=function(n){var i=Math.round(e.opt.scrollspeed*10),t=Math.min(i,Math.round(n/20*e.opt.scrollspeed));return t>20?t:0};e.opt.smoothscroll?e.ishwscroll&&s.hastransition&&e.opt.usetransition?(this.prepareTransition=function(n,t){var i=t?n>20?n:0:e.getTransitionSpeed(n),r=i?s.prefixstyle+"transform "+i+"ms ease-out":"";return e.lasttransitionstyle&&e.lasttransitionstyle==r||(e.lasttransitionstyle=r,e.doc.css(s.transitionstyle,r)),i},this.doScrollLeft=function(n,t){var i=e.scrollrunning?e.newscrolly:e.getScrollTop();e.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=e.scrollrunning?e.newscrollx:e.getScrollLeft();e.doScrollPos(i,n,t)},this.doScrollPos=function(n,t,i){var r=e.getScrollTop(),u=e.getScrollLeft();if((((e.newscrolly-r)*(t-r)<0||(e.newscrollx-u)*(n-u)<0)&&e.cancelScroll(),e.opt.bouncescroll==!1&&(t<0?t=0:t>e.page.maxh&&(t=e.page.maxh),n<0?n=0:n>e.page.maxw&&(n=e.page.maxw)),e.scrollrunning&&n==e.newscrollx&&t==e.newscrolly)||(e.newscrolly=t,e.newscrollx=n,e.newscrollspeed=i||!1,e.timer))return!1;e.timer=setTimeout(function(){var u=e.getScrollTop(),f=e.getScrollLeft(),r={},o,i,h,c,l;r.x=n-f;r.y=t-u;r.px=f;r.py=u;o=Math.round(Math.sqrt(Math.pow(r.x,2)+Math.pow(r.y,2)));i=e.newscrollspeed&&e.newscrollspeed>1?e.newscrollspeed:e.getTransitionSpeed(o);e.newscrollspeed&&e.newscrollspeed<=1&&(i*=e.newscrollspeed);e.prepareTransition(i,!0);e.timerscroll&&e.timerscroll.tm&&clearInterval(e.timerscroll.tm);i>0&&(!e.scrollrunning&&e.onscrollstart&&(h={type:"scrollstart",current:{x:f,y:u},request:{x:n,y:t},end:{x:e.newscrollx,y:e.newscrolly},speed:i},e.onscrollstart.call(e,h)),s.transitionend?e.scrollendtrapped||(e.scrollendtrapped=!0,e.bind(e.doc,s.transitionend,e.onScrollEnd,!1)):(e.scrollendtrapped&&clearTimeout(e.scrollendtrapped),e.scrollendtrapped=setTimeout(e.onScrollEnd,i)),c=u,l=f,e.timerscroll={bz:new BezierClass(c,e.newscrolly,i,0,0,.58,1),bh:new BezierClass(l,e.newscrollx,i,0,0,.58,1)},e.cursorfreezed||(e.timerscroll.tm=setInterval(function(){e.showCursor(e.getScrollTop(),e.getScrollLeft())},60)));e.synched("doScroll-set",function(){e.timer=0;e.scrollendtrapped&&(e.scrollrunning=!0);e.setScrollTop(e.newscrolly);e.setScrollLeft(e.newscrollx);e.scrollendtrapped||e.onScrollEnd()})},50)},this.cancelScroll=function(){if(!e.scrollendtrapped)return!0;var n=e.getScrollTop(),t=e.getScrollLeft();return e.scrollrunning=!1,s.transitionend||clearTimeout(s.transitionend),e.scrollendtrapped=!1,e._unbind(e.doc,s.transitionend,e.onScrollEnd),e.prepareTransition(0),e.setScrollTop(n),e.railh&&e.setScrollLeft(t),e.timerscroll&&e.timerscroll.tm&&clearInterval(e.timerscroll.tm),e.timerscroll=!1,e.cursorfreezed=!1,e.showCursor(n,t),e},this.onScrollEnd=function(){var n,t,i;if(e.scrollendtrapped&&e._unbind(e.doc,s.transitionend,e.onScrollEnd),e.scrollendtrapped=!1,e.prepareTransition(0),e.timerscroll&&e.timerscroll.tm&&clearInterval(e.timerscroll.tm),e.timerscroll=!1,n=e.getScrollTop(),t=e.getScrollLeft(),e.setScrollTop(n),e.railh&&e.setScrollLeft(t),e.noticeCursor(!1,n,t),e.cursorfreezed=!1,n<0?n=0:n>e.page.maxh&&(n=e.page.maxh),t<0?t=0:t>e.page.maxw&&(t=e.page.maxw),n!=e.newscrolly||t!=e.newscrollx)return e.doScrollPos(t,n,e.opt.snapbackspeed);e.onscrollend&&e.scrollrunning&&(i={type:"scrollend",current:{x:t,y:n},end:{x:e.newscrollx,y:e.newscrolly}},e.onscrollend.call(e,i));e.scrollrunning=!1}):(this.doScrollLeft=function(n,t){var i=e.scrollrunning?e.newscrolly:e.getScrollTop();e.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=e.scrollrunning?e.newscrollx:e.getScrollLeft();e.doScrollPos(i,n,t)},this.doScrollPos=function(n,t,u){function v(){var r,n,t,u,f;if(e.cancelAnimationFrame)return!0;if(e.scrollrunning=!0,a=1-a,a)return e.timer=i(v)||1;r=0;n=sy=e.getScrollTop();e.dst.ay?(n=e.bzscroll?e.dst.py+e.bzscroll.getNow()*e.dst.ay:e.newscrolly,u=n-sy,(u<0&&n<e.newscrolly||u>0&&n>e.newscrolly)&&(n=e.newscrolly),e.setScrollTop(n),n==e.newscrolly&&(r=1)):r=1;t=sx=e.getScrollLeft();e.dst.ax?(t=e.bzscroll?e.dst.px+e.bzscroll.getNow()*e.dst.ax:e.newscrollx,u=t-sx,(u<0&&t<e.newscrollx||u>0&&t>e.newscrollx)&&(t=e.newscrollx),e.setScrollLeft(t),t==e.newscrollx&&(r+=1)):r+=1;r==2?(e.timer=0,e.cursorfreezed=!1,e.bzscroll=!1,e.scrollrunning=!1,n<0?n=0:n>e.page.maxh&&(n=e.page.maxh),t<0?t=0:t>e.page.maxw&&(t=e.page.maxw),t!=e.newscrollx||n!=e.newscrolly?e.doScrollPos(t,n):e.onscrollend&&(f={type:"scrollend",current:{x:sx,y:sy},end:{x:e.newscrollx,y:e.newscrolly}},e.onscrollend.call(e,f))):e.timer=i(v)||1}var t=typeof t=="undefined"||t===!1?e.getScrollTop(!0):t,f,o,h,l,c,s,a,y;if(e.timer&&e.newscrolly==t&&e.newscrollx==n)return!0;(e.timer&&r(e.timer),e.timer=0,f=e.getScrollTop(),o=e.getScrollLeft(),((e.newscrolly-f)*(t-f)<0||(e.newscrollx-o)*(n-o)<0)&&e.cancelScroll(),e.newscrolly=t,e.newscrollx=n,e.bouncescroll&&e.rail.visibility||(e.newscrolly<0?e.newscrolly=0:e.newscrolly>e.page.maxh&&(e.newscrolly=e.page.maxh)),e.bouncescroll&&e.railh.visibility||(e.newscrollx<0?e.newscrollx=0:e.newscrollx>e.page.maxw&&(e.newscrollx=e.page.maxw)),e.dst={},e.dst.x=n-o,e.dst.y=t-f,e.dst.px=o,e.dst.py=f,h=Math.round(Math.sqrt(Math.pow(e.dst.x,2)+Math.pow(e.dst.y,2))),e.dst.ax=e.dst.x/h,e.dst.ay=e.dst.y/h,l=0,c=h,e.dst.x==0?(l=f,c=t,e.dst.ay=1,e.dst.py=0):e.dst.y==0&&(l=o,c=n,e.dst.ax=1,e.dst.px=0),s=e.getTransitionSpeed(h),u&&u<=1&&(s*=u),e.bzscroll=s>0?e.bzscroll?e.bzscroll.update(c,s):new BezierClass(l,c,s,0,1,0,1):!1,e.timer)||((f==e.page.maxh&&t>=e.page.maxh||o==e.page.maxw&&n>=e.page.maxw)&&e.checkContentSize(),a=1,e.cancelAnimationFrame=!1,e.timer=1,e.onscrollstart&&!e.scrollrunning&&(y={type:"scrollstart",current:{x:o,y:f},request:{x:n,y:t},end:{x:e.newscrollx,y:e.newscrolly},speed:s},e.onscrollstart.call(e,y)),v(),(f==e.page.maxh&&t>=f||o==e.page.maxw&&n>=o)&&e.checkContentSize(),e.noticeCursor())},this.cancelScroll=function(){return e.timer&&r(e.timer),e.timer=0,e.bzscroll=!1,e.scrollrunning=!1,e}):(this.doScrollLeft=function(n,t){var i=e.getScrollTop();e.doScrollPos(n,i,t)},this.doScrollTop=function(n,t){var i=e.getScrollLeft();e.doScrollPos(i,n,t)},this.doScrollPos=function(n,t){var r=n>e.page.maxw?e.page.maxw:n,i;r<0&&(r=0);i=t>e.page.maxh?e.page.maxh:t;i<0&&(i=0);e.synched("scroll",function(){e.setScrollTop(i);e.setScrollLeft(r)})},this.cancelScroll=function(){});this.doScrollBy=function(n,t){var i=0,u,r;if(t?i=Math.floor((e.scroll.y-n)*e.scrollratio.y):(u=e.timer?e.newscrolly:e.getScrollTop(!0),i=u-n),e.bouncescroll&&(r=Math.round(e.view.h/2),i<-r?i=-r:i>e.page.maxh+r&&(i=e.page.maxh+r)),e.cursorfreezed=!1,py=e.getScrollTop(!0),i<0&&py<=0)return e.noticeCursor();if(i>e.page.maxh&&py>=e.page.maxh)return e.checkContentSize(),e.noticeCursor();e.doScrollTop(i)};this.doScrollLeftBy=function(n,t){var i=0,u,r;if((t?i=Math.floor((e.scroll.x-n)*e.scrollratio.x):(u=e.timer?e.newscrollx:e.getScrollLeft(!0),i=u-n),e.bouncescroll&&(r=Math.round(e.view.w/2),i<-r?i=-r:i>e.page.maxw+r&&(i=e.page.maxw+r)),e.cursorfreezed=!1,px=e.getScrollLeft(!0),i<0&&px<=0)||i>e.page.maxw&&px>=e.page.maxw)return e.noticeCursor();e.doScrollLeft(i)};this.doScrollTo=function(n,t){var i=t?Math.round(n*e.scrollratio.y):n;i<0?i=0:i>e.page.maxh&&(i=e.page.maxh);e.cursorfreezed=!1;e.doScrollTop(n)};this.checkContentSize=function(){var n=e.getContentSize();(n.h!=e.page.h||n.w!=e.page.w)&&e.resize(!1,n)};e.onscroll=function(){e.rail.drag||e.cursorfreezed||e.synched("scroll",function(){e.scroll.y=Math.round(e.getScrollTop()*(1/e.scrollratio.y));e.railh&&(e.scroll.x=Math.round(e.getScrollLeft()*(1/e.scrollratio.x)));e.noticeCursor()})};e.bind(e.docscroll,"scroll",e.onscroll);this.doZoomIn=function(n){var r,f,h,i,o;if(!e.zoomactive){e.zoomactive=!0;e.zoomrestore={style:{}};r=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"];f=e.win[0].style;for(h in r)i=r[h],e.zoomrestore.style[i]=typeof f[i]!="undefined"?f[i]:"";return e.zoomrestore.style.width=e.win.css("width"),e.zoomrestore.style.height=e.win.css("height"),e.zoomrestore.padding={w:e.win.outerWidth()-e.win.width(),h:e.win.outerHeight()-e.win.height()},s.isios4&&(e.zoomrestore.scrollTop=t(window).scrollTop(),t(window).scrollTop(0)),e.win.css({position:s.isios4?"absolute":"fixed",top:0,left:0,"z-index":u+100,margin:"0px"}),o=e.win.css("backgroundColor"),(o==""||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(o))&&e.win.css("backgroundColor","#fff"),e.rail.css({"z-index":u+101}),e.zoom.css({"z-index":u+102}),e.zoom.css("backgroundPosition","0px -18px"),e.resizeZoom(),e.onzoomin&&e.onzoomin.call(e),e.cancelEvent(n)}};this.doZoomOut=function(n){if(e.zoomactive)return e.zoomactive=!1,e.win.css("margin",""),e.win.css(e.zoomrestore.style),s.isios4&&t(window).scrollTop(e.zoomrestore.scrollTop),e.rail.css({"z-index":e.zindex}),e.zoom.css({"z-index":e.zindex}),e.zoomrestore=!1,e.zoom.css("backgroundPosition","0px 0px"),e.onResize(),e.onzoomout&&e.onzoomout.call(e),e.cancelEvent(n)};this.doZoom=function(n){return e.zoomactive?e.doZoomOut(n):e.doZoomIn(n)};this.resizeZoom=function(){if(e.zoomactive){var n=e.getScrollTop();e.win.css({width:t(window).width()-e.zoomrestore.padding.w+"px",height:t(window).height()-e.zoomrestore.padding.h+"px"});e.onResize();e.setScrollTop(Math.min(e.page.maxh,n))}};this.init();t.nicescroll.push(this)},b=function(n){var t=this;this.nc=n;this.lastx=0;this.lasty=0;this.speedx=0;this.speedy=0;this.lasttime=0;this.steptime=0;this.snapx=!1;this.snapy=!1;this.demulx=0;this.demuly=0;this.lastscrollx=-1;this.lastscrolly=-1;this.chkx=0;this.chky=0;this.timer=0;this.time=function(){return+new Date};this.reset=function(n,i){t.stop();var r=t.time();t.steptime=0;t.lasttime=r;t.speedx=0;t.speedy=0;t.lastx=n;t.lasty=i;t.lastscrollx=-1;t.lastscrolly=-1};this.update=function(n,i){var r=t.time();t.steptime=r-t.lasttime;t.lasttime=r;var u=i-t.lasty,f=n-t.lastx,s=t.nc.getScrollTop(),h=t.nc.getScrollLeft(),e=s+u,o=h+f;t.snapx=o<0||o>t.nc.page.maxw;t.snapy=e<0||e>t.nc.page.maxh;t.speedx=f;t.speedy=u;t.lastx=n;t.lasty=i};this.stop=function(){t.nc.unsynched("domomentum2d");t.timer&&clearTimeout(t.timer);t.timer=0;t.lastscrollx=-1;t.lastscrolly=-1};this.doSnapy=function(n,i){var r=!1;i<0?(i=0,r=!0):i>t.nc.page.maxh&&(i=t.nc.page.maxh,r=!0);n<0?(n=0,r=!0):n>t.nc.page.maxw&&(n=t.nc.page.maxw,r=!0);r&&t.nc.doScrollPos(n,i,t.nc.opt.snapbackspeed)};this.doMomentum=function(n){var e=t.time(),c=n?e+n:t.lasttime,l=t.nc.getScrollLeft(),a=t.nc.getScrollTop(),o=t.nc.page.maxh,s=t.nc.page.maxw,f,v,y,u,h;if(t.speedx=s>0?Math.min(60,t.speedx):0,t.speedy=o>0?Math.min(60,t.speedy):0,f=c&&e-c<=60,(a<0||a>o||l<0||l>s)&&(f=!1),v=t.speedy&&f?t.speedy:!1,y=t.speedx&&f?t.speedx:!1,v||y){u=Math.max(16,t.steptime);u>50&&(h=u/50,t.speedx*=h,t.speedy*=h,u=50);t.demulxy=0;t.lastscrollx=t.nc.getScrollLeft();t.chkx=t.lastscrollx;t.lastscrolly=t.nc.getScrollTop();t.chky=t.lastscrolly;var i=t.lastscrollx,r=t.lastscrolly,p=function(){var n=t.time()-e>600?.04:.02;t.speedx&&(i=Math.floor(t.lastscrollx-t.speedx*(1-t.demulxy)),t.lastscrollx=i,(i<0||i>s)&&(n=.1));t.speedy&&(r=Math.floor(t.lastscrolly-t.speedy*(1-t.demulxy)),t.lastscrolly=r,(r<0||r>o)&&(n=.1));t.demulxy=Math.min(1,t.demulxy+n);t.nc.synched("domomentum2d",function(){var n,u;t.speedx&&(n=t.nc.getScrollLeft(),n!=t.chkx&&t.stop(),t.chkx=i,t.nc.setScrollLeft(i));t.speedy&&(u=t.nc.getScrollTop(),u!=t.chky&&t.stop(),t.chky=r,t.nc.setScrollTop(r));t.timer||(t.nc.hideCursor(),t.doSnapy(i,r))});t.demulxy<1?t.timer=setTimeout(p,u):(t.stop(),t.nc.hideCursor(),t.doSnapy(i,r))};p()}else t.doSnapy(t.nc.getScrollLeft(),t.nc.getScrollTop())}},c=n.fn.scrollTop;n.cssHooks.pageYOffset={get:function(n){var i=t.data(n,"__nicescroll")||!1;return i&&i.ishwscroll?i.getScrollTop():c.call(n)},set:function(n,i){var r=t.data(n,"__nicescroll")||!1;return r&&r.ishwscroll?r.setScrollTop(parseInt(i)):c.call(n,i),this}};n.fn.scrollTop=function(n){if(typeof n=="undefined"){var i=this[0]?t.data(this[0],"__nicescroll")||!1:!1;return i&&i.ishwscroll?i.getScrollTop():c.call(this)}return this.each(function(){var i=t.data(this,"__nicescroll")||!1;i&&i.ishwscroll?i.setScrollTop(parseInt(n)):c.call(t(this),n)})};f=n.fn.scrollLeft;t.cssHooks.pageXOffset={get:function(n){var i=t.data(n,"__nicescroll")||!1;return i&&i.ishwscroll?i.getScrollLeft():f.call(n)},set:function(n,i){var r=t.data(n,"__nicescroll")||!1;return r&&r.ishwscroll?r.setScrollLeft(parseInt(i)):f.call(n,i),this}};n.fn.scrollLeft=function(n){if(typeof n=="undefined"){var i=this[0]?t.data(this[0],"__nicescroll")||!1:!1;return i&&i.ishwscroll?i.getScrollLeft():f.call(this)}return this.each(function(){var i=t.data(this,"__nicescroll")||!1;i&&i.ishwscroll?i.setScrollLeft(parseInt(n)):f.call(t(this),n)})};e=function(n){var i=this,r;if(this.length=0,this.name="nicescrollarray",this.each=function(n){for(var t=0,r=0;t<i.length;t++)n.call(i[t],r++);return i},this.push=function(n){i[i.length]=n;i.length++},this.eq=function(n){return i[n]},n)for(a=0;a<n.length;a++)r=t.data(n[a],"__nicescroll")||!1,r&&(this[this.length]=r,this.length++);return this};rt(e.prototype,["show","hide","toggle","onResize","resize","remove","stop","doScrollPos"],function(n,t){n[t]=function(){var n=arguments;return this.each(function(){this[t].apply(this,n)})}});n.fn.getNiceScroll=function(n){return typeof n=="undefined"?new e(this):this[n]&&t.data(this[n],"__nicescroll")||!1};n.extend(n.expr[":"],{nicescroll:function(n){return t.data(n,"__nicescroll")?!0:!1}});t.fn.niceScroll=function(n,i){var r,u;return typeof i=="undefined"&&(typeof n!="object"||"jquery"in n||(i=n,n=!1)),r=new e,typeof i=="undefined"&&(i={}),(n||!1)&&(i.doc=t(n),i.win=t(this)),u=!("doc"in i),u||"win"in i||(i.win=t(this)),this.each(function(){var n=t(this).data("__nicescroll")||!1;n||(i.doc=u?t(this):i.doc,n=new it(i,t(this)),t(this).data("__nicescroll",n));r.push(n)}),r.length==1?r[0]:r};window.NiceScroll={getjQuery:function(){return n}};t.nicescroll||(t.nicescroll=new e,t.nicescroll.options=w)}(jQuery);isiPad=navigator.userAgent.match(/iPad/i)!=null;highlighterStatus=1;$(document).ready(function(){$.ajaxSetup({cache:!1});changeInfoViewInitial();videojs.options.flash.swf="/images/video-js.swf";isiPad?$(".scroll-pane").niceScroll():$(".scroll-pane").jScrollPane({autoReinitialise:!0,mouseWheelSpeed:20});$(window).bind("resize",function(){_changeHeight()});_changeHeight();_btnTriggerpagetype();setWindowIcon();$(".main .inpadding #pressimage").draggable({cursor:"move"});$(".fbox").fancybox();CheckSync()});globaltimer=0;globalbrandCount=0