function ckcpt(){var c="";return c}function ckstyle(){var c={cpath:"",language:"",flashvars:"",setup:"1,1,1,1,1,2,0,1,0,0,0,1,200,0,2,1,0,1,1,1,2,10,3,0,1,2,3000,0,0,0,0,1,1,1,1,1,1,250,0,90,0,0",pm_bg:"0x000000,100,230,180",mylogo:"null",pm_mylogo:"1,1,-100,-55",logo:"null",pm_logo:"2,0,-100,20",control_rel:"related.swf,ckplayer/related.xml,0",control_pv:"Preview.swf,105,2000",pm_repc:"",pm_spac:"|",pm_fpac:"file->f",pm_advtime:"2,0,-110,10,0,300,0",pm_advstatus:"1,2,2,-200,-40",pm_advjp:"1,1,2,2,-100,-40",pm_padvc:"2,0,-10,-10",pm_advms:"2,2,-46,-56",pm_zip:"1,1,-20,-8,1,0,0",pm_advmarquee:"1,2,50,-60,50,20,0,0x000000,50,0,20,1,30,2000",pm_glowfilter:"1,0x01485d, 100, 6, 3, 10, 1, 0, 0",advmarquee:escape('{a href="http://www.ckplayer.com"}{font color="#FFFFFF" size="12"}这里可以放文字广告,播放器默认使用这里设置的广告内容,如果不想在这里使用可以清空这里的内容,如果想在页面中实时定义滚动文字广告内容,可以清空这里的内容,然后在页面中设置广告函数。{/font}{/a}'),mainfuntion:"",flashplayer:"",calljs:"ckplayer_status,ckadjump,playerstop,ckmarqueeadv",myweb:escape(""),cpt_lights:"0",cpt_list:ckcpt()};return c}(function(){var CKobject={_K_:function(d){return document.getElementById(d)},_T_:false,_M_:false,_G_:false,_Y_:false,_I_:null,_J_:0,_O_:{},uaMatch:function(u,rMsie,rFirefox,rOpera,rChrome,rSafari,rSafari2,mozilla,mobile){var match=rMsie.exec(u);if(match!=null){return{b:"IE",v:match[2]||"0"}}match=rFirefox.exec(u);if(match!=null){return{b:match[1]||"",v:match[2]||"0"}}match=rOpera.exec(u);if(match!=null){return{b:match[1]||"",v:match[2]||"0"}}match=rChrome.exec(u);if(match!=null){return{b:match[1]||"",v:match[2]||"0"}}match=rSafari.exec(u);if(match!=null){return{b:match[2]||"",v:match[1]||"0"}}match=rSafari2.exec(u);if(match!=null){return{b:match[1]||"",v:match[2]||"0"}}match=mozilla.exec(u);if(match!=null){return{b:match[1]||"",v:match[2]||"0"}}match=mobile.exec(u);if(match!=null){return{b:match[1]||"",v:match[2]||"0"}}else{return{b:"unknown",v:"0"}}},browser:function(){var u=navigator.userAgent,rMsie=/(msie\s|trident.*rv:)([\w.]+)/,rFirefox=/(firefox)\/([\w.]+)/,rOpera=/(opera).+version\/([\w.]+)/,rChrome=/(chrome)\/([\w.]+)/,rSafari=/version\/([\w.]+).*(safari)/,rSafari2=/(safari)\/([\w.]+)/,mozilla=/(mozilla)\/([\w.]+)/,mobile=/(mobile)\/([\w.]+)/;var c=u.toLowerCase();var d=this.uaMatch(c,rMsie,rFirefox,rOpera,rChrome,rSafari,rSafari2,mozilla,mobile);if(d.b){b=d.b;v=d.v}return{B:b,V:v}},Platform:function(){var w="";var u=navigator.userAgent,app=navigator.appVersion;var b={iPhone:u.indexOf("iPhone")>-1||u.indexOf("Mac")>-1,iPad:u.indexOf("iPad")>-1,ios:!!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),android:u.indexOf("Android")>-1||u.indexOf("Linux")>-1,webKit:u.indexOf("AppleWebKit")>-1,trident:u.indexOf("Trident")>-1,gecko:u.indexOf("Gecko")>-1&&u.indexOf("KHTML")==-1,presto:u.indexOf("Presto")>-1,mobile:!!u.match(/AppleWebKit.*Mobile.*/)||!!u.match(/AppleWebKit/),webApp:u.indexOf("Safari")==-1};for(var k in b){if(b[k]){w=k;break}}return w},isHTML5:function(){return !!document.createElement("video").canPlayType},getType:function(){return this._T_},getVideo:function(){var v="";var s=this._E_.v;if(s&&s.length>1){for(var i=0;i");if(a.length>=1&&a[0]!=""){v+='=2&&a[1]!=""){v+=' type="'+a[1]+'"'}v+=">"}}return v},getVars:function(k){var o=this._A_;if(typeof(o)=="undefined"){return null}if(k in o){return o[k]}else{return null}},getParams:function(){var p="";if(this._A_){if(parseInt(this.getVars("p"))==1){p+=' autoplay="autoplay"'}if(parseInt(this.getVars("e"))==1){p+=' loop="loop"'}if(parseInt(this.getVars("p"))==2){p+=' preload="metadata"'}if(this.getVars("i")){p+=' poster="'+this.getVars("i")+'"'}}return p},getpath:function(z){var f="CDEFGHIJKLMNOPQRSTUVWXYZcdefghijklmnopqrstuvwxyz";var w=z.substr(0,1);if(f.indexOf(w)>-1&&(z.substr(0,4)==w+"://"||z.substr(0,4)==w+":\\")){return z}var d=unescape(window.location.href).replace("file:///","");var k=parseInt(document.location.port);var u=document.location.protocol+"//"+document.location.hostname;var l="",e="",t="";var s=0;var r=unescape(z).split("//");if(r.length>0){l=r[0]+"//"}var h="http|https|ftp|rtsp|mms|ftp|rtmp|file";var a=h.split("|");if(k!=80&&k){u+=":"+k}for(i=0;i=0){return this._X_[s].split(",")[n]}else{return this._X_[s]}},getUrl:function(L,B){var b=["get","utf-8"];if(L&&L.length==2){var a=L[0];var c=L[1].split("/");if(c.length>=2){b[0]=c[1]}if(c.length>=3){b[1]=c[2]}this.ajax(b[0],b[1],a,function(s){var C=CKobject;if(s&&s!="error"){var d="",e=s;if(s.indexOf("}")>-1){var f=s.split("}");for(var i=0;i");if(h.length==2){C._A_[h[0]]=h[1]}}e=f[f.length-1]}C._E_.v=e.split(",");if(B){C.showHtml5()}else{C.changeParams(d);C.newAdr()}}})}},getflashvars:function(s){var v="",i=0;if(s){for(var k in s){if(i>0){v+="&"}if(k=="f"&&s[k]&&!this.getSn("pm_repc",-1)){s[k]=this.getpath(s[k]);if(s[k].indexOf("&")>-1){s[k]=encodeURIComponent(s[k])}}if(k=="y"&&s[k]){s[k]=this.getpath(s[k])}v+=k+"="+s[k];i++}}return v},getparam:function(s){var w="",v="",o={allowScriptAccess:"always",allowFullScreen:true,quality:"high",bgcolor:"#000"};if(s){for(var k in s){o[k]=s[k]}}for(var e in o){w+=e+'="'+o[e]+'" ';v+=''}w=w.replace("movie=","src=");return{w:w,v:v}},getObjectById:function(s){if(this._T_){return this}var x=null,y=this._K_(s),r="embed";if(y&&y.nodeName=="OBJECT"){if(typeof y.SetVariable!="undefined"){x=y}else{var z=y.getElementsByTagName(r)[0];if(z){x=z}}}return x},ajax:function(b,u,s,f){var x=this.getXhr();var a=[],m="";if(b=="get"){if(s.indexOf("?")>-1){m=s+"&t="+new Date().getTime()}else{m=s+"?t="+new Date().getTime()}x.open("get",m)}else{a=s.split("?");s=a[0],m=a[1];x.open("post",s,true)}x.setRequestHeader("Content-Type","application/x-www-form-urlencoded");x.setRequestHeader("charset",u);if(b=="post"){x.send(m)}else{x.send(null)}x.onreadystatechange=function(){if(x.readyState==4){var g=x.responseText;if(g!=""){f(g)}else{f(null)}}}},addListener:function(e,f){var o=CKobject._V_;if(o.addEventListener){try{o.addEventListener(e,f,false)}catch(e){this.getNot()}}else{if(o.attachEvent){try{o.attachEvent("on"+e,f)}catch(e){this.getNot()}}else{o["on"+e]=f}}},removeListener:function(e,f){var o=CKobject._V_;if(o.removeEventListener){try{o.removeEventListener(e,f,false)}catch(e){this.getNot()}}else{if(o.detachEvent){try{o.detachEvent("on"+e,f)}catch(e){this.getNot()}}else{o["on"+e]=null}}},Flash:function(){var f=false,v=0;if(document.all||this.browser()["B"].toLowerCase().indexOf("ie")>-1){try{var s=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");f=true;var z=s.GetVariable("$version");v=parseInt(z.split(" ")[1].split(",")[0])}catch(e){}}else{if(navigator.plugins&&navigator.plugins.length>0){var s=navigator.plugins["Shockwave Flash"];if(s){f=true;var w=s.description.split(" ");for(var i=0;i10){this.embedSWF(f,d,i,w,h,v,p)}else{if(this.isHTML5()){this.embedHTML5(d,i,w,h,e,v,s)}else{this.embedSWF(f,d,i,w,h,v,p)}}}},embedSWF:function(C,D,N,W,H,V,P){if(!N){N="ckplayer_a1"}if(!P){P={bgcolor:"#FFF",allowFullScreen:true,allowScriptAccess:"always",wmode:"transparent"}}this._A_=V;this.getX();var u="undefined",g=false,j=document,r="http://www.macromedia.com/go/getflashplayer",t='请点击此处下载安装最新的flash插件',error={w:"您的网页不符合w3c标准,无法显示播放器",f:"您没有安装flash插件,无法播放视频,"+t,v:"您的flash插件版本过低,无法播放视频,"+t},w3c=typeof j.getElementById!=u&&typeof j.getElementsByTagName!=u&&typeof j.createElement!=u,i='id="'+N+'" name="'+N+'" ',s="",l="";P.movie=C;P.flashvars=this.getflashvars(V);if(W==-1){d=true;this._K_(D).style.width="100%";W="100%"}s+='';s+=this.getparam(P)["v"];s+="';s+="";if(!w3c){l=error.w;g=true}else{if(!this.Flash()["f"]){l=error.f;g=true}else{if(this.Flash()["v"]<10){l=error.v;g=true}else{l=s;this._T_=false}}}if(l){this._K_(D).innerHTML=l}if(g){this._K_(D).style.color="#0066cc";this._K_(D).style.lineHeight=this._K_(D).style.height;this._K_(D).style.textAlign="center"}},embedHTML5:function(C,P,W,H,V,A,S){this._E_={c:C,p:P,w:W,h:H,v:V,s:S};this._A_=A;this.getX();b=this.browser()["B"],v=this.browser()["V"],x=v.split("."),t=x[0],m=b+v,n=b+t,w="",s=false,f=this.Flash()["f"],a=false;if(!S){S=["iPad","iPhone","ios"]}for(var i=0;i-1){w=w.split("+")[0];a=true}else{a=false}if(this.Platform()==w||m==w||n==w||b==w){if(a){if(!f){s=true;break}}else{s=true;break}}}if(s){if(V){var l=V[0].split("->");if(l&&l.length==2&&l[1].indexOf("ajax")>-1){this.getUrl(l,true);return}}this.showHtml5()}},status:function(){this._H_=parseInt(this.getSn("setup",20));var f="ckplayer_status";if(this.getSn("calljs",0)!=""){f=this.getSn("calljs",0)}try{if(typeof(eval(f))=="function"){this._L_=eval(f);this._M_=true;return true}}catch(e){try{if(typeof(eval(ckplayer_status))=="function"){this._L_=ckplayer_status;this._M_=true;return true}}catch(e){return false}}return false},showHtml5:function(){var C=CKobject;var p=C._E_.p,a=C._E_.v,c=C._E_.c,b=false;var s=this._E_.v;var w=C._E_.w,h=C._E_.h;var d=false;var r="";if(s.length==1){r=' src="'+s[0].split("->")[0]+'"'}if(w==-1){d=true;C._K_(c).style.width="100%";w="100%"}if(w.toString().indexOf("%")>-1){w="100%"}if(h.toString().indexOf("%")>-1){h="100%"}var v="";C._K_(c).innerHTML=v;C._K_(c).style.backgroundColor="#000";C._V_=this._K_(p);if(!d){C._K_(c).style.width=this._E_.w.toString().indexOf("%")>-1?(C._K_(c).offsetWidth*parseInt(this._E_.w)*0.01)+"px":C._V_.width+"px";C._K_(c).style.height=this._E_.h.toString().indexOf("%")>-1?(C._K_(c).offsetHeight*parseInt(this._E_.h)*0.01)+"px":C._V_.height+"px"}C._P_=false;C._T_=true;if(C.getVars("loaded")!=""){var f=C.getVars("loaded")+"()";try{if(typeof(eval(f))=="function"){eval(f)}}catch(e){try{if(typeof(eval(loadedHandler))=="function"){loadedHandler()}}catch(e){}}}C.status();C.addListener("play",C.playHandler);C.addListener("pause",C.playHandler);C.addListener("error",C.errorHandler);C.addListener("emptied",C.errorHandler);C.addListener("loadedmetadata",C.loadedMetadataHandler);C.addListener("ended",C.endedHandler);C.addListener("volumechange",C.volumeChangeHandler)},videoPlay:function(){if(this._T_){this._V_.play()}},videoPause:function(){if(this._T_){this._V_.pause()}},playOrPause:function(){if(this._T_){if(this._V_.paused){this._V_.play()}else{this._V_.pause()}}},fastNext:function(){if(this._T_){this._V_.currentTime=this._V_.currentTime+10}},fastBack:function(){if(this._T_){this._V_.currentTime=this._V_.currentTime-10}},changeVolume:function(n){if(this._T_){this._V_.volume=n*0.01}},videoSeek:function(t){if(this._T_){this._V_.currentTime=t}},newAddress:function(u){var s=[];if(u){s=this.isHtml5New(u)}else{return}if(s&&this._T_){this.changeParams(u);var l=s[0].split("->");if(l&&l.length==2&&l[1].indexOf("ajax")>-1){this.getUrl(l,false);return}this._E_.v=s;this.newAdr()}},quitFullScreen:function(){if(document.cancelFullScreen){document.cancelFullScreen()}else{if(document.mozCancelFullScreen){document.mozCancelFullScreen()}else{if(document.webkitCancelFullScreen){document.webkitCancelFullScreen()}}}},changeStatus:function(n){this._H_=n},newAdr:function(){var s=this._E_.v;this._V_.pause();if(s.length==1){this._V_.src=s[0].split("->")[0]}else{this._V_.innerHTML=this.getVideo()}this._V_.load()},isHtml5New:function(s){if(s.indexOf("html5")==-1){return false}var a=s.replace(/{/g,"");var b=a.split("}");var c="";for(var i=0;i-1){c=b[i].replace("html5->","").split(",");break}}return c},changeParams:function(f){if(f){var a=f.replace(/{/g,"");var b=a.split("}");var c="";for(var i=0;i");if(d.length==2){switch(d[0]){case"p":if(parseInt(d[1])==1){this._V_.autoplay=true}else{if(parseInt(d[1])==2){this._V_.preload="metadata"}else{this._V_.autoplay=false;if(this._I_!=null){clearInterval(this._I_);this._I_=null}}}break;case"e":if(parseInt(d[1])==1){this._V_.loop=true}else{this._V_.loop=false}break;case"i":this._V_.poster=d[1];break;default:break}}}}},frontAdPause:function(s){this.getNot()},frontAdUnload:function(){this.getNot()},changeFace:function(s){this.getNot()},plugin:function(a,b,c,d,e,f,g){this.getNot()},videoClear:function(){this.getNot()},videoBrightness:function(s){this.getNot()},videoContrast:function(s){this.getNot()},videoSaturation:function(s){this.getNot()},videoSetHue:function(s){this.getNot()},videoWAndH:function(a,b){this.getNot()},videoWHXY:function(a,b,c,d){this.getNot()},changeFlashvars:function(a){this.getNot()},changeMyObject:function(a,b){this.getNot()},getMyObject:function(a,b){this.getNot()},changeeFace:function(){this.getNot()},changeStyle:function(a,b){this.getNot()},promptLoad:function(){this.getNot()},promptUnload:function(){this.getNot()},marqueeLoad:function(a,b){this.getNot()},marqueeClose:function(s){this.getNot()},getNot:function(){var s="The ckplayer's API for HTML5 does not exist";return s},volumeChangeHandler:function(){var C=CKobject;if(C._V_.muted){C.returnStatus("volumechange:0",1);C._O_.volume=0;C._O_.mute=true}else{C._O_.mute=false;C._O_.volume=C._V_.volume*100;C.returnStatus("volumechange:"+C._V_.volume*100,1)}},endedHandler:function(){var C=CKobject;var e=parseInt(C.getVars("e"));C.returnStatus("ended",1);if(C._I_){clearInterval(C._I_);C._I_=null}if(e!=0&&e!=4&&e!=6){return}if(e==6){this.quitFullScreen()}var f="playerstop()";if(C.getSn("calljs",2)!=""){f=C.getSn("calljs",2)+"()"}try{if(typeof(eval(f))=="function"){eval(f);return}}catch(e){try{if(typeof(eval(playerstop))=="function"){playerstop();return}}catch(e){return}}},loadedMetadataHandler:function(){var C=CKobject;C.returnStatus("loadedmetadata",1);C._O_.totaltime=C._V_.duration;C._O_.width=C._V_.width;C._O_.height=C._V_.height;C._O_.awidth=C._V_.videoWidth;C._O_.aheight=C._V_.videoHeight;if(C._V_.defaultMuted){C.returnStatus("volumechange:0",1);C._O_.mute=true;C._O_.volume=0}else{C._O_.mute=false;C._O_.volume=C._V_.volume*100;C.returnStatus("volumechange:"+C._V_.volume*100,1)}},errorHandler:function(){CKobject.returnStatus("error",1)},playHandler:function(){var C=CKobject;if(C._V_.paused){C.returnStatus("pause",1);C.addO("play",false);if(C._I_!=null){clearInterval(C._I_);C._I_=null}}else{C.returnStatus("play",1);C.addO("play",true);if(!C._P_){C.returnStatus("play",1);C._P_=true}C._I_=setInterval(C.playTime,parseInt(C.getSn("setup",37)));if(!C._G_){C._G_=true;for(var k in C._A_){if(k=="g"&&C._A_[k]){var g=parseInt(C._A_[k]);C.videoSeek(g)}}}if(!C._Y_){C._Y_=true;for(var k in C._A_){if(k=="j"&&C._A_[k]){var j=parseInt(C._A_[k]);if(j>0){C._J_=j}else{C._J_=parseInt(C._O_.totaltime)+j}}}}}},returnStatus:function(s,j){var h=s;if(this._H_==3){h=this._E_.p+"->"+h}if(this._M_&&j<=this._H_){this._L_(h)}},addO:function(s,z){this._O_[s]=z},getStatus:function(){return this._O_},playTime:function(){var C=CKobject;var t=C._V_.currentTime;C._O_.time=t;if(C._J_>0&&t>C._J_){C._J_=0;C.videoSeek(C._O_.totaltime)}C.returnStatus("time:"+t,1)}};window.CKobject=CKobject})();