Вход Регистрация
Файл: style/uppod.js
Строк: 3409
<?php
var uppod_players;
function 
Uppod(k){function F(){if(k.id){Sa=navigator.userAgent.toLowerCase();if(Sa.indexOf("ipad")>0||Sa.indexOf("iphone")>0)Ta=ya=true;else{if(Sa.indexOf("webkit")>-1)fc=true;if(Sa.indexOf("firefox")>-1)Xc=true;if(Sa.indexOf("android")>-1)Ta=gc=true;if(Sa.indexOf("opera")>-1)hc=true}if(navigator.vendor)if(navigator.vendor.indexOf("Apple")>-1)ic=true;(Ib=!!document.createElement("canvas").getContext)&&(Ib=!!document.createElement("video").canPlayType);a=new Yc;if(Ib){a.stg.innerHTML="";e(a.stg,{lineHeight:"1",
textAlign:"left","background-color":a.transparent==1?"transparent":"#"+a.bgcolor,"text-align":"left","-moz-user-select":"-moz-none","-o-user-select":"none","-khtml-user-select":"none","-webkit-user-select":"none","user-select":"none"});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});jc();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"&&qa();if(typeof a.pl=="string"){var b=kc(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){fa(a.lang2.errjson_decode+" "+ub(a.pl),true)}qa()}if(a.file==""){m=0;if(a.random==1){m=getRandomInt(0,D.length-1);e(plbg[0],{opacity:a.plalpha,filter:"alpha(opacity="+a.plalpha*
100+"
)"});e(plbg[m],{opacity:0.8,filter:"alpha(opacity=80)"})}for(var g in a.pl[m]){b=true;if(g=="poster")if(a.poster)b=false;else a.bigposter&&(a.poster=a.bigposter);if(b)a[g]=a.pl[m][g]}}}if(a.file){a.file&&a.hd&&lc();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:mc(a.namefontstyle),fontWeight:nc(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=kb;
X.style.display="none";if(a.comment!=undefined&&a.comment!=""&&a.showname==1)if(a.shownameliketip==1){g=a.comment;ra=document.createElement("div");e(ra,{width:"100%",position:"absolute",top:5+a.namemargin_v+a.padding,left:5+a.namemargin_h+a.padding,color:"#"+a.namecolor});W.c.appendChild(ra);Ua=document.createElement("div");ra.appendChild(Ua);e(Ua,{position:"absolute",top:0,left:0,padding:a.namepadding/2+"px "+a.namepadding+"px",fontFamily:a.namefont,fontSize:a.namefontsize+"px",fontStyle:mc(a.namefontstyle),
fontWeight:nc(a.namefontstyle),"z-index":2});Ua.innerHTML=g;g=new za({w:Ua.offsetWidth,h:Ua.offsetHeight,o:a.namebgo/2,bgc:a.namebgcolor+"|"+a.namebgcolor,bga1:a.namebgalpha,bga2:a.namebgalpha});ra.appendChild(g.c);e(g.canvas,{"z-index":1});a.shownameonover==1&&a.shownameonstop==0&&Hide(ra)}else fa(a.comment,false);lb();C();Zc();ab();$c(X);mb!=""&&fa(mb,true);sizeInterval=setInterval(ad,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 fa(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 kb(){Hide(X)}function lb(){if(a.logo!=""){J=document.createElement("img");J.src=a.logo;J.onload=N;W.c.appendChild(J);e(J,{opacity:a.logoalpha,filter:"alpha(opacity="+a.logoalpha*
100+")"});if(a.logolink!=""){J.onmouseover=function(){e(J,{opacity:1,filter:"alpha(opacity=100)"})};J.onmouseout=function(){e(J,{opacity:a.logoalpha,filter:"alpha(opacity="+a.logoalpha*100+")"})};J.onclick=function(){window.open(a.logolink,a.logotarget)}}N()}}function N(){a.logoplace==1&&e(J,{position:"absolute",top:a.logomargin_v,left:a.logomargin_h});a.logoplace==2&&e(J,{position:"absolute",top:a.logomargin_v,right:a.logomargin_h});a.logoplace==3&&e(J,{position:"absolute",bottom:a.logomargin_v+
J.offsetHeight,right:a.logomargin_h});a.logoplace==4&&e(J,{position:"absolute",bottom:a.logomargin_v+J.offsetHeight,left:a.logomargin_h})}function ab(){window.addEventListener("keydown",Ea);a.stg.onmousemove=function(b){if(Jb){oc=pc-(b.clientX+b.clientY);if(oc!=0){qc();if(a.cntrlhide==1||t){clearInterval(Fa);Fa=setInterval(wb,3E3)}}}pc=b.clientX+b.clientY};a.stg.onmouseup=function(){l&&(l.active=false);z&&(z.active=false)};a.stg.onmouseover=function(){Kb=true;a.shownameonover==1&&Show(ra)};a.stg.onmouseout=
function(){
Kb=false;a.shownameonover==1&&(a.shownameonstop==1&&G||a.shownameonstop==0)&&Hide(ra)};a.stg.oncontextmenu=function(b){if(!b)b=window.event;b.cancelBubble=true;b.stopPropagation&&b.stopPropagation();if(Ga)e(Ga,{display:"block",position:"absolute",top:b.pageY,left:b.pageX});else{Ga=document.createElement("div");Ga.id="rmenu";document.body.appendChild(Ga);var d=document.createElement("div");Ga.appendChild(d);d.innerHTML="<b>Uppod</b> HTML5 0.3.10";e(Ga,{"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"});Ga.style.zIndex=999}setTimeout('document.getElementById("rmenu").style.display="none";',1E3);return false};document.addEventListener("click",Lb)}function Lb(){Ga&&Hide(Ga)}function Ea(b){var d=b.which;if(d==undefined)d=b.keyCode;t&&d==27&&nb();if((G||t)&&d==32)ba()}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(Mb){clearInterval(Mb);i.removeEventListener("play",xb,false);i.removeEventListener("pause",Nb,false);i.removeEventListener("ended",rc,false);i.removeEventListener("loadedmetadata",sc,false);i.removeEventListener("volumechange",tc,false)}or=[];ori=0;i.pause();i.src="";Aa.removeChild(i);delete i;i=undefined;a.events=[];if(z){e(ga.canvas,{width:"0"});e(sa.canvas,{width:"0"})}La=Ob=false;bb=0}if(!Aa){Aa=
document.createElement("div");e(Aa,{backgroundColor:"transparent",position:"absolute",left:0,top:0});Ka.c.appendChild(Aa);Aa.onclick=ba}i=document.createElement(a.m);Aa.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&&fc&&a.airplay==1&&i.setAttribute("x-webkit-airplay","allow");i.controls=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":ic?"auto":"metadata";a.auto=="play"?i.autoplay=true:i.autoplay=false;setTimeout(uc,33);if(a.poster!="")if(a.m=="audio"){if(!yb){yb=document.createElement("div");Ka.c.appendChild(yb)}e(yb,{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&&Pb()}a.auto!="none"&&Z();if(a.m=="video"&&ya)i.ontouchstart=ca;S||
E()}function ca(){if(!cb)if(a.cntrlhide==1&&a.cntrlout==0||t){qc();clearInterval(Fa);Fa=setInterval(wb,3E3)}}function E(){S&&Qb("layer");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(ya)S.ontouchstart=ba;else S.onclick=ba;S.style.zIndex=2;X.style.zIndex=3;ra&&(ra.style.zIndex=4);r&&(r.style.zIndex=5);J&&(J.style.zIndex=6);if(a.o>0){db=document.createElement("canvas");
var 
b=db.getContext("2d");db.height=a.o;db.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(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(a.o/2,0,a.o/2,a.o/2);b.lineTo(a.o/2,0);b.closePath();b.fill();S.appendChild(eb);fb=document.createElement("canvas");b=fb.getContext("2d");fb.height=
a.o;fb.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(fb);gb=document.createElement("canvas");b=gb.getContext("2d");gb.height=a.o;gb.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(gb);O()}}function O(){e(db,{position:"absolute",top:0,left:0});e(eb,{position:"absolute",
top:0,left:Math.round(a.sw-a.o/2)});e(fb,{position:"absolute",top:Math.round(a.sh-a.o/2),left:Math.round(a.sw-a.o/2)});e(gb,{position:"absolute",top:Math.round(a.sh-a.o/2),left:0})}function Z(){Y=[];if(a.file!=""){if(a.file.indexOf(" or ")){a.or=a.file.split(" or ");a.ori=0;a.file=a.or[0]}if(a.file.indexOf("|")>0)for(var b=a.file.split("|"),d=0;d<b.length;d++){if(ya&&b[d].indexOf(".mp4")>-1||!ya){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 qa(){n=document.createElement("div");B=document.createElement("div");n.appendChild(B);D=[];plbg=[];pltext=[];Va=[];Ba=[];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.pl_rows,left:a.pltw*j+a.plmargin*j-a.pltw*b});if(a.plrows>0)if(j%a.plrows==
0)a.pl[j].endrow=1;if(a.pl[j].endrow==1){a.pl_rows++;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(ya)D[j].ontouchstart=bd;else{D[j].onmouseover=cd;D[j].onmouseout=dd;D[j].onclick=ed}Va[j]=false;Ba[j]=j}if(ya){B.ontouchstart=w;B.ontouchmove=fd;B.ontouchend=gd}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.pl_rows+1)+
10,overflow:"hidden"});a.plplace=="bottom"?e(B,{position:"absolute",top:0,left:0}):e(B,{position:"absolute",top:10,left:10});ta=(a.pl.length-b)*a.pltw+(a.pl.length-b-1)*a.plmargin;Qa=a.plth*(a.pl_rows+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});ta=a.sw-a.plmargin_h*2;Qa=a.pl.length*a.plth+(a.pl.length-1)*a.plmargin}m=0;e(plbg[m],{opacity:0.8,filter:"alpha(opacity=80)"});
n.style.zIndex=6;P();a.plplace=="inside"&&a.pliview==0&&ShowHide(n)}function ua(){n?ShowHide(n):qa()}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.pl_rows,left:a.plmargin_h});B.offsetLeft<-ta+n.offsetWidth&&e(B,{position:"absolute",top:10,left:-ta+n.offsetWidth});ta<=a.sw-a.plmargin_h*2&&e(B,{position:"absolute",top:10,left:0})}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});m!==null&&Rb(m)}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});m!==null&&Rb(m)}}}function w(b){zb=vc=b.targetTouches[0].pageX;Ab=wc=b.targetTouches[0].pageY}function fd(b){var d=b.targetTouches[0].pageX-zb,g=b.targetTouches[0].pageY-Ab;zb=b.targetTouches[0].pageX;Ab=b.targetTouches[0].pageY;if(a.plplace=="inside"||a.plplace=="bottom"){d=
B.offsetLeft+d;if(d<0&&d>-ta+n.offsetWidth)e(B,{position:"absolute",top:a.plplace=="bottom"?0:10,left:d})}if(a.plplace=="bottomrow"){d=B.offsetTop+g;d<0&&d>-Qa+n.offsetHeight-10&&e(B,{position:"absolute",top:d,left:0})}b.preventDefault()}function bd(b){Bb=b.target.getAttribute("id").substr(4)}function gd(){var b=zb-vc,d=Ab-wc;if(b==0&&d==0){if(Bb!==null){Ra();m=Bb;Sb();Bb=null}}else{if(a.plplace=="inside"||a.plplace=="bottom"){b=B.offsetLeft+b;b>0&&(b=0);b<-ta+n.offsetWidth&&(b=-ta+n.offsetWidth);
clearInterval(Ma);ob=b;Ma=setInterval(Cb,20)}if(a.plplace=="bottomrow"){b=B.offsetTop+d;b>0&&(b=0);b<-Qa+n.offsetHeight-10&&(b=-Qa+n.offsetHeight-10);clearInterval(Ma);ob=b;Ma=setInterval(Cb,20)}}}function cd(b){b=b.target.getAttribute("id").substr(4);e(plbg[b],{opacity:1,filter:"alpha(opacity=100)"});Rb(b);a.pl[b].poster&&a.pl[b].comment&&Show(pltext[b])}function dd(b){b=b.target.getAttribute("id").substr(4);if(a.pl[b].poster){if(m!=b){Hide(pltext[b]);e(plbg[b],{opacity:Va[b]?0.5:1,filter:"alpha(opacity="+
(
Va[b]?0.5:1)*100+")"})}}else m!=b?e(plbg[b],{opacity:Va[b]?a.plalpha2:a.plalpha,filter:"alpha(opacity="+(Va[b]?a.plalpha2:a.plalpha)*100+")"}):e(plbg[b],{opacity:0.8,filter:"alpha(opacity=80)"})}function ed(b){m!==null&&Ra();m=b.target.getAttribute("id").substr(4);Sb()}function Sb(){if(a.pl[m].playlist)Wa();else{Wa();a.plplace=="inside"&&Hide(n);if(!G){Xa=true;ba()}}Tb()}function hd(){m<D.length-1&&Ub()}function Ub(){if(a.random==1)if(Ba.length>1){m!==null&&Ra();m=Ba[getRandomInt(0,Ba.length-1)];
Wa();I("next")}else{Vb();H&&e(H.c,{opacity:1,filter:"alpha(opacity=100)",cursor:"pointer"})}else if(m<D.length-1){m!==null&&Ra();m++;Wa();I("next")}else Vb();Tb();!G&&xb()}function Tb(){if(a.random==0){if(m==0)H&&e(H.c,{opacity:0.3,filter:"alpha(opacity=30)",cursor:"default"});else H&&e(H.c,{opacity:1,filter:"alpha(opacity=100)",cursor:"pointer"});if(m==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 
id(){if(a.random==1)if(Ba.length>1){m!==null&&Ra();m=Ba[getRandomInt(0,Ba.length-1)];Wa();I("prev")}else Vb();else if(m>0){m!==null&&Ra();m--;Wa();I("prev");m==0&&H&&e(H.c,{opacity:0.3,filter:"alpha(opacity=30)",cursor:"default"})}Tb()}function Vb(){if(a.plplay1==1)xc();else if(a.random==1){for(p=0;p<D.length;p++)Ba[p]=p;Ub()}else{Ra();m=0;Wa();I("next")}}function Ra(){if(a.pl[m].poster){Hide(pltext[m]);e(plbg[m],{opacity:0.5,filter:"alpha(opacity=50)"})}else e(plbg[m],{opacity:a.plalpha2,
filter:"alpha(opacity="+a.plalpha2*100+")"});Va[m]=true;var b=Ba.indexOf(m);b!=-1&&Ba.splice(b,1)}function Wa(){if(a.pl[m].playlist){if(a.pl[m].playlist!="back"){a.pl_history.push(a.pl);var b=a.pl[m].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)}qa();a.plplace=="inside"&&Show(n)}else{a.pl[m].bigposter&&(a.poster=a.pl[m].bigposter);a.pl[m].comment&&
(
a.comment=a.pl[m].comment);a.pl[m].download&&(a.download=a.pl[m].download);a.file=a.pl[m].file;lc();pb(a.file,true);e(plbg[m],{opacity:0.8,filter:"alpha(opacity=80)"})}}function Rb(b){if(a.plplace=="inside"||a.plplace=="bottom")ta>a.sw-a.plmargin_h*2&&yc(b);a.plplace=="bottomrow"&&Qa>a.bottomrowheight&&yc(b)}function yc(b){clearInterval(Ma);if(a.plplace=="inside"||a.plplace=="bottom"){var d=-D[b].offsetLeft+n.offsetWidth/2-a.pltw/2;if(d>0||ta<a.sw)d=10;if(d<0&&d<-ta+n.offsetWidth-10)d=-ta+n.offsetWidth-
10;ob=d;Ma=setInterval(Cb,20)}if(a.plplace=="bottomrow"){d=-D[b].offsetTop+n.offsetHeight/2-a.plth/2;if(d>0)d=10;if(d<-Qa+n.offsetHeight-10)d=-Qa+n.offsetHeight-10;ob=d;Ma=setInterval(Cb,20)}}function Cb(){var b=ob;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 pb(b,d){Wb=G=false;if(ya){a.file=b;setTimeout(jd,1E3)}else{d&&(a.auto="play");a.file=b;C()}if(a.comment!=undefined&&a.comment!=""&&a.showname==1)if(a.shownameliketip==1)Ua.innerHTML=a.comment;else fa(a.comment,false)}function jd(){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 uc(){if(i)if(i.networkState>0){La=true;e(i,{opacity:1,filter:"alpha(opacity=100)"});
Mb=setInterval(kd,500);i.addEventListener("play",xb,false);i.addEventListener("pause",Nb,false);i.addEventListener("ended",rc,false);i.addEventListener("loadedmetadata",sc,false);i.addEventListener("volumechange",tc,false);document.addEventListener("fullscreenchange",function(){!document.fullscreen&&!t&&!hc&&nb()},false);document.addEventListener("mozfullscreenchange",function(){!document.mozFullScreen&&t&&nb()},false);document.addEventListener("webkitfullscreenchange",function(){!document.webkitIsFullScreen&&
t&&nb()},false);Xb(Yb?0:Ca);if(!zc){I("init");zc=true}}else setTimeout(uc,33)}function ba(){if(a.auto=="none"){i.autoplay=true;Z();Xa=true}a.auto="play";if(!a.file||a.file=="")I("error","nofile");if(La){Xa=true;if(G){i.pause();Nb()}else{i.play();xb()}}else if(!G)if(Q!=undefined){Q.c.style.display="none";ha.c.style.display="block"}}function hb(){G&&ba();a.auto="none";C();I("stop")}function Ac(){G&&ba();window.open(a.download?a.download:a.file,"_blank");I("download")}function Zb(){if(q)if(a.filehd){a.start=
i.currentTime;var b=a.file;pb(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 lc(){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(",");Bc();if($)a.file=$.value;else for(h=0;h<a.hdlinks.length;h++)if(a.hdlinks[h]!=""){a.file=a.hdlinks[h];break}}}}function Bc(){if(q)if($&&a.hdlinks){var b=0,d=[];$.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];$.appendChild(d[h]);if(a.hda[h]==a.quality){b=h;d[h].setAttribute("selected","true");Cc(false)}}Dc($.options[b].text,q)}}function ld(){Cc(true)}function Cc(b){if(q&&a.hdlinks){b&&(a.start=i.currentTime);a.file=$.value;pb($.value,b);Dc($.options[$.selectedIndex].text,q);a.quality=$.options[$.selectedIndex].text}}function qb(b){var d=false;if(Y)if(Y.length>0){Ec||(d=true);if(!d){if(!t||b=="re"){if(a.realfullscreen==1)if(this.requestFullScreen){a.stg.requestFullScreen();Ya=true}else if(this.requestFullscreen){a.stg.requestFullscreen();
Ya=true}else if(this.mozRequestFullScreen){a.stg.mozRequestFullScreen();Ya=true}else if(this.webkitRequestFullScreen){a.stg.webkitRequestFullScreen();Ya=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(Aa,{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:Ya?screen.width:a.iframe!=""?window.parent.innerWidth:window.innerWidth,height:Ya?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(Fa);Fa=setInterval(wb,3E3);b!="re"&&I("fullscreen")}else nb();setTimeout(Fc,100);n&&e(n,{top:-1000});J&&N()}}}function nb(){if(document.cancelFullScreen)document.cancelFullScreen();else if(document.exitFullscreen)document.exitFullscreen();else 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(Aa,{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();I("exitfullscreen");J&&N()}function Gc(){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 g=new za({w:b,h:d,o:10,bgc:"000000|000000",bga1:0.5,bga2:0.5});U.appendChild(g.c);e(g.c,{position:"relative",top:"0",left:"0"});if(a.download!=""&&a.download!=0)$b("menu_download",a.download==1?a.file:a.download,b,d);a.link!=""&&$b("menu_link",a.link,b,d);e(U,{color:"#ffffff",font:"10px Verdana"});U.style.zIndex=6;$b("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="&nbsp; x &nbsp;";U.appendChild(d);e(d,{position:"absolute",top:3,left:b-25,cursor:"pointer"});d.onclick=md;W.c.appendChild(U);Fc()}}function $b(b,d,g){var f=document.createElement("div");f.innerHTML=a.lang2[b];U.appendChild(f);e(f,{position:"absolute",top:5+Db*45,left:15});b=new za({w:g-
20,h:23,o:5,bgc:"ffffff"});e(b.c,{position:"absolute",top:22+Db*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+Db*45,left:13,width:g-28,height:15,color:"#000000",border:0,background:"none"});b.value=d;b.onclick=function(){this.select()};Db++}function md(){U&&e(U,{display:"none"})}function Fc(){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 wb(){if(G&&i.currentTime>0&&1)if(!Kb&&a.cntrlhide==1||t){clearInterval(Fa);e(r,{visibility:"hidden"});n&&e(n,{visibility:"hidden"});Jb=true}}function qc(){clearInterval(Fa);e(r,{visibility:"visible"});n&&e(n,{visibility:"visible"});Jb=false}function jc(){a.scrn_w=a.sw-a.padding*2;a.scrn_h=a.ph-a.padding*2-(a.cntrlout==1?a.cntrloutheight:0)}function Pb(){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}jc();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(Aa,{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(r,{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"});rb&&e(rb.canvas,{width:""+(a.sw-(t?0:a.padding*2))+"px"})}da&&e(da.c,{left:a.sw/2-da.w/2,top:(!t?a.ph:a.sh)/2-da.h/2});Hc();n&&P()}}function Ic(){ac(0)}function Jc(){if(i.muted){i.muted=false;aa.c.style.display="block";ea.c.style.display="none";Yb=false}else{i.muted=true;ea.c.style.display="block";aa.c.style.display="none";Yb=true}}function xb(){if(!G){if(cb&&
!
i.controls){e(r,{visibility:"hidden"});i.controls=true;Qb("layer");Aa.onclick=null}if(Q!=undefined){Q.c.style.display="none";ha.c.style.display="block"}G=true;if(a.cntrlhide==1&&a.cntrlout==0||t){clearInterval(Fa);Fa=setInterval(wb,3E3)}if(a.comment!=undefined&&a.comment!=""&&a.showname==1)a.shownameliketip==1?a.shownameonstop==1&&Hide(ra):Hide(X);a.plplace=="inside"&&n&&Hide(n);da&&(da.c.style.display="none");I("play");if(!Wb){I("start");Wb=Xa=true}}}function Nb(){if(G){if(Q!=undefined){Q.c.style.display=
"block";ha.c.style.display="none"}G=false;if(a.comment!=undefined&&a.comment!=""&&a.showname==1)a.shownameliketip==1?Show(ra):Show(X);da&&(da.c.style.display="block");I("pause")}}function I(b,d){if(a.debug==1)document.getElementById("tracer")&&(document.getElementById("tracer").innerHTML=b+"<br>"+document.getElementById("tracer").innerHTML);a.events[b]=d;var g=document.createEvent("Events");g.initEvent(b,true,true);a.stg.dispatchEvent(g)}function sc(){Ec=true;if(a.start>0){i.currentTime=a.start;a.start=
0}}function tc(){if(u)a.ivolbar_v?ib(i.volume*u.h):ib(i.volume*u.w);ja&&ib(i.volume*a.cntrlvolbar.w)}function rc(){if(i.ended){I("end");if(a.radio==1){hb();ba()}else{Ic();a.plplay==1&&D?Ub():xc()}}}function ad(){if(a.stg.offsetWidth!=a.sw||a.stg.offsetHeight!=a.sh)Pb()}function kd(){if(i!=undefined){if(i.networkState==3)if(a.or.length>1){if(a.ori==a.or.length-1)a.ori=-1;a.ori++;pb(a.or[a.ori])}else{hb();a.alerts==1&&fa(a.lang2.file+" "+a.lang2.notfound);I("error","file not found")}va&&(va.c.innerHTML=
Eb(i.currentTime));ka&&(ka.c.innerHTML=Eb(!i.duration||i.duration=="Infinity"?0:i.duration));loaded=0;var b=false;if(Fb){if(i.buffered){var d=i.buffered;if(d.length>0){for(var g=0;g<d.length;g++){var f=d.start(g)/i.duration*K.w,x=d.end(g)/i.duration*K.w;ya&&(f=0);if(i.duration>0)(Math.ceil(i.duration)==d.end(g)||Math.floor(i.duration)==d.end(g))&&(x=K.w);if(Gb[g])if(x-f!=Gb[g]){bc[g]++;if(bc[g]>3){Kc=g;bb=f}}else bc[g]=0;Gb[g]=x-f}d=Math.floor(Gb[Kc]);g=Math.round(i.currentTime/i.duration*K.w-bb);
e(sa.canvas,{left:bb+"px",width:""+d+"px"});!z.active&&e(ga.canvas,{left:bb+"px",width:""+(d>=g?g:0)+"px"})}else b=true}else b=true;if(b){g=Math.round(i.currentTime/i.duration*K.w);!z.active&&e(ga.canvas,{width:""+g+"px"})}if(Za&&!Ob)if(i.currentTime>0){Lc();Ob=true}if(G&&i.currentTime==Mc)if(cc>5){Za||wa&&e(wa.c,{display:"block"});Za=true}else cc++;else{if(Za){Za=false;Lc()}cc=0}Mc=i.currentTime}if(G&&a.reloader==1){if(i.currentTime==a.reloadertime){a.reloadercounter++;if(a.reloadercounter>50){a.reloadercounter=
0;hb();ba()}}else a.reloadercounter=0;a.reloadertime=i.currentTime}if(a.eventtime!=0)if(G)if(is_array(a.eventtime))for(g=0;g<a.eventtime.length;g++)a.events["time"+a.eventtime[g]]||i.currentTime>a.eventtime[g]&&I("time"+a.eventtime[g],i.currentTime);else a.events.time||i.currentTime>a.eventtime&&I("time",i.currentTime);if(a.eventplayed!=0)if(G)if(is_array(a.eventplayed))for(g=0;g<a.eventplayed.length;g++)a.events["played"+a.eventplayed[g]]||i.currentTime/i.duration*100>a.eventplayed[g]&&I("played"+
a.eventplayed[g],i.currentTime/i.duration*100);else a.events.played||i.currentTime/i.duration*100>a.eventplayed&&I("played",i.currentTime/i.duration*100);z&&Oa&&jb(Oa,z,ga,K,dc)}if(t&&!Ya)if(a.iframe!="")(window.parent.innerWidth!=a.stg.offsetWidth||window.parent.innerHeight!=a.stg.offsetHeight)&&qb("re");else(window.innerWidth!=a.stg.offsetWidth||window.innerHeight!=a.stg.offsetHeight)&&qb("re")}function xc(){if(i)bb>0?hb():i.pause();if(a.menuauto==1&&la){var b=false;if(U)U.style.visible!="none"&&
(
b=true);b||Gc()}I("end")}function mc(b){var d="normal";if(b=="i"||b=="b><i")d="italic";return d}function nc(b){var d="normal";if(b=="b"||b=="b><i")d="bold";return d}function Lc(){wa&&e(wa.c,{display:"none"});Za=false}function Eb(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 Zc(){r=document.createElement("div");Pa=[];Ia=0;W.c.appendChild(r);e(r,{position:"absolute",top:a.scrn_h-(a.cntrlout==1?-a.padding/
2:a.cntrloutheight)+a.padding,left:a.padding});r.style.zIndex=5;Nc();s=a.controls.split(",");L=0;o=[];v=[];for(var b=0;b<s.length;b++){if(s[b]=="play"){Q=new A("play",20,20);r.appendChild(Q.c);e(Q.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-Q.h)/2});Q.c.onclick=ba;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");r.appendChild(ha.c);e(ha.c,{cursor:"pointer",display:"none",position:"absolute",top:(a.cntrloutheight-ha.h)/2});
ha.c.onclick=ba;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(s[b]=="back"){ma=new A("back",30,20);r.appendChild(ma.c);e(ma.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-ma.h)/2});ma.c.onclick=Ic;o[b]=ma.w+a.cntrlmargin;L+=o[b]+ma.s.marginleft+ma.s.marginright;v[b]=ma;a.tip==1&&ma.s.notip==0&&(ma.c.title=ma.s.tip?ma.s.tip:a.lang2.back)}if(s[b]=="stop"){na=new A("stop",20,20);
r.appendChild(na.c);e(na.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-na.h)/2});na.c.onclick=hb;o[b]=na.w+a.cntrlmargin;L+=o[b]+na.s.marginleft+na.s.marginright;v[b]=na;a.tip==1&&na.s.notip==0&&(na.c.title=na.s.tip?na.s.tip:a.lang2.stop)}if(s[b]=="download"){oa=new A("download",20,20);r.appendChild(oa.c);e(oa.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-oa.h)/2});oa.c.onclick=Ac;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.download)}if(s[b]=="next"){T=new A("next",20,20);r.appendChild(T.c);e(T.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-T.h)/2});T.c.onclick=hd;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(s[b]=="prev"){H=new A("prev",20,20);r.appendChild(H.c);e(H.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-H.h)/2});a.random==0&&e(H.c,{opacity:0.3,filter:"alpha(opacity=30)",
cursor:"default"});H.c.onclick=id;o[b]=H.w+a.cntrlmargin;L+=o[b]+H.s.marginleft+H.s.marginright;v[b]=H;a.tip==1&&H.s.notip==0&&(H.c.title=H.s.tip?H.s.tip:a.lang2.prev)}if(s[b]=="time_play"){va=new A("time_play",30,20);r.appendChild(va.c);e(va.c,{cursor:"default",position:"absolute",top:(a.cntrloutheight-va.h)/2+3+va.s.margintop*1-va.s.marginbottom*1,"white-space":"nowrap"});o[b]=va.w+a.cntrlmargin;L+=o[b]+va.s.marginleft+va.s.marginright;v[b]=va}if(s[b]=="time_all"){ka=new A("time_all",30,20);r.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(s[b]=="|"){Pa[Ia]=new A("separator",5,20);r.appendChild(Pa[Ia].c);e(Pa[Ia].c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-Pa[Ia].h)/2});o[b]=Pa[Ia].w+a.cntrlmargin;L+=o[b]+Pa[Ia].s.marginleft+Pa[Ia].s.marginright;v[b]=Pa[Ia];Ia++}if(s[b]=="run_line"){var d=Oc("run");Oa=document.createElement("div");
r.appendChild(Oa);e(Oa,{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+")"});if(d.icon)if(String(d.icon).indexOf("http://")>-1){xa(d.icon,Oa);e(Oa,{background:"none"})}dc=d.position}if(s[b]=="run_volume"){d=Oc("run_volume");M=document.createElement("div");r.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+")"});sb=d.position;a.ivolbar_v&&Hide(M)}if(s[b]=="sound"&&!Ta){s[b]="volume";a.cntrl_volume=a.cntrl_sound}if((s[b]=="volume"||s[b]=="volbarline_v")&&!Ta){aa=new A("volume",20,20);r.appendChild(aa.c);e(aa.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-aa.h)/2});aa.c.onclick=Jc;ea=new A("volume_mute",20,20,"","volume");r.appendChild(ea.c);e(ea.c,{display:"none",cursor:"pointer",
position:"absolute",top:(a.cntrloutheight-ea.h)/2});o[b]=ea.w+a.cntrlmargin;L+=o[b]+ea.s.marginleft+ea.s.marginright;ea.c.onclick=Jc;v[b]=aa;a.tip==1&&aa.s.notip==0&&(aa.c.title=aa.s.tip?aa.s.tip:a.lang2.volume);if(s[b]=="volbarline_v"){a.ivolbar_v=true;l=document.createElement("div");r.appendChild(l);a.cntrl_volbarline_v.bg=0;e(l,{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");l.appendChild(u.c);l.active=false;e(l,{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");l.appendChild(V.c);e(V.c,{opacity:V.s.play_a,position:"absolute",top:0,left:0});e(l,{cursor:"pointer",position:"absolute",top:-u.h});
e(V.canvas,{height:u.h*a.volume,top:u.h-u.h*a.volume});l.onmousedown=function(f){l.active=true;if(!f)f=window.event;Pc(f)};l.onmousemove=function(f){if(!f)f=window.event;Pc(f)};l.onmouseup=function(){l.active=false};l.onmouseover=function(){l.over=true};l.onmouseout=function(){l.over=false};ea.c.onmouseout=aa.c.onmouseover=function(){e(l,{display:"block"});if(M){e(M,{display:"block"});jb(M,l,V,u,sb)}l.over=true};ea.c.onmouseover=aa.c.onmouseover=function(){e(l,{display:"block"});if(M){e(M,{display:"block"});
jb(M,l,V,u,sb)}l.over=true};ea.c.onmouseout=aa.c.onmouseout=nd;l.style.zIndex=7;M&&Hide(M)}}if(s[b]=="tune"&&!Ta){s[b]="volbarline";a.cntrl_volbarline=a.cntrl_tune}if(s[b]=="volbarline"&&!Ta){l=document.createElement("div");r.appendChild(l);u=new A("volbarline",a.cntrl_volbarline.w?a.cntrl_volbarline.w:a.cntrlvolbarline.w,20,"all");l.appendChild(u.c);l.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,a.cntrl_volbarline.color_load?"load":"play");l.appendChild(V.c);e(V.c,{opacity:V.s.play_a,position:"absolute",top:0,left:0});e(l,{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});l.onmousedown=function(f){l.active=true;if(!f)f=window.event;Qc(f)};l.onmousemove=function(f){if(!f)f=window.event;Qc(f)};l.onmouseout=function(f){if(!f)f=window.event;f=f;if(l.active){if(!f)f=window.event;
if(
f.pageX-Hb(l)>=u.w)l.active=false}};l.onmouseup=function(){l.active=false};v[b]=l}if(s[b]=="volbar"&&!Ta){ja=document.createElement("div");r.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 g=a.cntrlvolbar.bar==1?10/a.cntrlvolbar.n*(vb+1):10*a.cntrlvolbar.scale;Ja[vb]=new A("volbar",3*a.cntrlvolbar.scale,g);ja.appendChild(Ja[vb].c);e(Ja[vb].c,{position:"absolute",top:10*a.cntrlvolbar.scale-
g*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:g-1})};Ja[vb].c.onmouseout=function(){e(this,{top:g})}}}ja.onmousedown=function(f){ja.active=true;if(!f)f=window.event;Rc(f)};ja.onmousemove=function(f){if(!f)f=window.event;Rc(f)};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(s[b]=="full"){R=new A("full",20,20);r.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=qb;Ha=new A("full_back",20,20,"","full");r.appendChild(Ha.c);e(Ha.c,{cursor:"pointer",display:"none",position:"absolute",top:(a.cntrloutheight-
Ha.h)/2});Ha.c.onclick=qb;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(s[b]=="hd"&&a.hd)if(a.hd.indexOf("::")>-1){q=new A("hd",20,20);r.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=Zb;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");r.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=Zb;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<
ec(a.hda[d],12).width&&(a.hdsw=ec(a.hda[d],12).width);a.hdsw+=22}q=new A("hdselect",a.hdsw,20,"","hd");r.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=Zb;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);$=document.createElement("select");q.c.appendChild($);Bc();e($,{position:"absolute",margin:"1px 0px 0px -5px",opacity:0,cursor:"pointer"});$.onchange=
ld}if(s[b]=="playlist")if(a.pl!=""){pa=new A("playlist",20,20);r.appendChild(pa.c);e(pa.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-pa.h)/2});pa.c.onclick=ua;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.list)}if(s[b]=="menu"){la=new A("menu",20,20);r.appendChild(la.c);e(la.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-la.h)/2});la.c.onclick=Gc;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(s[b]=="buffer")if(z){wa=new A("buffer",30,14);r.appendChild(wa.c);e(wa.c,{cursor:"default",position:"absolute","white-space":"nowrap"});v[b]=wa;o[b]=0;wa.c.innerHTML=a.lang2.loading}if(s[b]=="start")if(!(Ca.m=="video"&&cb)){da=new A("start",20,20);W.c.appendChild(da.c);e(da.c,{cursor:"pointer",position:"absolute",top:a.ph/2-da.h/2,left:a.sw/2-da.w/2,"z-index":5});da.c.onclick=ba;da.c.style.zIndex=
7}if(s[b]=="space"){$a=document.createElement("div");r.appendChild($a);e($a,{position:"absolute",top:(a.cntrloutheight-20)/2});v[b]=$a}if(s[b]=="line"){Fb=true;z=document.createElement("div");r.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});sa=new A("line",20,20,"load");z.appendChild(sa.c);e(sa.c,{opacity:sa.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(sa.canvas,{width:"0"});z.onmousedown=function(f){if(Xa){z.active=true;if(!f)f=window.event;Sc(f)}};z.onmouseup=function(f){if(Xa){Sc(f);G&&i.play();z.active=false}};v[b]=z}}ka&&a.time>0&&(ka.c.innerHTML=Eb(a.time));Hc()}function Nc(){Na&&Qb("uibg");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");r.appendChild(Na.c);if(a.glass==1){rb=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(rb.c);e(rb.canvas,{position:"absolute",top:0,left:0,height:a.cntrloutheight/2,width:a.scrn_w})}}}function Hc(){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,g,f;for(j=0;j<s.length;j++)if(v[j]){f=g=0;if(v[j].s){g=v[j].s.marginleft*1;f=
v[j].s.marginright*1}if(s[j]=="volbarline"){g=a.cntrl_volbarline.marginleft?a.cntrl_volbarline.marginleft:0;f=a.cntrl_volbarline.marginright?a.cntrl_volbarline.marginright:0}d+=g;b-=g+f;if(v[j]!=z&&v[j]!=$a){e(v[j].c!=undefined?v[j].c:v[j],{left:d});s[j]=="play"&&e(ha.c,{left:d});s[j]=="full"&&e(Ha.c,{left:d});s[j]=="hd"&&ia&&e(ia.c,{left:d});if(s[j]=="volume"||s[j]=="volbarline_v")e(ea.c,{left:d,opacity:ea.s.icon==2?0.5:1});s[j]=="volbarline_v"&&e(l,{left:d+aa.w/2-u.w/2});d+=Math.floor(o[j]+f)}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;sa.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;sa.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]==$a){e($a,{left:d+3,width:""+b+"px"});o[j]=b;d+=Math.floor(o[j]+
a.cntrlmargin+6)}}if(wa){e(wa.c,{left:z.offsetLeft});e(wa.c,{top:z.offsetTop-9})}}z&&Oa&&jb(Oa,z,ga,K,dc);l&&M&&jb(M,l,V,u,sb)}function jb(b,d,g,f,x){if(b==M&&a.ivolbar_v){g=-g.canvas.offsetHeight-(x>0?b.offsetHeight:b.offsetHeight/2);g<d.offsetTop&&(g=d.offsetTop);g>0+b.offsetHeight&&(g=b.offsetHeight);e(b,{top:g+"px",left:""+(d.offsetLeft+f.s.w/2-b.offsetWidth/2-(x=="1"?b.offsetWidth/2+f.s.w/2:0)+(x=="2"?b.offsetWidth/2+f.s.w/2:0))+"px"})}else{g=g.canvas.offsetWidth+d.offsetLeft-(x>0?b.offsetWidth:
b.offsetWidth/2);g<d.offsetLeft&&(g=d.offsetLeft);g>d.offsetLeft+f.canvas.offsetWidth-b.offsetWidth&&(g=d.offsetLeft+f.canvas.offsetWidth-b.offsetWidth);e(b,{left:g+"px",top:""+(f.canvas.offsetTop+d.offsetTop+10-b.offsetHeight/2-(x=="1"?b.offsetHeight/2+f.s.h/2:0)+(x=="2"?b.offsetHeight/2+f.s.h/2:0))+"px"})}}function Oc(b){var d=[];for(var g in a.cntrlstyle)d[g]=a.cntrlstyle[g];for(g in a["cntrl"+b])d[g]=a["cntrl"+b][g];for(g in a["cntrl_"+b])d[g]=a["cntrl_"+b][g];return d}function Hb(b){var d=0;
if(
b.offsetParent)for(d=b.offsetLeft;b=b.offsetParent;)d+=b.offsetLeft;return d}function nd(){l.over=false;setTimeout(Tc,1E3)}function Tc(){if(l.over)setTimeout(Tc,1E3);else{e(l,{display:"none"});M&&e(M,{display:"none"})}}function Qc(b){if(l.active){if(!b)b=window.event;b=b.pageX-Hb(l);ib(b)}}function Pc(b){if(l.active&&a.ivolbar_v){if(!b)b=window.event;b=b.pageY;var d=l,g=0;if(d.offsetParent)for(g=d.offsetTop;d=d.offsetParent;)g+=d.offsetTop;ib(u.h-(b-g))}}function Rc(b){if(ja.active){if(!b)b=window.event;
b=b.pageX-Hb(ja);ib(b)}}function ib(b){if(V)if(a.ivolbar_v){Ca=Math.max(0,Math.min(1,b/u.h));e(V.canvas,{height:""+u.h*Ca+"px",top:u.h-u.h*Ca})}else{Ca=Math.max(0,Math.min(1,b/u.w));e(V.canvas,{width:""+b+"px"})}if(ja)for(vb=0;vb<Ja.length;vb++){Ca=Math.max(0,Math.min(1,b/a.cntrlvolbar.w));vb<Math.ceil(Ja.length*Ca)?e(Ja[vb].c,{opacity:a.cntrlvolbar.play_a}):e(Ja[vb].c,{opacity:a.cntrlvolbar.all_a})}Xb(Ca);l&&M&&jb(M,l,V,u,sb)}function Xb(b){i.volume=b;document.cookie="uppodhtml5_volume="+b+"; path=/; expires=Mon, 01-Jan-2099 00:00:00 GMT"}
function 
Sc(b){b=b.pageX-Hb(z);z.active&&ac(b);if(a.tip==1&&sa.s.notip==0&&i.duration){b=Eb(b/K.w*i.duration);K.c.title=sa.c.title=ga.c.title=b}}function ac(b){if(i.duration&&Fb){i.currentTime=Math.max(0,Math.min(1,b/K.w))*i.duration;if(Fb&&b==0){e(sa.canvas,{left:0});e(ga.canvas,{left:0})}}}function A(b,d,g,f,x){this.c=document.createElement("div");this.s={};x==undefined&&(x=b);for(var Da in a.cntrlstyle)this.s[Da]=a.cntrlstyle[Da];if(b=="hdselect")for(Da in a.cntrlhdselect)this.s[Da]=a.cntrlhdselect[Da];
for(
Da in a["cntrl"+x])this.s[Da]=a["cntrl"+x][Da];for(Da in a["cntrl_"+x])this.s[Da]=a["cntrl_"+x][Da];this.s.scale&&(this.s.scale*=a.cntrlsize);if(b=="hd"||b=="hd1")d=ec(b=="hd1"?this.s.icon2:this.s.icon,12).width+6*this.s.scale;if(f=="all")this.s.color=this.s.color_all;if(f=="load")this.s.color=this.s.color_load;if(f=="play")this.s.color=this.s.color_play;if(b=="start")if(this.s.bg==1)if(g*this.s.scale2>this.s.bg_h||d*this.s.scale2>this.s.bg_w){g*=this.s.scale2;d*=this.s.scale2}else{g=this.s.bg_h;
d=this.s.bg_w}else{g*=this.s.scale2;d*=this.s.scale2}this.canvas=document.createElement("canvas");this.canvas.height=g*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){f=new za({w:d*this.s.scale,h:g*this.s.scale,o:this.s.bg_o>1?this.s.bg_o/2:g/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(f.c);this.s.bg_a&&e(f.canvas,{opacity:this.s.bg_a,filter:"alpha(opacity="+
this.s.bg_a*100+")"});e(f.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){f=new za({w:d*this.s.scale,h:g*this.s.scale,o:g/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(f.c);e(f.canvas,{position:"absolute",top:0,left:(1-this.s.scale)*d/2+g*this.s.scale/8,height:g*this.s.scale/2,width:d*this.s.scale-g*this.s.scale/4})}}this.fstyle="";if(this.s.color)if(this.s.color.indexOf("|")>
0){f=this.s.color.split("|");x=this.ctx.createLinearGradient(0,0,0,g*this.s.scale);for(this.j=0;this.j<f.length-1;this.j++)x.addColorStop(this.j/(f.length-1),"#"+f[this.j]);x.addColorStop(1,"#"+f[f.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"){f=b=="play"?this.s.scale:this.s.scale2;if(String(this.s.icon).indexOf("http://")>-1)xa(this.s.icon,this.c,1);else{if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(6*f,4*f);this.ctx.lineTo(16*f,9*f);this.ctx.lineTo(6*f,15*f);this.ctx.lineTo(6*f,4*f);this.ctx.closePath();this.ctx.fill()}if(this.s.icon==1){this.ctx.beginPath();this.ctx.moveTo(6*f,5*f);this.ctx.quadraticCurveTo(6*f,4*f,7*f,4*f);this.ctx.lineTo(15*f,9*f);this.ctx.quadraticCurveTo(16*f,10*
f,15*f,11*f);this.ctx.lineTo(7*f,16*f);this.ctx.quadraticCurveTo(6*f,16*f,6*f,15*f);this.ctx.lineTo(6*f,5*f);this.ctx.closePath();this.ctx.fill()}if(this.s.icon==2){this.ctx.moveTo(6*f,5*f);this.ctx.lineTo(15*f,10*f);this.ctx.lineTo(6*f,15*f);this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=3*f;this.ctx.stroke()}if(this.s.icon==3){this.ctx.beginPath();this.ctx.moveTo(6*f,4*f);this.ctx.lineTo(16*f,10*f);this.ctx.lineTo(6*f,16*f);this.ctx.lineTo(6*
f,4*f);this.ctx.lineTo(6*f,5*f);this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=1.5*f;this.ctx.stroke()}}}if(b=="pause"){String(this.s.icon).indexOf("http://")>-1&&xa(this.s.icon,this.c,2);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(String(this.s.icon).indexOf("http://")>-1)xa(this.s.icon,this.c);else{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(String(this.s.icon).indexOf("http://")>-1)xa(this.s.icon,
this.c);else 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(String(this.s.icon).indexOf("http://")>-1)xa(this.s.icon,this.c);else{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(String(this.s.icon).indexOf("http://")>-1)xa(this.s.icon,this.c);else{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(String(this.s.icon).indexOf("http://")>-1)xa(this.s.icon,this.c);else{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(String(this.s.icon).indexOf("http://")>-1)xa(this.s.icon,this.c,b=="volume"?1:2);else{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(String(this.s.icon).indexOf("http://")>-1)xa(this.s.icon,this.c);else{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(String(this.s.icon).indexOf("http://")>-1)xa(this.s.icon,this.c,b=="full"?1:2);else{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(String(this.s.icon).indexOf("http://")>-1)xa(this.s.icon,this.c);else{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,g);this.ctx.lineTo(0,g);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:g*this.s.scale*(this.s.bg==1&&this.s.bg_smallicon==1?0.8:1),position:"absolute",top:Math.round(b=="start"?g/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=g*this.s.scale}function xa(b,d,g){var f=document.createElement("img");if(g>0){g==1&&f.setAttribute("src",b.indexOf("|")>-1?b.substr(0,b.indexOf("|")):b);g==2&&f.setAttribute("src",
b.indexOf("|")>-1?b.substr(b.indexOf("|")+1):b)}else f.setAttribute("src",b);d.appendChild(f)}function e(b,d){for(var g in d)if(d[g]!="NaNpx"){typeof d[g]=="number"&&g!="opacity"&&(d[g]+="px");b.style[g]=d[g]}}function $c(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 Dc(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 g=b.bgc.split("|"),f=d.createLinearGradient(0,b.h0,0,b.h),x=0;x<g.length-1;x++)f.addColorStop(x/(g.length-1),"#"+ReColor(g[x]));f.addColorStop(1,"#"+ReColor(g[g.length-1]));b.bga1!=undefined&&f.addColorStop(0,"rgba("+HTR(g[0])+","+HTG(g[0])+","+HTB(g[0])+","+b.bga1+")");b.bga2!=undefined&&f.addColorStop(0.999,"rgba("+HTR(g[g.length-1])+","+HTG(g[g.length-1])+","+HTB(g[g.length-1])+","+b.bga2+")");d.fillStyle=f}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 Yc(){this.auto="firstframe";this.alerts=1;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_play:"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.androidplayer=this.iosplayer=1;this.filehd=this.file="";this.or=[];this.ori=0;this.youtube=false;this.htmlsize=0;this.plr=this.iframeurl=this.iframe=this.id="";this.pl_history=[];this.bottomrowheight=200;this.pl_rows=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.plcenter=this.plrows=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;Uc(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;cb=false}else this.controls==""&&(this.controls=this.videocontrols);if(this.st!=""){if(this.st.indexOf("{")==-1)if(this.st.indexOf("#")==0)str=tb(this.st);else if(this.st.indexOf(".")==-1)try{if(eval(this.st)){str=eval(this.st);if(str.indexOf("#")==0)str=tb(str)}}catch(g){mb=ub(this.st)+" "+this.lang2.notfound}else str=kc(this.st);else str=this.st;try{style=JSON.parse(str);Uc(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(f){mb==""&&(mb=this.lang2.errjson_decode+" "+ub(this.st))}}if(gc)if(this.m=="video"&&this.androidplayer==1)cb=true;if(ya){this.m=="video"&&(cb=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=tb(this.poster);if(this.file)if(this.file.indexOf("#")==0)this.file=tb(this.file);if(this.pl!=null&&typeof this.pl==="object")this.pl=this.pl.playlist;else if(this.pl.indexOf("#")==0)this.pl=tb(this.pl);this.lang2=this.lang_ru.localization;if(this.lang=="en")this.lang2=this.lang_en.localization;if(ya&&
this.plplace=="inside")this.plplace="bottom";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.indexOf("playlist")==-1)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;Vc("volume")&&this.volume==0.8?Ca=Vc("volume"):Ca=this.volume}function Vc(b){var d=" "+document.cookie;b=" uppodhtml5_"+b+"=";var g=null,f=0,x=0;if(d.length>0){f=d.indexOf(b);if(f!=-1){f+=b.length;x=d.indexOf(";",
f);if(x==-1)x=d.length;g=unescape(d.substring(f,x))}}return g}function Uc(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 tb(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 ec(b,d,g){var f=document.createElement("lDiv");document.body.appendChild(f);if(g!=null)f.style=
g;e(f,{font:""+d+"px Arial",position:"absolute",left:-100,top:-1000});f.innerHTML=b;b={width:f.clientWidth,height:f.clientHeight};document.body.removeChild(f);return b}function ub(b){if(b.indexOf("/")>0)b=b.substr(b.lastIndexOf("/")+1);return b}function kc(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 fa(req.status)}catch(d){a&&fa(a.lang2.errjson+" "+ub(b),true)}}}function Qb(b){return(elem=document.getElementById(b)).parentNode.removeChild(elem)}
var 
a,Sa,mb="",ya=false,gc=false,hc=false,Ta=false,cb=false,Ib=false,La=false,zc=false,G=false,Xa=false,t=false,Ya=false,Jb=false,pc=0,oc=0,Za=false,Kb=false,Wb=false,Fb=false,Ob=false,fc=false,Xc=false,ic=false,Ec=false,ra,Ua,r,n,B,D,ta,Qa,m,Va,Ba,Ca,Yb,Fa,Ga,Wc=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)Wc=true}if(!Wc){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,db,eb,gb,fb,Aa,yb,i,Y,Mb,vc,wc,zb,Ab,Bb,Ma,ob,U,Db=0,Mc=0,cc=0,Gb=[],Kc=0,bc=[],bb=0,S,Na,rb,Q,ha,ma,na,da,va,ka,aa,ea,l,u,V,ja,Ja,Pa,Oa,dc,M,sb,Ia,oa,T,H,R,Ha,z,K,sa,ga,$a,wa,la,pa,q,$,ia,L,s,o,v,J;this.getStatus=function(){return!Xa?0:Za?3:G?1:2};this.Play=function(b){if(b)pb(b,true);else!G&&ba()};this.Init=function(){F()};this.Pause=function(){G&&ba()};this.Toggle=function(){ba()};this.Stop=function(){La&&hb()};this.Seek=function(b){La&&
ac(b)};this.Download=function(){La&&Ac()};this.Resize=function(){Pb()};this.Alert=function(b){fa(b,true)};this.Full=function(){qb()};this.Comment=function(b){fa(b,false)};this.CurrentTime=function(){return La&&i?i.currentTime:-1};this.PlNumber=function(){return D?parseInt(m)+1:-1};this.PlayPlNumber=function(b){if(D){Ra();m=parseInt(b)-1;Sb()}};this.Duration=function(){return La&&i?i.duration:-1};this.Volume=function(b){Xb(b)};this.Played=function(){return La&&i?Math.round(i.currentTime/i.duration*
100):-1};this.Change=function(b,d){a[b]=d;E();Nc()};this.ChangeColor=function(b,d){a[b]=d;if(b=="screencolor"){var g=Ka.canvas.getContext("2d");g.fillStyle=d;g.fillRect(0,0,g.canvas.width,g.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"&&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){lb.lastIndex=0;return lb.test(C)?'"'+C.replace(lb,function(ca){var E=Lb[ca];return typeof E==="string"?E:"\u"+("0000"+ca.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+C+'"'}function fa(C,ca){var E,O,Z,qa,ua=N,P,w=ca[C];if(w&&typeof w==="object"&&typeof w.toJSON==="function")w=w.toJSON(C);if(typeof Ea==="function")w=Ea.call(ca,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+=ab;P=[];if(Object.prototype.toString.apply(w)==="[object Array]"){qa=w.length;for(E=0;E<qa;E+=1)P[E]=fa(E,w)||"null";Z=P.length===0?"[]":N?"[n"+N+P.join(",n"+N)+"n"+ua+"]":"["+P.join(",")+"]";N=ua;return Z}if(Ea&&typeof Ea==="object"){qa=Ea.length;for(E=0;E<qa;E+=1)if(typeof Ea[E]==="string"){O=Ea[E];if(Z=fa(O,w))P.push(F(O)+(N?": ":":")+Z)}}else for(O in w)if(Object.prototype.hasOwnProperty.call(w,O))if(Z=fa(O,w))P.push(F(O)+(N?": ":":")+Z);Z=P.length===0?"{}":
N?"{n"+N+P.join(",n"+N)+"n"+ua+"}":"{"+P.join(",")+"}";N=ua;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 kb=/[u0000u00adu0600-u0604u070fu17b4u17b5u200c-u200fu2028-u202fu2060-u206fufeffufff0-uffff]/g,
lb=/[\"x00-x1fx7f-x9fu00adu0600-u0604u070fu17b4u17b5u200c-u200fu2028-u202fu2060-u206fufeffufff0-uffff]/g,N,ab,Lb={"u0008":"\b","t":"\t","n":"\n","u000c":"\f","r":"\r",'"':'\"',"\":"\\"},Ea;if(typeof JSON.stringify!=="function")JSON.stringify=function(C,ca,E){var O;ab=N="";if(typeof E==="number")for(O=0;O<E;O+=1)ab+=" ";else if(typeof E==="string")ab=E;if((Ea=ca)&&typeof ca!=="function"&&(typeof ca!=="object"||typeof ca.length!=="number"))throw Error("JSON.stringify");
return fa("",{"":C})};if(typeof JSON.parse!=="
function")JSON.parse=function(C,ca){function E(Z,qa){var ua,P,w=Z[qa];if(w&&typeof w==="object")for(ua in w)if(Object.prototype.hasOwnProperty.call(w,ua)){P=E(w,ua);if(P!==undefined)w[ua]=P;else delete w[ua]}return ca.call(Z,qa,w)}var O;C=String(C);kb.lastIndex=0;if(kb.test(C))C=C.replace(kb,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 ca==="function"?E({"":O},""):O}throw new SyntaxError("JSON.parse");}})();var uppodstyle="";
?>
Онлайн: 1
Реклама