function Uppod(h){function t(){if(h.id){Aa=navigator.userAgent.toLowerCase();if(Aa.indexOf("ipad")>0||Aa.indexOf("iphone")>0)Ba=true;else{if(Aa.indexOf("webkit")>0)fb=true;if(Aa.indexOf("firefox")>0)Kb=true}if(navigator.vendor)if(navigator.vendor.indexOf("Apple")>-1)gb=true;(Pa=!!document.createElement("canvas").getContext)&&(Pa=!!document.createElement("video").canPlayType);a=new Lb;if(Pa){d(a.stg,{textAlign:"left","background-color":"#"+a.bgcolor,"text-align":"left"});J=new ca({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.stg.appendChild(J.c);d(J.c,{position:"relative",top:0,left:0});hb();ka=new ca({w:a.scrn_w,h:a.scrn_h,bgc:a.screencolor});J.c.appendChild(ka.c);d(ka.c,{position:"absolute",top:a.padding,left:a.padding,"z-index":1});if(a.pl){if(typeof a.pl=="string"){var b=ib(a.pl);if(b)try{a.pl=JSON.parse(b);a.pl.playlist&&(a.pl=a.pl.playlist)}catch(c){Q(a.lang2.errjson_decode+" "+Qa(a.pl),true)}}if(a.file=="")for(var f in a.pl[0])a[f]=a.pl[0][f]}alrt=
document.createElement("div");d(alrt,{width:"100%",position:"absolute",top:a.padding,left:a.padding,color:"#"+a.commentcolor,"z-index":3});J.c.appendChild(alrt);a.commentbgcolor.indexOf("|")==-1&&(a.commentbgcolor=a.commentbgcolor+"|"+a.commentbgcolor);alrt_bg=new ca({w:a.sw-a.padding*2,h:"20",o:0,bgc:a.commentbgcolor,bga1:a.commentbgalpha1,bga2:a.commentbgalpha2});alrt.appendChild(alrt_bg.c);alrt_txt=document.createElement("div");alrt.appendChild(alrt_txt);d(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:jb(a.namefontstyle),fontWeight:kb(a.namefontstyle)});alrt_x=document.createElement("div");alrt.appendChild(alrt_x);d(alrt_x,{position:"absolute",top:0,right:0,paddingTop:5,paddingRight:10,cursor:"pointer",color:"#"+a.commentcolor});alrt_x.innerHTML="x";alrt_x.onclick=Ca;alrt.style.display="none";if(a.comment!=undefined&&a.comment!=""&&
a.showname==1)if(a.shownameliketip==1){b=a.comment;R=document.createElement("div");d(R,{width:"100%",position:"absolute",top:5+a.namemargin_v+a.padding,left:5+a.namemargin_h+a.padding,color:"#"+a.namecolor});J.c.appendChild(R);f=document.createElement("div");R.appendChild(f);d(f,{position:"absolute",top:0,left:0,padding:a.namepadding/2+"px "+a.namepadding+"px",fontFamily:a.namefont,fontSize:a.namefontsize,fontStyle:jb(a.namefontstyle),fontWeight:kb(a.namefontstyle),"z-index":2});f.innerHTML=b;b=new ca({w:f.offsetWidth,
h:f.offsetHeight,o:a.namebgo/2,bgc:a.namebgcolor+"|"+a.namebgcolor,bga1:a.namebgalpha,bga2:a.namebgalpha});R.appendChild(b.c);d(b.canvas,{"z-index":1});a.shownameonover==1&&a.shownameonstop==0&&Hide(R)}else Q(a.comment,false);w();Mb();Da();Ra(k);Ra(alrt);Ra(a.stg);Sa!=""&&Q(Sa,true);sizeInterval=setInterval(Nb,100)}else if(a.nohtml5.indexOf(".swf")>0){h.file.replace("|","or");new swfobject.embedSWF(a.nohtml5,a.id,a.sw,a.sh,"10.0.0",false,h,{allowFullScreen:"true",allowScriptAccess:"always"})}else a.stg.innerHTML=
a.nohtml5}else alert("uppod:"+a.id+" id?")}function Q(b,c){Show(alrt);alrt_txt.innerHTML=b;d(alrt_bg.canvas,{height:alrt_txt.offsetHeight,width:a.sw-a.padding*2});c?Show(alrt_x):Hide(alrt_x)}function Ca(){Hide(alrt)}function Da(){window.onkeydown=function(b){var c=b.which;if(c==undefined)c=b.keyCode;l&&c==27&&lb();if((u||l)&&c==32)j()};a.stg.onmousemove=function(b){if(Ta){mb=nb-(b.clientX+b.clientY);if(mb!=0){clearInterval(la);d(k,{visibility:"visible"});o&&d(o,{visibility:"visible"});Ta=false;if(a.cntrlhide==
1||l){clearInterval(la);la=setInterval(Ua,3E3)}}}nb=b.clientX+b.clientY};a.stg.onmouseup=function(){B&&(B.active=false);n&&(n.active=false)};a.stg.onmouseover=function(){Va=true;a.shownameonover==1&&Show(R)};a.stg.onmouseout=function(){Va=false;a.shownameonover==1&&(a.shownameonstop==1&&u||a.shownameonstop==0)&&Hide(R)};a.stg.oncontextmenu=function(b){if(!b)b=window.event;b.cancelBubble=true;b.stopPropagation&&b.stopPropagation();if(ja)d(ja,{display:"block",position:"absolute",top:b.clientY,left:b.clientX});
else{ja=document.createElement("div");ja.id="rmenu";document.body.appendChild(ja);var c=document.createElement("div");ja.appendChild(c);c.innerHTML="<b>Uppod</b> HTML5 0.2.3";c.onclick=function(){window.open("http://uppod.com","_blank")};d(ja,{"border-radius":"0px",cursor:"pointer",position:"absolute",top:b.clientY,left:b.clientX,backgroundColor:"#000",color:"#fff",borderStyle:"solid",borderColor:"#000000",borderWidth:"1px",padding:"2px 5px 3px 5px",font:"9px Tahoma",opacity:"1"})}setTimeout('document.getElementById("rmenu").style.display="none";',
3E3);return false};document.onclick=function(){ja&&d(ja,{display:"none"})}}function w(){if(e){if(G)for(var b=0;b<G.length;b++){G[b].setAttribute("src","");e.removeChild(G[b]);delete G[b];G[b]=undefined}if(Wa){clearInterval(Wa);e.removeEventListener("play",Xa,false);e.removeEventListener("pause",Ya,false);e.removeEventListener("ended",ob,false);e.removeEventListener("loadedmetadata",pb,false);e.removeEventListener("volumechange",qb,false)}e.pause();e.src="";da.removeChild(e);delete e;e=undefined;a.events=
[];if(n){d(X.canvas,{width:"0"});d(Y.canvas,{width:"0"})}qa=Za=false}if(!da){da=document.createElement("div");d(da,{backgroundColor:"transparent",position:"absolute",left:0,top:0});ka.c.appendChild(da);da.onclick=j}e=document.createElement(a.m);da.appendChild(e);if(e){e.setAttribute("width",a.sw-(!l?a.padding*2:0)+"px");e.setAttribute("height",a.sh-(!l?a.padding*2:0)-(a.cntrlout==1?a.cntrloutheight:0)+"px")}e&&fb&&a.airplay==1&&e.setAttribute("x-webkit-airplay","allow");e.controls=Ba?true:false;d(e,
{position:"absolute",top:0,left:0});a.m=="audio"&&d(e,{width:"0px",height:"0px"});e.preload=a.auto=="none"?"none":gb?"auto":"metadata";a.auto=="play"?e.autoplay=true:e.autoplay=false;setTimeout(z,33);a.poster!=""&&e.setAttribute("poster",a.poster);a.auto!="none"&&ea();if(Ba)e.onclick=j;C||ra()}function ra(){C&&$("#layer").remove();C=document.createElement("div");C.setAttribute("id","layer");J.c.appendChild(C);d(C,{width:"100%",height:"100%",position:"absolute",top:0,left:0,"z-index":2});C.onclick=
j;C.style.zIndex=2;alrt.style.zIndex=3;R&&(R.style.zIndex=4);k&&(k.style.zIndex=5);if(a.o>0){va=document.createElement("canvas");var b=va.getContext("2d");va.height=a.o;va.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();C.appendChild(va);wa=document.createElement("canvas");b=wa.getContext("2d");wa.height=a.o;wa.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();C.appendChild(wa);xa=document.createElement("canvas");b=xa.getContext("2d");xa.height=a.o;xa.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();C.appendChild(xa);ya=document.createElement("canvas");b=ya.getContext("2d");ya.height=a.o;ya.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();C.appendChild(ya);Ha()}}function Ha(){d(va,{position:"absolute",top:0,left:0});d(wa,{position:"absolute",top:0,left:Math.round(a.sw-a.o/2)});d(xa,{position:"absolute",top:Math.round(a.sh-a.o/2),left:Math.round(a.sw-a.o/2)});d(ya,{position:"absolute",top:Math.round(a.sh-a.o/2),left:0})}function ea(){G=[];if(a.file!="")if(a.file.indexOf("|")>0)for(var b=a.file.split("|"),c=0;c<b.length;c++){G[c]=document.createElement("source");G[c].setAttribute("src",b[c]);e.appendChild(G[c])}else{G[0]=
document.createElement("source");G[0].setAttribute("src",a.file);e.appendChild(G[0])}}function q(){if(o)ShowHide(o);else{if(a.plplace=="inside"){o=document.createElement("div");O=document.createElement("div");o.appendChild(O);K=[];plbg=[];pltext=[];Ea=[];for(i=0;i<a.pl.length;i++){K[i]=document.createElement("div");O.appendChild(K[i]);d(K[i],{cursor:"pointer",color:"#"+a.plcolor,width:a.plw,height:a.plh,position:"absolute",top:0,left:a.plw*i+a.plmargin*i});O.appendChild(K[i]);d(K[i],{color:"#"+a.plcolor,
width:a.plw,height:a.plh,position:"absolute",top:0,left:a.plw*i+a.plmargin*i});plbg[i]=document.createElement("div");K[i].appendChild(plbg[i]);d(plbg[i],{opacity:a.plalpha,backgroundColor:"#"+a.plbgcolor,width:a.plw,height:a.plh});if(a.pl[i].poster){plbg[i].innerHTML="<img src='"+a.pl[i].poster+"' width='100%' id='plim"+i+"'>";d(plbg[i],{opacity:1})}pltext[i]=document.createElement("div");K[i].appendChild(pltext[i]);d(pltext[i],{padding:5,position:"absolute",top:0,left:0,fontFamily:a.plfont,fontSize:a.plfontsize,
height:a.plh});if(a.pl[i].comment)pltext[i].innerHTML=a.pl[i].comment;if(a.pl[i].poster){d(pltext[i],{backgroundColor:"#"+a.plbgcolor});d(plbg[i],{background:"none"});Hide(pltext[i])}K[i].setAttribute("id","plmc"+i);plbg[i].setAttribute("id","plbg"+i);pltext[i].setAttribute("id","pltx"+i);K[i].onmouseover=r;K[i].onmouseout=x;K[i].onclick=H;Ea[i]=false}J.c.appendChild(o);d(o,{position:"absolute",width:a.sw-a.plmargin_h*2,height:a.plh+10,overflow:"hidden"});sa=a.pl.length*a.plw+(a.pl.length-1)*a.plmargin;
Ob=O.offsetHeight;d(O,{position:"absolute",top:10,left:0});o.style.zIndex=6}D()}}function D(){if(a.plplace=="inside"){d(o,{width:a.sw-a.plmargin_h*2});d(o,{top:(l?a.sh:mediaHeight)-a.plh-(a.cntrlout==0?a.cntrloutheight:0)-10,left:a.plmargin_h});O.offsetLeft<-sa+o.offsetWidth&&d(O,{position:"absolute",top:10,left:-sa+o.offsetWidth});sa<=a.sw-a.plmargin_h*2&&d(O,{position:"absolute",top:10,left:0});L&&fa(L)}}function r(b){b=b.target.getAttribute("id").substr(4);plbg[b].style.opacity=1;sa>a.sw-a.plmargin_h*
2&&fa(b);a.pl[b].poster&&a.pl[b].comment&&Show(pltext[b])}function x(b){b=b.target.getAttribute("id").substr(4);if(a.pl[b].poster){if(L!=b){Hide(pltext[b]);plbg[b].style.opacity=Ea[b]?0.5:1}}else if(L!=b)d(plbg[b],{opacity:Ea[b]?a.plalpha2:a.plalpha})}function H(b){if(L){if(a.pl[L].poster){Hide(pltext[L]);d(plbg[L],{opacity:0.5})}else d(plbg[L],{opacity:a.plalpha2});Ea[L]=true;d(K[L],{top:0})}L=b.target.getAttribute("id").substr(4);b=a.pl[L].file;a.auto="play";a.file=b;w();d(plbg[L],{opacity:0.8});
Hide(o)}function fa(b){clearInterval($a);b=-K[b].offsetLeft+o.offsetWidth/2-a.plw/2;if(b>0)b=10;if(b<-sa+o.offsetWidth-10)b=-sa+o.offsetWidth-10;$a=setInterval(S,20,b)}function S(b){Math.abs((O.offsetLeft-b)/10)<=1?clearInterval($a):d(O,{position:"absolute",top:10,left:O.offsetLeft-(O.offsetLeft-b)/10})}function z(){if(e)if(e.networkState>0){qa=true;d(e,{opacity:1});Wa=setInterval(Pb,100);e.addEventListener("play",Xa,false);e.addEventListener("pause",Ya,false);e.addEventListener("ended",ob,false);
e.addEventListener("loadedmetadata",pb,false);e.addEventListener("volumechange",qb,false);e.volume=ab?0:Ia;if(!rb){P("init");rb=true}}else setTimeout(z,33)}function j(){if(a.auto=="none"){e.autoplay=true;ea();Fa=true}a.auto="play";if(!a.file||a.file=="")P("error","nofile");if(qa){Fa=true;if(u){e.pause();Ya()}else{e.play();Xa()}}else if(!u)if(E!=undefined){E.c.style.display="none";M.c.style.display="block"}}function Ja(){u&&j();a.auto="none";w();P("stop")}function Ga(b){var c=false;if(G)if(G.length>
0){sb||(c=true);if(e.webkitSupportsFullscreen&&a.webkitFullscreen==1){e.webkitEnterFullscreen();c=true}if(!c){if(!l||b=="re"){a.iframe!=""&&d(window.parent.document.getElementById(a.iframe),{width:window.parent.innerWidth,height:window.parent.innerHeight,position:"fixed",left:0,top:0});if(b!="re"){l=true;mediaWidth=a.sw;mediaHeight=a.sh;d(J.canvas,{visibility:"hidden"});d(ka.canvas,{visibility:"hidden"});d(da,{backgroundColor:"#000",position:"fixed",left:0,top:0})}F.c.style.display="none";ga.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;d(a.stg,{width:a.iframe!=""?window.parent.innerWidth:window.innerWidth,height:a.iframe!=""?window.parent.innerHeight:window.innerHeight,position:"fixed",left:0,top:0,"z-index":"9999",overflow:"hidden"});C!=undefined&&(C.style.display="none");clearInterval(la);la=setInterval(Ua,3E3);P("fullscreen")}else lb();setTimeout(tb,100);o&&d(o,{top:-1000})}}}function lb(){l=false;a.iframe!=
""&&d(window.parent.document.getElementById(a.iframe),{width:mediaWidth,height:mediaHeight,position:"static",left:0,top:0});d(da,{backgroundColor:"transparent",position:"absolute",left:0,top:0});d(a.stg,{width:mediaWidth,height:mediaHeight,position:a.stageposition==""?"static":a.stageposition,left:a.stageleft,top:a.stagetop});d(J.canvas,{visibility:"visible"});d(ka.canvas,{visibility:"visible"});C!=undefined&&(C.style.display="block");F.c.style.display="block";ga.c.style.display="none";o&&d(o,{top:-1000});
P("exitfullscreen")}function ub(){if(A)ShowHide(A);else{A=document.createElement("div");var b=a.scrn_w<320?a.scrn_w-30:350,c=(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=c;var f=new ca({w:b,h:c,o:10,bgc:"000000|000000",bga1:0.5,bga2:0.5});A.appendChild(f.c);d(f.c,{position:"relative",top:"0",left:"0"});if(a.download!=""&&a.download!=0)bb("menu_download",a.download==1?a.file:a.download,b,c);a.link!=""&&bb("menu_link",a.link,b,c);d(A,{color:"#ffffff",
font:"10px Verdana"});A.style.zIndex=6;bb("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,c);c=document.createElement("div");c.innerHTML="&nbsp; x &nbsp;";A.appendChild(c);d(c,{position:"absolute",top:3,left:b-25,cursor:"pointer"});c.onclick=Qb;J.c.appendChild(A);tb()}}function bb(b,c,f){var g=document.createElement("div");g.innerHTML=a.lang2[b];A.appendChild(g);d(g,
{position:"absolute",top:5+Ka*45,left:15});b=new ca({w:f-20,h:23,o:5,bgc:"ffffff"});d(b.c,{position:"absolute",top:22+Ka*45,left:10});A.appendChild(b.c);b=document.createElement("input");A.appendChild(b);d(b,{position:"absolute",outline:"none",font:"10px Verdana",top:25+Ka*45,left:13,width:f-28,height:15,color:"#000000",border:0,background:"none"});b.value=c;b.onclick=function(){this.select()};Ka++}function Qb(){A&&d(A,{display:"none"})}function tb(){if(A)d(A,{position:"absolute",top:((l?a.sh:mediaHeight)-
a.menu_h)/2,left:((l?a.sw:mediaWidth)-a.menu_w)/2})}function Ua(){if(u&&e.currentTime>0&&1)if(!Va&&a.cntrlhide==1||l){clearInterval(la);d(k,{visibility:"hidden"});o&&d(o,{visibility:"hidden"});Ta=true}}function hb(){a.scrn_w=a.sw-a.padding*2;a.scrn_h=a.sh-a.padding*2-(a.cntrlout==1?a.cntrloutheight:0)}function vb(){a.sw=a.stg.offsetWidth;a.sh=a.stg.offsetHeight;hb();if(!l){d(J.canvas,{width:a.sw,height:a.sh});d(ka.canvas,{width:a.sw-a.padding*2,height:a.sh-a.padding*2-(a.cntrlout==1?a.cntrloutheight:
0)})}if(alrt){d(alrt_bg.canvas,{width:""+a.sw-(l?0:a.padding*2)+"px"});if(a.padding>0)d(alrt,{top:l?0:a.padding,left:l?0:a.padding})}d(da,{width:""+a.sw-(!l?a.padding*2:0)+"px",height:""+a.sh-(!l?a.padding*2:0)-(a.cntrlout==1&&!l?a.cntrloutheight:0)+"px"});d(e,{width:""+a.sw-(!l?a.padding*2:0)+"px",height:""+a.sh-(!l?a.padding*2:0)-(a.cntrlout==1&&!l?a.cntrloutheight:0)+"px"});a.o>0&&Ha();d(k,{top:a.sh-a.cntrloutheight-(a.cntrlout==1?a.padding/2:0)-(!l?a.padding:0),left:!l?a.padding:0});ma&&d(ma.canvas,
{width:""+(a.sw-(l?0:a.padding*2))+"px",height:""+a.cntrloutheight+"px"});N&&d(N.c,{left:a.sw/2-N.w/2,top:a.sh/2-N.h/2});wb();o&&D()}function xb(){yb(0)}function zb(){if(e.muted){e.muted=false;T.c.style.display="block";ha.c.style.display="none";ab=false}else{e.muted=true;ha.c.style.display="block";T.c.style.display="none";ab=true}}function Xa(){if(!u){Ba&&d(k,{visibility:"hidden"});if(E!=undefined){E.c.style.display="none";M.c.style.display="block"}u=true;if(a.cntrlhide==1&&a.cntrlout==0||l){clearInterval(la);
la=setInterval(Ua,3E3)}if(a.comment!=undefined&&a.comment!=""&&a.showname==1)a.shownameliketip==1?Hide(R):Hide(alrt);N&&(N.c.style.display="none");P("play");if(!Ab){P("start");Ab=true}}}function Ya(){if(u){if(E!=undefined){E.c.style.display="block";M.c.style.display="none"}u=false;if(a.comment!=undefined&&a.comment!=""&&a.showname==1)a.shownameliketip==1?Show(R):Show(alrt);N&&(N.c.style.display="block");P("pause")}}function P(b,c){if(a.debug==1)document.getElementById("tracer").innerHTML=b+"<br>"+
document.getElementById("tracer").innerHTML;a.events[b]=c;var f=document.createEvent("Events");f.initEvent(b,true,true);a.stg.dispatchEvent(f)}function pb(){sb=true}function qb(){ia&&Bb(e.volume*ia.w)}function ob(){if(e.ended&&u)if(a.radio==1){Ja();j()}else{xb();j();if(a.menuauto==1&&U){var b=false;if(A)A.style.visible!="none"&&(b=true);b||ub()}P("end")}}function Nb(){if(a.stg.offsetWidth!=a.sw||a.stg.offsetHeight!=a.sh)vb()}function Pb(){if(e!=undefined){na!=undefined&&(na.c.innerHTML=cb(e.currentTime));
oa!=undefined&&(oa.c.innerHTML=cb(!e.duration||e.duration=="Infinity"?0:e.duration));loaded=0;var b=false;if(La){if(e.buffered){var c=e.buffered;if(c.length>0){for(var f=0;f<c.length;f++){var g=c.start(f)/e.duration*I.w,y=c.end(f)/e.duration*I.w;if(Ma[f])if(y-g!=Ma[f]){db[f]++;if(db[f]>5){Cb=f;Na=g}}else db[f]=0;Ma[f]=y-g}c=Math.floor(Ma[Cb]);f=Math.round(e.currentTime/e.duration*I.w-Na);d(Y.canvas,{left:Na+"px",width:""+c+"px"});!n.active&&d(X.canvas,{left:Na+"px",width:""+(c>=f?f:0)+"px"})}else b=
true}else b=true;if(b){f=Math.round(e.currentTime/e.duration*I.w);!n.active&&d(X.canvas,{width:""+f+"px"})}if(ta&&!Za)if(e.currentTime>0){Db();Za=true}if(u&&e.currentTime==Eb)if(eb>5){ta||V&&d(V.c,{display:"block"});ta=true}else eb++;else{if(ta){ta=false;Db()}eb=0}Eb=e.currentTime}if(u&&a.reloader==1){if(e.currentTime==a.reloadertime){a.reloadercounter++;if(a.reloadercounter>50){a.reloadercounter=0;Ja();j()}}else a.reloadercounter=0;a.reloadertime=e.currentTime}if(a.eventtime!=0)if(u)if(is_array(a.eventtime))for(f=
0;f<a.eventtime.length;f++)a.events["time"+a.eventtime[f]]||e.currentTime>a.eventtime[f]&&P("time"+a.eventtime[f],e.currentTime);else a.events.time||e.currentTime>a.eventtime&&P("time",e.currentTime);if(a.eventplayed!=0)if(u)if(is_array(a.eventplayed))for(f=0;f<a.eventplayed.length;f++)a.events["played"+a.eventplayed[f]]||e.currentTime/e.duration*100>a.eventplayed[f]&&P("played"+a.eventplayed[f],e.currentTime/e.duration*100);else a.events.played||e.currentTime/e.duration*100>a.eventplayed&&P("played",
e.currentTime/e.duration*100)}if(l)if(a.iframe!="")(window.parent.innerWidth!=a.stg.offsetWidth||window.parent.innerHeight!=a.stg.offsetHeight)&&Ga("re");else(window.innerWidth!=a.stg.offsetWidth||window.innerHeight!=a.stg.offsetHeight)&&Ga("re")}function jb(b){var c="normal";if(b=="i"||b=="b><i")c="italic";return c}function kb(b){var c="normal";if(b=="b"||b=="b><i")c="bold";return c}function Db(){V&&d(V.c,{display:"none"});ta=false}function cb(b){b=Math.round(b);minutes=Math.floor(b/60);minutes=
minutes>=10?minutes:minutes;b=Math.floor(b%60);b=b>=10?b:"0"+b;return minutes+":"+b}function Mb(){k=document.createElement("div");J.c.appendChild(k);d(k,{position:"absolute",top:a.scrn_h-(a.cntrlout==1?-a.padding/2:a.cntrloutheight)+a.padding,left:a.padding});k.style.zIndex=5;Fb();p=a.controls.split(",");W=0;m=[];s=[];for(var b=0;b<p.length;b++){if(p[b]=="play"){E=new v("play",20,20);k.appendChild(E.c);d(E.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-E.h)/2});E.c.onclick=j;a.tip==
1&&E.s.notip==0&&(E.c.title=E.s.play_tip?E.s.play_tip:a.lang2.play);M=new v("pause",20,20,"","play");k.appendChild(M.c);d(M.c,{cursor:"pointer",display:"none",position:"absolute",top:(a.cntrloutheight-M.h)/2});M.c.onclick=j;m[b]=M.w+a.cntrlmargin;W+=m[b];s[b]=E;a.tip==1&&M.s.notip==0&&(M.c.title=M.s.pause_tip?M.s.pause_tip:a.lang2.pause)}if(p[b]=="back"){Z=new v("back",30,20);k.appendChild(Z.c);d(Z.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-Z.h)/2});Z.c.onclick=xb;m[b]=Z.w+a.cntrlmargin;
W+=m[b];s[b]=Z;a.tip==1&&Z.s.notip==0&&(Z.c.title=Z.s.tip?Z.s.tip:a.lang2.back)}if(p[b]=="stop"){aa=new v("stop",20,20);k.appendChild(aa.c);d(aa.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-aa.h)/2});aa.c.onclick=Ja;m[b]=aa.w+a.cntrlmargin;W+=m[b];s[b]=aa;a.tip==1&&aa.s.notip==0&&(aa.c.title=aa.s.tip?aa.s.tip:a.lang2.stop)}if(p[b]=="time_play"){na=new v("time_play",30,20);k.appendChild(na.c);d(na.c,{cursor:"default",position:"absolute",top:(a.cntrloutheight-na.h)/2+3});m[b]=na.w+
a.cntrlmargin;W+=m[b]+3;s[b]=na}if(p[b]=="time_all"){oa=new v("time_all",30,20);k.appendChild(oa.c);d(oa.c,{cursor:"default",position:"absolute",top:(a.cntrloutheight-oa.h)/2+3});m[b]=oa.w+a.cntrlmargin;W+=m[b]+3;s[b]=oa}if(p[b]=="sound"){p[b]="volume";a.cntrl_volume=a.cntrl_sound}if(p[b]=="volume"){T=new v("volume",20,20);k.appendChild(T.c);d(T.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-T.h)/2});T.c.onclick=zb;ha=new v("volume_mute",20,20,"","volume");k.appendChild(ha.c);d(ha.c,
{display:"none",cursor:"pointer",position:"absolute",top:(a.cntrloutheight-ha.h)/2});m[b]=ha.w+a.cntrlmargin;W+=m[b];ha.c.onclick=zb;s[b]=T;a.tip==1&&T.s.notip==0&&(T.c.title=T.s.tip?T.s.tip:a.lang2.volume)}if(p[b]=="tune"){p[b]="volbarline";a.cntrl_volbarline=a.cntrl_tune}if(p[b]=="volbarline"){B=document.createElement("div");k.appendChild(B);ia=new v("volbarline",a.cntrl_volbarline.w?a.cntrl_volbarline.w:a.cntrlvolbarline.w,20,"all");B.appendChild(ia.c);B.active=false;d(ia.c,{opacity:ia.s.all_a,
position:"absolute",top:0,left:0});za=new v("volbarline",a.cntrl_volbarline.w?a.cntrl_volbarline.w:a.cntrlvolbarline.w,20,"play");B.appendChild(za.c);d(za.c,{opacity:za.s.play_a,position:"absolute",top:0,left:0});d(B,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-ia.h)/2});m[b]=ia.w+a.cntrlmargin;W+=m[b];d(za.canvas,{width:ia.w*a.volume});B.onmousedown=function(c){B.active=true;if(!c)c=window.event;Gb(c)};B.onmousemove=function(c){if(!c)c=window.event;Gb(c)};B.onmouseup=function(){B.active=
false};s[b]=B}if(p[b]=="full"){F=new v("full",20,20);k.appendChild(F.c);d(F.c,{cursor:"pointer",position:"absolute",top:Math.floor((a.cntrloutheight-F.h)/2)});m[b]=F.w+a.cntrlmargin;F.c.onclick=Ga;ga=new v("full_back",20,20,"","full");k.appendChild(ga.c);d(ga.c,{cursor:"pointer",display:"none",position:"absolute",top:(a.cntrloutheight-ga.h)/2});ga.c.onclick=Ga;m[b]=F.w+a.cntrlmargin;W+=m[b];s[b]=F;a.tip==1&&F.s.notip==0&&(F.c.title=F.s.tip?F.s.tip:a.lang2.full);a.tip==1&&ga.s.notip==0&&(ga.c.title=
F.s.tip_off?F.s.tip_off:a.lang2.full_back)}if(p[b]=="playlist")if(a.pl!=""){ba=new v("playlist",20,20);k.appendChild(ba.c);d(ba.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-ba.h)/2});ba.c.onclick=q;m[b]=ba.w+a.cntrlmargin;W+=m[b];s[b]=ba;a.tip==1&&ba.s.notip==0&&(ba.c.title=ba.s.tip?ba.s.tip:a.lang2.playlist)}if(p[b]=="menu"){U=new v("menu",20,20);k.appendChild(U.c);d(U.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-U.h)/2});U.c.onclick=ub;m[b]=U.w+a.cntrlmargin;W+=
m[b];s[b]=U;a.tip==1&&U.s.notip==0&&(U.c.title=U.s.tip?U.s.tip:a.lang2.menu)}if(p[b]=="buffer")if(n){V=new v("buffer",30,14);k.appendChild(V.c);d(V.c,{cursor:"default",position:"absolute",top:(a.cntrloutheight-V.h)/2-(n?I.s.h+4:0)});s[b]=V;m[b]=0;V.c.innerHTML=a.lang2.loading}if(p[b]=="start"){N=new v("start",20,20);J.c.appendChild(N.c);d(N.c,{cursor:"pointer",position:"absolute",top:a.sh/2-N.h/2,left:a.sw/2-N.w/2,"z-index":5});N.c.onclick=j}if(p[b]=="space"){ua=document.createElement("div");k.appendChild(ua);
d(ua,{position:"absolute",top:(a.cntrloutheight-20)/2});s[b]=ua}if(p[b]=="line"){La=true;n=document.createElement("div");k.appendChild(n);I=new v("line",20,20,"all");n.appendChild(I.c);n.active=false;d(I.c,{opacity:I.s.all_a,position:"absolute",top:0,left:0});Y=new v("line",20,20,"load");n.appendChild(Y.c);d(Y.c,{opacity:Y.s.load_a,position:"absolute",top:0,left:0});X=new v("line",20,20,"play");n.appendChild(X.c);d(X.c,{opacity:X.s.play_a,position:"absolute",top:0,left:0});d(n,{position:"absolute",
top:(a.cntrloutheight-I.h)/2,cursor:"pointer"});d(X.canvas,{width:"0"});d(Y.canvas,{width:"0"});n.onmousedown=function(c){if(Fa){n.active=true;if(!c)c=window.event;Hb(c)}};n.onmouseup=function(c){if(Fa){Hb(c);u&&e.play();n.active=false}};s[b]=n}}wb()}function Fb(){ma&&$("#uibg").remove();if(a.cntrlout!=1&&a.cntrlbg==1){a.cntrlbgcolor.indexOf("|")==-1&&(a.cntrlbgcolor=a.cntrlbgcolor+"|"+a.cntrlbgcolor);ma=new ca({w:a.scrn_w,h:a.cntrloutheight,o:a.o/2-a.padding,onotop:1,bgc:a.cntrlbgcolor,bga1:a.cntrlbgalpha1,
bga2:a.cntrlbgalpha2})}if(a.cntrlout==1&&a.padding==0){a.cntrlbgcolor.indexOf("|")==-1&&(a.cntrlbgcolor=a.cntrlbgcolor+"|"+a.cntrlbgcolor);ma=new ca({w:a.scrn_w,h:a.cntrloutheight,o:a.o/2-a.padding,onotop:1,bgc:a.bodycolor,bga1:1,bga2:1})}if(ma){ma.c.setAttribute("id","uibg");k.appendChild(ma.c)}}function wb(){var b=a.sw-W-a.cntrlendmargin*2-a.cntrlmargin*2-(!l?a.padding*2:0)-a.cntrlmarginleft-a.cntrlmarginright,c=a.cntrlendmargin+a.cntrlmarginleft;for(i=0;i<p.length;i++)if(s[i]){b-=2.5;if(s[i]!=
n&&s[i]!=ua){d(s[i].c!=undefined?s[i].c:s[i],{left:c});p[i]=="play"&&d(M.c,{left:c});p[i]=="full"&&d(ga.c,{left:c});if(p[i]=="volume")d(ha.c,{left:c,opacity:ha.s.icon==2?0.5:1});c+=Math.floor(m[i]+a.cntrlmargin)-0.2*i}else{if(n){d(n,{left:c+3});I.w=b;X.w=b;Y.w=b;d(I.canvas,{width:""+b+"px"});m[i]=b;c+=Math.floor(m[i]+a.cntrlmargin+6)}if(ua){d(ua,{left:c+3,width:""+b+"px"});m[i]=b;c+=Math.floor(m[i]+a.cntrlmargin+6)}}V&&d(V.c,{left:n.offsetLeft})}}function Ib(b){var c=0;if(b.offsetParent)for(c=b.offsetLeft;b=
b.offsetParent;)c+=b.offsetLeft;return c}function Gb(b){if(B.active){if(!b)b=window.event;b=b.clientX-Ib(B);Bb(b)}}function Bb(b){d(za.canvas,{width:""+b+"px"});Ia=Math.max(0,Math.min(1,b/ia.w));e.volume=Ia}function Hb(b){b=b.clientX-Ib(n);n.active&&yb(b);if(a.tip==1&&Y.s.notip==0&&e.duration){b=cb(b/I.w*e.duration);I.c.title=Y.c.title=X.c.title=b}}function yb(b){if(e.duration&&La){e.currentTime=Math.max(0,Math.min(1,b/I.w))*e.duration;if(La&&b==0){d(Y.canvas,{left:0});d(X.canvas,{left:0})}}}function v(b,
c,f,g,y){this.c=document.createElement("div");this.s={};y==undefined&&(y=b);for(var pa in a.cntrlstyle)this.s[pa]=a.cntrlstyle[pa];for(pa in a["cntrl"+y])this.s[pa]=a["cntrl"+y][pa];for(pa in a["cntrl_"+y])this.s[pa]=a["cntrl_"+y][pa];this.s.scale&&(this.s.scale*=a.cntrlsize);if(g=="all")this.s.color=this.s.color_all;if(g=="load")this.s.color=this.s.color_load;if(g=="play")this.s.color=this.s.color_play;if(b=="start")if(this.s.bg==1)if(f*this.s.scale2>this.s.bg_h||c*this.s.scale2>this.s.bg_w){f*=
this.s.scale2;c*=this.s.scale2}else{f=this.s.bg_h;c=this.s.bg_w}else{f*=this.s.scale2;c*=this.s.scale2}this.canvas=document.createElement("canvas");this.canvas.height=f*this.s.scale;this.canvas.width=c*this.s.scale;this.ctx=this.canvas.getContext("2d");if(this.s.bg==1){g=new ca({w:c*this.s.scale,h:f*this.s.scale,o:f/2*this.s.bg_o*this.s.scale,bgc:this.s.bgcolor,sh:this.s.bg_sh,sh_c:this.s.sh_c,sh_a:this.s.sh_a});this.c.appendChild(g.c);this.s.bg_a&&(g.c.style.opacity=this.s.bg_a);if(this.s.bg_gl==
1){g=new ca({w:c*this.s.scale,h:f*this.s.scale,o:f/2*this.s.bg_o*this.s.scale,bgc:this.s.gl_color+"|"+this.s.gl_color,bga1:this.s.gl_a1,bga2:this.s.gl_a2});this.c.appendChild(g.c);d(g.canvas,{position:"absolute",top:0,left:c*this.s.scale/8,height:f*this.s.scale/2,width:c*this.s.scale-c*this.s.scale/4})}}this.fstyle="";if(this.s.color.indexOf("|")>0){g=this.s.color.split("|");y=this.ctx.createLinearGradient(0,0,0,f*this.s.scale);for(this.j=0;this.j<g.length-1;this.j++)y.addColorStop(this.j/(g.length-
1),"#"+g[this.j]);y.addColorStop(1,"#"+g[g.length-1]);this.fstyle=y}else this.fstyle="#"+this.s.color;this.ctx.fillStyle=this.fstyle;if(this.s.sh==1){this.ctx.shadowOffsetX=0;this.ctx.shadowOffsetY=this.s.sh_under==1?2:0;this.ctx.shadowBlur=5;this.ctx.shadowColor="rgba("+HTR("#"+this.s.sh_c)+","+HTG("#"+this.s.sh_c)+","+HTB("#"+this.s.sh_c)+","+this.s.sh_a+")"}if(b=="play"||b=="start"){g=b=="play"?this.s.scale:this.s.scale2;if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(6*g,4*g);this.ctx.lineTo(16*
g,9*g);this.ctx.lineTo(6*g,15*g);this.ctx.lineTo(6*g,4*g);this.ctx.closePath();this.ctx.fill()}if(this.s.icon==1){this.ctx.beginPath();this.ctx.moveTo(6*g,5*g);this.ctx.quadraticCurveTo(6*g,4*g,7*g,4*g);this.ctx.lineTo(15*g,9*g);this.ctx.quadraticCurveTo(16*g,10*g,15*g,11*g);this.ctx.lineTo(7*g,16*g);this.ctx.quadraticCurveTo(6*g,16*g,6*g,15*g);this.ctx.lineTo(6*g,5*g);this.ctx.closePath();this.ctx.fill()}if(this.s.icon==2){this.ctx.moveTo(6*g,5*g);this.ctx.lineTo(15*g,10*g);this.ctx.lineTo(6*g,15*
g);this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=3*g;this.ctx.stroke()}if(this.s.icon==3){this.ctx.beginPath();this.ctx.moveTo(6*g,4*g);this.ctx.lineTo(16*g,10*g);this.ctx.lineTo(6*g,16*g);this.ctx.lineTo(6*g,4*g);this.ctx.lineTo(6*g,5*g);this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=1.5*g;this.ctx.stroke()}}if(b=="pause"){if(this.s.icon==0){this.ctx.beginPath();this.ctx.fillRect(6*
this.s.scale,5*this.s.scale,3*this.s.scale,10*this.s.scale);this.ctx.fillRect(12*this.s.scale,5*this.s.scale,3*this.s.scale,10*this.s.scale);this.ctx.closePath();this.ctx.fill()}if(this.s.icon>0){this.ctx.beginPath();this.ctx.moveTo(7*this.s.scale,5*this.s.scale);this.ctx.lineTo(7*this.s.scale,15*this.s.scale);this.ctx.moveTo(14*this.s.scale,5*this.s.scale);this.ctx.lineTo(14*this.s.scale,15*this.s.scale);this.ctx.closePath();this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin=
"round";this.ctx.lineWidth=3*this.s.scale;this.ctx.stroke()}}if(b=="stop"){if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(5*this.s.scale,5*this.s.scale);this.ctx.lineTo(15*this.s.scale,5*this.s.scale);this.ctx.lineTo(15*this.s.scale,15*this.s.scale);this.ctx.lineTo(5*this.s.scale,15*this.s.scale);this.ctx.closePath();this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.fill()}if(this.s.icon==1){this.ctx.beginPath();this.ctx.moveTo(6*this.s.scale,6*this.s.scale);this.ctx.lineTo(14*this.s.scale,
15*this.s.scale);this.ctx.lineTo(6*this.s.scale,6*this.s.scale);this.ctx.moveTo(14*this.s.scale,6*this.s.scale);this.ctx.lineTo(6*this.s.scale,15*this.s.scale);this.ctx.lineTo(14*this.s.scale,6*this.s.scale);this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=3*this.s.scale;this.ctx.stroke();this.ctx.fill()}if(this.s.icon==2){this.ctx.beginPath();this.ctx.moveTo(6*this.s.scale,6*this.s.scale);this.ctx.lineTo(14*this.s.scale,6*this.s.scale);this.ctx.lineTo(14*
this.s.scale,14*this.s.scale);this.ctx.lineTo(6*this.s.scale,14*this.s.scale);this.ctx.closePath();this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=4*this.s.scale;this.ctx.stroke();this.ctx.fill()}if(this.s.icon==3){this.ctx.beginPath();this.ctx.lineWidth=1.5*this.s.scale;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.strokeStyle="#"+this.s.color;this.ctx.strokeRect(5*this.s.scale,5*this.s.scale,11*this.s.scale,11*this.s.scale);
this.ctx.closePath();this.ctx.stroke()}}if(b=="back"){if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(4*this.s.scale,10*this.s.scale);this.ctx.lineTo(14*this.s.scale,5*this.s.scale);this.ctx.lineTo(14*this.s.scale,10*this.s.scale);this.ctx.lineTo(24*this.s.scale,5*this.s.scale);this.ctx.lineTo(24*this.s.scale,15*this.s.scale);this.ctx.lineTo(14*this.s.scale,10*this.s.scale);this.ctx.lineTo(14*this.s.scale,15*this.s.scale);this.ctx.closePath();this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.fill()}if(this.s.icon==
1||this.s.icon==2){this.ctx.beginPath();this.ctx.moveTo(5*this.s.scale,10*this.s.scale);this.ctx.lineTo(13*this.s.scale,6*this.s.scale);this.ctx.lineTo(13*this.s.scale,10*this.s.scale);this.ctx.lineTo(23*this.s.scale,5*this.s.scale);this.ctx.lineTo(23*this.s.scale,15*this.s.scale);this.ctx.lineTo(13*this.s.scale,10*this.s.scale);this.ctx.lineTo(13*this.s.scale,15*this.s.scale);this.ctx.closePath();this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=
2*this.s.scale;this.ctx.stroke();this.ctx.fill()}if(this.s.icon==3){this.ctx.beginPath();this.ctx.moveTo(5*this.s.scale,10*this.s.scale);this.ctx.lineTo(15*this.s.scale,4*this.s.scale);this.ctx.lineTo(15*this.s.scale,10*this.s.scale);this.ctx.lineTo(25*this.s.scale,4*this.s.scale);this.ctx.lineTo(25*this.s.scale,16*this.s.scale);this.ctx.lineTo(15*this.s.scale,10*this.s.scale);this.ctx.lineTo(15*this.s.scale,16*this.s.scale);this.ctx.lineTo(5*this.s.scale,10*this.s.scale);this.ctx.strokeStyle="#"+
this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=1.5*this.s.scale;this.ctx.stroke()}}if(b=="volume"||b=="volume_mute"){if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(5*this.s.scale,8*this.s.scale);this.ctx.lineTo(9*this.s.scale,8*this.s.scale);this.ctx.lineTo(14*this.s.scale,4*this.s.scale);this.ctx.lineTo(14*this.s.scale,15*this.s.scale);this.ctx.lineTo(9*this.s.scale,11*this.s.scale);this.ctx.lineTo(5*this.s.scale,11*this.s.scale);this.ctx.lineTo(5*this.s.scale,
8*this.s.scale);if(b=="volume"){this.ctx.moveTo(15*this.s.scale,7*this.s.scale);this.ctx.lineTo(16*this.s.scale,7*this.s.scale);this.ctx.lineTo(16*this.s.scale,12*this.s.scale);this.ctx.lineTo(15*this.s.scale,12*this.s.scale);this.ctx.lineTo(15*this.s.scale,7*this.s.scale)}this.ctx.closePath();this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.fill()}if(this.s.icon==1){this.ctx.beginPath();this.ctx.moveTo(4*this.s.scale,7*this.s.scale);this.ctx.lineTo(6*this.s.scale,7*this.s.scale);this.ctx.lineTo(6*
this.s.scale,13*this.s.scale);this.ctx.lineTo(4*this.s.scale,13*this.s.scale);this.ctx.lineTo(4*this.s.scale,7*this.s.scale);this.ctx.moveTo(7*this.s.scale,7*this.s.scale);this.ctx.lineTo(13*this.s.scale,2*this.s.scale);this.ctx.lineTo(13*this.s.scale,17*this.s.scale);this.ctx.lineTo(7*this.s.scale,13*this.s.scale);this.ctx.closePath();if(b=="volume"){this.ctx.moveTo(15*this.s.scale,8*this.s.scale);this.ctx.arc(15*this.s.scale,10*this.s.scale,4*this.s.scale,Math.PI*1.6,Math.PI/2.3,false);this.ctx.lineTo(15*
this.s.scale,12*this.s.scale);this.ctx.arc(14*this.s.scale,10*this.s.scale,4*this.s.scale,Math.PI/2.3,Math.PI*1.6,true);this.ctx.moveTo(16*this.s.scale,9*this.s.scale);this.ctx.lineTo(16*this.s.scale,11*this.s.scale);this.ctx.lineTo(15*this.s.scale,11*this.s.scale);this.ctx.lineTo(15*this.s.scale,9*this.s.scale)}this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=0.1;this.ctx.stroke();this.ctx.fill()}if(this.s.icon==2){this.ctx.beginPath();ovalX=
8*this.s.scale;ovalY=14*this.s.scale;ovalW=7*this.s.scale;ovalH=3*this.s.scale;this.ctx.moveTo(ovalX,ovalY-ovalH/2);this.ctx.bezierCurveTo(ovalX-ovalW/2,ovalY-ovalH/2,ovalX-ovalW/2,ovalY+ovalH/2,ovalX,ovalY+ovalH/2);this.ctx.bezierCurveTo(ovalX+ovalW/2,ovalY+ovalH/2,ovalX+ovalW/2,ovalY-ovalH/2,ovalX,ovalY-ovalH/2);this.ctx.moveTo(10*this.s.scale,14*this.s.scale);this.ctx.lineTo(11*this.s.scale,3*this.s.scale);this.ctx.quadraticCurveTo(13*this.s.scale,4*this.s.scale,13*this.s.scale,5*this.s.scale);
this.ctx.quadraticCurveTo(15*this.s.scale,6*this.s.scale,17*this.s.scale,6*this.s.scale);this.ctx.quadraticCurveTo(14*this.s.scale,8*this.s.scale,11*this.s.scale,5*this.s.scale);this.ctx.lineTo(10*this.s.scale,14*this.s.scale);this.ctx.closePath();this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineWidth=0.7;this.ctx.stroke();this.ctx.fill()}if(this.s.icon==3){this.ctx.beginPath();this.ctx.lineWidth=1.5*this.s.scale;this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";
this.ctx.moveTo(3*this.s.scale,8*this.s.scale);this.ctx.lineTo(6*this.s.scale,8*this.s.scale);this.ctx.lineTo(12*this.s.scale,4*this.s.scale);this.ctx.lineTo(12*this.s.scale,16*this.s.scale);this.ctx.lineTo(6*this.s.scale,12*this.s.scale);this.ctx.lineTo(3*this.s.scale,12*this.s.scale);this.ctx.lineTo(3*this.s.scale,8*this.s.scale);this.ctx.lineTo(6*this.s.scale,8*this.s.scale);this.ctx.lineTo(6*this.s.scale,12*this.s.scale);if(b=="volume"){this.ctx.moveTo(15*this.s.scale,7*this.s.scale);this.ctx.lineTo(18*
this.s.scale,4*this.s.scale);this.ctx.moveTo(15*this.s.scale,10*this.s.scale);this.ctx.lineTo(19*this.s.scale,10*this.s.scale);this.ctx.moveTo(15*this.s.scale,13*this.s.scale);this.ctx.lineTo(18*this.s.scale,16*this.s.scale)}this.ctx.stroke()}}if(b=="playlist")if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(6*this.s.scale,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(6*this.s.scale,7*this.s.scale,7*this.s.scale,1*this.s.scale);this.ctx.fillRect(6*this.s.scale,9*this.s.scale,7*this.s.scale,1*this.s.scale);this.ctx.fillRect(6*this.s.scale,11*this.s.scale,7*this.s.scale,1*this.s.scale);this.ctx.fillRect(6*this.s.scale,
13*this.s.scale,7*this.s.scale,1*this.s.scale);this.ctx.closePath()}if(b=="full"||b=="full_back"){if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(6*this.s.scale,7*this.s.scale);this.ctx.lineTo(13*this.s.scale,7*this.s.scale);this.ctx.lineTo(13*this.s.scale,14*this.s.scale);this.ctx.lineTo(6*this.s.scale,14*this.s.scale);this.ctx.closePath();this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=4*this.s.scale;this.ctx.stroke();this.ctx.fill();
this.ctx.clearRect(5*this.s.scale,6*this.s.scale,9*this.s.scale,9*this.s.scale);if(b=="full_back"){this.ctx.fillRect(6*this.s.scale,13*this.s.scale,3*this.s.scale,1*this.s.scale);this.ctx.fillRect(6*this.s.scale,10*this.s.scale,1*this.s.scale,3*this.s.scale)}else{this.ctx.fillRect(10*this.s.scale,7*this.s.scale,3*this.s.scale,1*this.s.scale);this.ctx.fillRect(12*this.s.scale,7*this.s.scale,1*this.s.scale,3*this.s.scale)}this.ctx.closePath()}if(this.s.icon==1){this.ctx.beginPath();if(b=="full_back"){this.ctx.fillRect(7*
this.s.scale,4*this.s.scale,11*this.s.scale,7*this.s.scale);this.ctx.clearRect(8*this.s.scale,5*this.s.scale,9*this.s.scale,5*this.s.scale);this.ctx.fillRect(2*this.s.scale,7*this.s.scale,13*this.s.scale,8*this.s.scale);this.ctx.clearRect(3*this.s.scale,8*this.s.scale,11*this.s.scale,6*this.s.scale)}else{this.ctx.fillRect(2*this.s.scale,8*this.s.scale,11*this.s.scale,7*this.s.scale);this.ctx.clearRect(3*this.s.scale,9*this.s.scale,9*this.s.scale,5*this.s.scale);this.ctx.fillRect(5*this.s.scale,4*
this.s.scale,13*this.s.scale,8*this.s.scale);this.ctx.clearRect(6*this.s.scale,5*this.s.scale,11*this.s.scale,6*this.s.scale)}this.ctx.closePath()}if(this.s.icon==2){this.ctx.beginPath();this.ctx.moveTo(2*this.s.scale,2*this.s.scale);this.ctx.lineTo(6*this.s.scale,2*this.s.scale);this.ctx.lineTo(5*this.s.scale,3*this.s.scale);this.ctx.lineTo(7*this.s.scale,5.5*this.s.scale);this.ctx.lineTo(5.5*this.s.scale,7*this.s.scale);this.ctx.lineTo(3*this.s.scale,5*this.s.scale);this.ctx.lineTo(2*this.s.scale,
6*this.s.scale);this.ctx.lineTo(2*this.s.scale,2*this.s.scale);this.ctx.moveTo(14*this.s.scale,2*this.s.scale);this.ctx.lineTo(18*this.s.scale,2*this.s.scale);this.ctx.lineTo(18*this.s.scale,6*this.s.scale);this.ctx.lineTo(17*this.s.scale,5*this.s.scale);this.ctx.lineTo(14.5*this.s.scale,7*this.s.scale);this.ctx.lineTo(13*this.s.scale,5.5*this.s.scale);this.ctx.lineTo(15*this.s.scale,3*this.s.scale);this.ctx.lineTo(14*this.s.scale,2*this.s.scale);this.ctx.moveTo(14.5*this.s.scale,13*this.s.scale);
this.ctx.lineTo(17*this.s.scale,15*this.s.scale);this.ctx.lineTo(18*this.s.scale,14*this.s.scale);this.ctx.lineTo(18*this.s.scale,18*this.s.scale);this.ctx.lineTo(14*this.s.scale,18*this.s.scale);this.ctx.lineTo(15*this.s.scale,17*this.s.scale);this.ctx.lineTo(13*this.s.scale,14.5*this.s.scale);this.ctx.lineTo(14.5*this.s.scale,13*this.s.scale);this.ctx.moveTo(5.5*this.s.scale,13*this.s.scale);this.ctx.lineTo(7*this.s.scale,14.5*this.s.scale);this.ctx.lineTo(5*this.s.scale,17*this.s.scale);this.ctx.lineTo(6*
this.s.scale,18*this.s.scale);this.ctx.lineTo(2*this.s.scale,18*this.s.scale);this.ctx.lineTo(2*this.s.scale,14*this.s.scale);this.ctx.lineTo(3*this.s.scale,15*this.s.scale);this.ctx.lineTo(5.5*this.s.scale,13*this.s.scale);this.ctx.closePath();this.ctx.fill();this.ctx.save();this.ctx.beginPath();this.ctx.fillStyle="rgba("+HTR(this.s.color)+","+HTG(this.s.color)+","+HTB(this.s.color)+",0.5)";this.ctx.fillRect(7*this.s.scale,7*this.s.scale,6*this.s.scale,6*this.s.scale);this.ctx.closePath()}if(this.s.icon==
3){this.ctx.beginPath();if(b=="full_back"){this.ctx.moveTo(18*this.s.scale,2*this.s.scale);this.ctx.lineTo(2*this.s.scale,16*this.s.scale);this.ctx.lineTo(5*this.s.scale,10*this.s.scale);this.ctx.moveTo(2*this.s.scale,16*this.s.scale);this.ctx.lineTo(10*this.s.scale,14*this.s.scale)}else{this.ctx.moveTo(3*this.s.scale,18*this.s.scale);this.ctx.lineTo(17*this.s.scale,2*this.s.scale);this.ctx.lineTo(8*this.s.scale,6*this.s.scale);this.ctx.moveTo(17*this.s.scale,2*this.s.scale);this.ctx.lineTo(15*this.s.scale,
11*this.s.scale)}this.ctx.closePath();this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=1*this.s.scale;this.ctx.stroke();this.ctx.closePath()}}if(b=="menu"){if(this.s.icon==0){this.ctx.beginPath();this.ctx.moveTo(6*this.s.scale,7*this.s.scale);this.ctx.lineTo(13*this.s.scale,7*this.s.scale);this.ctx.lineTo(13*this.s.scale,14*this.s.scale);this.ctx.lineTo(6*this.s.scale,14*this.s.scale);this.ctx.closePath();this.ctx.strokeStyle="#"+this.s.color;
this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=4*this.s.scale;this.ctx.stroke();this.ctx.fill();this.ctx.clearRect(5*this.s.scale,6*this.s.scale,9*this.s.scale,9*this.s.scale);this.ctx.fillRect(9*this.s.scale,10*this.s.scale,1*this.s.scale,6*this.s.scale);this.ctx.fillRect(9*this.s.scale,8*this.s.scale,1*this.s.scale,1*this.s.scale);this.ctx.closePath()}if(this.s.icon==1){this.ctx.moveTo(8.5*this.s.scale,5.5*this.s.scale);this.ctx.lineTo(3*this.s.scale,9*this.s.scale);this.ctx.lineTo(8.5*
this.s.scale,12.5*this.s.scale);this.ctx.moveTo(11.5*this.s.scale,5.5*this.s.scale);this.ctx.lineTo(17*this.s.scale,9*this.s.scale);this.ctx.lineTo(11.5*this.s.scale,12.5*this.s.scale);this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=2*this.s.scale;this.ctx.stroke()}if(this.s.icon==2){this.ctx.arc(10*this.s.scale,7*this.s.scale,3*this.s.scale,Math.PI/2,-Math.PI,true);this.ctx.moveTo(10*this.s.scale,10*this.s.scale);this.ctx.lineTo(10*this.s.scale,
12*this.s.scale);this.ctx.moveTo(10*this.s.scale,15*this.s.scale);this.ctx.arc(10*this.s.scale,15*this.s.scale,0.5*this.s.scale,0,Math.PI*2);this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=2*this.s.scale;this.ctx.stroke()}if(this.s.icon==3){this.ctx.arc(6*this.s.scale,10*this.s.scale,2*this.s.scale,0,Math.PI*2);this.ctx.moveTo(14*this.s.scale,6*this.s.scale);this.ctx.arc(14*this.s.scale,6*this.s.scale,2*this.s.scale,0,Math.PI*2);this.ctx.moveTo(14*
this.s.scale,14*this.s.scale);this.ctx.arc(14*this.s.scale,14*this.s.scale,2*this.s.scale,0,Math.PI*2);this.ctx.moveTo(6*this.s.scale,10*this.s.scale);this.ctx.lineTo(14*this.s.scale,6*this.s.scale);this.ctx.moveTo(6*this.s.scale,10*this.s.scale);this.ctx.lineTo(14*this.s.scale,14*this.s.scale);this.ctx.strokeStyle="#"+this.s.color;this.ctx.lineCap="round";this.ctx.lineJoin="round";this.ctx.lineWidth=1.5*this.s.scale;this.ctx.stroke();this.ctx.fill()}}if(b=="line"||b=="volbarline"){this.ctx.beginPath();
this.ctx.moveTo(0,10-this.s.h/2);this.ctx.lineTo(c,10-this.s.h/2);this.ctx.lineTo(c,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.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");d(this.c,{width:c,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="";d(this.c,{display:"none",width:c,color:"#"+this.s.color,font:"10px Arial","text-align":"left"})}this.c.appendChild(this.canvas);d(this.canvas,{width:c*this.s.scale*(this.s.bg==1&&this.s.bg_smallicon==1?0.8:1),height:f*this.s.scale*(this.s.bg==1&&this.s.bg_smallicon==1?0.8:1),position:"absolute",top:Math.round(b=="start"?f/2-10*this.s.scale2+
2*this.s.scale:this.s.bg==1&&this.s.bg_smallicon==1?2*this.s.scale:0),left:Math.round(b=="start"?c/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)*10),opacity:this.s.alpha});this.w=c;this.h=f*this.s.scale}function d(b,c){for(var f in c){typeof c[f]=="number"&&f!="opacity"&&(c[f]+="px");b.style[f]=c[f]}}function Ra(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 ca(b){this.c=document.createElement("div");this.canvas=document.createElement("canvas");this.canvas.height=b.h;this.canvas.width=b.w;var c=this.canvas.getContext("2d");!b.h0&&(b.h0=0);if(b.bgc.indexOf("|")>0){for(var f=b.bgc.split("|"),g=c.createLinearGradient(0,b.h0,0,b.h),y=0;y<f.length-1;y++)g.addColorStop(y/(f.length-1),"#"+f[y]);g.addColorStop(1,"#"+f[f.length-1]);b.bga1!=undefined&&g.addColorStop(0,"rgba("+
HTR(f[0])+","+HTG(f[0])+","+HTB(f[0])+","+b.bga1+")");b.bga2!=undefined&&g.addColorStop(0.999,"rgba("+HTR(f[f.length-1])+","+HTG(f[f.length-1])+","+HTB(f[f.length-1])+","+b.bga2+")");c.fillStyle=g}else c.fillStyle="#"+b.bgc;if(b.o>0){if(b.o==b.w/2){c.beginPath();c.arc(b.w/2,b.h/2,b.w/2,0,Math.PI*2);c.closePath()}else{c.beginPath();c.moveTo(b.onotop==1?0:b.o,0);c.lineTo(b.w-(b.onotop==1?0:b.o),0);b.onotop==1||c.quadraticCurveTo(b.w,0,b.w,b.o);c.lineTo(b.w,b.h-b.o);c.quadraticCurveTo(b.w,b.h,b.w-b.o,
b.h);c.lineTo(b.o,b.h);c.quadraticCurveTo(0,b.h,0,b.h-b.o);c.lineTo(0,b.o);b.onotop==1||c.quadraticCurveTo(0,0,b.o,0);!b.brdc&&(b.brdc="cccccc");c.strokeStyle="#"+b.brdc;if(b.brd==0||!b.brd)b.brd=0.1;c.lineWidth=b.brd;c.stroke()}c.fill()}else c.fillRect(0,0,b.w,b.h);this.c.appendChild(this.canvas)}function Lb(){this.auto="firstframe";this.addcontrols="";this.airplay=0;this.bgcolor="ffffff";this.bodycolor="000000";this.brd=0;this.brdcolor="cccccc";this.buffersec=5;this.cntrlbg=1;this.cntrlbgcolor=
"000000|000000";this.cntrlbgalpha1=0.15;this.cntrlbgalpha2=0.7;this.cntrlendmargin=7;this.cntrlhide=0;this.cntrlmargin=3;this.cntrlout=this.cntrlmarginleft=this.cntrlmarginright=0;this.cntrloutheight=35;this.cntrlsize=1;this.cntrlbuffer={center:0};this.cntrl_buffer={};this.cntrlfull={out:0};this.cntrl_full={};this.cntrlstyle={icon:0,color:"ffffff",bg:0,bg_o:1,bg_smallicon:1,bgcolor:"000000",bg_sh:"0",bg_in:"0",bg_gl:"0",gl_a1:0.9,gl_a2:0.1,gl_color:"FFFFFF",sh_blur:6,sh_dist:0,bg_a:1,bg_w:20,bg_h:20,
scale:1,eff:0,effE:"Cubic",sh:0,sh_c:"000000",sh_a:0.5,sh_under:1,notip:0,text:0,center:0,marginleft:0,marginright:0,margintop:0,marginbottom:0,alpha:1};this.cntrlplay={};this.cntrl_play={};this.cntrlpause={};this.cntrl_pause={};this.cntrlstop={};this.cntrl_stop={};this.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"};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"};
this.cntrl_tune={};this.cntrl_volume={};this.cntrlvolume={};this.cntrl_sound={};this.cntrlmenu={};this.cntrl_menu={};this.cntrlplaylist={};this.cntrl_playlist={};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.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.file="";this.htmlsize=0;this.link=this.plr=this.iframeurl=this.iframe=this.id="";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.nohtml5="uppod.swf";
this.padding=this.o=0;this.pl=this.poster="";this.plplace="inside";this.plw=100;this.plh=70;this.plcolor2=this.plcolor="ffffff";this.plbgcolor="000000";this.plalpha=0.2;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.reloadertime=this.reloadercounter=this.reloader=this.radio=0;this.screencolor="000000";this.scrn_h=this.scrn_w=0;this.volume=0.8;this.w=500;this.webkitFullscreen=0;this.h=375;this.st="";this.stg=
document.getElementById(h.id);this.stg==null&&alert("Uppod: ID ("+h.id+") not found");this.sw=mediaWidth=this.stg.offsetWidth;this.sh=mediaHeight=this.stg.offsetHeight;this.lang="ru";this.lang_ru={lang:"ru",localization:{back:"\u0412 \u043d\u0430\u0447\u0430\u043b\u043e",play:"\u041f\u0443\u0441\u043a",pause:"\u041f\u0430\u0443\u0437\u0430",stop:"\u0421\u0442\u043e\u043f",full:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",full_back:"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c",
list:"\u041f\u043b\u0435\u0439\u043b\u0438\u0441\u0442",next:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439",download:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c",prev:"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439",sound_off:"\u0412\u043a\u043b. \u0437\u0432\u0443\u043a",sound:"\u0412\u044b\u043a\u043b. \u0437\u0432\u0443\u043a",volume:"\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c",menu:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f",menu_code:"\u041a\u043e\u0434",
menu_link:"\u0421\u0441\u044b\u043b\u043a\u0430",menu_download:"\u0424\u0430\u0439\u043b",menu_copy:"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c",menu_mail:"\u0421\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 e-mail",sent:"\u041e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043e",menu_message:"\u0422\u0435\u043a\u0441\u0442",menu_send:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c",fontsize:"\u0420\u0430\u0437\u043c\u0435\u0440",bgalpha:"\u0424\u043e\u043d",fontcolor:"\u0426\u0432\u0435\u0442 \u0442\u0435\u043a\u0441\u0442\u0430",
off:"\u0412\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c",on:"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c",hq:"\u041b\u0443\u0447\u0448\u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e",hd:"\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e",hq_off:"\u041e\u0431\u044b\u0447\u043d\u043e\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e",sub:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b",traffic:"\u0422\u0440\u0430\u0444\u0438\u043a (\u041c\u0411)",smoothing:"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u0435",
smoothing_off:"\u0412\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0441\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u0435",smoothing_ok:"\u0421\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u043e",smoothing_off_ok:"\u0421\u0433\u043b\u0430\u0436\u0438\u0432\u0430\u043d\u0438\u0435 \u0432\u044b\u043a\u043b\u044e\u0447\u0435\u043d\u043e",password:"\u041f\u0430\u0440\u043e\u043b\u044c",startlive:"\u041d\u0430\u0447\u0430\u0442\u044c \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044e",
live:"\u0422\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f",rec:"\u0417\u0430\u043f\u0438\u0441\u044c",rerec:"\u0417\u0430\u043d\u043e\u0432\u043e",playrec:"\u0418\u0433\u0440\u0430\u0442\u044c",contrec:"\u041f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c",settings:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",done:"\u0413\u043e\u0442\u043e\u0432\u043e",shownotes:"\u0428\u043e\u0443\u043d\u043e\u0442\u044b",loading:"\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430",
startplay:"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043f\u043b\u0435\u0435\u0440",notype:"\u041d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d \u0440\u0435\u0436\u0438\u043c \u043f\u043b\u0435\u0435\u0440\u0430 (m)",err:"\u041e\u0448\u0438\u0431\u043a\u0430",errjson:"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438",errjson_decode:"\u041e\u0448\u0438\u0431\u043a\u0430 \u0432",errjsonpl_decode:"\u041e\u0448\u0438\u0431\u043a\u0430 \u0432 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u0435",
err_pl:"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u0430",err_img:"\u041e\u0448\u0438\u0431\u043a\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f",file:"\u0424\u0430\u0439\u043b",notfound:"\u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d",copy_link:"\u0421\u0441\u044b\u043b\u043a\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430",
copy_code:"\u041a\u043e\u0434 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d \u0432 \u0431\u0443\u0444\u0435\u0440 \u043e\u0431\u043c\u0435\u043d\u0430",no_data:"\u041d\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0445",ads:"\u0420\u0435\u043a\u043b\u0430\u043c\u0430",like:"\u041f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u043e\u0441\u044c",like:"\u041c\u043d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f",unlike:"\u041d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f"}};
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;Jb(h);var b=false;if(uppodstyle!="")this.st=uppodstyle;if(this.st0)for(var c in this.st0)this[c]=this.st0[c];for(c in h)this[c]=
h[c];if(h.video){this.m="video";this.file=h.video}if(h.audio){this.m="audio";this.file=h.audio}h.controls&&(b=true);if(this.m=="audio"){this.cntrlhide=0;this.controls==""&&(this.controls=this.audiocontrols);this.uibg=0;Ba=false}else this.controls==""&&(this.controls=this.videocontrols);if(this.st!=""){str=this.st.indexOf("{")==-1?this.st.indexOf("#")==0?Oa(this.st):ib(this.st):this.st;try{style=JSON.parse(str);Jb(style);for(c in style){if(typeof style[c]==="string"&&c.indexOf("color")>-1){style[c]=
style[c].replace("#","");style[c]=style[c].indexOf("|")>0?ReColor(style[c].substr(0,style[c].indexOf("|")))+"|"+ReColor(style[c].substr(style[c].indexOf("|")+1)):ReColor(style[c])}this[c]=style[c]}style.controls&&(b=true)}catch(f){Sa=this.lang2.errjson_decode+" "+Qa(this.st)}}if(this.sh==0){if(this.w==500&&this.h==375&&this.m=="audio"){this.w=300;this.h=90}d(this.stg,{width:this.w+"px",height:this.h+"px"});this.sw=mediaWidth=this.w;this.sh=mediaHeight=this.h}if(this.poster.indexOf("#")==0)this.poster=
Oa(this.poster);if(this.file.indexOf("#")==0)this.file=Oa(this.file);if(this.pl.indexOf("#")==0)this.pl=Oa(this.pl);if(this.radio==1&&this.controls==this.audiocontrols){this.controls=this.streamcontrols;defaultcontrols=true}if(this.pl!=""&&!b)this.controls+=",playlist";if(this.htmlsize==1){this.w=this.sw;this.h=this.sh}if(this.lang=="ru")this.lang2=this.lang_ru.localization;if(this.addcontrols)this.controls+=","+this.addcontrols;if(this.plr)this.iframe=this.plr;Ia=this.volume}function Jb(b){for(var c in b){if(c.indexOf("pltumbs0")==
0)b[c.replace("pltumbs0","pl")]=b[c];if(c.indexOf("pl0")==0)b[c.replace("pl0","pl")]=b[c];if(c.indexOf("plcomment")==0)b[c.replace("plcomment","pl")]=b[c]}}function Oa(b){if(b.indexOf(".")==-1){b=b.substr(1);s2="";for(i=0;i<b.length;i+=3)s2+="%u0"+b.slice(i,i+3);b=unescape(s2)}return b}function Qa(b){if(b.indexOf("/")>0)b=b.substr(b.lastIndexOf("/")+1);return b}function ib(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 Q(req.status)}catch(c){a&&Q(a.lang2.errjson+" "+Qa(b),true)}}}var a,Aa,Sa="",Ba=false,Pa=false,qa=false,rb=false,u=false,Fa=false,l=false,Ta=false,nb=0,mb=0,ta=false,Va=false,Ab=false,La=false,Za=false,fb=false,Kb=false,gb=false,sb=false,R,k,o,O,K,sa,Ob,L,Ea,Ia,ab,la,ja;if(h.uid)h.id=h.uid;if(document.getElementById(h.id))t();else window.onload=function(){t()};var J,ka,va,wa,ya,xa,da,e,G,Wa,$a,A,Ka=0,Eb=0,eb=0,Ma=[],Cb=0,db=[],Na=0,C,ma,E,M,Z,aa,N,na,oa,T,ha,B,ia,za,F,ga,n,I,Y,X,ua,V,U,ba,W,
p,m,s;this.getStatus=function(){return!Fa?0:ta?3:u?1:2};this.Play=function(b){if(b){a.auto="play";a.file=b;w()}else!u&&j()};this.Pause=function(){u&&j()};this.Toggle=function(){j()};this.Stop=function(){qa&&Ja()};this.Resize=function(){vb()};this.Alert=function(b){Q(b,true)};this.Full=function(){Ga()};this.Comment=function(b){Q(b,false)};this.CurrentTime=function(){return qa&&e?e.currentTime:-1};this.Duration=function(){return qa&&e?e.duration:-1};this.Played=function(){return qa&&e?Math.round(e.currentTime/
e.duration*100):-1};this.Change=function(b,c){a[b]=c;ra();Fb()};this.ChangeColor=function(b,c){a[b]=c;if(b=="screencolor"){var f=ka.canvas.getContext("2d");f.fillStyle=c;f.fillRect(0,0,f.canvas.width,f.canvas.height)}};this.EventDetail=function(b){return a.events[b]}}function Tween(h){h.dur==undefined&&(h.dur=1E3);h.what=="a"&&(new Fx.Morph(h.mc,{duration:h.dur})).start({opacity:[h.from,h.to]})}
function ReColor(h){var t=h;if(h.length==1)h=t+t+t+t+t+t;if(h.length==3)h=t.indexOf(0,1)+t.indexOf(0,1)+t.indexOf(1,2)+t.indexOf(1,2)+t.indexOf(2,3)+t.indexOf(2,3);return h}function HTR(h){return parseInt(cutHex(h).substring(0,2),16)}function HTG(h){return parseInt(cutHex(h).substring(2,4),16)}function HTB(h){return parseInt(cutHex(h).substring(4,6),16)}function cutHex(h){return h.charAt(0)=="#"?h.substring(1,7):h}
function ShowHide(h){h.style.display=="none"?h.style.display="block":h.style.display="none"}function Show(h){if(h)h.style.display="block"}function Hide(h){if(h)h.style.display="none"}function is_array(h){return typeof h=="object"&&h instanceof Array}if(!this.JSON)this.JSON={};
(function(){function h(q){return q<10?"0"+q:q}function t(q){Da.lastIndex=0;return Da.test(q)?'"'+q.replace(Da,function(D){var r=Ha[D];return typeof r==="string"?r:"\\u"+("0000"+D.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+q+'"'}function Q(q,D){var r,x,H,fa,S=w,z,j=D[q];if(j&&typeof j==="object"&&typeof j.toJSON==="function")j=j.toJSON(q);if(typeof ea==="function")j=ea.call(D,q,j);switch(typeof j){case "string":return t(j);case "number":return isFinite(j)?String(j):"null";case "boolean":case "null":return String(j);
case "object":if(!j)return"null";w+=ra;z=[];if(Object.prototype.toString.apply(j)==="[object Array]"){fa=j.length;for(r=0;r<fa;r+=1)z[r]=Q(r,j)||"null";H=z.length===0?"[]":w?"[\n"+w+z.join(",\n"+w)+"\n"+S+"]":"["+z.join(",")+"]";w=S;return H}if(ea&&typeof ea==="object"){fa=ea.length;for(r=0;r<fa;r+=1){x=ea[r];if(typeof x==="string")if(H=Q(x,j))z.push(t(x)+(w?": ":":")+H)}}else for(x in j)if(Object.hasOwnProperty.call(j,x))if(H=Q(x,j))z.push(t(x)+(w?": ":":")+H);H=z.length===0?"{}":w?"{\n"+w+z.join(",\n"+
w)+"\n"+S+"}":"{"+z.join(",")+"}";w=S;return H}}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+h(this.getUTCMonth()+1)+"-"+h(this.getUTCDate())+"T"+h(this.getUTCHours())+":"+h(this.getUTCMinutes())+":"+h(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var Ca=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
Da=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,w,ra,Ha={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},ea;if(typeof JSON.stringify!=="function")JSON.stringify=function(q,D,r){var x;ra=w="";if(typeof r==="number")for(x=0;x<r;x+=1)ra+=" ";else if(typeof r==="string")ra=r;if((ea=D)&&typeof D!=="function"&&(typeof D!=="object"||typeof D.length!=="number"))throw Error("JSON.stringify");
return Q("",{"":q})};if(typeof JSON.parse!=="function")JSON.parse=function(q,D){function r(H,fa){var S,z,j=H[fa];if(j&&typeof j==="object")for(S in j)if(Object.hasOwnProperty.call(j,S)){z=r(j,S);if(z!==undefined)j[S]=z;else delete j[S]}return D.call(H,fa,j)}var x;q=String(q);Ca.lastIndex=0;if(Ca.test(q))q=q.replace(Ca,function(H){return"\\u"+("0000"+H.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(q.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){x=eval("("+q+")");return typeof D==="function"?r({"":x},""):x}throw new SyntaxError("JSON.parse");}})();var uppodstyle="";
uppodstyle="#07b02206306f06e07407206f06c07302203a02206c06906e06502c07606f06c07506d06502c07606f06c06206107206c06906e06502c07307406107207402c06207506606606507202c07207506e05f06c06906e06502202c02206c06106e06702203a02207207502202c02206806906406506106c07706107907302203a03102c02206306e07407206c05f07307406107207402203a07b02206206705f06802203a03803002c02206106c07006806102203a03002e03902c02207306306106c06503202203a03302c02206206705f07306802203a02203102202c02206e06f07406907002203a02203002202c02206206705f06102203a03002e03702c02206306f06c06f07202203a02203002202c02206206702203a02203102202c02206206705f07702203a03803007d02c02206806106e06402203a02203102202c02207007206f02203a03102c02206306e07407206c06806906406502203a03102c02206d02203a02207606906406506f02202c02206306e07407206c06206706306f06c06f07202203a02203007c03002202c02206206706306f06c06f07202203a02206606606606606606602202c02207306906402203a02203503102d03103903603702202c02207306306106c06502203a02207706906407406802202c02207006c07407506d06207302203a03107d";
