Файл: user/files/player/uppod.js
Строк: 3290
<?php
var uppod_players;
function Uppod(k){function F(){if(k.id){Ya=navigator.userAgent.toLowerCase();if(Ya.indexOf("ipad")>0||Ya.indexOf("iphone")>0)ma=true;else{if(Ya.indexOf("webkit")>0)ec=true;if(Ya.indexOf("firefox")>0)Uc=true;if(Ya.indexOf("android")>0)fc=true}if(navigator.vendor)if(navigator.vendor.indexOf("Apple")>-1)gc=true;(Fb=!!document.createElement("canvas").getContext)&&(Fb=!!document.createElement("video").canPlayType);a=new Vc;if(Fb){a.stg.innerHTML="";e(a.stg,{lineHeight:"1",textAlign:"left","background-color":a.transparent==
1?"transparent":"#"+a.bgcolor,"text-align":"left"});W=new za({w:a.sw,h:a.sh,bgc:a.bodycolor,brd:a.brd,brdc:a.brdcolor,h0:a.cntrlout==1?a.sh-a.cntrloutheight:0,a:a.transparent==1?-1:1});a.stg.appendChild(W.c);e(W.c,{position:"relative",top:0,left:0});hc();Ka=new za({w:a.scrn_w,h:a.scrn_h,bgc:a.screencolor,o:a.padding>0?a.o/2:0,a:a.transparent==1?-1:1});W.c.appendChild(Ka.c);e(Ka.c,{position:"absolute",top:a.padding,left:a.padding,"z-index":1});if(a.pl){typeof a.pl=="object"&&sa();if(typeof a.pl=="string"){var b=
ic(a.pl);if(b)try{if(b.indexOf("'")>-1)b=b.replace(/\'/g,"'");a.pl=JSON.parse(b);a.pl.playlist&&(a.pl=a.pl.playlist)}catch(d){na(a.lang2.errjson_decode+" "+sb(a.pl),true)}sa()}if(a.file==""){l=0;if(a.random==1){l=getRandomInt(0,D.length-1);e(plbg[0],{opacity:a.plalpha,filter:"alpha(opacity="+a.plalpha*100+")"});e(plbg[l],{opacity:0.8,filter:"alpha(opacity=80)"})}for(var f in a.pl[l]){b=true;if(f=="poster")if(a.poster)b=false;else a.bigposter&&(a.poster=a.bigposter);if(b)a[f]=a.pl[l][f]}}}if(a.file){a.file&&
a.hd&&jc();if(a.file.indexOf("youtube.com/")>-1||a.file.indexOf("youtu.be/")>-1)if(youtube_id=a.file.split(/(youtu.be/|v/|embed/|watch?|youtube.com/user/[^#]*#([^/]*?/)*)??v?=?([^#&?]*)/)[3]){a.stg.innerHTML='<iframe width="'+a.sw+'" height="'+a.sh+'" src="http://www.youtube.com/embed/'+youtube_id+'?html5=1" frameborder="0" allowfullscreen></iframe>';a.youtube=true}}if(!a.youtube){X=document.createElement("div");e(X,{width:"100%",position:"absolute",top:a.padding,left:a.padding,color:"#"+
a.commentcolor,"z-index":3});W.c.appendChild(X);a.commentbgcolor.indexOf("|")==-1&&(a.commentbgcolor=a.commentbgcolor+"|"+a.commentbgcolor);alrt_bg=new za({w:a.sw-a.padding*2,h:"20",o:0,bgc:a.commentbgcolor,bga1:a.commentbgalpha1,bga2:a.commentbgalpha2});X.appendChild(alrt_bg.c);alrt_txt=document.createElement("div");X.appendChild(alrt_txt);e(alrt_txt,{position:"absolute",top:0,left:0,paddingTop:a.commentmargin+a.commenttopmargin,paddingLeft:a.commentmargin+5,paddingBottom:a.commentmargin*1.3,fontFamily:a.namefont,
fontSize:a.namefontsize,fontStyle:kc(a.namefontstyle),fontWeight:lc(a.namefontstyle)});alrt_x=document.createElement("div");X.appendChild(alrt_x);e(alrt_x,{position:"absolute",top:0,right:0,paddingTop:5,paddingRight:10,cursor:"pointer",color:"#"+a.commentcolor});alrt_x.innerHTML="x";alrt_x.onclick=ib;X.style.display="none";if(a.comment!=undefined&&a.comment!=""&&a.showname==1)if(a.shownameliketip==1){f=a.comment;ta=document.createElement("div");e(ta,{width:"100%",position:"absolute",top:5+a.namemargin_v+
a.padding,left:5+a.namemargin_h+a.padding,color:"#"+a.namecolor});W.c.appendChild(ta);Ra=document.createElement("div");ta.appendChild(Ra);e(Ra,{position:"absolute",top:0,left:0,padding:a.namepadding/2+"px "+a.namepadding+"px",fontFamily:a.namefont,fontSize:a.namefontsize+"px",fontStyle:kc(a.namefontstyle),fontWeight:lc(a.namefontstyle),"z-index":2});Ra.innerHTML=f;f=new za({w:Ra.offsetWidth,h:Ra.offsetHeight,o:a.namebgo/2,bgc:a.namebgcolor+"|"+a.namebgcolor,bga1:a.namebgalpha,bga2:a.namebgalpha});
ta.appendChild(f.c);e(f.canvas,{"z-index":1});a.shownameonover==1&&a.shownameonstop==0&&Hide(ta)}else na(a.comment,false);jb();C();Wc();Za();Xc(X);kb!=""&&na(kb,true);sizeInterval=setInterval(Yc,100)}}else if(a.nohtml5.indexOf(".swf")>0){k.file.replace("|","or");new swfobject.embedSWF(a.nohtml5,a.id,a.sw,a.sh,"10.0.0",false,k,{allowFullScreen:"true",allowScriptAccess:"always"})}else a.stg.innerHTML=a.nohtml5}else alert("uppod:"+a.id+" id?")}function na(b,d){if(X){Show(X);alrt_txt.innerHTML=b;e(alrt_bg.canvas,
{height:alrt_txt.offsetHeight,width:a.sw-a.padding*2});d?Show(alrt_x):Hide(alrt_x)}else alert("Uppod HTML5: "+b)}function ib(){Hide(X)}function jb(){if(a.logo!=""){I=document.createElement("img");I.src=a.logo;I.onload=N;W.c.appendChild(I);e(I,{opacity:a.logoalpha,filter:"alpha(opacity="+a.logoalpha*100+")"});if(a.logolink!=""){I.onmouseover=function(){e(I,{opacity:1,filter:"alpha(opacity=100)"})};I.onmouseout=function(){e(I,{opacity:a.logoalpha,filter:"alpha(opacity="+a.logoalpha*100+")"})};I.onclick=
function(){window.open(a.logolink,a.logotarget)}}N()}}function N(){a.logoplace==1&&e(I,{position:"absolute",top:a.logomargin_v,left:a.logomargin_h});a.logoplace==2&&e(I,{position:"absolute",top:a.logomargin_v,right:a.logomargin_h});a.logoplace==3&&e(I,{position:"absolute",bottom:a.logomargin_v+I.offsetHeight,right:a.logomargin_h});a.logoplace==4&&e(I,{position:"absolute",bottom:a.logomargin_v+I.offsetHeight,left:a.logomargin_h})}function Za(){window.addEventListener("keydown",Da);a.stg.onmousemove=
function(b){if(Gb){mc=nc-(b.clientX+b.clientY);if(mc!=0){oc();if(a.cntrlhide==1||t){clearInterval(Ea);Ea=setInterval(tb,3E3)}}}nc=b.clientX+b.clientY};a.stg.onmouseup=function(){m&&(m.active=false);z&&(z.active=false)};a.stg.onmouseover=function(){Hb=true;a.shownameonover==1&&Show(ta)};a.stg.onmouseout=function(){Hb=false;a.shownameonover==1&&(a.shownameonstop==1&&H||a.shownameonstop==0)&&Hide(ta)};a.stg.oncontextmenu=function(b){if(!b)b=window.event;b.cancelBubble=true;b.stopPropagation&&b.stopPropagation();
if(Fa)e(Fa,{display:"block",position:"absolute",top:b.pageY,left:b.pageX});else{Fa=document.createElement("div");Fa.id="rmenu";document.body.appendChild(Fa);var d=document.createElement("div");Fa.appendChild(d);d.innerHTML="<b>Uppod</b> HTML5 0.3.5.1";e(Fa,{"border-radius":"0px",cursor:"pointer",position:"absolute",top:b.pageY,left:b.pageX,backgroundColor:"#000",color:"#fff",borderStyle:"solid",borderColor:"#000000",borderWidth:"1px",padding:"2px 5px 3px 5px",font:"9px Tahoma",opacity:"1"});Fa.style.zIndex=
999}setTimeout('document.getElementById("rmenu").style.display="none";',1E3);return false};document.addEventListener("click",Ib)}function Ib(){Fa&&Hide(Fa)}function Da(b){var d=b.which;if(d==undefined)d=b.keyCode;t&&d==27&&lb();if((H||t)&&d==32)ca()}function C(){if(i){if(Y)for(var b=0;b<Y.length;b++)if(Y[b]){Y[b].setAttribute("src","");i.removeChild(Y[b]);delete Y[b];Y[b]=undefined}if(Jb){clearInterval(Jb);i.removeEventListener("play",Kb,false);i.removeEventListener("pause",Lb,false);i.removeEventListener("ended",
pc,false);i.removeEventListener("loadedmetadata",qc,false);i.removeEventListener("volumechange",rc,false)}i.pause();i.src="";Ga.removeChild(i);delete i;i=undefined;a.events=[];if(z){e(ga.canvas,{width:"0"});e(ua.canvas,{width:"0"})}La=Mb=false;$a=0}if(!Ga){Ga=document.createElement("div");e(Ga,{backgroundColor:"transparent",position:"absolute",left:0,top:0});Ka.c.appendChild(Ga);Ga.onclick=ca}i=document.createElement(a.m);Ga.appendChild(i);if(i){i.setAttribute("width",a.sw-(!t?a.padding*2:0)+"px");
i.setAttribute("height",(!t?a.ph:a.sh)-(!t?a.padding*2:0)-(a.cntrlout==1?a.cntrloutheight:0)+"px")}i&&ec&&a.airplay==1&&i.setAttribute("x-webkit-airplay","allow");i.controls=ma?ab:false;e(i,{position:"absolute",top:0,left:0});a.m=="audio"&&e(i,{width:"0px",height:"0px"});i.preload=a.auto=="none"||a.radio==1?"none":gc?"auto":"metadata";a.auto=="play"?i.autoplay=true:i.autoplay=false;setTimeout(sc,33);if(a.poster!="")if(a.m=="audio"){if(!ub){ub=document.createElement("div");Ka.c.appendChild(ub)}e(ub,
{position:"absolute",left:0,top:0,width:a.sw,height:a.ph-a.padding*2-(a.cntrlout==1?a.cntrloutheight:0),background:"url("+a.poster+") no-repeat center center"})}else{i.setAttribute("poster",a.poster);t&&n&&Nb()}a.auto!="none"&&Z();if(a.m=="video"&&ma)i.ontouchstart=da;S||E()}function da(){if(!ab)if(a.cntrlhide==1&&a.cntrlout==0||t){oc();clearInterval(Ea);Ea=setInterval(tb,3E3)}}function E(){S&&$("#layer").remove();S=document.createElement("div");S.setAttribute("id","layer");W.c.appendChild(S);e(S,
{width:"100%",height:"100%",position:"absolute",top:0,left:0,"z-index":2});if(a.m=="video")if(ma)S.ontouchstart=ca;else S.onclick=ca;S.style.zIndex=2;X.style.zIndex=3;ta&&(ta.style.zIndex=4);s&&(s.style.zIndex=5);I&&(I.style.zIndex=6);if(a.o>0){bb=document.createElement("canvas");var b=bb.getContext("2d");bb.height=a.o;bb.width=a.o;b.fillStyle="#"+a.bgcolor;b.beginPath();b.moveTo(0,0);b.lineTo(a.o/2,0);b.quadraticCurveTo(0,0,0,a.o/2);b.closePath();b.fill();S.appendChild(bb);cb=document.createElement("canvas");
b=cb.getContext("2d");cb.height=a.o;cb.width=a.o;b.fillStyle="#"+a.bgcolor;b.beginPath();b.moveTo(0,0);b.quadraticCurveTo(a.o/2,0,a.o/2,a.o/2);b.lineTo(a.o/2,0);b.closePath();b.fill();S.appendChild(cb);db=document.createElement("canvas");b=db.getContext("2d");db.height=a.o;db.width=a.o;b.fillStyle="#"+a.bgcolor;b.beginPath();b.moveTo(a.o/2,0);b.quadraticCurveTo(a.o/2,a.o/2,0,a.o/2);b.lineTo(a.o/2,a.o/2);b.closePath();b.fill();S.appendChild(db);eb=document.createElement("canvas");b=eb.getContext("2d");
eb.height=a.o;eb.width=a.o;b.fillStyle="#"+a.bgcolor;b.beginPath();b.moveTo(0,0);b.quadraticCurveTo(0,a.o/2,a.o/2,a.o/2);b.lineTo(0,a.o/2);b.closePath();b.fill();S.appendChild(eb);O()}}function O(){e(bb,{position:"absolute",top:0,left:0});e(cb,{position:"absolute",top:0,left:Math.round(a.sw-a.o/2)});e(db,{position:"absolute",top:Math.round(a.sh-a.o/2),left:Math.round(a.sw-a.o/2)});e(eb,{position:"absolute",top:Math.round(a.sh-a.o/2),left:0})}function Z(){Y=[];if(a.file!="")if(a.file.indexOf("|")>
0)for(var b=a.file.split("|"),d=0;d<b.length;d++){if(ma&&b[d].indexOf(".mp4")>-1||!ma){Y[d]=document.createElement("source");Y[d].setAttribute("src",b[d]);i.appendChild(Y[d])}}else{Y[0]=document.createElement("source");Y[0].setAttribute("src",a.file);i.appendChild(Y[0])}}function sa(){n=document.createElement("div");B=document.createElement("div");n.appendChild(B);D=[];plbg=[];pltext=[];Sa=[];Aa=[];var b=0;for(j=0;j<a.pl.length;j++){D[j]=document.createElement("div");B.appendChild(D[j]);e(D[j],{cursor:"pointer",
color:"#"+a.plcolor,width:a.pltw,height:a.plth});if(a.plplace=="inside"||a.plplace=="bottom"){e(D[j],{position:"absolute",top:a.plth*a.plrows,left:a.pltw*j+a.plmargin*j-a.pltw*b});if(a.pl[j].endrow==1){a.plrows++;b=j+1}}a.plplace=="bottomrow"&&e(D[j],{position:"absolute",top:a.plth*j+a.plmargin*j,left:0,width:a.sw-a.plmargin*2});B.appendChild(D[j]);plbg[j]=document.createElement("div");D[j].appendChild(plbg[j]);e(plbg[j],{opacity:a.plalpha,filter:"alpha(opacity="+a.plalpha*100+")",backgroundColor:"#"+
a.plbgcolor,height:a.plth,"border-radius":a.o>0?4:0});if(a.plplace=="inside"||a.plplace=="bottom")e(plbg[j],{width:a.pltw});a.plplace=="botomrow"&&e(plbg[j],{width:a.sw-a.plmargin_h*2});if(a.pl[j].poster){plbg[j].innerHTML="<img src='"+a.pl[j].poster+"' width='100%' id='plim"+j+"'>";e(plbg[j],{opacity:1,filter:"alpha(opacity=100)"})}pltext[j]=document.createElement("div");D[j].appendChild(pltext[j]);e(pltext[j],{padding:5,position:"absolute",top:0,left:0,fontFamily:a.plfont,fontSize:a.plfontsize});
a.plplace=="botomrow"&&e(pltext[j],{height:a.plth});if(a.pl[j].comment)pltext[j].innerHTML=a.pl[j].comment;else Hide(pltext[j]);if(a.pl[j].poster){e(pltext[j],{backgroundColor:"#"+a.plbgcolor});e(plbg[j],{background:"none"});j>0&&Hide(pltext[j])}D[j].setAttribute("id","plmc"+j);plbg[j].setAttribute("id","plbg"+j);pltext[j].setAttribute("id","pltx"+j);if(ma)D[j].ontouchstart=Zc;else{D[j].onmouseover=$c;D[j].onmouseout=ad;D[j].onclick=bd}Sa[j]=false;Aa[j]=j}if(ma){B.ontouchstart=w;B.ontouchmove=cd;
B.ontouchend=dd}W.c.appendChild(n);if(a.plplace=="inside"||a.plplace=="bottom"){e(n,{position:"absolute",width:a.sw-a.plmargin_h*2,height:a.plth*(a.plrows+1)+10,overflow:"hidden"});a.plplace=="bottom"?e(B,{position:"absolute",top:0,left:0}):e(B,{position:"absolute",top:10,left:10});va=(a.pl.length-b)*a.pltw+(a.pl.length-b-1)*a.plmargin;Pa=a.plth*(a.plrows+1)+10}if(a.plplace=="bottomrow"){e(n,{position:"absolute",width:a.sw-a.plmargin_h*2,height:a.bottomrowheight-a.plmargin-a.padding*2,overflow:"hidden"});
e(B,{position:"absolute",top:0,left:0});va=a.sw-a.plmargin_h*2;Pa=a.pl.length*a.plth+(a.pl.length-1)*a.plmargin}l=0;e(plbg[l],{opacity:0.8,filter:"alpha(opacity=80)"});n.style.zIndex=6;P();a.plplace=="inside"&&a.pliview==0&&ShowHide(n)}function wa(){n?ShowHide(n):sa()}function P(){if(a.plplace=="inside"){e(n,{width:a.sw-a.plmargin_h*2});e(n,{top:(t?a.sh:a.stageheight)-a.plth-a.cntrloutheight-10-a.plth*a.plrows,left:a.plmargin_h});B.offsetLeft<-va+n.offsetWidth&&e(B,{position:"absolute",top:10,left:-va+
n.offsetWidth});va<=a.sw-a.plmargin_h*2&&e(B,{position:"absolute",top:10,left:0});l!==null&&Ob(l)}if(!t){if(a.plplace=="bottomrow"){e(n,{width:a.sw-a.plmargin_h*2});e(n,{position:"absolute",top:a.ph+(a.cntrlout==1?a.cntrloutheight:0)+10,left:a.plmargin_h});l!==null&&Pb(l)}if(a.plplace=="bottom"){e(n,{width:a.sw-a.plmargin_h*2});e(n,{position:"absolute",top:a.ph+(a.cntrlout==1?a.cntrloutheight:0)+10,left:a.plmargin_h});l!==null&&Pb(l)}}}function w(b){wb=tc=b.targetTouches[0].pageX;xb=uc=b.targetTouches[0].pageY}
function cd(b){var d=b.targetTouches[0].pageX-wb,f=b.targetTouches[0].pageY-xb;wb=b.targetTouches[0].pageX;xb=b.targetTouches[0].pageY;if(a.plplace=="inside"||a.plplace=="bottom"){d=B.offsetLeft+d;if(d<0&&d>-va+n.offsetWidth)e(B,{position:"absolute",top:a.plplace=="bottom"?0:10,left:d})}if(a.plplace=="bottomrow"){d=B.offsetTop+f;d<0&&d>-Pa+n.offsetHeight-10&&e(B,{position:"absolute",top:d,left:0})}b.preventDefault()}function Zc(b){yb=b.target.getAttribute("id").substr(4)}function dd(){var b=wb-tc,
d=xb-uc;if(b==0&&d==0){if(yb!==null){Qa();l=yb;Qb();yb=null}}else{if(a.plplace=="inside"||a.plplace=="bottom"){b=B.offsetLeft+b;b>0&&(b=0);b<-va+n.offsetWidth&&(b=-va+n.offsetWidth);clearInterval(Ma);mb=b;Ma=setInterval(zb,20)}if(a.plplace=="bottomrow"){b=B.offsetTop+d;b>0&&(b=0);b<-Pa+n.offsetHeight-10&&(b=-Pa+n.offsetHeight-10);clearInterval(Ma);mb=b;Ma=setInterval(zb,20)}}}function $c(b){b=b.target.getAttribute("id").substr(4);e(plbg[b],{opacity:1,filter:"alpha(opacity=100)"});Pb(b);a.pl[b].poster&&
a.pl[b].comment&&Show(pltext[b])}function ad(b){b=b.target.getAttribute("id").substr(4);if(a.pl[b].poster){if(l!=b){Hide(pltext[b]);e(plbg[b],{opacity:Sa[b]?0.5:1,filter:"alpha(opacity="+(Sa[b]?0.5:1)*100+")"})}}else l!=b?e(plbg[b],{opacity:Sa[b]?a.plalpha2:a.plalpha,filter:"alpha(opacity="+(Sa[b]?a.plalpha2:a.plalpha)*100+")"}):e(plbg[b],{opacity:0.8,filter:"alpha(opacity=80)"})}function bd(b){l!==null&&Qa();l=b.target.getAttribute("id").substr(4);Qb()}function Qb(){if(a.pl[l].playlist)Ta();else{Ta();
a.plplace=="inside"&&Hide(n);if(!H){Ua=true;ca()}}Rb()}function ed(){l<D.length-1&&Sb()}function Sb(){if(a.random==1)if(Aa.length>1){l!==null&&Qa();l=Aa[getRandomInt(0,Aa.length-1)];Ta();J("next")}else{Tb();G&&e(G.c,{opacity:1,filter:"alpha(opacity=100)",cursor:"pointer"})}else if(l<D.length-1){l!==null&&Qa();l++;Ta();J("next")}else Tb();Rb()}function Rb(){if(a.random==0){if(l==0)G&&e(G.c,{opacity:0.3,filter:"alpha(opacity=30)",cursor:"default"});else G&&e(G.c,{opacity:1,filter:"alpha(opacity=100)",
cursor:"pointer"});if(l==D.length-1)T&&e(T.c,{opacity:0.3,filter:"alpha(opacity=30)",cursor:"default"});else T&&e(T.c,{opacity:1,filter:"alpha(opacity=100)",cursor:"pointer"})}}function fd(){if(a.random==1)if(Aa.length>1){l!==null&&Qa();l=Aa[getRandomInt(0,Aa.length-1)];Ta();J("prev")}else Tb();else if(l>0){l!==null&&Qa();l--;Ta();J("prev");l==0&&G&&e(G.c,{opacity:0.3,filter:"alpha(opacity=30)",cursor:"default"})}Rb()}function Tb(){if(a.plplay1==1)vc();else if(a.random==1){for(p=0;p<D.length;p++)Aa[p]=
p;Sb()}else{Qa();l=0;Ta();J("next")}}function Qa(){if(a.pl[l].poster){Hide(pltext[l]);e(plbg[l],{opacity:0.5,filter:"alpha(opacity=50)"})}else e(plbg[l],{opacity:a.plalpha2,filter:"alpha(opacity="+a.plalpha2*100+")"});Sa[l]=true;var b=Aa.indexOf(l);b!=-1&&Aa.splice(b,1)}function Ta(){if(a.pl[l].playlist){if(a.pl[l].playlist!="back"){a.pl_history.push(a.pl);var b=a.pl[l].playlist;a.pl=[{comment:"u2190",playlist:"back"}];a.pl=a.pl.concat(b)}else{a.pl=a.pl_history[a.pl_history.length-1];a.pl_history.splice(a.pl_history.length-
1,1)}if(n){n.removeChild(B);W.c.removeChild(n)}sa();a.plplace=="inside"&&Show(n)}else{a.pl[l].bigposter&&(a.poster=a.pl[l].bigposter);a.pl[l].comment&&(a.comment=a.pl[l].comment);a.pl[l].download&&(a.download=a.pl[l].download);a.file=a.pl[l].file;jc();Ab(a.file,true);e(plbg[l],{opacity:0.8,filter:"alpha(opacity=80)"})}}function Pb(b){if(a.plplace=="inside"||a.plplace=="bottom")va>a.sw-a.plmargin_h*2&&Ob(b);a.plplace=="bottomrow"&&Pa>a.bottomrowheight&&Ob(b)}function Ob(b){clearInterval(Ma);if(a.plplace==
"inside"||a.plplace=="bottom"){var d=-D[b].offsetLeft+n.offsetWidth/2-a.pltw/2;if(d>0||va<a.sw)d=10;if(d<0&&d<-va+n.offsetWidth-10)d=-va+n.offsetWidth-10;mb=d;Ma=setInterval(zb,20)}if(a.plplace=="bottomrow"){d=-D[b].offsetTop+n.offsetHeight/2-a.plth/2;if(d>0)d=10;if(d<-Pa+n.offsetHeight-10)d=-Pa+n.offsetHeight-10;mb=d;Ma=setInterval(zb,20)}}function zb(){var b=mb;if(a.plplace=="inside"||a.plplace=="bottom")Math.abs((B.offsetLeft-b)/10)<=1?clearInterval(Ma):e(B,{position:"absolute",top:a.plplace==
"bottom"?0:10,left:B.offsetLeft-(B.offsetLeft-b)/10});if(a.plplace=="bottomrow")Math.abs((B.offsetTop-b)/10)<=1?clearInterval(Ma):e(B,{position:"absolute",top:B.offsetTop-(B.offsetTop-b)/10,left:0})}function Ab(b,d){Ub=H=false;if(ma||fc){a.file=b;setTimeout(gd,1E3)}else{d&&(a.auto="play");a.file=b;C()}if(a.comment!=undefined&&a.comment!=""&&a.showname==1)if(a.shownameliketip==1)Ra.innerHTML=a.comment;else na(a.comment,false)}function gd(){if(a.file.indexOf("|")>0)for(var b=a.file.split("|"),d=0;d<
b.length;d++){if(b[d].indexOf(".mp4")>-1)i.src=b[d]}else i.src=a.file;i.load();i.play()}function sc(){if(i)if(i.networkState>0){La=true;e(i,{opacity:1,filter:"alpha(opacity=100)"});Jb=setInterval(hd,500);i.addEventListener("play",Kb,false);i.addEventListener("pause",Lb,false);i.addEventListener("ended",pc,false);i.addEventListener("loadedmetadata",qc,false);i.addEventListener("volumechange",rc,false);document.addEventListener("fullscreenchange",function(){!document.fullscreen&&t&&lb()},false);document.addEventListener("mozfullscreenchange",
function(){!document.mozFullScreen&&t&&lb()},false);document.addEventListener("webkitfullscreenchange",function(){!document.webkitIsFullScreen&&t&&lb()},false);Vb(Wb?0:Ba);if(!wc){J("init");wc=true}}else setTimeout(sc,33)}function ca(){if(a.auto=="none"){i.autoplay=true;Z();Ua=true}a.auto="play";if(!a.file||a.file=="")J("error","nofile");if(La){Ua=true;if(H){i.pause();Lb()}else{i.play();Kb()}}else if(!H)if(Q!=undefined){Q.c.style.display="none";ha.c.style.display="block"}}function nb(){H&&ca();a.auto=
"none";C();J("stop")}function xc(){H&&ca();window.open(a.download?a.download:a.file,"_blank");J("download")}function Xb(){if(q)if(a.filehd){a.start=i.currentTime;var b=a.file;Ab(a.filehd,true);a.filehd=b;if(ia.c.style.display=="none"){Hide(q.c);Show(ia.c)}else{Hide(ia.c);Show(q.c)}}}function jc(){if(a.hd&&a.file){if(a.hd.indexOf("::")>0){a.filehd=a.file.replace(a.hd.split("::")[0],a.hd.split("::")[1]);var b=false;if(ia){if(ia.c.style.display=="block")b=true}else if(a.hd1==1)b=true;if(b){b=a.file;
a.file=a.filehd;a.filehd=b}}if(a.file.indexOf("[")>-1&&a.file.indexOf("]")>-1){b=a.file.substr(a.file.indexOf("[")+1,a.file.indexOf("]")-a.file.indexOf("[")-1).split(a.hdseparator);var d="";for(h=0;h<b.length;h++){d+=b[h]!=""?a.file.substr(0,a.file.indexOf("["))+b[h]+a.file.substr(a.file.indexOf("]")+1):"";h<b.length-1&&(d+=",")}a.hdlinks=d.split(",");yc();if(aa)a.file=aa.value;else for(h=0;h<a.hdlinks.length;h++)if(a.hdlinks[h]!=""){a.file=a.hdlinks[h];break}}}}function yc(){if(q)if(aa){var b=0,
d=[];aa.innerHTML="";for(h=0;h<a.hda.length;h++)if(a.hdlinks[h])if(a.hdlinks[h]!=""){d[h]=document.createElement("option");d[h].value=a.hdlinks[h];d[h].innerHTML=a.hda[h];aa.appendChild(d[h]);if(a.hda[h]==a.quality){b=h;d[h].setAttribute("selected","true");zc(false)}}Ac(aa.options[b].text,q)}}function id(){zc(true)}function zc(b){if(q&&a.hdlinks){b&&(a.start=i.currentTime);a.file=aa.value;Ab(aa.value,b);Ac(aa.options[aa.selectedIndex].text,q);a.quality=aa.options[aa.selectedIndex].text}}function ob(b){var d=
false;if(Y)if(Y.length>0){Bc||(d=true);if(!d){if(!t||b=="re"){if(a.realfullscreen==1)if(this.requestFullScreen){a.stg.requestFullScreen();fb=true}else if(this.mozRequestFullScreen){a.stg.mozRequestFullScreen();fb=true}else if(this.webkitRequestFullScreen){a.stg.webkitRequestFullScreen();fb=true}a.iframe!=""&&e(window.parent.document.getElementById(a.iframe),{width:window.parent.innerWidth,height:window.parent.innerHeight,position:"fixed",left:0,top:0});if(b!="re"){t=true;a.stagewidth=a.sw;a.stageheight=
a.sh;e(W.canvas,{visibility:"hidden",height:a.iframe!=""?window.parent.innerHeight:window.innerHeight});e(Ka.canvas,{visibility:"hidden"});e(Ga,{backgroundColor:"#000",position:"fixed",left:0,top:0})}R.c.style.display="none";Ha.c.style.display="block";if(a.stageposition="")a.stageposition=a.stg.style.position;a.stageleft=a.stg.style.left;a.stagetop=a.stg.style.top;e(a.stg,{width:fb?screen.width:a.iframe!=""?window.parent.innerWidth:window.innerWidth,height:fb?screen.height:a.iframe!=""?window.parent.innerHeight:
window.innerHeight,position:"fixed",left:0,top:0,"z-index":"9999",overflow:"hidden"});S!=undefined&&(S.style.display="none");clearInterval(Ea);Ea=setInterval(tb,3E3);b!="re"&&J("fullscreen")}else lb();setTimeout(Cc,100);n&&e(n,{top:-1000});I&&N()}}}function lb(){if(document.cancelFullScreen)document.cancelFullScreen();else if(document.mozCancelFullScreen)document.mozCancelFullScreen();else document.webkitCancelFullScreen&&document.webkitCancelFullScreen();t=false;a.iframe!=""&&e(window.parent.document.getElementById(a.iframe),
{width:a.stagewidth,height:a.stageheight,position:"static",left:0,top:0});e(Ga,{backgroundColor:"transparent",position:"absolute",left:0,top:0});e(a.stg,{width:a.stagewidth,height:a.stageheight,position:a.stageposition==""?"static":a.stageposition,left:a.stageleft,top:a.stagetop});e(W.canvas,{visibility:"visible",height:a.stageheight});e(Ka.canvas,{visibility:"visible"});S!=undefined&&(S.style.display="block");R.c.style.display="block";Ha.c.style.display="none";n&&P();J("exitfullscreen");I&&N()}function Dc(){if(U)ShowHide(U);
else{U=document.createElement("div");var b=a.scrn_w<320?a.scrn_w-30:350,d=(a.download!=""&&a.download!=0?45:0)+(a.menu_nocode==1?0:45)+(a.link!=""?45:0)+11;a.menu_w=b;a.menu_h=d;var f=new za({w:b,h:d,o:10,bgc:"000000|000000",bga1:0.5,bga2:0.5});U.appendChild(f.c);e(f.c,{position:"relative",top:"0",left:"0"});if(a.download!=""&&a.download!=0)Yb("menu_download",a.download==1?a.file:a.download,b,d);a.link!=""&&Yb("menu_link",a.link,b,d);e(U,{color:"#ffffff",font:"10px Verdana"});U.style.zIndex=6;Yb("menu_code",
a.iframeurl!=""?'<iframe title="sample" width="'+a.w+'" height="'+a.h+'" src="'+a.iframeurl+'" frameborder="0" allowfullscreen></iframe>':a.embedcode!=""?a.embedcode:"",b,d);d=document.createElement("div");d.innerHTML=" x ";U.appendChild(d);e(d,{position:"absolute",top:3,left:b-25,cursor:"pointer"});d.onclick=jd;W.c.appendChild(U);Cc()}}function Yb(b,d,f){var g=document.createElement("div");g.innerHTML=a.lang2[b];U.appendChild(g);e(g,{position:"absolute",top:5+Bb*45,left:15});b=new za({w:f-
20,h:23,o:5,bgc:"ffffff"});e(b.c,{position:"absolute",top:22+Bb*45,left:10});U.appendChild(b.c);b=document.createElement("input");U.appendChild(b);e(b,{position:"absolute",outline:"none",font:"10px Verdana",top:25+Bb*45,left:13,width:f-28,height:15,color:"#000000",border:0,background:"none"});b.value=d;b.onclick=function(){this.select()};Bb++}function jd(){U&&e(U,{display:"none"})}function Cc(){if(U)e(U,{position:"absolute",top:((t?a.sh:a.stageheight)-a.menu_h)/2,left:((t?a.sw:a.stagewidth)-a.menu_w)/
2})}function tb(){if(H&&i.currentTime>0&&1)if(!Hb&&a.cntrlhide==1||t){clearInterval(Ea);e(s,{visibility:"hidden"});n&&e(n,{visibility:"hidden"});Gb=true}}function oc(){clearInterval(Ea);e(s,{visibility:"visible"});n&&e(n,{visibility:"visible"});Gb=false}function hc(){a.scrn_w=a.sw-a.padding*2;a.scrn_h=a.ph-a.padding*2-(a.cntrlout==1?a.cntrloutheight:0)}function Nb(){if(a.sw!=0&&a.sh!=0&&!a.youtube){a.ph=a.ph!=a.sh?a.stg.offsetHeight-(a.sh-a.ph):a.stg.offsetHeight;a.sh=a.stg.offsetHeight;a.sw=a.stg.offsetWidth;
if(!t){a.stagewidth=a.sw;a.stageheight=a.sh}hc();var b=(!t?a.ph:a.sh)-a.padding*2-(a.cntrlout==1?a.cntrloutheight:0);if(!t){e(W.canvas,{width:a.sw,height:a.sh});e(Ka.canvas,{width:a.sw-a.padding*2,height:b})}if(X){e(alrt_bg.canvas,{width:""+a.sw-(t?0:a.padding*2)+"px"});if(a.padding>0)e(X,{top:t?0:a.padding,left:t?0:a.padding})}e(Ga,{width:""+a.sw-(!t?a.padding*2:0)+"px",height:""+b+"px"});e(i,{width:""+a.sw-(!t?a.padding*2:0)+"px",height:""+b+"px"});a.o>0&&O();e(s,{top:(!t?a.ph:a.sh)-a.cntrloutheight-
(a.cntrlout==1?a.padding/2:0)-(!t?a.padding:0),left:!t?a.padding:0});if(Na){e(Na.canvas,{width:""+(a.sw-(t?0:a.padding*2))+"px",height:""+a.cntrloutheight+"px"});pb&&e(pb.canvas,{width:""+(a.sw-(t?0:a.padding*2))+"px"})}ea&&e(ea.c,{left:a.sw/2-ea.w/2,top:(!t?a.ph:a.sh)/2-ea.h/2});Ec();n&&P()}}function Fc(){Zb(0)}function Gc(){if(i.muted){i.muted=false;ba.c.style.display="block";fa.c.style.display="none";Wb=false}else{i.muted=true;fa.c.style.display="block";ba.c.style.display="none";Wb=true}}function Kb(){if(!H){ma&&
ab&&e(s,{visibility:"hidden"});if(Q!=undefined){Q.c.style.display="none";ha.c.style.display="block"}H=true;if(a.cntrlhide==1&&a.cntrlout==0||t){clearInterval(Ea);Ea=setInterval(tb,3E3)}if(a.comment!=undefined&&a.comment!=""&&a.showname==1)a.shownameliketip==1?a.shownameonstop==1&&Hide(ta):Hide(X);a.plplace=="inside"&&n&&Hide(n);ea&&(ea.c.style.display="none");J("play");if(!Ub){J("start");Ub=Ua=true}}}function Lb(){if(H){if(Q!=undefined){Q.c.style.display="block";ha.c.style.display="none"}H=false;
if(a.comment!=undefined&&a.comment!=""&&a.showname==1)a.shownameliketip==1?Show(ta):Show(X);ea&&(ea.c.style.display="block");J("pause")}}function J(b,d){if(a.debug==1)document.getElementById("tracer")&&(document.getElementById("tracer").innerHTML=b+"<br>"+document.getElementById("tracer").innerHTML);a.events[b]=d;var f=document.createEvent("Events");f.initEvent(b,true,true);a.stg.dispatchEvent(f)}function qc(){Bc=true;if(a.start>0){i.currentTime=a.start;a.start=0}}function rc(){if(u)a.ivolbar_v?gb(i.volume*
u.h):gb(i.volume*u.w);ja&&gb(i.volume*a.cntrlvolbar.w)}function pc(){if(i.ended)if(a.radio==1){nb();ca()}else{Fc();a.plplay==1&&D?Sb():vc()}}function Yc(){if(a.stg.offsetWidth!=a.sw||a.stg.offsetHeight!=a.sh)Nb()}function hd(){if(i!=undefined){xa&&(xa.c.innerHTML=Cb(i.currentTime));ka&&(ka.c.innerHTML=Cb(!i.duration||i.duration=="Infinity"?0:i.duration));loaded=0;var b=false;if(Db){if(i.buffered){var d=i.buffered;if(d.length>0){for(var f=0;f<d.length;f++){var g=d.start(f)/i.duration*K.w,x=d.end(f)/
i.duration*K.w;ma&&(g=0);if(i.duration>0)(Math.ceil(i.duration)==d.end(f)||Math.floor(i.duration)==d.end(f))&&(x=K.w);if(Eb[f])if(x-g!=Eb[f]){$b[f]++;if($b[f]>3){Hc=f;$a=g}}else $b[f]=0;Eb[f]=x-g}d=Math.floor(Eb[Hc]);f=Math.round(i.currentTime/i.duration*K.w-$a);e(ua.canvas,{left:$a+"px",width:""+d+"px"});!z.active&&e(ga.canvas,{left:$a+"px",width:""+(d>=f?f:0)+"px"})}else b=true}else b=true;if(b){f=Math.round(i.currentTime/i.duration*K.w);!z.active&&e(ga.canvas,{width:""+f+"px"})}if(Va&&!Mb)if(i.currentTime>
0){Ic();Mb=true}if(H&&i.currentTime==Jc)if(ac>5){Va||ya&&e(ya.c,{display:"block"});Va=true}else ac++;else{if(Va){Va=false;Ic()}ac=0}Jc=i.currentTime}if(H&&a.reloader==1){if(i.currentTime==a.reloadertime){a.reloadercounter++;if(a.reloadercounter>50){a.reloadercounter=0;nb();ca()}}else a.reloadercounter=0;a.reloadertime=i.currentTime}if(a.eventtime!=0)if(H)if(is_array(a.eventtime))for(f=0;f<a.eventtime.length;f++)a.events["time"+a.eventtime[f]]||i.currentTime>a.eventtime[f]&&J("time"+a.eventtime[f],
i.currentTime);else a.events.time||i.currentTime>a.eventtime&&J("time",i.currentTime);if(a.eventplayed!=0)if(H)if(is_array(a.eventplayed))for(f=0;f<a.eventplayed.length;f++)a.events["played"+a.eventplayed[f]]||i.currentTime/i.duration*100>a.eventplayed[f]&&J("played"+a.eventplayed[f],i.currentTime/i.duration*100);else a.events.played||i.currentTime/i.duration*100>a.eventplayed&&J("played",i.currentTime/i.duration*100);z&&Wa&&hb(Wa,z,ga,K,bc)}if(t&&!fb)if(a.iframe!="")(window.parent.innerWidth!=a.stg.offsetWidth||
window.parent.innerHeight!=a.stg.offsetHeight)&&ob("re");else(window.innerWidth!=a.stg.offsetWidth||window.innerHeight!=a.stg.offsetHeight)&&ob("re")}function vc(){if(i)$a>0?nb():i.pause();if(a.menuauto==1&&la){var b=false;if(U)U.style.visible!="none"&&(b=true);b||Dc()}J("end")}function kc(b){var d="normal";if(b=="i"||b=="b><i")d="italic";return d}function lc(b){var d="normal";if(b=="b"||b=="b><i")d="bold";return d}function Ic(){ya&&e(ya.c,{display:"none"});Va=false}function Cb(b){b=Math.round(b);
minutes=Math.floor(b/60);minutes=minutes>=10?minutes:minutes;b=Math.floor(b%60);b=b>=10?b:"0"+b;return minutes+":"+b}function Wc(){s=document.createElement("div");Oa=[];Ia=0;W.c.appendChild(s);e(s,{position:"absolute",top:a.scrn_h-(a.cntrlout==1?-a.padding/2:a.cntrloutheight)+a.padding,left:a.padding});s.style.zIndex=5;Kc();r=a.controls.split(",");L=0;o=[];v=[];for(var b=0;b<r.length;b++){if(r[b]=="play"){Q=new A("play",20,20);s.appendChild(Q.c);e(Q.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-
Q.h)/2});Q.c.onclick=ca;a.tip==1&&Q.s.notip==0&&(Q.c.title=Q.s.play_tip?Q.s.play_tip:a.lang2.play);ha=new A("pause",20,20,"","play");s.appendChild(ha.c);e(ha.c,{cursor:"pointer",display:"none",position:"absolute",top:(a.cntrloutheight-ha.h)/2});ha.c.onclick=ca;o[b]=ha.w+a.cntrlmargin;L+=o[b]+Q.s.marginleft+Q.s.marginright;v[b]=Q;a.tip==1&&ha.s.notip==0&&(ha.c.title=ha.s.pause_tip?ha.s.pause_tip:a.lang2.pause)}if(r[b]=="back"){oa=new A("back",30,20);s.appendChild(oa.c);e(oa.c,{cursor:"pointer",position:"absolute",
top:(a.cntrloutheight-oa.h)/2});oa.c.onclick=Fc;o[b]=oa.w+a.cntrlmargin;L+=o[b]+oa.s.marginleft+oa.s.marginright;v[b]=oa;a.tip==1&&oa.s.notip==0&&(oa.c.title=oa.s.tip?oa.s.tip:a.lang2.back)}if(r[b]=="stop"){pa=new A("stop",20,20);s.appendChild(pa.c);e(pa.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-pa.h)/2});pa.c.onclick=nb;o[b]=pa.w+a.cntrlmargin;L+=o[b]+pa.s.marginleft+pa.s.marginright;v[b]=pa;a.tip==1&&pa.s.notip==0&&(pa.c.title=pa.s.tip?pa.s.tip:a.lang2.stop)}if(r[b]=="download"){qa=
new A("download",20,20);s.appendChild(qa.c);e(qa.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-qa.h)/2});qa.c.onclick=xc;o[b]=qa.w+a.cntrlmargin;L+=o[b]+qa.s.marginleft+qa.s.marginright;v[b]=qa;a.tip==1&&qa.s.notip==0&&(qa.c.title=qa.s.tip?qa.s.tip:a.lang2.download)}if(r[b]=="next"){T=new A("next",20,20);s.appendChild(T.c);e(T.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-T.h)/2});T.c.onclick=ed;o[b]=T.w+a.cntrlmargin;L+=o[b]+T.s.marginleft+T.s.marginright;v[b]=T;a.tip==
1&&T.s.notip==0&&(T.c.title=T.s.tip?T.s.tip:a.lang2.next)}if(r[b]=="prev"){G=new A("prev",20,20);s.appendChild(G.c);e(G.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-G.h)/2});a.random==0&&e(G.c,{opacity:0.3,filter:"alpha(opacity=30)",cursor:"default"});G.c.onclick=fd;o[b]=G.w+a.cntrlmargin;L+=o[b]+G.s.marginleft+G.s.marginright;v[b]=G;a.tip==1&&G.s.notip==0&&(G.c.title=G.s.tip?G.s.tip:a.lang2.prev)}if(r[b]=="time_play"){xa=new A("time_play",30,20);s.appendChild(xa.c);e(xa.c,{cursor:"default",
position:"absolute",top:(a.cntrloutheight-xa.h)/2+3+xa.s.margintop*1-xa.s.marginbottom*1,"white-space":"nowrap"});o[b]=xa.w+a.cntrlmargin;L+=o[b]+xa.s.marginleft+xa.s.marginright;v[b]=xa}if(r[b]=="time_all"){ka=new A("time_all",30,20);s.appendChild(ka.c);e(ka.c,{cursor:"default",position:"absolute",top:(a.cntrloutheight-ka.h)/2+3+ka.s.margintop*1-ka.s.marginbottom*1,"white-space":"nowrap"});o[b]=ka.w+a.cntrlmargin;L+=o[b]+ka.s.marginleft+ka.s.marginright;v[b]=ka}if(r[b]=="|"){Oa[Ia]=new A("separator",
5,20);s.appendChild(Oa[Ia].c);e(Oa[Ia].c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-Oa[Ia].h)/2});o[b]=Oa[Ia].w+a.cntrlmargin;L+=o[b]+Oa[Ia].s.marginleft+Oa[Ia].s.marginright;v[b]=Oa[Ia];Ia++}if(r[b]=="run_line"){var d=Lc("run");Wa=document.createElement("div");s.appendChild(Wa);e(Wa,{cursor:"pointer",position:"absolute",left:0,top:0,"background-color":"#"+d.color,width:d.w+"px",height:d.h+"px","border-radius":d.w*d.o+"px",opacity:d.alpha,filter:"alpha(opacity="+d.alpha*100+")"});
bc=d.position}if(r[b]=="run_volume"){d=Lc("run_volume");M=document.createElement("div");s.appendChild(M);e(M,{cursor:"pointer",position:"absolute",left:0,top:0,"background-color":"#"+d.color,width:d.w+"px",height:d.h+"px","border-radius":d.w*d.o+"px",opacity:d.alpha,filter:"alpha(opacity="+d.alpha*100+")"});qb=d.position;a.ivolbar_v&&Hide(M)}if(r[b]=="sound"){r[b]="volume";a.cntrl_volume=a.cntrl_sound}if(r[b]=="volume"||r[b]=="volbarline_v"){ba=new A("volume",20,20);s.appendChild(ba.c);e(ba.c,{cursor:"pointer",
position:"absolute",top:(a.cntrloutheight-ba.h)/2});ba.c.onclick=Gc;fa=new A("volume_mute",20,20,"","volume");s.appendChild(fa.c);e(fa.c,{display:"none",cursor:"pointer",position:"absolute",top:(a.cntrloutheight-fa.h)/2});o[b]=fa.w+a.cntrlmargin;L+=o[b]+fa.s.marginleft+fa.s.marginright;fa.c.onclick=Gc;v[b]=ba;a.tip==1&&ba.s.notip==0&&(ba.c.title=ba.s.tip?ba.s.tip:a.lang2.volume);if(r[b]=="volbarline_v"){a.ivolbar_v=true;m=document.createElement("div");s.appendChild(m);a.cntrl_volbarline_v.bg=0;e(m,
{cursor:"pointer",position:"absolute",top:0});u=new A("volbarline_v",a.cntrl_volbarline_v.w?a.cntrl_volbarline_v.w:a.cntrlvolbarline_v.w,a.cntrl_volbarline_v.h?a.cntrl_volbarline_v.h:a.cntrlvolbarline_v.h,"all");m.appendChild(u.c);m.active=false;e(m,{display:"none",cursor:"pointer",position:"absolute",top:a.cntrloutheight-u.h-10});e(u.c,{opacity:u.s.all_a,position:"absolute",top:0,left:0});V=new A("volbarline_v",a.cntrl_volbarline_v.w?a.cntrl_volbarline_v.w:a.cntrlvolbarline_v.w,a.cntrl_volbarline_v.h?
a.cntrl_volbarline_v.h:a.cntrlvolbarline_v.h,"load");m.appendChild(V.c);e(V.c,{opacity:V.s.play_a,position:"absolute",top:0,left:0});e(m,{cursor:"pointer",position:"absolute",top:-u.h});e(V.canvas,{height:u.h*a.volume,top:u.h-u.h*a.volume});m.onmousedown=function(g){m.active=true;if(!g)g=window.event;Mc(g)};m.onmousemove=function(g){if(!g)g=window.event;Mc(g)};m.onmouseup=function(){m.active=false};m.onmouseover=function(){m.over=true};m.onmouseout=function(){m.over=false};fa.c.onmouseout=ba.c.onmouseover=
function(){e(m,{display:"block"});if(M){e(M,{display:"block"});hb(M,m,V,u,qb)}m.over=true};fa.c.onmouseover=ba.c.onmouseover=function(){e(m,{display:"block"});if(M){e(M,{display:"block"});hb(M,m,V,u,qb)}m.over=true};fa.c.onmouseout=ba.c.onmouseout=kd;m.style.zIndex=7;M&&Hide(M)}}if(r[b]=="tune"){r[b]="volbarline";a.cntrl_volbarline=a.cntrl_tune}if(r[b]=="tune"){r[b]="volbarline";a.cntrl_volbarline=a.cntrl_tune}if(r[b]=="volbarline"){m=document.createElement("div");s.appendChild(m);u=new A("volbarline",
a.cntrl_volbarline.w?a.cntrl_volbarline.w:a.cntrlvolbarline.w,20,"all");m.appendChild(u.c);m.active=false;e(u.c,{opacity:u.s.all_a,position:"absolute",top:0,left:0});V=new A("volbarline",a.cntrl_volbarline.w?a.cntrl_volbarline.w:a.cntrlvolbarline.w,20,"load");m.appendChild(V.c);e(V.c,{opacity:V.s.play_a,position:"absolute",top:0,left:0});e(m,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-u.h)/2});o[b]=u.w+a.cntrlmargin+5;L+=o[b]+u.s.marginleft+u.s.marginright;e(V.canvas,{width:u.w*a.volume});
m.onmousedown=function(g){m.active=true;if(!g)g=window.event;Nc(g)};m.onmousemove=function(g){if(!g)g=window.event;Nc(g)};m.onmouseup=function(){m.active=false};v[b]=m}if(r[b]=="volbar"){ja=document.createElement("div");s.appendChild(ja);Ja=[];a.cntrl_volbar.all_a&&(a.cntrlvolbar.all_a=a.cntrl_volbar.all_a);a.cntrl_volbar.play_a&&(a.cntrlvolbar.play_a=a.cntrl_volbar.play_a);if(a.cntrl_volbar.icon){if(a.cntrl_volbar.icon==1){a.cntrlvolbar.n=10;a.cntrlvolbar.bar=1}if(a.cntrl_volbar.icon==2){a.cntrlvolbar.n=
5;a.cntrlvolbar.bar=0}if(a.cntrl_volbar.icon==3){a.cntrlvolbar.n=10;a.cntrlvolbar.bar=0}}a.cntrl_volbar.n&&(a.cntrlvolbar.n=a.cntrl_volbar.n);a.cntrl_volbar.bar&&(a.cntrlvolbar.bar=a.cntrl_volbar.bar);a.cntrl_volbar.scale&&(a.cntrlvolbar.scale=a.cntrl_volbar.scale);a.cntrlvolbar.w=a.cntrlvolbar.n*5*a.cntrlvolbar.scale;a.cntrlvolbar.h=10*a.cntrlvolbar.scale;for(vb=0;vb<a.cntrlvolbar.n;vb++){var f=a.cntrlvolbar.bar==1?10/a.cntrlvolbar.n*(vb+1):10*a.cntrlvolbar.scale;Ja[vb]=new A("volbar",3*a.cntrlvolbar.scale,
f);ja.appendChild(Ja[vb].c);e(Ja[vb].c,{position:"absolute",top:10*a.cntrlvolbar.scale-f*a.cntrlvolbar.scale,left:vb*5*a.cntrlvolbar.scale+10*(a.cntrlvolbar.scale-1),opacity:a.cntrlvolbar.all_a});if(a.cntrl_volbar.bar==1){Ja[vb].c.onmouseover=function(){e(this,{top:f-1})};Ja[vb].c.onmouseout=function(){e(this,{top:f})}}}ja.onmousedown=function(g){ja.active=true;if(!g)g=window.event;Oc(g)};ja.onmousemove=function(g){if(!g)g=window.event;Oc(g)};ja.onmouseup=function(){ja.active=false};e(ja,{cursor:"pointer",
position:"absolute",top:(a.cntrloutheight-10*a.cntrlvolbar.scale)/2,width:a.cntrlvolbar.w,height:a.cntrlvolbar.h});o[b]=(a.cntrlvolbar.n+1)*5+a.cntrlmargin;L+=o[b]+(a.cntrlvolbar.marginleft?a.cntrlvolbar.marginleft:0)+(a.cntrlvolbar.marginright?a.cntrlvolbar.marginright:0);v[b]=ja}if(r[b]=="full"){R=new A("full",20,20);s.appendChild(R.c);e(R.c,{cursor:"pointer",position:"absolute",top:Math.floor((a.cntrloutheight-R.h)/2)});o[b]=R.w+a.cntrlmargin;R.c.onclick=ob;Ha=new A("full_back",20,20,"","full");
s.appendChild(Ha.c);e(Ha.c,{cursor:"pointer",display:"none",position:"absolute",top:(a.cntrloutheight-Ha.h)/2});Ha.c.onclick=ob;o[b]=R.w+a.cntrlmargin;L+=o[b]+R.s.marginleft+R.s.marginright;v[b]=R;a.tip==1&&R.s.notip==0&&(R.c.title=R.s.tip?R.s.tip:a.lang2.full);a.tip==1&&Ha.s.notip==0&&(Ha.c.title=R.s.tip_off?R.s.tip_off:a.lang2.full_back)}if(r[b]=="hd"&&a.hd)if(a.hd.indexOf("::")>-1){q=new A("hd",20,20);s.appendChild(q.c);e(q.c,{cursor:"pointer",display:a.hd1==1?"none":"block",position:"absolute",
top:Math.floor((a.cntrloutheight-q.h)/2)});q.s.icon2&&q.s.icon==q.s.icon2&&e(q.c,{opacity:q.s.alpha0});o[b]=q.w+a.cntrlmargin;q.c.onclick=Xb;L+=o[b]+q.s.marginleft+q.s.marginright;v[b]=q;a.tip==1&&q.s.notip==0&&(q.c.title=q.s.tip?q.s.tip:a.lang2.hd);ia=new A("hd1",20,20,"","hd");s.appendChild(ia.c);e(ia.c,{cursor:"pointer",display:a.hd1==1?"block":"none",position:"absolute",top:Math.floor((a.cntrloutheight-ia.h)/2)});ia.c.onclick=Xb;a.tip==1&&ia.s.notip==0&&(ia.c.title=q.s.tip_off?q.s.tip_off:a.lang2.hd)}else if(a.hd.indexOf(",")>
-1){a.hda=a.hd.split(",");if(a.hdsw==60){for(d=a.hdsw=0;d<a.hda.length;d++)a.hdsw<cc(a.hda[d],12).width&&(a.hdsw=cc(a.hda[d],12).width);a.hdsw+=22}q=new A("hdselect",a.hdsw,20,"","hd");s.appendChild(q.c);e(q.c,{cursor:"pointer",position:"absolute",top:Math.floor((a.cntrloutheight-q.h)/2)});o[b]=q.w+a.cntrlmargin;q.c.onclick=Xb;L+=o[b]+q.s.marginleft+q.s.marginright;v[b]=q;a.tip==1&&q.s.notip==0&&(q.c.title=q.s.tip?q.s.tip:a.lang2.hd);aa=document.createElement("select");q.c.appendChild(aa);yc();e(aa,
{position:"absolute",margin:"1px 0px 0px -5px",opacity:0,cursor:"pointer"});aa.onchange=id}if(r[b]=="playlist")if(a.pl!=""){ra=new A("playlist",20,20);s.appendChild(ra.c);e(ra.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-ra.h)/2});ra.c.onclick=wa;o[b]=ra.w+a.cntrlmargin;L+=o[b]+ra.s.marginleft+ra.s.marginright;v[b]=ra;a.tip==1&&ra.s.notip==0&&(ra.c.title=ra.s.tip?ra.s.tip:a.lang2.list)}if(r[b]=="menu"){la=new A("menu",20,20);s.appendChild(la.c);e(la.c,{cursor:"pointer",position:"absolute",
top:(a.cntrloutheight-la.h)/2});la.c.onclick=Dc;o[b]=la.w+a.cntrlmargin;L+=o[b]+la.s.marginleft+la.s.marginright;v[b]=la;a.tip==1&&la.s.notip==0&&(la.c.title=la.s.tip?la.s.tip:a.lang2.menu)}if(r[b]=="buffer")if(z){ya=new A("buffer",30,14);s.appendChild(ya.c);e(ya.c,{cursor:"default",position:"absolute","white-space":"nowrap"});v[b]=ya;o[b]=0;ya.c.innerHTML=a.lang2.loading}if(r[b]=="start")if(!(Ba.m=="video"&&ma&&ab)){ea=new A("start",20,20);W.c.appendChild(ea.c);e(ea.c,{cursor:"pointer",position:"absolute",
top:a.ph/2-ea.h/2,left:a.sw/2-ea.w/2,"z-index":5});ea.c.onclick=ca;ea.c.style.zIndex=7}if(r[b]=="space"){Xa=document.createElement("div");s.appendChild(Xa);e(Xa,{position:"absolute",top:(a.cntrloutheight-20)/2});v[b]=Xa}if(r[b]=="line"){Db=true;z=document.createElement("div");s.appendChild(z);K=new A("line",20,20,"all");z.appendChild(K.c);z.active=false;e(K.c,{opacity:K.s.all_a,position:"absolute",top:0,left:0});ua=new A("line",20,20,"load");z.appendChild(ua.c);e(ua.c,{opacity:ua.s.load_a,position:"absolute",
top:0,left:0});ga=new A("line",20,20,"play");z.appendChild(ga.c);e(ga.c,{opacity:ga.s.play_a,position:"absolute",top:0,left:0});e(z,{position:"absolute",top:(a.cntrloutheight-K.h)/2,cursor:"pointer"});e(ga.canvas,{width:"0"});e(ua.canvas,{width:"0"});z.onmousedown=function(g){if(Ua){z.active=true;if(!g)g=window.event;Pc(g)}};z.onmouseup=function(g){if(Ua){Pc(g);H&&i.play();z.active=false}};v[b]=z}}ka&&a.time>0&&(ka.c.innerHTML=Cb(a.time));Ec()}function Kc(){Na&&$("#uibg").remove();if(a.cntrlout!=
1&&a.cntrlbg==1){a.cntrlbgcolor.indexOf("|")==-1&&(a.cntrlbgcolor=a.cntrlbgcolor+"|"+a.cntrlbgcolor);Na=new za({w:a.scrn_w,h:a.cntrloutheight,o:a.o/2-a.padding,onotop:1,bgc:a.cntrlbgcolor,bga1:a.cntrlbgalpha1,bga2:a.cntrlbgalpha2,o:a.padding>0?a.o/2:0})}if(a.cntrlout==1&&a.padding==0){a.cntrlbgcolor.indexOf("|")==-1&&(a.cntrlbgcolor=a.cntrlbgcolor+"|"+a.cntrlbgcolor);Na=new za({w:a.scrn_w,h:a.cntrloutheight,o:a.o/2-a.padding,onotop:1,bgc:a.bodycolor,bga1:1,bga2:1,o:a.padding>0?a.o/2:0})}if(Na){Na.c.setAttribute("id",
"uibg");s.appendChild(Na.c);if(a.glass==1){pb=new za({w:a.scrn_w,h:a.cntrloutheight/2,o:a.o/2-a.padding,bgc:a.glasscolor.indexOf("|")==-1?a.glasscolor+"|"+a.glasscolor:a.glasscolor,bga1:a.glassalpha1,bga2:a.glassalpha2});Na.c.appendChild(pb.c);e(pb.canvas,{position:"absolute",top:0,left:0,height:a.cntrloutheight/2,width:a.scrn_w})}}}function Ec(){var b=a.sw-L-a.cntrlendmargin*2-a.cntrlmargin*2-(!t?a.padding*2:0)-a.cntrlmarginleft-a.cntrlmarginright,d=a.cntrlendmargin+a.cntrlmarginleft,f,g;for(j=0;j<
r.length;j++)if(v[j]){g=f=0;if(v[j].s){f=v[j].s.marginleft*1;g=v[j].s.marginright*1}if(r[j]=="volbarline"){f=a.cntrl_volbarline.marginleft?a.cntrl_volbarline.marginleft:0;g=a.cntrl_volbarline.marginright?a.cntrl_volbarline.marginright:0}d+=f;b-=f+g;if(v[j]!=z&&v[j]!=Xa){e(v[j].c!=undefined?v[j].c:v[j],{left:d});r[j]=="play"&&e(ha.c,{left:d});r[j]=="full"&&e(Ha.c,{left:d});r[j]=="hd"&&ia&&e(ia.c,{left:d});if(r[j]=="volume"||r[j]=="volbarline_v")e(fa.c,{left:d,opacity:fa.s.icon==2?0.5:1});r[j]=="volbarline_v"&&
e(m,{left:d+ba.w/2-u.w/2});d+=Math.floor(o[j]+g)}else{if(v[j]==z)if(a.cntrl_line.full==1){e(z,{left:0,top:-(a.cntrl_line.marginbottom?a.cntrl_line.marginbottom:0)});K.w=a.sw;ga.w=a.sw;ua.w=a.sw;e(K.canvas,{width:""+a.sw+"px"})}else{e(z,{left:d+3+(a.cntrl_line.marginleft?a.cntrl_line.marginleft:0)});K.w=b;ga.w=b;ua.w=b;e(K.canvas,{width:""+b+"px"});o[j]=b;d+=Math.floor(o[j]+a.cntrlmargin+6+(a.cntrl_line.marginright?a.cntrl_line.marginright:0)+(a.cntrl_line.marginleft?a.cntrl_line.marginleft:0))}if(v[j]==
Xa){e(Xa,{left:d+3,width:""+b+"px"});o[j]=b;d+=Math.floor(o[j]+a.cntrlmargin+6)}}if(ya){e(ya.c,{left:z.offsetLeft});e(ya.c,{top:z.offsetTop-9})}}z&&Wa&&hb(Wa,z,ga,K,bc);m&&M&&hb(M,m,V,u,qb)}function hb(b,d,f,g,x){if(b==M&&a.ivolbar_v){f=-f.canvas.offsetHeight-(x>0?b.offsetHeight:b.offsetHeight/2);f<d.offsetTop&&(f=d.offsetTop);f>0+b.offsetHeight&&(f=b.offsetHeight);e(b,{top:f+"px",left:""+(d.offsetLeft+g.s.w/2-b.offsetWidth/2-(x=="1"?b.offsetWidth/2+g.s.w/2:0)+(x=="2"?b.offsetWidth/2+g.s.w/2:0))+
"px"})}else{f=f.canvas.offsetWidth+d.offsetLeft-(x>0?b.offsetWidth:b.offsetWidth/2);f<d.offsetLeft&&(f=d.offsetLeft);f>d.offsetLeft+g.canvas.offsetWidth-b.offsetWidth&&(f=d.offsetLeft+g.canvas.offsetWidth-b.offsetWidth);e(b,{left:f+"px",top:""+(d.offsetTop+10-b.offsetHeight/2-(x=="1"?b.offsetHeight/2+g.s.h/2:0)+(x=="2"?b.offsetHeight/2+g.s.h/2:0))+"px"})}}function Lc(b){var d=[];for(var f in a.cntrlstyle)d[f]=a.cntrlstyle[f];for(f in a["cntrl"+b])d[f]=a["cntrl"+b][f];for(f in a["cntrl_"+b])d[f]=a["cntrl_"+
b][f];return d}function dc(b){var d=0;if(b.offsetParent)for(d=b.offsetLeft;b=b.offsetParent;)d+=b.offsetLeft;return d}function kd(){m.over=false;setTimeout(Qc,1E3)}function Qc(){if(m.over)setTimeout(Qc,1E3);else{e(m,{display:"none"});M&&e(M,{display:"none"})}}function Nc(b){if(m.active){if(!b)b=window.event;b=b.pageX-dc(m);gb(b)}}function Mc(b){if(m.active&&a.ivolbar_v){if(!b)b=window.event;b=b.pageY;var d=m,f=0;if(d.offsetParent)for(f=d.offsetTop;d=d.offsetParent;)f+=d.offsetTop;gb(u.h-(b-f))}}function Oc(b){if(ja.active){if(!b)b=
window.event;b=b.pageX-dc(ja);gb(b)}}function gb(b){if(V)if(a.ivolbar_v){Ba=Math.max(0,Math.min(1,b/u.h));e(V.canvas,{height:""+u.h*Ba+"px",top:u.h-u.h*Ba})}else{Ba=Math.max(0,Math.min(1,b/u.w));e(V.canvas,{width:""+b+"px"})}if(ja)for(vb=0;vb<Ja.length;vb++){Ba=Math.max(0,Math.min(1,b/a.cntrlvolbar.w));vb<Math.ceil(Ja.length*Ba)?e(Ja[vb].c,{opacity:a.cntrlvolbar.play_a}):e(Ja[vb].c,{opacity:a.cntrlvolbar.all_a})}Vb(Ba);m&&M&&hb(M,m,V,u,qb)}function Vb(b){i.volume=b;document.cookie="uppodhtml5_volume="+
b+"; path=/; expires=Mon, 01-Jan-2099 00:00:00 GMT"}function Pc(b){b=b.pageX-dc(z);z.active&&Zb(b);if(a.tip==1&&ua.s.notip==0&&i.duration){b=Cb(b/K.w*i.duration);K.c.title=ua.c.title=ga.c.title=b}}function Zb(b){if(i.duration&&Db){i.currentTime=Math.max(0,Math.min(1,b/K.w))*i.duration;if(Db&&b==0){e(ua.canvas,{left:0});e(ga.canvas,{left:0})}}}function A(b,d,f,g,x){this.c=document.createElement("div");this.s={};x==undefined&&(x=b);for(var Ca in a.cntrlstyle)this.s[Ca]=a.cntrlstyle[Ca];if(b=="hdselect")for(Ca in a.cntrlhdselect)this.s[Ca]=
a.cntrlhdselect[Ca];for(Ca in a["cntrl"+x])this.s[Ca]=a["cntrl"+x][Ca];for(Ca in a["cntrl_"+x])this.s[Ca]=a["cntrl_"+x][Ca];this.s.scale&&(this.s.scale*=a.cntrlsize);if(b=="hd"||b=="hd1")d=cc(b=="hd1"?this.s.icon2:this.s.icon,12).width+6*this.s.scale;if(g=="all")this.s.color=this.s.color_all;if(g=="load")this.s.color=this.s.color_load;if(g=="play")this.s.color=this.s.color_play;if(b=="start")if(this.s.bg==1)if(f*this.s.scale2>this.s.bg_h||d*this.s.scale2>this.s.bg_w){f*=this.s.scale2;d*=this.s.scale2}else{f=
this.s.bg_h;d=this.s.bg_w}else{f*=this.s.scale2;d*=this.s.scale2}this.canvas=document.createElement("canvas");this.canvas.height=f*this.s.scale;this.canvas.width=d*this.s.scale;this.ctx=this.canvas.getContext("2d");if(this.s.bg==1&&b.indexOf("line")==-1){g=new za({w:d*this.s.scale,h:f*this.s.scale,o:this.s.bg_o>1?this.s.bg_o/2:f/2*this.s.bg_o*this.s.scale,bgc:this.s.bgcolor,sh:this.s.bg_sh,sh_c:this.s.sh_c,sh_a:this.s.sh_a});this.c.appendChild(g.c);this.s.bg_a&&e(g.canvas,{opacity:this.s.bg_a,filter:"alpha(opacity="+
this.s.bg_a*100+")"});e(g.canvas,{position:"absolute",top:this.s.margintop*1-this.s.marginbottom*1,left:b!="start"?(1-this.s.scale)*d/2:0});if(this.s.bg_gl==1){g=new za({w:d*this.s.scale,h:f*this.s.scale,o:f/2*this.s.bg_o*this.s.scale,bgc:this.s.gl_color+"|"+this.s.gl_color,bga1:this.s.gl_a1,bga2:this.s.gl_a2});this.c.appendChild(g.c);e(g.canvas,{position:"absolute",top:0,left:(1-this.s.scale)*d/2+f*this.s.scale/8,height:f*this.s.scale/2,width:d*this.s.scale-f*this.s.scale/4})}}this.fstyle="";if(this.s.color.indexOf("|")>
0){g=this.s.color.split("|");x=this.ctx.createLinearGradient(0,0,0,f*this.s.scale);for(this.j=0;this.j<g.length-1;this.j++)x.addColorStop(this.j/(g.length-1),"#"+g[this.j]);x.addColorStop(1,"#"+g[g.length-1]);this.fstyle=x}else this.fstyle="#"+this.s.color;this.ctx.fillStyle=this.fstyle;if(this.s.sh==1){this.ctx.shadowOffsetX=0;this.ctx.shadowOffsetY=this.s.sh_under==1?2:0;this.ctx.shadowBlur=5;this.ctx.shadowColor="rgba("+HTR("#"+this.s.sh_c)+","+HTG("#"+this.s.sh_c)+","+HTB("#"+this.s.sh_c)+","+
this.s.sh_a+")"}if(b=="play"||b=="start"){g=b=="play"?this.s.scale:this.s.scale2;if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(6*g,4*g);this.ctx.lineTo(16*g,9*g);this.ctx.lineTo(6*g,15*g);this.ctx.lineTo(6*g,4*g);this.ctx.closePath();this.ctx.fill()}if(this.s.icon==1){this.ctx.beginPath();this.ctx.moveTo(6*g,5*g);this.ctx.quadraticCurveTo(6*g,4*g,7*g,4*g);this.ctx.lineTo(15*g,9*g);this.ctx.quadraticCurveTo(16*g,10*g,15*g,11*g);this.ctx.lineTo(7*g,16*g);this.ctx.quadraticCurveTo(6*g,16*g,
6*g,15*g);this.ctx.lineTo(6*g,5*g);this.ctx.closePath();this.ctx.fill()}if(this.s.icon==2){this.ctx.moveTo(6*g,5*g);this.ctx.lineTo(15*g,10*g);this.ctx.lineTo(6*g,15*g);this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=3*g;this.ctx.stroke()}if(this.s.icon==3){this.ctx.beginPath();this.ctx.moveTo(6*g,4*g);this.ctx.lineTo(16*g,10*g);this.ctx.lineTo(6*g,16*g);this.ctx.lineTo(6*g,4*g);this.ctx.lineTo(6*g,5*g);this.ctx.strokeStyle="#"+this.s.color;
this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=1.5*g;this.ctx.stroke()}}if(b=="pause"){if(this.s.icon==0){this.ctx.beginPath();this.ctx.fillRect(6*this.s.scale,5*this.s.scale,3*this.s.scale,10*this.s.scale);this.ctx.fillRect(12*this.s.scale,5*this.s.scale,3*this.s.scale,10*this.s.scale);this.ctx.closePath();this.ctx.fill()}if(this.s.icon>0){this.ctx.beginPath();this.ctx.moveTo(7*this.s.scale,5*this.s.scale);this.ctx.lineTo(7*this.s.scale,15*this.s.scale);this.ctx.moveTo(14*
this.s.scale,5*this.s.scale);this.ctx.lineTo(14*this.s.scale,15*this.s.scale);this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=3*this.s.scale;this.ctx.stroke()}}if(b=="stop"){if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(5*this.s.scale,5*this.s.scale);this.ctx.lineTo(15*this.s.scale,5*this.s.scale);this.ctx.lineTo(15*this.s.scale,15*this.s.scale);this.ctx.lineTo(5*this.s.scale,15*this.s.scale);this.ctx.closePath();this.ctx.lineWidth=
0.1;this.ctx.stroke();this.ctx.fill()}if(this.s.icon==1){this.ctx.beginPath();this.ctx.moveTo(6*this.s.scale,6*this.s.scale);this.ctx.lineTo(14*this.s.scale,15*this.s.scale);this.ctx.lineTo(6*this.s.scale,6*this.s.scale);this.ctx.moveTo(14*this.s.scale,6*this.s.scale);this.ctx.lineTo(6*this.s.scale,15*this.s.scale);this.ctx.lineTo(14*this.s.scale,6*this.s.scale);this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=3*this.s.scale;this.ctx.stroke();
this.ctx.fill()}if(this.s.icon==2){this.ctx.beginPath();this.ctx.moveTo(6*this.s.scale,6*this.s.scale);this.ctx.lineTo(14*this.s.scale,6*this.s.scale);this.ctx.lineTo(14*this.s.scale,14*this.s.scale);this.ctx.lineTo(6*this.s.scale,14*this.s.scale);this.ctx.closePath();this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=4*this.s.scale;this.ctx.stroke();this.ctx.fill()}if(this.s.icon==3){this.ctx.beginPath();this.ctx.lineWidth=1.5*this.s.scale;
this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.strokeStyle="#"+this.s.color;this.ctx.strokeRect(5*this.s.scale,5*this.s.scale,11*this.s.scale,11*this.s.scale);this.ctx.closePath();this.ctx.stroke()}}if(b=="download")if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(8*this.s.scale,4*this.s.scale);this.ctx.lineTo(8*this.s.scale,9*this.s.scale);this.ctx.lineTo(5*this.s.scale,9*this.s.scale);this.ctx.lineTo(10*this.s.scale,16*this.s.scale);this.ctx.lineTo(15*this.s.scale,9*this.s.scale);
this.ctx.lineTo(12*this.s.scale,9*this.s.scale);this.ctx.lineTo(12*this.s.scale,4*this.s.scale);this.ctx.lineTo(8*this.s.scale,4*this.s.scale);this.ctx.closePath();this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.fill()}if(b=="next"){if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(4*this.s.scale,8*this.s.scale);this.ctx.lineTo(9*this.s.scale,9*this.s.scale);this.ctx.lineTo(9*this.s.scale,5*this.s.scale);this.ctx.lineTo(16*this.s.scale,10*this.s.scale);this.ctx.lineTo(9*this.s.scale,15*this.s.scale);
this.ctx.lineTo(9*this.s.scale,12*this.s.scale);this.ctx.lineTo(4*this.s.scale,12*this.s.scale);this.ctx.lineTo(4*this.s.scale,8*this.s.scale);this.ctx.closePath();this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.fill()}if(this.s.icon==1){this.ctx.beginPath();this.ctx.moveTo(7*this.s.scale,3*this.s.scale);this.ctx.lineTo(14*this.s.scale,10*this.s.scale);this.ctx.lineTo(7*this.s.scale,17*this.s.scale);this.ctx.lineTo(6*this.s.scale,16*this.s.scale);this.ctx.lineTo(11*this.s.scale,10*this.s.scale);
this.ctx.lineTo(6*this.s.scale,5*this.s.scale);this.ctx.lineTo(7*this.s.scale,3*this.s.scale);this.ctx.closePath();this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.fill()}}if(b=="prev"){if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(4*this.s.scale,10*this.s.scale);this.ctx.lineTo(11*this.s.scale,5*this.s.scale);this.ctx.lineTo(11*this.s.scale,8*this.s.scale);this.ctx.lineTo(16*this.s.scale,8*this.s.scale);this.ctx.lineTo(16*this.s.scale,12*this.s.scale);this.ctx.lineTo(11*this.s.scale,12*
this.s.scale);this.ctx.lineTo(11*this.s.scale,15*this.s.scale);this.ctx.lineTo(4*this.s.scale,10*this.s.scale);this.ctx.closePath();this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.fill()}if(this.s.icon==1){this.ctx.beginPath();this.ctx.moveTo(12*this.s.scale,3*this.s.scale);this.ctx.lineTo(13*this.s.scale,5*this.s.scale);this.ctx.lineTo(8*this.s.scale,10*this.s.scale);this.ctx.lineTo(13*this.s.scale,16*this.s.scale);this.ctx.lineTo(12*this.s.scale,17*this.s.scale);this.ctx.lineTo(5*this.s.scale,
10*this.s.scale);this.ctx.lineTo(12*this.s.scale,3*this.s.scale);this.ctx.closePath();this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.fill()}}if(b=="back"){if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(4*this.s.scale,10*this.s.scale);this.ctx.lineTo(14*this.s.scale,5*this.s.scale);this.ctx.lineTo(14*this.s.scale,10*this.s.scale);this.ctx.lineTo(24*this.s.scale,5*this.s.scale);this.ctx.lineTo(24*this.s.scale,15*this.s.scale);this.ctx.lineTo(14*this.s.scale,10*this.s.scale);this.ctx.lineTo(14*
this.s.scale,15*this.s.scale);this.ctx.closePath();this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.fill()}if(this.s.icon==1||this.s.icon==2){this.ctx.beginPath();this.ctx.moveTo(5*this.s.scale,10*this.s.scale);this.ctx.lineTo(13*this.s.scale,6*this.s.scale);this.ctx.lineTo(13*this.s.scale,10*this.s.scale);this.ctx.lineTo(23*this.s.scale,5*this.s.scale);this.ctx.lineTo(23*this.s.scale,15*this.s.scale);this.ctx.lineTo(13*this.s.scale,10*this.s.scale);this.ctx.lineTo(13*this.s.scale,15*this.s.scale);
this.ctx.closePath();this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=2*this.s.scale;this.ctx.stroke();this.ctx.fill()}if(this.s.icon==3){this.ctx.beginPath();this.ctx.moveTo(5*this.s.scale,10*this.s.scale);this.ctx.lineTo(15*this.s.scale,4*this.s.scale);this.ctx.lineTo(15*this.s.scale,10*this.s.scale);this.ctx.lineTo(25*this.s.scale,4*this.s.scale);this.ctx.lineTo(25*this.s.scale,16*this.s.scale);this.ctx.lineTo(15*this.s.scale,10*this.s.scale);
this.ctx.lineTo(15*this.s.scale,16*this.s.scale);this.ctx.lineTo(5*this.s.scale,10*this.s.scale);this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=1.5*this.s.scale;this.ctx.stroke()}}if(b=="volume"||b=="volume_mute"){if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(5*this.s.scale,8*this.s.scale);this.ctx.lineTo(9*this.s.scale,8*this.s.scale);this.ctx.lineTo(14*this.s.scale,4*this.s.scale);this.ctx.lineTo(14*this.s.scale,15*this.s.scale);
this.ctx.lineTo(9*this.s.scale,11*this.s.scale);this.ctx.lineTo(5*this.s.scale,11*this.s.scale);this.ctx.lineTo(5*this.s.scale,8*this.s.scale);if(b=="volume"){this.ctx.moveTo(15*this.s.scale,7*this.s.scale);this.ctx.lineTo(16*this.s.scale,7*this.s.scale);this.ctx.lineTo(16*this.s.scale,12*this.s.scale);this.ctx.lineTo(15*this.s.scale,12*this.s.scale);this.ctx.lineTo(15*this.s.scale,7*this.s.scale)}this.ctx.closePath();this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.fill()}if(this.s.icon==1){this.ctx.beginPath();
this.ctx.moveTo(4*this.s.scale,7*this.s.scale);this.ctx.lineTo(6*this.s.scale,7*this.s.scale);this.ctx.lineTo(6*this.s.scale,13*this.s.scale);this.ctx.lineTo(4*this.s.scale,13*this.s.scale);this.ctx.lineTo(4*this.s.scale,7*this.s.scale);this.ctx.moveTo(7*this.s.scale,7*this.s.scale);this.ctx.lineTo(13*this.s.scale,2*this.s.scale);this.ctx.lineTo(13*this.s.scale,17*this.s.scale);this.ctx.lineTo(7*this.s.scale,13*this.s.scale);this.ctx.closePath();if(b=="volume"){this.ctx.moveTo(15*this.s.scale,8*this.s.scale);
this.ctx.arc(15*this.s.scale,10*this.s.scale,4*this.s.scale,Math.PI*1.6,Math.PI/2.3,false);this.ctx.lineTo(15*this.s.scale,12*this.s.scale);this.ctx.arc(14*this.s.scale,10*this.s.scale,4*this.s.scale,Math.PI/2.3,Math.PI*1.6,true);this.ctx.moveTo(16*this.s.scale,9*this.s.scale);this.ctx.lineTo(16*this.s.scale,11*this.s.scale);this.ctx.lineTo(15*this.s.scale,11*this.s.scale);this.ctx.lineTo(15*this.s.scale,9*this.s.scale)}this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin=
"round";this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.fill()}if(this.s.icon==2){this.ctx.beginPath();ovalX=8*this.s.scale;ovalY=14*this.s.scale;ovalW=7*this.s.scale;ovalH=3*this.s.scale;this.ctx.moveTo(ovalX,ovalY-ovalH/2);this.ctx.bezierCurveTo(ovalX-ovalW/2,ovalY-ovalH/2,ovalX-ovalW/2,ovalY+ovalH/2,ovalX,ovalY+ovalH/2);this.ctx.bezierCurveTo(ovalX+ovalW/2,ovalY+ovalH/2,ovalX+ovalW/2,ovalY-ovalH/2,ovalX,ovalY-ovalH/2);this.ctx.moveTo(10*this.s.scale,14*this.s.scale);this.ctx.lineTo(11*this.s.scale,
3*this.s.scale);this.ctx.quadraticCurveTo(13*this.s.scale,4*this.s.scale,13*this.s.scale,5*this.s.scale);this.ctx.quadraticCurveTo(15*this.s.scale,6*this.s.scale,17*this.s.scale,6*this.s.scale);this.ctx.quadraticCurveTo(14*this.s.scale,8*this.s.scale,11*this.s.scale,5*this.s.scale);this.ctx.lineTo(10*this.s.scale,14*this.s.scale);this.ctx.closePath();this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineWidth=0.7;this.ctx.stroke();this.ctx.fill()}if(this.s.icon==3){this.ctx.beginPath();this.ctx.lineWidth=
1.5*this.s.scale;this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.moveTo(3*this.s.scale,8*this.s.scale);this.ctx.lineTo(6*this.s.scale,8*this.s.scale);this.ctx.lineTo(12*this.s.scale,4*this.s.scale);this.ctx.lineTo(12*this.s.scale,16*this.s.scale);this.ctx.lineTo(6*this.s.scale,12*this.s.scale);this.ctx.lineTo(3*this.s.scale,12*this.s.scale);this.ctx.lineTo(3*this.s.scale,8*this.s.scale);this.ctx.lineTo(6*this.s.scale,8*this.s.scale);this.ctx.lineTo(6*
this.s.scale,12*this.s.scale);if(b=="volume"){this.ctx.moveTo(15*this.s.scale,7*this.s.scale);this.ctx.lineTo(18*this.s.scale,4*this.s.scale);this.ctx.moveTo(15*this.s.scale,10*this.s.scale);this.ctx.lineTo(19*this.s.scale,10*this.s.scale);this.ctx.moveTo(15*this.s.scale,13*this.s.scale);this.ctx.lineTo(18*this.s.scale,16*this.s.scale)}this.ctx.stroke()}}if(b=="playlist"){if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(6*this.s.scale,6*this.s.scale);this.ctx.lineTo(13*this.s.scale,6*this.s.scale);
this.ctx.lineTo(13*this.s.scale,13*this.s.scale);this.ctx.lineTo(6*this.s.scale,13*this.s.scale);this.ctx.closePath();this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=4*this.s.scale;this.ctx.stroke();this.ctx.fill();this.ctx.clearRect(5*this.s.scale,5*this.s.scale,9*this.s.scale,9*this.s.scale);this.ctx.fillRect(6*this.s.scale,6*this.s.scale,7*this.s.scale,1*this.s.scale);this.ctx.fillRect(6*this.s.scale,8*this.s.scale,7*this.s.scale,1*this.s.scale);
this.ctx.fillRect(6*this.s.scale,10*this.s.scale,7*this.s.scale,1*this.s.scale);this.ctx.fillRect(6*this.s.scale,12*this.s.scale,7*this.s.scale,1*this.s.scale);this.ctx.closePath()}if(this.s.icon==1){this.ctx.beginPath();for(c=5;c<15;c+=3){this.ctx.moveTo(4*this.s.scale,c*this.s.scale);this.ctx.lineTo(16*this.s.scale,c*this.s.scale);this.ctx.lineTo(16*this.s.scale,(c+1)*this.s.scale);this.ctx.lineTo(4*this.s.scale,(c+1)*this.s.scale);this.ctx.lineTo(4*this.s.scale,c*this.s.scale)}this.ctx.lineWidth=
0.1;this.ctx.stroke();this.ctx.fill();this.ctx.closePath()}if(this.s.icon==2){this.ctx.beginPath();for(c=4;c<15;c+=5){this.ctx.moveTo(3*this.s.scale,c*this.s.scale);this.ctx.lineTo(5*this.s.scale,c*this.s.scale);this.ctx.lineTo(5*this.s.scale,(c+2)*this.s.scale);this.ctx.lineTo(3*this.s.scale,(c+2)*this.s.scale);this.ctx.lineTo(3*this.s.scale,c*this.s.scale);this.ctx.moveTo(7*this.s.scale,c*this.s.scale);this.ctx.lineTo(17*this.s.scale,c*this.s.scale);this.ctx.lineTo(17*this.s.scale,(c+2)*this.s.scale);
this.ctx.lineTo(7*this.s.scale,(c+2)*this.s.scale);this.ctx.lineTo(7*this.s.scale,c*this.s.scale)}this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.fill();this.ctx.closePath()}if(this.s.icon==3){this.ctx.beginPath();for(c=4;c<15;c+=5)for(y=4;y<15;y+=5){this.ctx.moveTo(y*this.s.scale,c*this.s.scale);this.ctx.lineTo((y+2)*this.s.scale,c*this.s.scale);this.ctx.lineTo((y+2)*this.s.scale,(c+2)*this.s.scale);this.ctx.lineTo(y*this.s.scale,(c+2)*this.s.scale);this.ctx.lineTo(y*this.s.scale,c*this.s.scale)}this.ctx.lineWidth=
0.1;this.ctx.stroke();this.ctx.fill();this.ctx.closePath()}}if(b=="full"||b=="full_back"){if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(6*this.s.scale,7*this.s.scale);this.ctx.lineTo(13*this.s.scale,7*this.s.scale);this.ctx.lineTo(13*this.s.scale,14*this.s.scale);this.ctx.lineTo(6*this.s.scale,14*this.s.scale);this.ctx.closePath();this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=4*this.s.scale;this.ctx.stroke();this.ctx.fill();this.ctx.clearRect(5*
this.s.scale,6*this.s.scale,9*this.s.scale,9*this.s.scale);if(b=="full_back"){this.ctx.fillRect(6*this.s.scale,13*this.s.scale,3*this.s.scale,1*this.s.scale);this.ctx.fillRect(6*this.s.scale,10*this.s.scale,1*this.s.scale,3*this.s.scale)}else{this.ctx.fillRect(10*this.s.scale,7*this.s.scale,3*this.s.scale,1*this.s.scale);this.ctx.fillRect(12*this.s.scale,7*this.s.scale,1*this.s.scale,3*this.s.scale)}this.ctx.closePath()}if(this.s.icon==1){this.ctx.beginPath();if(b=="full_back"){this.ctx.fillRect(7*
this.s.scale,4*this.s.scale,11*this.s.scale,7*this.s.scale);this.ctx.clearRect(8*this.s.scale,5*this.s.scale,9*this.s.scale,5*this.s.scale);this.ctx.fillRect(2*this.s.scale,7*this.s.scale,13*this.s.scale,8*this.s.scale);this.ctx.clearRect(3*this.s.scale,8*this.s.scale,11*this.s.scale,6*this.s.scale)}else{this.ctx.fillRect(2*this.s.scale,8*this.s.scale,11*this.s.scale,7*this.s.scale);this.ctx.clearRect(3*this.s.scale,9*this.s.scale,9*this.s.scale,5*this.s.scale);this.ctx.fillRect(5*this.s.scale,4*
this.s.scale,13*this.s.scale,8*this.s.scale);this.ctx.clearRect(6*this.s.scale,5*this.s.scale,11*this.s.scale,6*this.s.scale)}this.ctx.closePath()}if(this.s.icon==2){this.ctx.beginPath();this.ctx.moveTo(2*this.s.scale,2*this.s.scale);this.ctx.lineTo(6*this.s.scale,2*this.s.scale);this.ctx.lineTo(5*this.s.scale,3*this.s.scale);this.ctx.lineTo(7*this.s.scale,5.5*this.s.scale);this.ctx.lineTo(5.5*this.s.scale,7*this.s.scale);this.ctx.lineTo(3*this.s.scale,5*this.s.scale);this.ctx.lineTo(2*this.s.scale,
6*this.s.scale);this.ctx.lineTo(2*this.s.scale,2*this.s.scale);this.ctx.moveTo(14*this.s.scale,2*this.s.scale);this.ctx.lineTo(18*this.s.scale,2*this.s.scale);this.ctx.lineTo(18*this.s.scale,6*this.s.scale);this.ctx.lineTo(17*this.s.scale,5*this.s.scale);this.ctx.lineTo(14.5*this.s.scale,7*this.s.scale);this.ctx.lineTo(13*this.s.scale,5.5*this.s.scale);this.ctx.lineTo(15*this.s.scale,3*this.s.scale);this.ctx.lineTo(14*this.s.scale,2*this.s.scale);this.ctx.moveTo(14.5*this.s.scale,13*this.s.scale);
this.ctx.lineTo(17*this.s.scale,15*this.s.scale);this.ctx.lineTo(18*this.s.scale,14*this.s.scale);this.ctx.lineTo(18*this.s.scale,18*this.s.scale);this.ctx.lineTo(14*this.s.scale,18*this.s.scale);this.ctx.lineTo(15*this.s.scale,17*this.s.scale);this.ctx.lineTo(13*this.s.scale,14.5*this.s.scale);this.ctx.lineTo(14.5*this.s.scale,13*this.s.scale);this.ctx.moveTo(5.5*this.s.scale,13*this.s.scale);this.ctx.lineTo(7*this.s.scale,14.5*this.s.scale);this.ctx.lineTo(5*this.s.scale,17*this.s.scale);this.ctx.lineTo(6*
this.s.scale,18*this.s.scale);this.ctx.lineTo(2*this.s.scale,18*this.s.scale);this.ctx.lineTo(2*this.s.scale,14*this.s.scale);this.ctx.lineTo(3*this.s.scale,15*this.s.scale);this.ctx.lineTo(5.5*this.s.scale,13*this.s.scale);this.ctx.closePath();this.ctx.fill();this.ctx.save();this.ctx.beginPath();this.ctx.fillStyle="rgba("+HTR(this.s.color)+","+HTG(this.s.color)+","+HTB(this.s.color)+",0.5)";this.ctx.fillRect(7*this.s.scale,7*this.s.scale,6*this.s.scale,6*this.s.scale);this.ctx.closePath()}if(this.s.icon==
3){this.ctx.beginPath();if(b=="full_back"){this.ctx.moveTo(18*this.s.scale,2*this.s.scale);this.ctx.lineTo(2*this.s.scale,16*this.s.scale);this.ctx.lineTo(5*this.s.scale,10*this.s.scale);this.ctx.moveTo(2*this.s.scale,16*this.s.scale);this.ctx.lineTo(10*this.s.scale,14*this.s.scale)}else{this.ctx.moveTo(3*this.s.scale,18*this.s.scale);this.ctx.lineTo(17*this.s.scale,2*this.s.scale);this.ctx.lineTo(8*this.s.scale,6*this.s.scale);this.ctx.moveTo(17*this.s.scale,2*this.s.scale);this.ctx.lineTo(15*this.s.scale,
11*this.s.scale)}this.ctx.closePath();this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=1*this.s.scale;this.ctx.stroke();this.ctx.closePath()}}if(b=="volbar"){this.ctx.beginPath();this.ctx.moveTo(0*this.s.scale,0*this.s.scale);this.ctx.lineTo(3*this.s.scale,0*this.s.scale);this.ctx.lineTo(3*this.s.scale,10*this.s.scale);this.ctx.lineTo(0*this.s.scale,10*this.s.scale);this.ctx.lineTo(0*this.s.scale,0*this.s.scale);this.ctx.closePath();this.ctx.lineWidth=
0.1;this.ctx.stroke();this.ctx.fill()}if(b=="menu"){if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(6*this.s.scale,7*this.s.scale);this.ctx.lineTo(13*this.s.scale,7*this.s.scale);this.ctx.lineTo(13*this.s.scale,14*this.s.scale);this.ctx.lineTo(6*this.s.scale,14*this.s.scale);this.ctx.closePath();this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=4*this.s.scale;this.ctx.stroke();this.ctx.fill();this.ctx.clearRect(5*this.s.scale,6*this.s.scale,
9*this.s.scale,9*this.s.scale);this.ctx.fillRect(9*this.s.scale,10*this.s.scale,1*this.s.scale,6*this.s.scale);this.ctx.fillRect(9*this.s.scale,8*this.s.scale,1*this.s.scale,1*this.s.scale);this.ctx.closePath()}if(this.s.icon==1){this.ctx.moveTo(8.5*this.s.scale,5.5*this.s.scale);this.ctx.lineTo(3*this.s.scale,9*this.s.scale);this.ctx.lineTo(8.5*this.s.scale,12.5*this.s.scale);this.ctx.moveTo(11.5*this.s.scale,5.5*this.s.scale);this.ctx.lineTo(17*this.s.scale,9*this.s.scale);this.ctx.lineTo(11.5*
this.s.scale,12.5*this.s.scale);this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=2*this.s.scale;this.ctx.stroke()}if(this.s.icon==2){this.ctx.arc(10*this.s.scale,7*this.s.scale,3*this.s.scale,Math.PI/2,-Math.PI,true);this.ctx.moveTo(10*this.s.scale,10*this.s.scale);this.ctx.lineTo(10*this.s.scale,12*this.s.scale);this.ctx.moveTo(10*this.s.scale,15*this.s.scale);this.ctx.arc(10*this.s.scale,15*this.s.scale,0.5*this.s.scale,0,Math.PI*2);this.ctx.strokeStyle=
"#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=2*this.s.scale;this.ctx.stroke()}if(this.s.icon==3){this.ctx.arc(6*this.s.scale,10*this.s.scale,2*this.s.scale,0,Math.PI*2);this.ctx.moveTo(14*this.s.scale,6*this.s.scale);this.ctx.arc(14*this.s.scale,6*this.s.scale,2*this.s.scale,0,Math.PI*2);this.ctx.moveTo(14*this.s.scale,14*this.s.scale);this.ctx.arc(14*this.s.scale,14*this.s.scale,2*this.s.scale,0,Math.PI*2);this.ctx.moveTo(6*this.s.scale,10*this.s.scale);
this.ctx.lineTo(14*this.s.scale,6*this.s.scale);this.ctx.moveTo(6*this.s.scale,10*this.s.scale);this.ctx.lineTo(14*this.s.scale,14*this.s.scale);this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=1.5*this.s.scale;this.ctx.stroke();this.ctx.fill()}}if(b=="hd"||b=="hd1"){this.ctx.fillStyle=this.s.color;!this.s.icon2&&(this.s.icon2=this.s.icon);this.ctx.font="normal "+12*this.s.scale+"px Arial";this.ctx.fillText(b=="hd1"?this.s.icon2:this.s.icon,
3*this.s.scale,15*this.s.scale)}if(b=="hdselect"){this.ctx.fillStyle=this.s.color;this.ctx.font="normal "+12*this.s.scale+"px Arial"}if(b=="line"||b=="volbarline"){this.ctx.beginPath();this.ctx.moveTo(0,10-this.s.h/2);this.ctx.lineTo(d,10-this.s.h/2);this.ctx.lineTo(d,10+this.s.h/2);this.ctx.lineTo(0,10+this.s.h/2);this.ctx.lineTo(0,10-this.s.h/2);this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.closePath();this.ctx.fill()}if(b=="volbarline_v"){this.ctx.beginPath();this.ctx.moveTo(0,0);this.ctx.lineTo(d,
0);this.ctx.lineTo(d,f);this.ctx.lineTo(0,f);this.ctx.lineTo(0,0);this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.closePath();this.ctx.fill()}if(b=="separator"){if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(2*this.s.scale,0);this.ctx.lineTo(2*this.s.scale,20*this.s.scale);this.ctx.lineTo(2.5*this.s.scale,20*this.s.scale);this.ctx.lineTo(2.5*this.s.scale,0);this.ctx.lineTo(2*this.s.scale,0);this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.closePath();this.ctx.fill()}if(this.s.icon==1){this.ctx.beginPath();
this.ctx.moveTo(4.5*this.s.scale,0);this.ctx.lineTo(0,20*this.s.scale);this.ctx.lineTo(0.5*this.s.scale,20*this.s.scale);this.ctx.lineTo(5*this.s.scale,0);this.ctx.lineTo(4.5*this.s.scale,0);this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.closePath();this.ctx.fill()}if(this.s.icon==2){this.ctx.beginPath();this.ctx.moveTo(2*this.s.scale,0);this.ctx.lineTo(2*this.s.scale,20*this.s.scale);this.ctx.lineTo(4*this.s.scale,20*this.s.scale);this.ctx.lineTo(4*this.s.scale,0);this.ctx.lineTo(2*this.s.scale,
0);this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.closePath();this.ctx.fill()}if(this.s.icon==3){this.ctx.beginPath();this.ctx.moveTo(2*this.s.scale,9*this.s.scale);this.ctx.lineTo(4*this.s.scale,9*this.s.scale);this.ctx.lineTo(4*this.s.scale,11*this.s.scale);this.ctx.lineTo(2*this.s.scale,11*this.s.scale);this.ctx.lineTo(2*this.s.scale,9*this.s.scale);this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.closePath();this.ctx.fill()}}if(b.indexOf("time")==0){this.c.innerHTML="0:00";this.s.icon==0&&
(this.font=10*this.s.scale+"px Verdana");this.s.icon==1&&(this.font=9*this.s.scale+"px Tahoma");this.s.icon==2&&(this.font=10*this.s.scale+"px Arial");this.s.icon==3&&(this.font=11*this.s.scale+"px _serif");e(this.c,{width:d,color:"#"+this.s.color,font:this.font,"text-align":"center",margin:(10*this.s.scale-10)/2+"px 0 0 0"})}if(b=="buffer"){this.c.innerHTML="";e(this.c,{display:"none",width:d,color:"#"+this.s.color,font:"10px Arial","text-align":"left"})}this.c.appendChild(this.canvas);e(this.canvas,
{width:d*this.s.scale*(this.s.bg==1&&this.s.bg_smallicon==1?0.8:1),height:f*this.s.scale*(this.s.bg==1&&this.s.bg_smallicon==1?0.8:1),position:"absolute",top:Math.round(b=="start"?f/2-10*this.s.scale2+2*this.s.scale:(this.s.bg==1&&this.s.bg_smallicon==1?2*this.s.scale:0)+this.s.margintop*1-this.s.marginbottom*1),left:Math.round(b=="start"?d/2-10*this.s.scale2+2*this.s.scale:(this.s.bg==1&&this.s.bg_smallicon==1?2*this.s.scale:0)+(1-this.s.scale)*d/2),opacity:this.s.alpha,filter:"alpha(opacity="+this.s.alpha*
100+")"});this.w=d;this.h=f*this.s.scale}function e(b,d){for(var f in d)if(d[f]!="NaNpx"){typeof d[f]=="number"&&f!="opacity"&&(d[f]+="px");b.style[f]=d[f]}}function Xc(b){if(typeof b.onselectstart!="undefined")b.onselectstart=function(){return false};else if(typeof b.style.MozUserSelect!="undefined")b.style.MozUserSelect="none";else b.onmousedown=function(){return false};b.style.cursor="default"}function Ac(b,d){d.ctx.clearRect(0,0,200,200);d.ctx.fillText(b,5*d.s.scale,15*d.s.scale);d.ctx.beginPath();
d.ctx.moveTo((d.canvas.width-10)*d.s.scale,9*d.s.scale);d.ctx.lineTo((d.canvas.width-6)*d.s.scale,9*d.s.scale);d.ctx.lineTo((d.canvas.width-8)*d.s.scale,14*d.s.scale);d.ctx.lineTo((d.canvas.width-10)*d.s.scale,9*d.s.scale);d.ctx.closePath();d.ctx.lineWidth=0.1;d.ctx.stroke();d.ctx.fill()}function za(b){this.c=document.createElement("div");this.canvas=document.createElement("canvas");this.canvas.height=b.h;this.canvas.width=b.w;var d=this.canvas.getContext("2d");!b.h0&&(b.h0=0);if(b.bgc.indexOf("|")>
0){for(var f=b.bgc.split("|"),g=d.createLinearGradient(0,b.h0,0,b.h),x=0;x<f.length-1;x++)g.addColorStop(x/(f.length-1),"#"+ReColor(f[x]));g.addColorStop(1,"#"+ReColor(f[f.length-1]));b.bga1!=undefined&&g.addColorStop(0,"rgba("+HTR(f[0])+","+HTG(f[0])+","+HTB(f[0])+","+b.bga1+")");b.bga2!=undefined&&g.addColorStop(0.999,"rgba("+HTR(f[f.length-1])+","+HTG(f[f.length-1])+","+HTB(f[f.length-1])+","+b.bga2+")");d.fillStyle=g}else d.fillStyle="#"+b.bgc;if(b.a)d.globalAlpha=b.a<0?0:b.a;if(b.o>0){if(b.o==
b.w/2){d.beginPath();d.arc(b.w/2,b.h/2,b.w/2,0,Math.PI*2);d.closePath()}else{d.beginPath();d.moveTo(b.onotop==1?0:b.o,0);d.lineTo(b.w-(b.onotop==1?0:b.o),0);b.onotop==1||d.quadraticCurveTo(b.w,0,b.w,b.o);d.lineTo(b.w,b.h-b.o);d.quadraticCurveTo(b.w,b.h,b.w-b.o,b.h);d.lineTo(b.o,b.h);d.quadraticCurveTo(0,b.h,0,b.h-b.o);d.lineTo(0,b.o);b.onotop==1||d.quadraticCurveTo(0,0,b.o,0);!b.brdc&&(b.brdc="cccccc");d.strokeStyle="#"+b.brdc;if(b.brd==0||!b.brd)b.brd=0.1;d.lineWidth=b.brd;d.stroke()}d.fill()}else d.fillRect(0,
0,b.w,b.h);this.c.appendChild(this.canvas)}function Vc(){this.auto="firstframe";this.addcontrols="";this.airplay=0;this.bgcolor="ffffff";this.bodycolor="000000";this.brd=0;this.brdcolor="cccccc";this.buffersec=5;this.cntrlbg=1;this.cntrlbgcolor="000000|000000";this.cntrlbgalpha1=0.15;this.cntrlbgalpha2=0.7;this.cntrlendmargin=7;this.cntrlhide=0;this.cntrlmargin=3;this.cntrlout=this.cntrlmarginleft=this.cntrlmarginright=0;this.cntrloutheight=35;this.cntrlsize=1;this.cntrlbuffer={center:0};this.cntrl_buffer=
{};this.cntrlfull={out:0};this.cntrl_full={};this.cntrlstyle={icon:0,color:"ffffff",bg:0,bg_o:1,bg_smallicon:1,bgcolor:"000000",bg_sh:"0",bg_in:"0",bg_gl:"0",gl_a1:0.9,gl_a2:0.1,gl_color:"FFFFFF",sh_blur:6,sh_dist:0,bg_a:1,bg_w:20,bg_h:20,scale:1,eff:0,effE:"Cubic",sh:0,sh_c:"000000",sh_a:0.5,sh_under:1,notip:0,text:0,center:0,marginleft:0,marginright:0,margintop:0,marginbottom:0,alpha:1};this.cntrlplay={};this.cntrl_play={};this.cntrlpause={};this.cntrl_pause={};this.cntrlstop={};this.cntrl_stop=
{};this.cntrldownload={};this.cntrl_download={};this.cntrlnext={};this.cntrl_next={};this.cntrlprev={};this.cntrl_prev={};this.cntrlline={h:4,all_a:0.3,load_a:0.4,play_a:1,click:1,color_play:"ffffff",color_all:"ffffff",color_load:"ffffff",o:0,full:0};this.cntrl_line={};this.cntrl_volbarline={};this.cntrlvolbarline={h:4,w:40,all_a:0.4,play_a:1,color_load:"ffffff",color_all:"ffffff",o:0};this.cntrl_volbarline_v={};this.cntrlvolbarline_v={h:50,w:4,bg:0,bgcolor:"000000",bg_o:0,bg_a:0.15,all_a:0.4,play_a:1,
effdir:0,color_load:"ffffff",color_all:"ffffff",o:0};this.ivolbar_v=false;this.cntrlvolbar={bar:1,n:5,all_a:0.4,play_a:1,scale:1};this.cntrl_volbar={};this.cntrl_tune={};this.cntrl_volume={};this.cntrlvolume={};this.cntrl_sound={};this.cntrlmenu={};this.cntrl_menu={};this.cntrlplaylist={};this.cntrl_playlist={};this.cntrl_hd={};this.cntrlhd={icon:"HQ",text:1,alpha0:0.5,w:60};this.cntrlhdselect={bg:1,bg_o:10,bg_a:0.7,bgcolor:"666666|000000",bg_smallicon:0};this.cntrlsize=1;this.cntrlstart={bg:1,bg_sh:1,
bgcolor:"ffffff",bg_a:0.1,bg_w:75,bg_h:75,gl_a1:0.8,gl_a2:0,eff:1,scale2:2,curtain:"0",curtainColor:"000000",curtainAlpha:0.5,notip:1,bg_smallicon:0};this.cntrl_start={};this.cntrlseparator={alpha:0.5};this.cntrl_separator={};this.cntrlrun={w:7,h:7,o:1,position:0,hide:0};this.cntrl_run={};this.cntrlrun_volume={w:7,h:7,o:1,position:0,hide:0};this.cntrl_run_volume={};this.glass=0;this.glasscolor="ffffff";this.glassalpha1=0.9;this.glassalpha2=0.2;this.hdsw=60;this.hdseparator=",";this.quality="";this.hd1=
0;this.comment="";this.shownameonstop=this.shownameonover=this.shownameliketip=this.showname=0;this.stageposition="";this.stagetop=this.stageleft=0;this.commentcolor="ffffff";this.commentbgcolor="000000";this.commentbgcolor_k=false;this.commentbgalpha1=0.5;this.commentbgalpha2=0.1;this.commentalign="left";this.commenttopmargin=0;this.commentmargin=10;this.controls="";this.videocontrols="play,back,time_play,line,time_all,volume,volbarline,full,buffer";this.audiocontrols="play,back,time_play,line,time_all,volume,volbarline,buffer";
this.streamcontrols="play,time_play,volume,volbarline";this.debug=0;this.embedcode=this.download="";this.events=[];this.eventplayed=this.eventtime=0;this.iosplayer=1;this.filehd=this.file="";this.youtube=false;this.htmlsize=0;this.plr=this.iframeurl=this.iframe=this.id="";this.pl_history=[];this.bottomrowheight=200;this.plrows=0;this.link="";this.m="video";this.menuauto=this.menu_w=this.menu_h=this.menu_nocode=0;this.namefont="Verdana";this.namefontsize=11;this.namefontstyle="normal";this.namebgalpha=
0;this.namebgcolor="000000";this.namebgo=8;this.namebgshadow=0;this.namecolor="ffffff";this.namemargin_v=this.namemargin_h=0;this.namepadding=6;this.nametopanel=this.nameleading=0;this.logo=this.nametags2=this.nametags1="";this.logoplace=2;this.logoalpha=0.5;this.logomargin_v=this.logomargin_h=this.logomargin=15;this.logolink="";this.logotarget="_self";this.nohtml5="uppod.swf";this.padding=this.o=0;this.pl=this.poster="";this.plplace="inside";this.pltw=100;this.plth=70;this.plcolor2=this.plcolor=
"ffffff";this.plbgcolor="000000";this.plalpha=0.3;this.plalpha2=0.1;this.plmargin=0;this.plmargin_h=10;this.plmargin_v=0;this.pltags2=this.pltags1="";this.plfont="Arial";this.plfontsize=11;this.plplay=0;this.plplay1=1;this.reloadertime=this.reloadercounter=this.reloader=this.radio=this.time=this.random=this.pliview=0;this.screencolor="000000";this.transparent=this.start=this.scrn_h=this.scrn_w=0;this.volume=0.8;this.w=500;this.webkitFullscreen=0;this.realfullscreen=1;this.h=375;this.st="";this.stg=
document.getElementById(k.id);this.stg==null&&alert("Uppod: ID ("+k.id+") not found");this.sw=this.stagewidth=this.stg.offsetWidth;this.ph=this.sh=this.stageheight=this.stg.offsetHeight;this.pw=this.sw;this.lang="ru";this.lang_ru={lang:"ru",localization:{back:"u0412 u043du0430u0447u0430u043bu043e",play:"u041fu0443u0441u043a",pause:"u041fu0430u0443u0437u0430",stop:"u0421u0442u043eu043f",full:"u0420u0430u0437u0432u0435u0440u043du0443u0442u044c",full_back:"u0421u0432u0435u0440u043du0443u0442u044c",
list:"u041fu043bu0435u0439u043bu0438u0441u0442",next:"u0421u043bu0435u0434u0443u044eu0449u0438u0439",download:"u0421u043au0430u0447u0430u0442u044c",prev:"u041fu0440u0435u0434u044bu0434u0443u0449u0438u0439",sound_off:"u0412u043au043b. u0437u0432u0443u043a",sound:"u0412u044bu043au043b. u0437u0432u0443u043a",volume:"u0413u0440u043eu043cu043au043eu0441u0442u044c",menu:"u041fu043eu0434u0435u043bu0438u0442u044cu0441u044f",menu_code:"u041au043eu0434",
menu_link:"u0421u0441u044bu043bu043au0430",menu_download:"u0424u0430u0439u043b",menu_copy:"u0421u043au043eu043fu0438u0440u043eu0432u0430u0442u044c",menu_mail:"u0421u0441u044bu043bu043au0443 u043du0430 e-mail",sent:"u041eu0442u043fu0440u0430u0432u043bu0435u043du043e",menu_message:"u0422u0435u043au0441u0442",menu_send:"u041eu0442u043fu0440u0430u0432u0438u0442u044c",fontsize:"u0420u0430u0437u043cu0435u0440",bgalpha:"u0424u043eu043d",fontcolor:"u0426u0432u0435u0442 u0442u0435u043au0441u0442u0430",
off:"u0412u044bu043au043bu044eu0447u0438u0442u044c",on:"u0412u043au043bu044eu0447u0438u0442u044c",hq:"u041bu0443u0447u0448u0435u0435 u043au0430u0447u0435u0441u0442u0432u043e",hd:"u041au0430u0447u0435u0441u0442u0432u043e",hq_off:"u041eu0431u044bu0447u043du043eu0435 u043au0430u0447u0435u0441u0442u0432u043e",sub:"u0421u0443u0431u0442u0438u0442u0440u044b",traffic:"u0422u0440u0430u0444u0438u043a (u041cu0411)",smoothing:"u0412u043au043bu044eu0447u0438u0442u044c u0441u0433u043bu0430u0436u0438u0432u0430u043du0438u0435",
smoothing_off:"u0412u044bu043au043bu044eu0447u0438u0442u044c u0441u0433u043bu0430u0436u0438u0432u0430u043du0438u0435",smoothing_ok:"u0421u0433u043bu0430u0436u0438u0432u0430u043du0438u0435 u0432u043au043bu044eu0447u0435u043du043e",smoothing_off_ok:"u0421u0433u043bu0430u0436u0438u0432u0430u043du0438u0435 u0432u044bu043au043bu044eu0447u0435u043du043e",password:"u041fu0430u0440u043eu043bu044c",startlive:"u041du0430u0447u0430u0442u044c u0442u0440u0430u043du0441u043bu044fu0446u0438u044e",
live:"u0422u0440u0430u043du0441u043bu044fu0446u0438u044f",rec:"u0417u0430u043fu0438u0441u044c",rerec:"u0417u0430u043du043eu0432u043e",playrec:"u0418u0433u0440u0430u0442u044c",contrec:"u041fu0440u043eu0434u043eu043bu0436u0438u0442u044c u0437u0430u043fu0438u0441u044c",settings:"u041du0430u0441u0442u0440u043eu0439u043au0438",done:"u0413u043eu0442u043eu0432u043e",shownotes:"u0428u043eu0443u043du043eu0442u044b",loading:"u0417u0430u0433u0440u0443u0437u043au0430",
startplay:"u0412u043au043bu044eu0447u0438u0442u0435 u043fu043bu0435u0435u0440",notype:"u041du0435 u0443u043au0430u0437u0430u043d u0440u0435u0436u0438u043c u043fu043bu0435u0435u0440u0430 (m)",err:"u041eu0448u0438u0431u043au0430",errjson:"u041eu0448u0438u0431u043au0430 u0437u0430u0433u0440u0443u0437u043au0438",errjson_decode:"u041eu0448u0438u0431u043au0430 u0432",errjsonpl_decode:"u041eu0448u0438u0431u043au0430 u0432 u043fu043bu0435u0439u043bu0438u0441u0442u0435",
err_pl:"u041eu0448u0438u0431u043au0430 u0437u0430u0433u0440u0443u0437u043au0438 u043fu043bu0435u0439u043bu0438u0441u0442u0430",err_img:"u041eu0448u0438u0431u043au0430 u0437u0430u0433u0440u0443u0437u043au0438 u0438u0437u043eu0431u0440u0430u0436u0435u043du0438u044f",file:"u0424u0430u0439u043b",notfound:"u043du0435 u043du0430u0439u0434u0435u043d",copy_link:"u0421u0441u044bu043bu043au0430 u0441u043au043eu043fu0438u0440u043eu0432u0430u043du0430 u0432 u0431u0443u0444u0435u0440 u043eu0431u043cu0435u043du0430",
copy_code:"u041au043eu0434 u0441u043au043eu043fu0438u0440u043eu0432u0430u043d u0432 u0431u0443u0444u0435u0440 u043eu0431u043cu0435u043du0430",no_data:"u041du0435u0442 u0434u0430u043du043du044bu0445",ads:"u0420u0435u043au043bu0430u043cu0430",like:"u041fu043eu043du0440u0430u0432u0438u043bu043eu0441u044c",like:"u041cu043du0435 u043du0440u0430u0432u0438u0442u0441u044f",unlike:"u041du0435 u043du0440u0430u0432u0438u0442u0441u044f"}};
this.lang_en={lang:"en",localization:{back:"Back",play:"Play",pause:"Pause",stop:"Stop",full:"Fullscreen",full_back:"Original",list:"Playlist",next:"Next",download:"Download",prev:"Previous",sound_off:"On",sound:"Off",volume:"Volume",menu:"Share",menu_code:"Code",menu_link:"Link",menu_download:"File",menu_copy:"Copy",menu_mail:"Email to a Friend",sent:"Sent",menu_message:"Text",menu_send:"Send",fontsize:"Size",bgalpha:"BG",fontcolor:"Text color",off:"Switch off",on:"Switch on",hq:"High quality",hd:"Quality",
hq_off:"Low quality",sub:"Subtitles",traffic:"Traffic (MB)",smoothing:"Enable smoothing",smoothing_off:"Disable smoothing",smoothing_ok:"Smoothing on",smoothing_off_ok:"Smoothing off",password:"Password",startlive:"Start broadcast",live:"Broadcast",rec:"Record",rerec:"Re-record",playrec:"Play",contrec:"u0421ontinue record",settings:"Settings",done:"Done",shownotes:"Shownotes",loading:"Loading",startplay:"Turn on the player",notype:"No player mode (m)",err:"Error",errjson:"Error loading",errjson_decode:"Incorrect",
errjsonpl_decode:"Incorrect playlist",err_pl:"Error loading playlist",err_img:"Error loading image",file:"File",notfound:"not found",streamnotfound:"Stream not found",fileinvalid:"File structure is invalid",copy_link:"Link is copied to clipboard",copy_code:"Code is copied to clipboard",no_data:"No data",ads:"Ad",like:"Like",unlike:"Unlike"}};this.lang2=this.lang_ru.localization;Rc(k);var b=false;if(uppodstyle!="")this.st=uppodstyle;if(this.st0)for(var d in this.st0)this[d]=this.st0[d];for(d in k)this[d]=
k[d];if(k.video){this.m="video";this.file=k.video}if(k.audio){this.m="audio";this.file=k.audio}k.controls&&(b=true);if(this.m=="audio"){this.cntrlhide=0;this.shownameliketip=this.showname=1;this.controls==""&&(this.controls=this.audiocontrols);this.uibg=0;ab=false}else this.controls==""&&(this.controls=this.videocontrols);if(this.st!=""){if(this.st.indexOf("{")==-1)if(this.st.indexOf("#")==0)str=rb(this.st);else if(this.st.indexOf(".")==-1)try{if(eval(this.st)){str=eval(this.st);if(str.indexOf("#")==
0)str=rb(str)}}catch(f){kb=sb(this.st)+" "+this.lang2.notfound}else str=ic(this.st);else str=this.st;try{style=JSON.parse(str);Rc(style);for(d in style){if(typeof style[d]==="string"&&d.indexOf("color")>-1){style[d]=style[d].replace("#","");style[d].length==5&&(style[d]="0"+style[d]);style[d]=style[d].indexOf("|")>0?ReColor(style[d].substr(0,style[d].indexOf("|")))+"|"+ReColor(style[d].substr(style[d].indexOf("|")+1)):ReColor(style[d])}this[d]=style[d]}style.controls&&(b=true)}catch(g){kb==""&&(kb=
this.lang2.errjson_decode+" "+sb(this.st))}}if(ma){this.m=="video"&&(ab=this.iosplayer==1?true:false);if(this.auto=="none")this.auto="firstframe"}if(this.sh==0){if(this.w==500&&this.h==375&&this.m=="audio"){this.w=300;this.h=90}e(this.stg,{width:this.w+"px",height:this.h+"px"});this.sw=this.stagewidth=this.w;this.sh=this.stageheight=this.h}if(this.poster.indexOf("#")==0)this.poster=rb(this.poster);if(this.file)if(this.file.indexOf("#")==0)this.file=rb(this.file);if(this.pl.indexOf("#")==0)this.pl=
rb(this.pl);this.lang2=this.lang_ru.localization;if(this.lang=="en")this.lang2=this.lang_en.localization;if(this.plplace!="inside"&&this.plplace!="bottomrow"&&this.plplace!="bottom"){this.plplace="inside";if(this.controls.indexOf("playlist")==-1)this.controls+=",playlist"}if(this.plplace=="inside")if(this.pl!=""&&!b)this.controls+=",playlist";if(this.plplace=="bottomrow"){this.plth==70&&(this.plth=40);this.pltw=this.sw-this.plmargin*2;this.h==this.sh&&(this.h=this.sh-this.bottomrowheight-20)}if(this.plplace==
"bottom")this.h==this.sh&&(this.h=this.sh-this.plth-20);if(this.plplace=="bottomrow"||this.plplace=="bottom")if(this.controls.indexOf("playlist")>-1)this.controls=this.controls.replace(",playlist","");if(this.nametags1!="")if(this.nametags1.indexOf("size=")>-1){this.namefontsize=this.nametags1.substr(this.nametags1.indexOf("size=")+6,2);this.namefontsize=this.namefontsize.replace(///g,"")}if(this.radio==1&&this.controls==this.audiocontrols){this.controls=this.streamcontrols;defaultcontrols=true}if(this.no_w)this.w=
this.no_w;if(this.no_h)this.h=this.no_h;this.cntrlmargin+=2;if(this.htmlsize==1){this.w=this.sw;this.h=this.sh}if(this.plplace!="inside")this.ph=this.h;if(this.lang=="ru")this.lang2=this.lang_ru.localization;if(this.addcontrols)this.controls+=","+this.addcontrols;if(this.plr)this.iframe=this.plr;Sc("volume")&&this.volume==0.8?Ba=Sc("volume"):Ba=this.volume}function Sc(b){var d=" "+document.cookie;b=" uppodhtml5_"+b+"=";var f=null,g=0,x=0;if(d.length>0){g=d.indexOf(b);if(g!=-1){g+=b.length;x=d.indexOf(";",
g);if(x==-1)x=d.length;f=unescape(d.substring(g,x))}}return f}function Rc(b){for(var d in b){if(d.indexOf("pltumbs0")==0)b[d.replace("pltumbs0","pl")]=b[d];if(d.indexOf("pl0")==0)b[d.replace("pl0","pl")]=b[d];if(d.indexOf("plcomment")==0)b[d.replace("plcomment","pl")]=b[d]}}function rb(b){if(b.indexOf(".")==-1){b=b.substr(1);s2="";for(j=0;j<b.length;j+=3)s2+="%u0"+b.slice(j,j+3);b=unescape(s2)}return b}function cc(b,d,f){var g=document.createElement("lDiv");document.body.appendChild(g);if(f!=null)g.style=
f;e(g,{font:""+d+"px Arial",position:"absolute",left:-100,top:-1000});g.innerHTML=b;b={width:g.clientWidth,height:g.clientHeight};document.body.removeChild(g);return b}function sb(b){if(b.indexOf("/")>0)b=b.substr(b.lastIndexOf("/")+1);return b}function ic(b){if(b){req=new XMLHttpRequest;req.open("GET",b+"?"+Math.random(),false);try{req.send(null);if(req.status==200)return req.responseText;else na(req.status)}catch(d){a&&na(a.lang2.errjson+" "+sb(b),true)}}}var a,Ya,kb="",ma=false,fc=false,ab=true,
Fb=false,La=false,wc=false,H=false,Ua=false,t=false,fb=false,Gb=false,nc=0,mc=0,Va=false,Hb=false,Ub=false,Db=false,Mb=false,ec=false,Uc=false,gc=false,Bc=false,ta,Ra,s,n,B,D,va,Pa,l,Sa,Aa,Ba,Wb,Ea,Fa,Tc=false;if(k.uid){!uppod_players&&(uppod_players=[]);this.uid=k.id=k.uid;for(var j=0;j<uppod_players.length;j++)if(uppod_players[j].uid==this.uid)Tc=true}if(!Tc){uppod_players.push(this);if(document.getElementById(k.id))F();else if(window.addEventListener)window.addEventListener("load",F);else window.attachEvent&&
window.attachEvent("onload",F)}var W,Ka,X,bb,cb,eb,db,Ga,ub,i,Y,Jb,tc,uc,wb,xb,yb,Ma,mb,U,Bb=0,Jc=0,ac=0,Eb=[],Hc=0,$b=[],$a=0,S,Na,pb,Q,ha,oa,pa,ea,xa,ka,ba,fa,m,u,V,ja,Ja,Oa,Wa,bc,M,qb,Ia,qa,T,G,R,Ha,z,K,ua,ga,Xa,ya,la,ra,q,aa,ia,L,r,o,v,I;this.getStatus=function(){return!Ua?0:Va?3:H?1:2};this.Play=function(b){if(b)Ab(b,true);else!H&&ca()};this.Init=function(){F()};this.Pause=function(){H&&ca()};this.Toggle=function(){ca()};this.Stop=function(){La&&nb()};this.Seek=function(b){La&&Zb(b)};this.Download=
function(){La&&xc()};this.Resize=function(){Nb()};this.Alert=function(b){na(b,true)};this.Full=function(){ob()};this.Comment=function(b){na(b,false)};this.CurrentTime=function(){return La&&i?i.currentTime:-1};this.PlNumber=function(){return D?parseInt(l)+1:-1};this.PlayPlNumber=function(b){if(D){Qa();l=parseInt(b)-1;Qb()}};this.Duration=function(){return La&&i?i.duration:-1};this.Volume=function(b){Vb(b)};this.Played=function(){return La&&i?Math.round(i.currentTime/i.duration*100):-1};this.Change=
function(b,d){a[b]=d;E();Kc()};this.ChangeColor=function(b,d){a[b]=d;if(b=="screencolor"){var f=Ka.canvas.getContext("2d");f.fillStyle=d;f.fillRect(0,0,f.canvas.width,f.canvas.height)}};this.EventDetail=function(b){return a.events[b]}}function Tween(k){k.dur==undefined&&(k.dur=1E3);k.what=="a"&&(new Fx.Morph(k.mc,{duration:k.dur})).start({opacity:[k.from,k.to]})}
function ReColor(k){var F=k;if(k.length==1)k=F+F+F+F+F+F;if(k.length==3)k=F.indexOf(0,1)+F.indexOf(0,1)+F.indexOf(1,2)+F.indexOf(1,2)+F.indexOf(2,3)+F.indexOf(2,3);if(k.length==5)k="0"+k;return k}function HTR(k){return parseInt(cutHex(k).substring(0,2),16)}function HTG(k){return parseInt(cutHex(k).substring(2,4),16)}function HTB(k){return parseInt(cutHex(k).substring(4,6),16)}function cutHex(k){return k.charAt(0)=="#"?k.substring(1,7):k}
function ShowHide(k){k.style.display=="none"?k.style.display="block":k.style.display="none"}function Show(k){if(k)k.style.display="block"}function Hide(k){if(k)k.style.display="none"}function is_array(k){return typeof k=="object"&&k instanceof Array}function getRandomInt(k,F){return Math.floor(Math.random()*(F-k+1))+k}var JSON;JSON||(JSON={});
(function(){function k(C){return C<10?"0"+C:C}function F(C){jb.lastIndex=0;return jb.test(C)?'"'+C.replace(jb,function(da){var E=Ib[da];return typeof E==="string"?E:"\u"+("0000"+da.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+C+'"'}function na(C,da){var E,O,Z,sa,wa=N,P,w=da[C];if(w&&typeof w==="object"&&typeof w.toJSON==="function")w=w.toJSON(C);if(typeof Da==="function")w=Da.call(da,C,w);switch(typeof w){case "string":return F(w);case "number":return isFinite(w)?String(w):"null";case "boolean":case "null":return String(w);
case "object":if(!w)return"null";N+=Za;P=[];if(Object.prototype.toString.apply(w)==="[object Array]"){sa=w.length;for(E=0;E<sa;E+=1)P[E]=na(E,w)||"null";Z=P.length===0?"[]":N?"[n"+N+P.join(",n"+N)+"n"+wa+"]":"["+P.join(",")+"]";N=wa;return Z}if(Da&&typeof Da==="object"){sa=Da.length;for(E=0;E<sa;E+=1)if(typeof Da[E]==="string"){O=Da[E];if(Z=na(O,w))P.push(F(O)+(N?": ":":")+Z)}}else for(O in w)if(Object.prototype.hasOwnProperty.call(w,O))if(Z=na(O,w))P.push(F(O)+(N?": ":":")+Z);Z=P.length===0?"{}":
N?"{n"+N+P.join(",n"+N)+"n"+wa+"}":"{"+P.join(",")+"}";N=wa;return Z}}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+k(this.getUTCMonth()+1)+"-"+k(this.getUTCDate())+"T"+k(this.getUTCHours())+":"+k(this.getUTCMinutes())+":"+k(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var ib=/[u0000u00adu0600-u0604u070fu17b4u17b5u200c-u200fu2028-u202fu2060-u206fufeffufff0-uffff]/g,
jb=/[\"x00-x1fx7f-x9fu00adu0600-u0604u070fu17b4u17b5u200c-u200fu2028-u202fu2060-u206fufeffufff0-uffff]/g,N,Za,Ib={"u0008":"\b","t":"\t","n":"\n","u000c":"\f","r":"\r",'"':'\"',"\":"\\"},Da;if(typeof JSON.stringify!=="function")JSON.stringify=function(C,da,E){var O;Za=N="";if(typeof E==="number")for(O=0;O<E;O+=1)Za+=" ";else if(typeof E==="string")Za=E;if((Da=da)&&typeof da!=="function"&&(typeof da!=="object"||typeof da.length!=="number"))throw Error("JSON.stringify");
return na("",{"":C})};if(typeof JSON.parse!=="function")JSON.parse=function(C,da){function E(Z,sa){var wa,P,w=Z[sa];if(w&&typeof w==="object")for(wa in w)if(Object.prototype.hasOwnProperty.call(w,wa)){P=E(w,wa);if(P!==undefined)w[wa]=P;else delete w[wa]}return da.call(Z,sa,w)}var O;C=String(C);ib.lastIndex=0;if(ib.test(C))C=C.replace(ib,function(Z){return"\u"+("0000"+Z.charCodeAt(0).toString(16)).slice(-4)});if(/^[],:{}s]*$/.test(C.replace(/\(?:["\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\nr]*"|true|false|null|-?d+(?:.d*)?(?:[eE][+-]?d+)?/g,
"]").replace(/(?:^|:|,)(?:s*[)+/g,""))){O=eval("("+C+")");return typeof da==="function"?E({"":O},""):O}throw new SyntaxError("JSON.parse");}})();var uppodstyle="";
?>