/*-------------------------------------------------------------------------------------------------------------- Naclips Player Loader Class Library :: (C)2017, Nexpoly Technology Inc. All Rights Reserved. Generated date : 2017.04.27 Th 23:40:06 Code version : 1.0.1.2 --------------------------------------------------------------------------------------------------------------*/ function cx_ncsloader(e,t){this.Z_VER={ncsacx:"2,0,1,0",ncxpgn:"2,0,0,4",arnmod:"1,0,1,7"};this.FX_RVCTHEADER="ROVECATFX";this.FX_RVCTCD_SPD="CHKSPD";this.FX_RVCTCD_NAXA="CHKNAX";this.FX_RVCTOPT_CMD="command";this.FX_RVCTOPT_REQ="request-bytes";this.FX_RVCTOPT_KEY="key";this.FX_RVCTGET_PKEY="get_passkey";this.FX_RVCTGET_BYTES="get_bytes";this.FX_CTRLURL="http://www.nexpoly.co.kr/controls";this.FX_IDNACLIPS="1EA30E22-071B-42df-AAE4-AF5E8489FADF";this.FX_ARAIN_SERV="58.229.105.40:443";this.FX_NACLIPSPGN="http://115.68.22.228/no-ticket/app_download/boxycat_files/apps/npnclipsv_setup.exe";this.FX_IDXPLAYER="naclips_x_player_";this.FX_SEED_BLKSZ=16;this.FX_ASSP_PORT=5660;this.FX_NAEX_PROTO="naexa";this.FX_IDNAEX_EVENT="naclips_extender_loader";this.FX_IDSPED_EVENT="naclips_loader_check_speed";this.FX_IDNAEX_SETUP="nextender_setup";this.x_publibs=new cx_public_fnc;this.created=false;this.player_mode="auto";this.mobile_mode="auto";this.curr_player="";this.x_player;this.z_plyopt={id_layer:"",i_w:0,i_h:0,docu:"document"};this.player_id="";this.runner_id="";this.z_plugin_param=new Array;this.i_plugin_param_dx=0;this.s_activx_param="";this.s_src_origin="";this.s_media_src="";this.s_serv_param="no_param";this.s_vod_query_url="";this.update_plugin_url="";this.b_update_plugin_page_popup=false;this.z_param_trunk=new Array;this.b_alert_loaderror=true;this.b_video_player=true;this.z_naex={i_check_delay:.5*1e3,i_check_maximum:10,i_check_count:0,b_passed:false};this.z_priv={s_chkspd_svr:"",r_bits_per_sec:0};this.z_styles=new Array;this.setNaexCheckInterval=function(e,t){this.z_naex.i_check_delay=e;this.z_naex.i_check_maximum=t};this.getLayerId=function(){return this.z_plyopt.id_layer};this.getPlayerId=function(){return this.x_player&&this.curr_player=="html5"?this.x_player.getPlayerId():""};this.showCtrlIcon=function(e,t){if(this.x_player&&this.curr_player=="html5")this.x_player.showCtrlIcon(e,t)};this.rightVolIcon=function(e){if(this.x_player&&this.curr_player=="html5")this.x_player.rightVolIcon(e)};this.updateVersion=function(){try{if(gxVer_naclp)this.Z_VER.ncsacx=gxVer_naclp}catch(e){}try{if(gxVer_ncspgn)this.Z_VER.ncxpgn=gxVer_ncspgn}catch(e){}try{if(gxVer_armod)this.Z_VER.arnmod=gxVer_armod}catch(e){}try{if(gsSvr_arain)this.FX_ARAIN_SERV=gsSvr_arain}catch(e){}try{if(gsPlugin_url)this.FX_NACLIPSPGN=gsPlugin_url}catch(e){}};this.initVdoSpace=function(){if(this.curr_player=="plugin"&&this.x_player)this.x_player.xf_init_vdospace()};this.close=function(){if(this.curr_player=="activex"&&this.x_player)this.x_player.ForceClose()};this.addMediaSrc=function(e,t){if(this.curr_player=="activex"||this.curr_player=="plugin")this.x_player.AddFileName(e);else if(this.curr_player=="html5"){this.s_src_origin=e;this.x_player.addMediaSrc(this.x_publibs.setURL(e,this.FX_ASSP_PORT),t?t:"")}};this.clearMediaSrc=function(){if(this.curr_player=="html5")this.x_player.clearMediaSrc()};this.setBaseLeft=function(e){if(this.curr_player=="html5")this.x_player.i_base_left=e};this.getStreamingSpeed=function(){return this.z_priv.r_bits_per_sec};this.getDocWinSize=function(e){return this.x_publibs.getDocWinSize(e)};this.getEnableHtml5Ver=function(e){return this.x_publibs.getEnableHtml5Ver(e)};this.getBrowserInfo=function(){return this.x_publibs.getBrowserInfo()};this.getAgentLang=function(){return this.x_publibs.getAgentLang()};this.getBrowser=function(){return this.x_publibs.getBrowser()};this.supportHtml5=function(){return this.x_publibs.supportHtml5()};this.is_android=function(){return this.x_publibs.is_android()};this.is_ios=function(){return this.x_publibs.is_ios()};this.is_ipad=function(){return this.x_publibs.is_ipad()};this.is_ipod_phone=function(){return this.x_publibs.is_ipod_phone()};this.is_mobile=function(){return this.x_publibs.is_mobile()};this.is_windows=function(){return this.x_publibs.is_windows()};this.isMobile=function(){return this.x_publibs.isMobile()};this.enableExtender=function(e){if(this.curr_player=="html5")this.x_player.useExtender(this.curr_player=="html5"&&this.is_windows()&&e?true:false)};this.changeStyle=function(e,t){if(this.curr_player!="html5")return-1;if(this.x_player)return this.x_player.changeStyle(e,t);this.z_styles.push({s_name:e,s_style:t});return 0};this.setWatermark=function(e,t,r){if(this.curr_player=="html5")this.x_player.setWatermark(e,t,r)};this.setWatermarkOption=function(e,t,r){if(this.curr_player!="html5")return;switch(e.toLowerCase()){case"url":this.x_player.setWatermarkUrl(t);break;case"position":this.x_player.setWatermarkPosition(t);break;case"margin":this.x_player.setWatermarkMargin(t,r);break;case"size":this.x_player.setWatermarkSize(t,r);break}};this.showWatermark=function(e){if(this.curr_player=="html5")this.x_player.showWatermark(e)};this.setBackgroundAudio=function(e,t){if(this.curr_player=="html5")this.x_player.setBackgroundAudio(e,t)};this.setBackgroundAudioOption=function(e,t){if(this.curr_player=="html5")this.x_player.setBackgroundAudioOption(e,t)};this.setBackgroundMessage=function(e,t){if(this.curr_player=="html5"){this.x_player.z_back_mesg.s_play=e;this.x_player.z_back_mesg.s_stop=t}};this.setTrimming=function(e,t){if(this.curr_player=="html5"){if(typeof e=="string")e=parseInt(e);if(typeof t=="string")e=parseInt(t);if(typeof e=="number"&&typeof t=="number")this.x_player.setTrimming(e,t)}};this.setTrimmingOption=function(e,t){if(this.curr_player=="html5")this.x_player.setTrimmingOption(e,t)};this.setInitPos=function(e){if(this.curr_player=="html5"&&typeof e!="undefined"&&e>=0)this.x_player.i_init_pos=e};this.isCreatedPlayer=function(){return this.x_player&&this.x_player.isCreated()?true:false};var r=this.x_publibs.getBrowserInfo();this.updateVersion();if(this.x_publibs.isMobile()){if(t=="auto"||t=="app"||t=="html5")this.player_mode=t;this.curr_player="html5"}else{if(e=="auto"||e=="plugin"||e=="activex"||e=="html5")this.player_mode=e=="activex"?"plugin":e;this.curr_player=this.player_mode=="auto"?this.x_publibs.supportHtml5()?"html5":r.s_id=="ie"?"activex":"plugin":this.player_mode=="plugin"?r.s_id=="ie"?"activex":"plugin":"html5"}}cx_ncsloader.prototype.burnPlayerAudio=function(e,t,r){return this.burnPlayer(e,0,0,t,r,true)};cx_ncsloader.prototype.burnPlayer=function(e,t,r,i,s,a){var _={id_layer:e?e:this.z_plyopt.id_layer,i_w:t?t:this.z_plyopt.i_w,i_h:r?r:this.z_plyopt.i_h,docu:s?s:this.z_plyopt.docu};this.b_video_player=a?false:true;this.xEvtExtender=new this.x_publibs.newCustumEvent(this.FX_IDNAEX_EVENT,{detail:{layer_id:_.id_layer,s_id:"",i_opt:0},bubbles:true,cancelable:true},_.docu);this.xEvtCheckedSpeed=new this.x_publibs.newCustumEvent(this.FX_IDSPED_EVENT,{detail:{return_code:0,error_mesg:"",bps:0},bubbles:true,cancelable:true},_.docu);if(!_.id_layer)return 0;if(this.b_video_player){if(_.i_w<=0)_.i_w=this.getDocWinSize().x;if(_.i_h<=0)_.i_h=this.getDocWinSize().y}var l=this.player_mode=="html5"&&!this.x_publibs.supportHtml5()?true:false;if(a&&this.getBrowserInfo().s_id=="op"&&this.getBrowserInfo().r_ver>=40)l=false;if(l){if(this.b_alert_loaderror)alert("This browser is not support HTML5 "+(this.b_video_player?"Video":"Audio"));return false}if(this.curr_player=="activex"||this.curr_player=="plugin"){this.player_id=i?i:this.FX_IDXPLAYER+_.id_layer}else if(this.curr_player=="html5"){if(this.b_video_player){if(this.x_publibs.isMobile()){this.x_player=new cx_mob_naclips(_.id_layer,i,s?s:null,this);if(this.x_player){if(this.player_mode=="auto"||this.player_mode=="app")this.x_player.b_open_app=true;this.x_player.s_os=this.x_publibs.is_ios()?"ios":this.x_publibs.is_android()?"android":""}}else this.x_player=new cx_naclips(_.id_layer,i,s?s:null,this);if(!this.x_player)return-1;for(var p=0;p-2)that.x_player.Stop()}catch(e){}}}return 1}else if(this.curr_player=="html5"){if(!this.x_player)return-1;if(this.x_player.isUseExtender()){this.runner_id=this.FX_IDXPLAYER+"runner_face_frame_"+this.player_id;var ob_frame=document.getElementById(this.runner_id);if(!ob_frame){ob_frame=document.createElement("iframe");ob_frame.style.width="0px";ob_frame.style.height="0px";ob_frame.style.border="0px";ob_frame.id=this.runner_id;document.body.appendChild(ob_frame)}}if(this.b_video_player)this.x_player.initCtrls();if(!this.x_player.isVodQueryCreated())return-2;if(this.s_vod_query_url)this.x_player.setVodQueryURL(this.s_vod_query_url);if(this.s_media_src)return this.x_player.loadMedia(this.s_media_src,this.s_serv_param)?1:0;else{var i_ret=this.x_player.runXvntEndinit();if(this.b_video_player)this.resize(this.z_plyopt.i_w,this.z_plyopt.i_h);return i_ret}}};cx_ncsloader.prototype.burnPlugin=function(e){var t=this.x_publibs.is64bit()?"naclips_x64":"naclips";var r=this.x_publibs.is64bit()?"naclipsx_x64":"naclipsx";this.addParam("ArainModVer",this.Z_VER.arnmod);this.addParam("Autorain","astp://"+this.FX_ARAIN_SERV+"/"+t);var i=this.x_publibs.getBrowserInfo();var s="";if(i.s_id=="ie"){s='"+this.s_activx_param+""}else{s=""}return s};cx_ncsloader.prototype.updatePlugin=function(){var e=this.checkUpdatePlugin();if(e>0)this.updatePluginRun(e)};cx_ncsloader.prototype.updatePluginRun=function(e){var t=false;if(this.x_publibs.getAgentLang()=="ko"){if(e==2){var r=decodeURI("%EC%97%85%EA%B7%B8%EB%A0%88%EC%9D%B4%EB%93%9C%20%EB%90%9C%20%EB%B2%84%EC%A0%84%EC%9D%98%20");var i=decodeURI("%EB%82%98%ED%81%B4%EB%A6%BD%EC%8A%A4%20%EB%AF%B8%EB%94%94%EC%96%B4%20%ED%94%8C%EB%A0%88%EC%9D%B4%EC%96%B4%20%ED%94%8C%EB%9F%AC%EA%B7%B8%EC%9D%B8%EC%9D%B4%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.");var s=decodeURI("%EC%A7%80%EA%B8%88%20%EC%83%88%20%EB%B2%84%EC%A0%84%EC%9D%84%20%EC%84%A4%EC%B9%98%ED%95%98%EC%8B%9C%EA%B2%A0%EC%8A%B5%EB%8B%88%EA%B9%8C?");t=confirm(r+i+"\n"+s)}else{var r=decodeURI("%EB%82%98%ED%81%B4%EB%A6%BD%EC%8A%A4%20%EB%AF%B8%EB%94%94%EC%96%B4%20%ED%94%8C%EB%A0%88%EC%9D%B4%EC%96%B4%20");var i=decodeURI("%ED%94%8C%EB%9F%AC%EA%B7%B8%EC%9D%B8%EC%9D%B4%20%EC%84%A4%EC%B9%98%EB%90%98%EC%96%B4%20%EC%9E%88%EC%A7%80%20%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4.");var s=decodeURI("%EC%A7%80%EA%B8%88%20%ED%94%8C%EB%9F%AC%EA%B7%B8%EC%9D%B8%EC%9D%84%20%EC%84%A4%EC%B9%98%ED%95%98%EC%8B%9C%EA%B2%A0%EC%8A%B5%EB%8B%88%EA%B9%8C?");t=confirm(r+i+"\n"+s)}}else{if(e==2)t=confirm("You need to update Naclips Player Plugin.\nUpdate Plugin now?");else t=confirm("You need to install Naclips Player Plugin.\nInstall Plugin now?")}if(t){if(this.update_plugin_url)this.z_plyopt.docu.location.href=update_plugin_url;else if(this.b_update_plugin_page_popup){this.z_plyopt.docu.location.href="http://www.nexpoly.co.kr/swin_setup_plugin.php?vw="+this.z_plyopt.docu.body.clientWidth+"&vh="+this.z_plyopt.docu.body.clientHeight}else this.z_plyopt.docu.location.href="http://www.nexpoly.co.kr/setup_plugin.php"}};cx_ncsloader.prototype.checkUpdatePlugin=function(){if(this.curr_player!="plugin"||!this.x_player)return-1;var e=this.x_publibs.onlyNumber(this.Z_VER.ncxpgn);if(!e)return-1;try{var t=this.x_publibs.onlyNumber(this.x_player.version);if(t){if(e>t)return 2}else return 1}catch(e){return 1}return 0};cx_ncsloader.prototype.changeMediaSrc=function(e,t){if(!this.x_player)return;if(this.curr_player=="html5"){this.s_src_origin=e;this.x_player.changeMedia(this.x_publibs.setURL(e,this.FX_ASSP_PORT),t?t:"",false,false)}else{this.x_player.Stop();var r=this;window.setTimeout(function(){r.x_player.CloseNextube();r.x_player.SubParam=t;r.x_player.FileName=e;r.x_player.SetTitleImage("")},100)}};cx_ncsloader.prototype.addParam=function(e,t){if(this.curr_player=="activex"){this.s_activx_param+=''}else if(this.curr_player=="plugin"){this.z_plugin_param[this.i_plugin_param_dx]=new Array;this.z_plugin_param[this.i_plugin_param_dx][0]=e;this.z_plugin_param[this.i_plugin_param_dx][1]=t;this.i_plugin_param_dx++}else if(this.curr_player=="html5"){if(!this.x_player)return;var r=parseInt(t);switch(e.toLowerCase()){case"autostart":this.x_player.b_auto_play=this.x_publibs.isMobile()&&this.b_video_player?false:r?true:false;break;case"nextube":this.x_player.nextube_server=this.x_publibs.setURL(t,5661);break;case"jumpsec":this.x_player.jump_sec=r>0?r:this.x_player.jump_sec;break;case"filename":this.s_src_origin=t;this.s_media_src=this.x_publibs.setURL(t,this.FX_ASSP_PORT);break;case"mute":this.x_player.b_mute=r?true:false;break;case"paramtrunk1":this.z_param_trunk[1]=t;break;case"paramtrunk2":this.z_param_trunk[2]=t;break;case"paramtrunk3":this.z_param_trunk[3]=t;break;case"showerrorbox":this.x_player.i_show_message=r;break;case"subparam":this.s_serv_param=t;break;case"volume":this.x_player.r_volume=r/(this.b_video_player?10:100);break;case"istitlesnap":if(this.x_player.s_title_url=="")this.x_player.s_title_url=r?this.x_player.FX_NXTITLE_NAME:"";break;case"backgroudcolor":this.x_player.backgroud_color=t;break;case"thumbcount":this.x_player.b_show_thumb=t>0?true:false;break;case"isshowthumb":this.x_player.b_show_thumb=t?true:false;break;case"subtitle":this.x_player.setSubtitle(0,t,"Korean","ko");break;case"displaysize":this.x_player.fullScreen(r==2?true:false);break;case"auto_next":case"autonext":this.x_player.b_auto_next=t?true:false;break;case"isrepeatplay":this.x_player.b_repeat_play=t?true:false;break;case"skin_path":this.x_player.skin_path=t;break;case"vod_query_url":this.s_vod_query_url=t;break;case"title_url":this.x_player.s_title_url=t;break;case"ncsttl_ext":this.x_player.ncsttl_ext=t;break;case"pause_byclick":this.x_player.b_pause_byclick=r?true:false;break;case"fire_status_ex":this.x_player.b_fire_status_ex=t?true:false;break;case"fire_error_ex":this.x_player.b_fire_error_ex=t?true:false;break;case"fire_subtitle_ex":this.x_player.b_fire_subtitle_ex=t?true:false;break;case"backgroud_color":this.x_player.backgroud_color=t;break;case"show_stalled_event":this.x_player.b_show_stalled_event=t?true:false;break;case"hidden_title_button":this.x_player.b_hidden_ttlbtn=t?true:false;break}}};cx_ncsloader.prototype.setProperty=function(s_name,value){if(!this.x_player||!s_name)return;if(this.curr_player=="html5"){var i_val=parseInt(value);try{switch(s_name.toLowerCase()){case"curposition":this.x_player.setPosition(i_val);break;case"filename":this.x_player.changeMedia(value);break;case"jumpsec":this.x_player.jump_sec=i_val>0?i_val:this.x_player.jump_sec;break;case"mute":this.x_player.setMute(i_val?1:0);break;case"paramtrunk1":this.z_param_trunk[1]=value;break;case"paramtrunk2":this.z_param_trunk[2]=value;break;case"paramtrunk3":this.z_param_trunk[3]=value;break;case"showerrorbox":this.x_player.i_show_message=i_val;break;case"subparam":this.s_serv_param=value;break;case"volume":this.x_player.setVolume(i_val/(this.b_video_player?10:100));break;case"istitlesnap":this.x_player.s_title_url=i_val?this.x_player.FX_NXTITLE_NAME:"";break;case"playspeed":this.x_player.setSpeed(value);break;case"displaysize":this.x_player.fullScreen(i_val==2?true:false);break;case"subtitle":this.x_player.setSubtitle(0,value,"Korean","ko");break;case"showcontrols":this.x_player.visibleControls(i_val?true:false);break;case"isshowthumb":this.x_player.b_show_thumb=value?true:false;break;case"auto_next":case"autonext":this.x_player.b_auto_next=value?true:false;break;case"isrepeatplay":this.x_player.b_repeat_play=value?true:false;break;case"title_url":this.x_player.s_title_url=value;break;case"ncsttl_ext":this.x_player.ncsttl_ext=value;break;case"pause_byclick":this.x_player.b_pause_byclick=i_val?true:false;break;case"fire_status_ex":this.x_player.b_fire_status_ex=value;break;case"fire_error_ex":this.x_player.b_fire_error_ex=value;break;case"fire_subtitle_ex":this.x_player.b_fire_subtitle_ex=value;break;case"show_stalled_event":this.x_player.b_show_stalled_event=value;break;case"old_rovecat_face":this.x_player.b_old_rovface=value;break;case"hidden_title_button":this.x_player.b_hidden_ttlbtn=value;break}}catch(e){return false}}else{if(value===true)arg=1;else if(value===false)arg=0;try{eval("this.x_player."+s_name+"="+(isNaN(value)?'"'+value+'"':value))}catch(e){return false}}return true};cx_ncsloader.prototype.getProperty=function(s_name){if(!this.x_player||!s_name)return;if(this.curr_player=="html5"){try{switch(s_name.toLowerCase()){case"audio4cc":return this.x_player.z_med_inf.s_audio4cc;case"autostart":return this.x_player.b_auto_play?1:0;case"curposition":return this.x_player.getCurrentTime();case"duration":return this.x_player.getDuration();case"filename":return this.x_player.x_src_rec.getRec(0).s_src;case"istitlesnap":return this.x_player.s_title_url?1:0;case"isshowthumb":return this.x_player.b_show_thumb?1:0;case"jumpsec":return this.x_player.jump_sec;case"mediatype":return this.x_player.z_med_inf.i_media_type;case"mute":return this.x_player.getMute();case"nextube":return this.x_player.nextube_server;case"paramtrunk1":return this.z_param_trunk[1];case"paramtrunk2":return this.z_param_trunk[2];case"paramtrunk3":return this.z_param_trunk[3];case"playspeed":return this.x_player.getSpeedReal();case"playstatus":return this.x_player.getStatus().i_play_new;case"showerrorbox":return this.x_player.i_show_message;case"streambps":return this.x_player.getStreamKbps();case"SubParam":return this.s_serv_param;case"video4cc":return this.x_player.z_med_inf.s_video4cc;case"framerate":return this.x_player.getRovecatFramerate();case"samplerate":return this.x_player.getRovecatSamplerate();case"videoheight":if(this.x_player.getVideoWidth()<=100&&this.x_player.getVideoHeight()<=100){return this.x_player.getRovecatVideoHeight()}else{return this.x_player.getVideoHeight()}case"videowidth":if(this.x_player.getVideoWidth()<=100&&this.x_player.getVideoHeight()<=100){return this.x_player.getRovecatVideoWidth()}else{return this.x_player.getVideoWidth()}case"volume":return this.x_player.r_volume*(this.b_video_player?10:100);case"displaysize":return this.x_player.isFullScreen()?2:1;case"backgroudcolor":return this.x_player.backgroud_color;case"subtitle":return this.x_player.z_pty.s_file;case"auto_next":case"autonext":return this.x_player.b_auto_next;case"isrepeatplay":return this.x_player.b_repeat_play;case"skin_path":return this.x_player.skin_path;case"vod_query_url":return this.s_vod_query_url;case"title_url":return this.x_player.s_title_url;case"ncsttl_ext":return this.x_player.ncsttl_ext;case"pause_byclick":return this.x_player.b_pause_byclick;case"fire_status_ex":return this.x_player.b_fire_status_ex;case"fire_error_ex":return this.x_player.b_fire_error_ex;case"fire_subtitle_ex":return this.x_player.b_fire_subtitle_ex;case"backgroud_color":return this.x_player.backgroud_color;case"show_stalled_event":return this.x_player.b_show_stalled_event;case"rovecat_videowidth":return this.x_player.getRovecatVideoWidth();case"rovecat_videoheight":return this.x_player.getRovecatVideoHeight();case"hidden_title_button":return this.x_player.b_hidden_ttlbtn}}catch(e){return"get_property_err"}}else{var x_ret;try{eval("x_ret = this.x_player."+s_name)}catch(e){return"get_property_err"}return x_ret}};cx_ncsloader.prototype.runMethod=function(s_name,arg1,arg2,arg3,arg4){if(!this.x_player||!s_name)return;if(this.curr_player=="html5"){switch(s_name.toLowerCase()){case"play":return this.x_player.playPlayer();case"pause":return this.x_player.pausePlayer();case"stop":return this.x_player.pausePlayer();case"nextplay":return this.x_player.nextPlay(parseInt(arg1)==-2?true:false)}}else{var x_ret;try{var s_run="x_ret = this.x_player."+s_name+"(";for(var i=1;i<=4;i++){eval("var arg = arg"+i);if(typeof arg=="undefined")break;else if(arg===true)arg=1;else if(arg===false)arg=0;s_run+=(i>1?",":"")+(isNaN(arg)?'"'+arg+'"':arg)}s_run+=")";eval(s_run)}catch(e){return"run_method_err"}return x_ret}};cx_ncsloader.prototype.resize=function(e,t){e=parseInt(e);t=parseInt(t);if(this.curr_player=="html5"){this.x_player.setPlayerSize(e,t);this.x_player.resize(0,0,e,t,this.x_player.FX_SIZE,false);this.x_player.resizeThumbs();this.x_player.resizeTitle();this.x_player.moveBox()}else{this.x_player.width=e;this.x_player.height=t}if(this.z_plyopt.id_layer&&this.z_plyopt.docu){var r=this.z_plyopt.docu.getElementById(this.z_plyopt.id_layer);if(r){r.style.width=e+"px";r.style.height=t+"px"}}};cx_ncsloader.prototype.showPlayer=function(e){if(this.curr_player=="html5")this.x_player.showSkin(e)};cx_ncsloader.prototype.showCtrlThumbs=function(e){if(this.curr_player=="html5")this.x_player.showCtrlsThumbsForce(e)};cx_ncsloader.prototype.showCloseBtn=function(e){if(this.curr_player=="html5"&&this.x_publibs.isMobile())this.x_player.b_show_close_btn=e};cx_ncsloader.prototype.addSubtitle=function(e,t,r,i){if(this.curr_player=="html5")this.x_player.addSubtitle(e,t,r,i)};cx_ncsloader.prototype.changeSubtitle=function(e,t,r,i,s){if(this.curr_player=="html5")this.x_player.setSubtitle(e,t,r,i,s)};cx_ncsloader.prototype.setSubtitlePaddingBottom=function(e){if(this.curr_player=="html5")this.x_player.i_subtitle_padding_bottom=e};cx_ncsloader.prototype.setSubtitleParser2Br=function(e){if(this.curr_player=="html5")this.x_player.b_sbttl_parser2br=e};cx_ncsloader.prototype.setSubtitleFontSizeRatio=function(e){if(this.curr_player=="html5")this.x_player.i_sbttl_font_ratio=e};cx_ncsloader.prototype.activeSubtitleTrack=function(e){if(this.curr_player=="html5")this.x_player.x_subtitle.enableTextTrack(e)};cx_ncsloader.prototype.getActivatedSubtitleTrack=function(){if(this.curr_player=="html5")return this.x_player.z_priv.i_track_dx};cx_ncsloader.prototype.setSubtitleClearOnChangeMedia=function(e){if(this.curr_player=="html5")this.x_player.b_sbttl_clear_next=e};cx_ncsloader.prototype.setSubtitleDisablingLabel=function(e){if(this.curr_player=="html5")this.x_player.s_sbttl_disable_label=e};cx_ncsloader.prototype.getSubtitleCount=function(){if(this.curr_player=="html5")return this.x_player.getSubtitleCount()};cx_ncsloader.prototype.setShowUnsupportSubtitle=function(e){if(this.curr_player=="html5")this.x_player.b_show_unsupport_subtitle=e};cx_ncsloader.prototype.setThumbSrcIdx=function(e){if(this.curr_player=="html5")this.x_player.i_thumb_src_idx=e};cx_ncsloader.prototype.setShowSubtitle=function(e){if(this.curr_player=="html5"){this.x_player.b_show_subtitle=e;if(!e)this.x_player.clearSubtitle("")}};cx_ncsloader.prototype.play=function(){if(this.curr_player=="html5")this.x_player.playPlayer()};cx_ncsloader.prototype.pause=function(){if(this.curr_player=="html5")this.x_player.pausePlayer()};cx_ncsloader.prototype.next=function(){if(this.curr_player=="html5")this.x_player.nextPlay(false)};cx_ncsloader.prototype.previous=function(){if(this.curr_player=="html5")this.x_player.nextPlay(true)};cx_ncsloader.prototype.hiddenCtrlsOnInit=function(e){if(this.curr_player=="html5")this.x_player.b_hidden_init_ctrls=e?true:false};cx_ncsloader.prototype.unload=function(){try{this.x_player.unloadPlayer();this.z_plyopt.docu.getElementById(this.getLayerId()).innerHTML="";delete this.x_player;this.x_player=null}catch(e){}this.created=false;this.player_mode="auto";this.mobile_mode="auto";this.curr_player="";this.z_plyopt={id_layer:"",i_w:0,i_h:0,docu:"document"};this.player_id="";this.runner_id="";this.z_plugin_param=new Array;this.i_plugin_param_dx=0;this.s_activx_param="";this.s_src_origin="";this.s_media_src="";this.s_serv_param="no_param";this.s_vod_query_url="";this.update_plugin_url="";this.b_update_plugin_page_popup=false;this.z_param_trunk=new Array;this.b_alert_loaderror=true;this.b_video_player=true;this.z_naex={i_check_delay:.5*1e3,i_check_maximum:10,i_check_count:0,b_passed:false};this.z_priv={s_chkspd_svr:"",r_bits_per_sec:0};this.z_xstyles=new Array};cx_ncsloader.prototype.addMultiBpsMenu=function(e){if(this.curr_player=="html5")return this.x_player.addMulbpsMenu(e);return-1};cx_ncsloader.prototype.clearMultiBpsMenu=function(e){if(this.curr_player=="html5")this.x_player.clearMulbpsMenu(e)};cx_ncsloader.prototype.setMultiBpsIdx=function(e){if(this.curr_player=="html5")this.x_player.setMulbpsIdx(e);else this.setProperty("MultiBpsIdx",e)};cx_ncsloader.prototype.getMultiBpsIdx=function(){if(this.curr_player=="html5")return this.x_player.getMulbpsIdx()};cx_ncsloader.prototype.getMediaIdx=function(){if(this.curr_player=="html5")return this.x_player.getMediaIdx();return-1};cx_ncsloader.prototype.runCheckSpeed=function(e,t,r){if(this.curr_player!="html5")return;if(typeof r=="undefined"||!r)r=this.x_publibs.getServerFromURL(this.s_media_src);else r=this.x_publibs.getServerFromURL(r);if(this.s_vod_query_url)this.requestSpeedKey(e,t,r);else this.SynctoServer(0,e,t,r)};cx_ncsloader.prototype.requestSpeedKey=function(e,t,r){try{var i=new XMLHttpRequest}catch(e){alert("Not Support XMLHttpRequest");return}var s=this;i.onreadystatechange=function(){if(this.readyState==4){if(this.status==200){var e=s.x_publibs.getValueFromServRet(this.responseText,"passkey");var i=s.x_publibs.getValueFromServRet(this.responseText,"bytes");if(e.length=s.FX_SEED_BLKSZ*2*2){window.setTimeout(function(){s.dumpSpeedPack(t,r,e,s.FX_RVCTCD_SPD,parseInt(i),function(e){if(s.xEvtCheckedSpeed){s.xEvtCheckedSpeed.detail.return_code=1;s.xEvtCheckedSpeed.detail.bps=e;s.z_plyopt.docu.dispatchEvent(s.xEvtCheckedSpeed)}})},10)}}else{var a=s.x_publibs.getValueFromServRet(this.responseText,"Result");if(s.xEvtCheckedSpeed){s.xEvtCheckedSpeed.detail.return_code=-2;s.xEvtCheckedSpeed.detail.error_mesg=a;s.xEvtCheckedSpeed.detail.bps=0;s.z_plyopt.docu.dispatchEvent(s.xEvtCheckedSpeed)}}}};var a=encodeURIComponent(this.x_player.FX_NACS_SERVNM+"/"+r);var _="serv="+a+"&id="+this.FX_RVCTCD_SPD+"¶m="+parseInt(e);i.open(this.x_player.x_synfce_vod.s_method,this.s_vod_query_url,true);i.setRequestHeader("Content-Type","application/x-www-form-urlencoded");i.send(_)};cx_ncsloader.prototype.SynctoServer=function(e,t,r,i,s){if(e==0){this.z_priv.s_chkspd_svr=i}try{var a=new XMLHttpRequest}catch(e){alert("Not Support XMLHttpRequest");return}var _=this;a.i_step=e;if(e==1){a.onprogress=function(e){var t=(new Date).getTime();var i=t-this.i_prev_msec;if(i>r*1e3){this.abort();_.xEvtCheckedSpeed.detail.return_code=-1;_.xEvtCheckedSpeed.detail.error_mesg="aborted_by_timeout";_.xEvtCheckedSpeed.detail.bps=_.z_priv.r_bits_per_sec;_.z_plyopt.docu.dispatchEvent(_.xEvtCheckedSpeed);return}if(i>0){var s=e.loaded*8*1e3/i;_.z_priv.r_bits_per_sec=s}}}a.onreadystatechange=function(){if(this.readyState==4){if(this.status==200){if(this.i_step==0){var e=_.x_publibs.getValueFromServRet(this.responseText,"passkey");if(e.length=_.FX_SEED_BLKSZ*2*2){window.setTimeout(function(){_.SynctoServer(1,0,r,i,e)},10)}}else if(this.i_step==1){if(_.xEvtCheckedSpeed){_.xEvtCheckedSpeed.detail.return_code=1;_.xEvtCheckedSpeed.detail.bps=_.z_priv.r_bits_per_sec;_.z_plyopt.docu.dispatchEvent(_.xEvtCheckedSpeed)}}}else{var t=_.x_publibs.getValueFromServRet(this.responseText,"Result");if(_.xEvtCheckedSpeed){_.xEvtCheckedSpeed.detail.return_code=-2;_.xEvtCheckedSpeed.detail.error_mesg=t;_.xEvtCheckedSpeed.detail.bps=_.z_priv.r_bits_per_sec;_.z_plyopt.docu.dispatchEvent(_.xEvtCheckedSpeed)}}}};var l="http://"+i+"/"+this.FX_RVCTHEADER+"/"+this.FX_RVCTCD_SPD;var p="";if(e==0){p+=this.FX_RVCTOPT_CMD+": "+this.FX_RVCTGET_PKEY+"\r\n";p+=this.FX_RVCTOPT_REQ+": "+t+"\r\n"}else if(e==1){p+=this.FX_RVCTOPT_CMD+": "+this.FX_RVCTGET_BYTES+"\r\n";p+=this.FX_RVCTOPT_KEY+": "+s+"\r\n"}a.open("POST",l,true);a.setRequestHeader("Content-Type","application/x-www-form-urlencoded");a.send(p);a.i_prev_msec=(new Date).getTime()};cx_ncsloader.prototype.setCookie=function(e,t,r){if(r>0){var i=new Date;i.setTime(i.getTime()+r*60*1e3)}var s=e+"="+escape(t)+";expire="+(r>0?i.toUTCString():"0")+";";document.cookie=s};cx_ncsloader.prototype.getCookie=function(e){var t=document.cookie;var r=t.split("; ");for(var i=0;i