
'+polyvObject.lang.audioPlaying+'
'+a+"
");polyvObject("#plv_container").append(i),o&&(i.css("display","none"),i.slideDown(350)),polyvObject(".plv-audio-panel-bg").css({backgroundImage:'url("'+t+'")'})}else polyvObject(".plv-audio-panel").remove()}function sendMediaEvent(e){parent.postMessage({message:"onChangeMode",mode:e,vid:videoId},getParameterObjectByName("href"))}function fullRightStyle(){isAudioModeShow?"audio"!=mediaType&&options.allowFullscreen?polyvObject(".btn-full").css("display","block"):polyvObject(".btn-full").css("display","none"):options.allowFullscreen?polyvObject(".btn-full").css("display","block"):polyvObject(".btn-full").css("display","none")}function changeProgressIndexToLow(e){e?progress.css("z-index","-1"):progress.css("z-index","3")}function showVrGrass(){showLine(!(isShowLine=!1));var e=polyvObject("
").addClass("vrG"),t=polyvObject("
").addClass("vrG_show");polyvObject(".controls-bar").append(e,t),e.bind("click",function(){e.css({display:"none"}),t.css({display:"block"}),player.changeVrMode(2)}),t.bind("click",function(){e.css({display:"block"}),t.css({display:"none"}),player.changeVrMode(1)})}function hideUI(){banUi=!0,barControls.remove(),loading.remove(),repeatBtn.remove(),mask.remove()}function hideLoading(){isSwitchShowLoading=!1}function showLoading(){isSwitchShowLoading=!0}function showBuffering(e){var t=e?"block":"none";loading.css("display",t)}var isBarUp=!1;function barUp(e){if("play"==flowStatus||"pause"==flowStatus||e){if(stopAnimate(barControls),stopAnimate(polyvObject(".controls-title")),startAnimate(barControls,{bottom:barUpY},300),startAnimate(polyvObject(".controls-title"),{top:0},300),hasLogo&&(3==logolocal||4==logolocal)&&mMarginH<10){stopAnimate(logo);var t="50px";1==isSkinWhite&&(t="60px"),startAnimate(logo,{bottom:t},300)}player.emit&&player.emit(polyvObject.eventType.BAR_UP),isBarUp=!0,controlsFirstTimer&&(hasControlFirstTimer=!1,clearTimeout(controlsFirstTimer))}}function barDown(){!isHiddenControl||!canBarDown||options.audioBack&&"over"!=flowStatus&&"endAd"!=flowStatus||(stopAnimate(barControls),stopAnimate(polyvObject(".controls-title")),startAnimate(barControls,{bottom:barDownY},300),startAnimate(polyvObject(".controls-title"),{top:"-40px"},300),hasLogo&&(3==logolocal||4==logolocal)&&mMarginH<10&&(stopAnimate(logo),startAnimate(logo,{bottom:"10px"},300)),restyleHdUpDownBtn(),player.emit&&player.emit(polyvObject.eventType.BAR_DOWN),isBarUp=!1,controlsFirstTimer&&(hasControlFirstTimer=!1,clearTimeout(controlsFirstTimer)))}function startAnimate(e,t,o){e.animate(t,o)}function stopAnimate(e){e.is(":animated")&&e.stop(!0,!0)}function initChangeVid(e){videoId=e.vid||"",initVideoInfo()}function changeVideoId(e){parent.postMessage({message:"s2j_changeVideoId",id:e,vid:videoId},getParameterObjectByName("href"))}function toChangeVid(e){parent.postMessage({message:"s2j_onInnerChangeVid",toChangeVid:e,vid:videoId},getParameterObjectByName("href"))}function addPassword(e){e?(null!=polyvObject(".password")&&polyvObject(".password").remove(),polyvObject('
'+polyvObject.lang.password.tip+'
'+polyvObject.lang.conofirm+'
').appendTo(polyvObject(".container-main")),polyvObject(".btn-pw-ok").bind("click",function(e){player.j2s_checkPassword(polyvObject(".input-pw").val()),polyvObject(".input-pw").val(""),polyvObject.plvPlayVideo(polyvObject("video")[0]),polyvObject("video")[0].pause()})):null!=polyvObject(".password")&&polyvObject(".password").remove()}function addPasswordTips(e){e||(e=""),polyvObject(".tips-pw").html(e)}function addOverBg(e){e?polyvObject('
').appendTo(polyvObject("#container")):null!=polyvObject(".bg-over")&&polyvObject(".bg-over").remove()}function timeFormat(e){e=parseInt(e);var t=0,o=0,a=0,s=parseFloat(e);switch(null!=s&&""!=s&&(60