function Uppod(k){function ya(){if(k.uid){Fa=navigator.userAgent.toLowerCase();if(Fa.indexOf("ipad")>0||Fa.indexOf("iphone")>0)Ka=true;else{if(Fa.indexOf("webkit")>0)Kb=true;if(Fa.indexOf("firefox")>0)Lb=true}(Sa=!!document.createElement("canvas").getContext)&&(Sa=!!document.createElement("video").canPlayType);a=new Mb;if(Sa){e(a.stg,{textAlign:"left","background-color":"#"+a.bgcolor,"text-align":"left"});M=new ba({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(M.c);e(M.c,{position:"relative",top:0,left:0});a.scrn_w=a.sw-a.padding*2;a.scrn_h=a.sh-a.padding*2-(a.cntrlout==1?a.cntrloutheight:0);sa=new ba({w:a.scrn_w,h:a.scrn_h,bgc:a.screencolor});M.c.appendChild(sa.c);e(sa.c,{position:"absolute",top:a.padding,left:a.padding,"z-index":1});if(a.pl)if(a.file=="")for(var c in a.pl[0])a[c]=a.pl[0][c];alrt=document.createElement("div");e(alrt,{width:"100%",position:"absolute",top:a.padding,left:a.padding,color:"#"+a.commentcolor,"z-index":3});
M.c.appendChild(alrt);a.commentbgcolor.indexOf("|")==-1&&(a.commentbgcolor=a.commentbgcolor+"|"+a.commentbgcolor);alrt_bg=new ba({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);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:kb(a.namefontstyle),fontWeight:lb(a.namefontstyle)});alrt_x=document.createElement("div");alrt.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=Ga;alrt.style.display="none";if(a.comment!=undefined&&a.comment!=""&&a.showname==1)if(a.shownameliketip==1){c=a.comment;S=document.createElement("div");e(S,{width:"100%",position:"absolute",top:5+a.namemargin_v+a.padding,left:5+
a.namemargin_h+a.padding,color:"#"+a.namecolor});M.c.appendChild(S);var d=document.createElement("div");S.appendChild(d);e(d,{position:"absolute",top:0,left:0,padding:a.namepadding/2+"px "+a.namepadding+"px",fontFamily:a.namefont,fontSize:a.namefontsize,fontStyle:kb(a.namefontstyle),fontWeight:lb(a.namefontstyle),"z-index":2});d.innerHTML=c;c=new ba({w:d.offsetWidth,h:d.offsetHeight,o:a.namebgo/2,bgc:a.namebgcolor+"|"+a.namebgcolor,bga1:a.namebgalpha,bga2:a.namebgalpha});S.appendChild(c.c);e(c.canvas,
{"z-index":1});a.shownameonover==1&&a.shownameonstop==0&&Hide(S)}else ia(a.comment,false);A();Nb();Ha();Ta(m);Ta(alrt);Ta(a.stg);Ua!=""&&ia(Ua,true)}else if(a.nohtml5.indexOf(".swf")>0)new swfobject.embedSWF(a.nohtml5,a.uid,a.sw,a.sh,"10.0.0",false,k,{allowFullScreen:"true",allowScriptAccess:"always"});else a.stg.innerHTML=a.nohtml5}else alert("uppod:"+k.uid+" uid?")}function ia(c,d){Show(alrt);alrt_txt.innerHTML=c;e(alrt_bg.canvas,{height:alrt_txt.offsetHeight,width:a.sw-a.padding*2});d?Show(alrt_x):
Hide(alrt_x)}function Ga(){Hide(alrt)}function Ha(){window.onkeydown=function(c){var d=c.which;if(d==undefined)d=c.keyCode;o&&d==27&&mb();if((y||o)&&d==32)n()};a.stg.onmousemove=function(c){if(Va){nb=ob-(c.clientX+c.clientY);if(nb!=0){clearInterval(ma);e(m,{visibility:"visible"});r&&e(r,{visibility:"visible"});Va=false;if(a.cntrlhide==1||o){clearInterval(ma);ma=setInterval(Wa,3E3)}}}ob=c.clientX+c.clientY};a.stg.onmouseup=function(){C&&(C.active=false);q&&(q.active=false)};a.stg.onmouseover=function(){Xa=
true;a.shownameonover==1&&Show(S)};a.stg.onmouseout=function(){Xa=false;a.shownameonover==1&&(a.shownameonstop==1&&y||a.shownameonstop==0)&&Hide(S)};a.stg.oncontextmenu=function(c){if(!c)c=window.event;c.cancelBubble=true;c.stopPropagation&&c.stopPropagation();if(ja)e(ja,{display:"block",position:"absolute",top:c.clientY,left:c.clientX});else{ja=document.createElement("div");ja.id="rmenu";document.body.appendChild(ja);var d=document.createElement("div");ja.appendChild(d);d.innerHTML="<b>Uppod</b> HTML5 0.1.3";
d.onclick=function(){window.open("http://uppod.com","_blank")};e(ja,{"border-radius":"0px",cursor:"pointer",position:"absolute",top:c.clientY,left:c.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&&e(ja,{display:"none"})}}function A(){if(g){if(H)for(var c=0;c<H.length;c++){H[c].setAttribute("src",
"");g.removeChild(H[c]);delete H[c];H[c]=undefined}if(Ya){clearInterval(Ya);g.removeEventListener("play",Za,false);g.removeEventListener("pause",$a,false);g.removeEventListener("ended",pb,false);g.removeEventListener("loadedmetadata",qb,false);g.removeEventListener("volumechange",rb,false)}g.pause();g.src="";ca.removeChild(g);delete g;g=undefined;a.events=[];if(q){e(X.canvas,{width:"0"});e(Y.canvas,{width:"0"})}ta=ab=false}if(!ca){ca=document.createElement("div");e(ca,{backgroundColor:"transparent",
position:"absolute",left:0,top:0});sa.c.appendChild(ca);ca.onclick=n}g=document.createElement(a.m);ca.appendChild(g);if(g){g.setAttribute("width",a.sw-(!o?a.padding*2:0)+"px");g.setAttribute("height",a.sh-(!o?a.padding*2:0)-(a.cntrlout==1?a.cntrloutheight:0)+"px")}g.controls=Ka?true:false;e(g,{position:"absolute",top:0,left:0});a.m=="audio"&&e(g,{width:"0px",height:"0px"});a.auto=="none"?g.preload="none":g.preload="metadata";a.auto=="play"?g.autoplay=true:g.autoplay=false;setTimeout(Q,33);a.poster!=
""&&g.setAttribute("poster",a.poster);a.auto!="none"&&La();if(Ka)g.onclick=n;if(!N){N=document.createElement("div");M.c.appendChild(N);e(N,{width:"100%",height:"100%",position:"absolute",top:0,left:0,"z-index":2});N.onclick=n;N.style.zIndex=2;alrt.style.zIndex=3;S&&(S.style.zIndex=4);m&&(m.style.zIndex=5);if(a.o>0){za=document.createElement("canvas");c=za.getContext("2d");za.height=a.o;za.width=a.o;c.fillStyle="#"+a.bgcolor;c.beginPath();c.moveTo(0,0);c.lineTo(a.o/2,0);c.quadraticCurveTo(0,0,0,a.o/
2);c.closePath();c.fill();N.appendChild(za);Aa=document.createElement("canvas");c=Aa.getContext("2d");Aa.height=a.o;Aa.width=a.o;c.fillStyle="#"+a.bgcolor;c.beginPath();c.moveTo(0,0);c.quadraticCurveTo(a.o/2,0,a.o/2,a.o/2);c.lineTo(a.o/2,0);c.closePath();c.fill();N.appendChild(Aa);Ba=document.createElement("canvas");c=Ba.getContext("2d");Ba.height=a.o;Ba.width=a.o;c.fillStyle="#"+a.bgcolor;c.beginPath();c.moveTo(a.o/2,0);c.quadraticCurveTo(a.o/2,a.o/2,0,a.o/2);c.lineTo(a.o/2,a.o/2);c.closePath();
c.fill();N.appendChild(Ba);Ca=document.createElement("canvas");c=Ca.getContext("2d");Ca.height=a.o;Ca.width=a.o;c.fillStyle="#"+a.bgcolor;c.beginPath();c.moveTo(0,0);c.quadraticCurveTo(0,a.o/2,a.o/2,a.o/2);c.lineTo(0,a.o/2);c.closePath();c.fill();N.appendChild(Ca);ua()}}}function ua(){e(za,{position:"absolute",top:0,left:0});e(Aa,{position:"absolute",top:0,left:a.sw-a.o/2});e(Ba,{position:"absolute",top:a.sh-a.o/2,left:a.sw-a.o/2});e(Ca,{position:"absolute",top:a.sh-a.o/2,left:0})}function La(){H=
[];if(a.file!="")if(a.file.indexOf("|")>0)for(var c=a.file.split("|"),d=0;d<c.length;d++){H[d]=document.createElement("source");H[d].setAttribute("src",c[d]);g.appendChild(H[d])}else{H[0]=document.createElement("source");H[0].setAttribute("src",a.file);g.appendChild(H[0])}}function ka(){if(r)ShowHide(r);else{if(a.plplace=="inside"){r=document.createElement("div");R=document.createElement("div");r.appendChild(R);I=[];plbg=[];pltext=[];Ia=[];for(i=0;i<a.pl.length;i++){I[i]=document.createElement("div");
R.appendChild(I[i]);e(I[i],{cursor:"pointer",color:"#"+a.plcolor,width:a.plw,height:a.plh,position:"absolute",top:0,left:a.plw*i+a.plmargin*i});R.appendChild(I[i]);e(I[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");I[i].appendChild(plbg[i]);e(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+"'>";e(plbg[i],{opacity:0.7})}pltext[i]=document.createElement("div");I[i].appendChild(pltext[i]);e(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){e(pltext[i],{backgroundColor:"#"+a.plbgcolor});e(plbg[i],{background:"none"});Hide(pltext[i])}I[i].setAttribute("id","plmc"+i);plbg[i].setAttribute("id","plbg"+i);pltext[i].setAttribute("id","pltx"+i);I[i].onmouseover=
J;I[i].onmouseout=u;I[i].onclick=B;Ia[i]=false}M.c.appendChild(r);e(r,{position:"absolute",width:a.sw-a.plmargin_h*2,height:a.plh+10,overflow:"hidden"});va=a.pl.length*a.plw+(a.pl.length-1)*a.plmargin;Ob=R.offsetHeight;e(R,{position:"absolute",top:10,left:0});r.style.zIndex=6}s()}}function s(){if(a.plplace=="inside"){e(r,{width:a.sw-a.plmargin_h*2});e(r,{top:(o?a.sh:mediaHeight)-a.plh-(a.cntrlout==0?a.cntrloutheight:0)-10,left:a.plmargin_h});R.offsetLeft<-va+r.offsetWidth&&e(R,{position:"absolute",
top:10,left:-va+r.offsetWidth});va<=a.sw-a.plmargin_h*2&&e(R,{position:"absolute",top:10,left:0});K&&D(K)}}function J(c){c=c.target.getAttribute("id").substr(4);plbg[c].style.opacity=1;va>a.sw-a.plmargin_h*2&&D(c);a.pl[c].poster&&Show(pltext[c])}function u(c){c=c.target.getAttribute("id").substr(4);if(a.pl[c].poster){if(K!=c){Hide(pltext[c]);plbg[c].style.opacity=Ia[c]?a.plalpha2:0.7}}else if(K!=c)e(plbg[c],{opacity:Ia[c]?a.plalpha2:a.plalpha})}function B(c){if(K){a.pl[K].poster&&Hide(pltext[K]);
e(plbg[K],{opacity:a.plalpha2});Ia[K]=true;e(I[K],{top:0})}K=c.target.getAttribute("id").substr(4);c=a.pl[K].file;a.auto="play";a.file=c;A();e(I[K],{top:-10});e(plbg[K],{opacity:0.8,height:a.plh+10});e(pltext[K],{height:a.plh+10});Hide(r)}function D(c){clearInterval(bb);c=-I[c].offsetLeft+r.offsetWidth/2-a.plw/2;if(c>0)c=10;if(c<-va+r.offsetWidth-10)c=-va+r.offsetWidth-10;bb=setInterval(la,20,c)}function la(c){Math.abs((R.offsetLeft-c)/10)<=1?clearInterval(bb):e(R,{position:"absolute",top:10,left:R.offsetLeft-
(R.offsetLeft-c)/10})}function Q(){if(g)if(g.networkState>0){ta=true;e(g,{opacity:1});Ya=setInterval(Pb,100);g.addEventListener("play",Za,false);g.addEventListener("pause",$a,false);g.addEventListener("ended",pb,false);g.addEventListener("loadedmetadata",qb,false);g.addEventListener("volumechange",rb,false);g.volume=cb?0:Ma}else setTimeout(Q,33)}function n(){if(a.auto=="none"){g.autoplay=true;La()}a.auto="play";if(!a.file||a.file=="")na("error","nofile");if(ta){Ja=true;if(y){g.pause();$a()}else{g.play();
Za()}}else if(!y)if(E!=undefined){E.c.style.display="none";O.c.style.display="block"}}function l(){y&&n();a.auto="none";A();na("stop")}function Na(c){var d=false;if(H)if(H.length>0){if(g.webkitSupportsFullscreen){g.webkitEnterFullscreen();d=true}if(!d){if(!o||c=="re"){a.iframe!=""&&e(window.parent.document.getElementById(a.iframe),{width:window.parent.innerWidth,height:window.parent.innerHeight,position:"fixed",left:0,top:0});if(c!="re"){o=true;mediaWidth=a.sw;mediaHeight=a.sh;e(M.canvas,{visibility:"hidden"});
e(sa.canvas,{visibility:"hidden"});e(ca,{backgroundColor:"#000",position:"fixed",left:0,top:0})}F.c.style.display="none";da.c.style.display="block";e(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"});a.debug==0&&e(a.stg,{"z-index":"990"});N!=undefined&&(N.style.display="none");clearInterval(ma);ma=setInterval(Wa,3E3);na("fullscreen")}else mb();setTimeout(sb,100);r&&
e(r,{top:-1000})}}}function mb(){o=false;a.iframe!=""&&e(window.parent.document.getElementById(a.iframe),{width:mediaWidth,height:mediaHeight,position:"static",left:0,top:0});e(ca,{backgroundColor:"transparent",position:"absolute",left:0,top:0});e(a.stg,{width:mediaWidth,height:mediaHeight,position:"static",left:0,top:0});a.debug==0&&e(a.stg,{"z-index":"1"});e(M.canvas,{visibility:"visible"});e(sa.canvas,{visibility:"visible"});N!=undefined&&(N.style.display="block");F.c.style.display="block";da.c.style.display=
"none";r&&e(r,{top:-1000});na("exitfullscreen")}function tb(){if(G)ShowHide(G);else{G=document.createElement("div");var c=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=c;a.menu_h=d;var h=new ba({w:c,h:d,o:10,bgc:"000000|000000",bga1:0.5,bga2:0.5});G.appendChild(h.c);e(h.c,{position:"relative",top:"0",left:"0"});if(a.download!=""&&a.download!=0)db("menu_download",a.download==1?a.file:a.download,c,d);a.link!=""&&db("menu_link",
a.link,c,d);e(G,{color:"#ffffff",font:"10px Verdana"});db("menu_code",a.iframelink!=""?'<iframe title="sample" width="'+a.w+'" height="'+a.h+'" src="'+a.iframelink+'" frameborder="0" allowfullscreen></iframe>':a.embedcode!=""?a.embedcode:"",c,d);d=document.createElement("div");d.innerHTML="&nbsp; x &nbsp;";G.appendChild(d);e(d,{position:"absolute",top:3,left:c-25});d.onclick=Qb;M.c.appendChild(G);sb()}}function db(c,d,h){var f=document.createElement("div");f.innerHTML=a.lang2[c];G.appendChild(f);
e(f,{position:"absolute",top:5+Oa*45,left:15});c=new ba({w:h-20,h:23,o:5,bgc:"ffffff"});e(c.c,{position:"absolute",top:22+Oa*45,left:10});G.appendChild(c.c);c=document.createElement("input");G.appendChild(c);e(c,{position:"absolute",outline:"none",font:"10px Verdana",top:25+Oa*45,left:13,width:h-28,height:15,color:"#000000",border:0,background:"none"});c.value=d;c.onclick=function(){this.select()};Oa++}function Qb(){G&&e(G,{display:"none"})}function sb(){if(G)e(G,{position:"absolute",top:((o?a.sh:
mediaHeight)-a.menu_h)/2,left:((o?a.sw:mediaWidth)-a.menu_w)/2})}function Wa(){if(y&&g.currentTime>0&&1)if(!Xa&&a.cntrlhide==1||o){clearInterval(ma);e(m,{visibility:"hidden"});r&&e(r,{visibility:"hidden"});Va=true}}function ub(){a.sw=a.stg.offsetWidth;a.sh=a.stg.offsetHeight;if(!o){e(M.canvas,{width:a.sw,height:a.sh});e(sa.canvas,{width:a.sw-a.padding*2,height:a.sh-a.padding*2-(a.cntrlout==1?a.cntrloutheight:0)})}if(alrt){e(alrt_bg.canvas,{width:""+a.sw-(o?0:a.padding*2)+"px"});if(a.padding>0)e(alrt,
{top:o?0:a.padding,left:o?0:a.padding})}e(ca,{width:""+a.sw-(!o?a.padding*2:0)+"px",height:""+a.sh-(!o?a.padding*2:0)-(a.cntrlout==1&&!o?a.cntrloutheight:0)+"px"});e(g,{width:""+a.sw-(!o?a.padding*2:0)+"px",height:""+a.sh-(!o?a.padding*2:0)-(a.cntrlout==1&&!o?a.cntrloutheight:0)+"px"});a.o>0&&ua();e(m,{top:a.sh-a.cntrloutheight-(a.cntrlout==1?a.padding/2:0)-(!o?a.padding:0),left:!o?a.padding:0});Da&&e(Da.canvas,{width:""+(a.sw-(o?0:a.padding*2))+"px",height:""+a.cntrloutheight+"px"});P&&e(P.c,{left:a.sw/
2-P.w/2,top:a.sh/2-P.h/2});vb();r&&s()}function wb(){xb(0)}function yb(){if(g.muted){g.muted=false;T.c.style.display="block";ea.c.style.display="none";cb=false}else{g.muted=true;ea.c.style.display="block";T.c.style.display="none";cb=true}}function Za(){if(!y){Ka&&e(m,{visibility:"hidden"});if(E!=undefined){E.c.style.display="none";O.c.style.display="block"}y=true;if(a.cntrlhide==1&&a.cntrlout==0||o){clearInterval(ma);ma=setInterval(Wa,3E3)}if(a.comment!=undefined&&a.comment!=""&&a.showname==1)a.shownameliketip==
1?Hide(S):Hide(alrt);P&&(P.c.style.display="none");na("play")}}function $a(){if(y){if(E!=undefined){E.c.style.display="block";O.c.style.display="none"}y=false;if(a.comment!=undefined&&a.comment!=""&&a.showname==1)a.shownameliketip==1?Show(S):Show(alrt);P&&(P.c.style.display="block");na("pause")}}function na(c,d){a.events[c]=d;var h=document.createEvent("Events");h.initEvent(c,true,true);a.stg.dispatchEvent(h)}function qb(){Rb=true}function rb(){fa&&zb(g.volume*fa.w)}function pb(){if(g.ended&&y)if(a.radio==
1){l();n()}else{wb();n();if(a.menuauto==1&&U){var c=false;if(G)G.style.visible!="none"&&(c=true);c||tb()}}}function Pb(){if(g!=undefined){oa!=undefined&&(oa.c.innerHTML=eb(g.currentTime));pa!=undefined&&(pa.c.innerHTML=eb(!g.duration||g.duration=="Infinity"?0:g.duration));loaded=0;var c=false;if(Pa){if(g.buffered){var d=g.buffered;if(d.length>0){for(var h=0;h<d.length;h++){var f=d.start(h)/g.duration*L.w,v=d.end(h)/g.duration*L.w;if(Qa[h])if(v-f!=Qa[h]){fb[h]++;if(fb[h]>5){Ab=h;Ra=f}}else fb[h]=0;
Qa[h]=v-f}d=Math.floor(Qa[Ab]);h=Math.round(g.currentTime/g.duration*L.w-Ra);e(Y.canvas,{left:Ra+"px",width:""+d+"px"});!q.active&&e(X.canvas,{left:Ra+"px",width:""+(d>=h?h:0)+"px"})}else c=true}else c=true;if(c){h=Math.round(g.currentTime/g.duration*L.w);!q.active&&e(X.canvas,{width:""+h+"px"})}if(wa&&!ab)if(g.currentTime>0){Bb();ab=true}if(y&&g.currentTime==Cb)if(gb>5){wa||V&&e(V.c,{display:"block"});wa=true}else gb++;else{if(wa){wa=false;Bb()}gb=0}Cb=g.currentTime}if(y&&a.reloader==1){if(g.currentTime==
a.reloadertime){a.reloadercounter++;if(a.reloadercounter>50){a.reloadercounter=0;l();n()}}else a.reloadercounter=0;a.reloadertime=g.currentTime}y&&a.eventtime>0&&!a.events.time&&g.currentTime>a.eventtime&&na("time",g.currentTime);y&&a.eventplayed>0&&!a.events.played&&g.currentTime/g.duration*100>a.eventplayed&&na("played",g.currentTime/g.duration*100)}if(a.stg.offsetWidth!=a.sw||a.stg.offsetHeight!=a.sh)ub();if(o)if(a.iframe!="")(window.parent.innerWidth!=a.stg.offsetWidth||window.parent.innerHeight!=
a.stg.offsetHeight)&&Na("re");else(window.innerWidth!=a.stg.offsetWidth||window.innerHeight!=a.stg.offsetHeight)&&Na("re")}function kb(c){var d="normal";if(c=="i"||c=="b><i")d="italic";return d}function lb(c){var d="normal";if(c=="b"||c=="b><i")d="bold";return d}function Bb(){V&&e(V.c,{display:"none"});wa=false}function eb(c){c=Math.round(c);minutes=Math.floor(c/60);minutes=minutes>=10?minutes:minutes;c=Math.floor(c%60);c=c>=10?c:"0"+c;return minutes+":"+c}function Nb(){m=document.createElement("div");
M.c.appendChild(m);e(m,{position:"absolute",top:a.scrn_h-(a.cntrlout==1?-a.padding/2:a.cntrloutheight)+a.padding,left:a.padding});m.style.zIndex=5;if(a.cntrlout!=1&&a.cntrlbg==1){a.cntrlbgcolor.indexOf("|")==-1&&(a.cntrlbgcolor=a.cntrlbgcolor+"|"+a.cntrlbgcolor);Da=new ba({w:a.scrn_w,h:a.cntrloutheight,o:a.o/2-a.padding,onotop:1,bgc:a.cntrlbgcolor,bga1:a.cntrlbgalpha1,bga2:a.cntrlbgalpha2});m.appendChild(Da.c)}if(a.cntrlout==1&&a.padding==0){a.cntrlbgcolor.indexOf("|")==-1&&(a.cntrlbgcolor=a.cntrlbgcolor+
"|"+a.cntrlbgcolor);Da=new ba({w:a.scrn_w,h:a.cntrloutheight,o:a.o/2-a.padding,onotop:1,bgc:a.bodycolor,bga1:1,bga2:1});m.appendChild(Da.c)}t=a.controls.split(",");W=0;p=[];x=[];for(var c=0;c<t.length;c++){if(t[c]=="play"){E=new z("play",20,20);m.appendChild(E.c);e(E.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-E.h)/2});E.c.onclick=n;a.tip==1&&E.s.notip==0&&(E.c.title=E.s.play_tip?E.s.play_tip:a.lang2.play);O=new z("pause",20,20,"","play");m.appendChild(O.c);e(O.c,{cursor:"pointer",
display:"none",position:"absolute",top:(a.cntrloutheight-O.h)/2});O.c.onclick=n;p[c]=O.w+a.cntrlmargin;W+=p[c];x[c]=E;a.tip==1&&O.s.notip==0&&(O.c.title=O.s.pause_tip?O.s.pause_tip:a.lang2.pause)}if(t[c]=="back"){Z=new z("back",30,20);m.appendChild(Z.c);e(Z.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-Z.h)/2});Z.c.onclick=wb;p[c]=Z.w+a.cntrlmargin;W+=p[c];x[c]=Z;a.tip==1&&Z.s.notip==0&&(Z.c.title=Z.s.tip?Z.s.tip:a.lang2.back)}if(t[c]=="stop"){$=new z("stop",20,20);m.appendChild($.c);
e($.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-$.h)/2});$.c.onclick=l;p[c]=$.w+a.cntrlmargin;W+=p[c];x[c]=$;a.tip==1&&$.s.notip==0&&($.c.title=$.s.tip?$.s.tip:a.lang2.stop)}if(t[c]=="time_play"){oa=new z("time_play",30,20);m.appendChild(oa.c);e(oa.c,{cursor:"default",position:"absolute",top:(a.cntrloutheight-oa.h)/2+3});p[c]=oa.w+a.cntrlmargin;W+=p[c]+3;x[c]=oa}if(t[c]=="time_all"){pa=new z("time_all",30,20);m.appendChild(pa.c);e(pa.c,{cursor:"default",position:"absolute",top:(a.cntrloutheight-
pa.h)/2+3});p[c]=pa.w+a.cntrlmargin;W+=p[c]+3;x[c]=pa}if(t[c]=="sound"){t[c]="volume";a.cntrl_volume=a.cntrl_sound}if(t[c]=="volume"){T=new z("volume",20,20);m.appendChild(T.c);e(T.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-T.h)/2});T.c.onclick=yb;ea=new z("volume_mute",20,20,"","volume");m.appendChild(ea.c);e(ea.c,{display:"none",cursor:"pointer",position:"absolute",top:(a.cntrloutheight-ea.h)/2});p[c]=ea.w+a.cntrlmargin;W+=p[c];ea.c.onclick=yb;x[c]=T;a.tip==1&&T.s.notip==0&&(T.c.title=
T.s.tip?T.s.tip:a.lang2.volume)}if(t[c]=="tune"){t[c]="volbarline";a.cntrl_volbarline=a.cntrl_tune}if(t[c]=="volbarline"){C=document.createElement("div");m.appendChild(C);fa=new z("volbarline",a.cntrl_volbarline.w?a.cntrl_volbarline.w:a.cntrlvolbarline.w,20,"all");C.appendChild(fa.c);C.active=false;e(fa.c,{opacity:fa.s.all_a,position:"absolute",top:0,left:0});Ea=new z("volbarline",a.cntrl_volbarline.w?a.cntrl_volbarline.w:a.cntrlvolbarline.w,20,"play");C.appendChild(Ea.c);e(Ea.c,{opacity:Ea.s.play_a,
position:"absolute",top:0,left:0});e(C,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-fa.h)/2});p[c]=fa.w+a.cntrlmargin;W+=p[c];e(Ea.canvas,{width:fa.w*a.volume});C.onmousedown=function(d){C.active=true;if(!d)d=window.event;Db(d)};C.onmousemove=function(d){if(!d)d=window.event;Db(d)};C.onmouseup=function(){C.active=false};x[c]=C}if(t[c]=="full"){F=new z("full",20,20);m.appendChild(F.c);e(F.c,{cursor:"pointer",position:"absolute",top:Math.floor((a.cntrloutheight-F.h)/2)});p[c]=F.w+a.cntrlmargin;
F.c.onclick=Na;da=new z("full_back",20,20,"","full");m.appendChild(da.c);e(da.c,{cursor:"pointer",display:"none",position:"absolute",top:(a.cntrloutheight-da.h)/2});da.c.onclick=Na;p[c]=F.w+a.cntrlmargin;W+=p[c];x[c]=F;a.tip==1&&F.s.notip==0&&(F.c.title=F.s.tip?F.s.tip:a.lang2.full);a.tip==1&&da.s.notip==0&&(da.c.title=F.s.tip_off?F.s.tip_off:a.lang2.full_back)}if(t[c]=="playlist"){aa=new z("playlist",20,20);m.appendChild(aa.c);e(aa.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-aa.h)/
2});aa.c.onclick=ka;p[c]=aa.w+a.cntrlmargin;W+=p[c];x[c]=aa;a.tip==1&&aa.s.notip==0&&(aa.c.title=aa.s.tip?aa.s.tip:a.lang2.playlist)}if(t[c]=="menu"){U=new z("menu",20,20);m.appendChild(U.c);e(U.c,{cursor:"pointer",position:"absolute",top:(a.cntrloutheight-U.h)/2});U.c.onclick=tb;p[c]=U.w+a.cntrlmargin;W+=p[c];x[c]=U;a.tip==1&&U.s.notip==0&&(U.c.title=U.s.tip?U.s.tip:a.lang2.menu)}if(t[c]=="buffer")if(q){V=new z("buffer",30,14);m.appendChild(V.c);e(V.c,{cursor:"default",position:"absolute",top:(a.cntrloutheight-
V.h)/2-(q?L.s.h+4:0)});x[c]=V;p[c]=0;V.c.innerHTML=a.lang2.loading}if(t[c]=="start"){P=new z("start",20,20);M.c.appendChild(P.c);e(P.c,{cursor:"pointer",position:"absolute",top:a.h/2-P.h/2,left:a.w/2-P.w/2,"z-index":5});P.c.onclick=n}if(t[c]=="space"){xa=document.createElement("div");m.appendChild(xa);e(xa,{position:"absolute",top:(a.cntrloutheight-20)/2});x[c]=xa}if(t[c]=="line"){Pa=true;q=document.createElement("div");m.appendChild(q);L=new z("line",20,20,"all");q.appendChild(L.c);q.active=false;
e(L.c,{opacity:L.s.all_a,position:"absolute",top:0,left:0});Y=new z("line",20,20,"load");q.appendChild(Y.c);e(Y.c,{opacity:Y.s.load_a,position:"absolute",top:0,left:0});X=new z("line",20,20,"play");q.appendChild(X.c);e(X.c,{opacity:X.s.play_a,position:"absolute",top:0,left:0});e(q,{position:"absolute",top:(a.cntrloutheight-L.h)/2,cursor:"pointer"});e(X.canvas,{width:"0"});e(Y.canvas,{width:"0"});q.onmousedown=function(d){if(Ja){q.active=true;if(!d)d=window.event;Eb(d)}};q.onmousemove=function(d){Ja&&
Eb(d)};q.onmouseup=function(){if(Ja){y&&g.play();q.active=false}};x[c]=q}}vb()}function vb(){var c=a.sw-W-a.cntrlendmargin*2-a.cntrlmargin*2-(!o?a.padding*2:0)-a.cntrlmarginleft-a.cntrlmarginright,d=a.cntrlendmargin+a.cntrlmarginleft;for(i=0;i<t.length;i++)if(x[i]){c-=2.5;if(x[i]!=q&&x[i]!=xa){e(x[i].c!=undefined?x[i].c:x[i],{left:d});t[i]=="play"&&e(O.c,{left:d});t[i]=="full"&&e(da.c,{left:d});if(t[i]=="volume")e(ea.c,{left:d,opacity:ea.s.icon==2?0.5:1});d+=Math.floor(p[i]+a.cntrlmargin)-0.2*i}else{if(q){e(q,
{left:d+3});L.w=c;X.w=c;Y.w=c;e(L.canvas,{width:""+c+"px"});p[i]=c;d+=Math.floor(p[i]+a.cntrlmargin+6)}if(xa){e(xa,{left:d+3,width:""+c+"px"});p[i]=c;d+=Math.floor(p[i]+a.cntrlmargin+6)}}V&&e(V.c,{left:q.offsetLeft})}}function Fb(c){var d=0;if(c.offsetParent)for(d=c.offsetLeft;c=c.offsetParent;)d+=c.offsetLeft;return d}function Db(c){if(C.active){if(!c)c=window.event;c=c.clientX-Fb(C);zb(c)}}function zb(c){e(Ea.canvas,{width:""+c+"px"});Ma=Math.max(0,Math.min(1,c/fa.w));g.volume=Ma}function Eb(c){c=
c.clientX-Fb(q);q.active&&xb(c);if(a.tip==1&&Y.s.notip==0&&g.duration){c=eb(c/L.w*g.duration);L.c.title=Y.c.title=X.c.title=c}}function xb(c){if(g.duration&&Pa){g.currentTime=Math.max(0,Math.min(1,c/L.w))*g.duration;if(Pa&&c==0){e(Y.canvas,{left:0});e(X.canvas,{left:0})}}}function z(c,d,h,f,v){this.c=document.createElement("div");this.s={};v==undefined&&(v=c);for(var ga in a.cntrlstyle)this.s[ga]=a.cntrlstyle[ga];for(ga in a["cntrl"+v])this.s[ga]=a["cntrl"+v][ga];for(ga in a["cntrl_"+v])this.s[ga]=
a["cntrl_"+v][ga];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(c=="start")if(this.s.bg==1)if(h*this.s.scale2>this.s.bg_h||d*this.s.scale2>this.s.bg_w){h*=this.s.scale2;d*=this.s.scale2}else{h=this.s.bg_h;d=this.s.bg_w}else{h*=this.s.scale2;d*=this.s.scale2}this.canvas=document.createElement("canvas");this.canvas.height=h*this.s.scale;this.canvas.width=d*this.s.scale;this.ctx=this.canvas.getContext("2d");if(this.s.bg==
1){f=new ba({w:d*this.s.scale,h:h*this.s.scale,o:h/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&&(f.c.style.opacity=this.s.bg_a);if(this.s.bg_gl==1){f=new ba({w:d*this.s.scale,h:h*this.s.scale,o:h/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:d*this.s.scale/8,height:h*this.s.scale/2,width:d*
this.s.scale-d*this.s.scale/4})}}this.fstyle="";if(this.s.color.indexOf("|")>0){f=this.s.color.split("|");v=this.ctx.createLinearGradient(0,0,0,h*this.s.scale);for(this.j=0;this.j<f.length-1;this.j++)v.addColorStop(this.j/(f.length-1),"#"+f[this.j]);v.addColorStop(1,"#"+f[f.length-1]);this.fstyle=v}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(c=="play"||c=="start"){f=c=="play"?this.s.scale:this.s.scale2;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(c=="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(c=="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(c=="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(c=="volume"||c=="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(c=="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(c=="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(c=="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(c==
"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(c=="full"||c=="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(c=="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(c=="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(c=="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(c==
"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(c=="line"||c=="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(c.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(c=="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:h*this.s.scale*(this.s.bg==1&&this.s.bg_smallicon==1?0.8:1),position:"absolute",top:Math.round(c=="start"?h/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(c=="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)*
10),opacity:this.s.alpha});this.w=d;this.h=h*this.s.scale}function e(c,d){for(var h in d){typeof d[h]=="number"&&h!="opacity"&&(d[h]+="px");c.style[h]=d[h]}}function Ta(c){if(typeof c.onselectstart!="undefined")c.onselectstart=function(){return false};else if(typeof c.style.MozUserSelect!="undefined")c.style.MozUserSelect="none";else c.onmousedown=function(){return false};c.style.cursor="default"}function ba(c){this.c=document.createElement("div");this.canvas=document.createElement("canvas");this.canvas.height=
c.h;this.canvas.width=c.w;var d=this.canvas.getContext("2d");!c.h0&&(c.h0=0);if(c.bgc.indexOf("|")>0){for(var h=c.bgc.split("|"),f=d.createLinearGradient(0,c.h0,0,c.h),v=0;v<h.length-1;v++)f.addColorStop(v/(h.length-1),"#"+h[v]);f.addColorStop(1,"#"+h[h.length-1]);c.bga1!=undefined&&f.addColorStop(0,"rgba("+HTR(h[0])+","+HTG(h[0])+","+HTB(h[0])+","+c.bga1+")");c.bga2!=undefined&&f.addColorStop(0.999,"rgba("+HTR(h[h.length-1])+","+HTG(h[h.length-1])+","+HTB(h[h.length-1])+","+c.bga2+")");d.fillStyle=
f}else d.fillStyle="#"+c.bgc;if(c.o>0){if(c.o==c.w/2){d.beginPath();d.arc(c.w/2,c.h/2,c.w/2,0,Math.PI*2);d.closePath()}else{d.beginPath();d.moveTo(c.onotop==1?0:c.o,0);d.lineTo(c.w-(c.onotop==1?0:c.o),0);c.onotop==1||d.quadraticCurveTo(c.w,0,c.w,c.o);d.lineTo(c.w,c.h-c.o);d.quadraticCurveTo(c.w,c.h,c.w-c.o,c.h);d.lineTo(c.o,c.h);d.quadraticCurveTo(0,c.h,0,c.h-c.o);d.lineTo(0,c.o);c.onotop==1||d.quadraticCurveTo(0,0,c.o,0);!c.brdc&&(c.brdc="cccccc");d.strokeStyle="#"+c.brdc;if(c.brd==0||!c.brd)c.brd=
0.1;d.lineWidth=c.brd;d.stroke()}d.fill()}else d.fillRect(0,0,c.w,c.h);this.c.appendChild(this.canvas)}function Mb(){this.auto="firstframe";this.addcontrols="";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.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.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.iframelink=this.iframe="";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_v=this.plmargin_h=this.plmargin=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.h=375;this.stg=document.getElementById(k.uid);this.stg==null&&alert("Uppod: UID ("+k.uid+") 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;Gb(k);var c=false;for(var d in k)this[d]=k[d];k.controls&&(c=true);if(this.m=="audio"){this.cntrlhide=0;this.controls==""&&(this.controls=this.audiocontrols);this.uibg=0;this.auto="none"}else this.controls==""&&(this.controls=this.videocontrols);if(this.st){var h;if(this.st.indexOf("@")==0)h=this.st;else a:{if(h=this.st+"?"+Math.random()){req=new XMLHttpRequest;req.open("GET",
h,false);req.send(null);if(req.status==200){h=req.responseText;break a}}h=void 0}str=h;try{if(str.indexOf("@")==0){h=str;cd1=Array("v","7","e","c","4","1","D","6","G","p","B","t","X","x","3","Q","J","R","i","N","5","W","w","M","f","=");cd2=Array("n","g","U","0","8","I","u","l","d","V","H","o","s","T","m","Z","z","9","k","Y","L","2","b","a","y","E");var f=h.substr(-1),v=cd1.slice(0,f),ga=cd1.slice(f);h=h.substr(1,h.length-2);cd11=ga.concat(v);for(j=0;j<cd11.length;j++){var qa=cd2[j],ra=cd11[j];f=h;
f=f.replace(RegExp(qa,"g"),"___");f=f.replace(RegExp(ra,"g"),qa);h=f=f.replace(/___/g,ra)}for(i=0;i<h.length;i++){w=h.substr(i,1);w=w.charCodeAt(w)>=65&&w.charCodeAt(w)<=90?w.toLowerCase():w.toUpperCase();h=h.substr(0,i)+w+h.substr(i+1)}qa=h;var ha,hb,Hb,Ib,Jb,ib,jb;ra=0;f="";do{Ib="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(qa.charAt(ra++));Jb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(qa.charAt(ra++));ib="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(qa.charAt(ra++));
jb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(qa.charAt(ra++));b=Ib<<18|Jb<<12|ib<<6|jb;ha=b>>16&255;hb=b>>8&255;Hb=b&255;f+=ib==64?String.fromCharCode(ha):jb==64?String.fromCharCode(ha,hb):String.fromCharCode(ha,hb,Hb)}while(ra<qa.length);str=unescape(f)}style=JSON.parse(str);Gb(style);for(d in style){if(typeof style[d]==="string"&&d.indexOf("color")>-1)style[d]=style[d].replace("#","");this[d]=style[d]}style.controls&&(c=true)}catch(Sb){d=this.lang2.errjson_decode+
" ";ha=this.st;if(ha.indexOf("/")>0)ha=ha.substr(ha.lastIndexOf("/")+1);Ua=d+ha}}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=mediaWidth=this.w;this.sh=mediaHeight=this.h}if(this.radio==1&&this.controls==this.audiocontrols){this.controls=this.streamcontrols;defaultcontrols=true}if(this.pl!=""&&!c)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;Ma=this.volume}function Gb(c){for(var d in c){if(d.indexOf("pltumbs0")==0)c[d.replace("pltumbs0","pl")]=c[d];if(d.indexOf("pl0")==0)c[d.replace("pl0","pl")]=c[d];if(d.indexOf("plcomment")==0)c[d.replace("plcomment","pl")]=c[d]}}var a,Fa,Ua="",Ka=false,Sa=false,ta=false,y=false,o=false,Va=false,ob=0,nb=0,wa=false,Xa=false,Ja=false,Pa=false,ab=false,Kb=false,Lb=false,Rb=false,S,m,r,R,I,
va,Ob,K,Ia,Ma,cb,ma,ja;if(document.getElementById(k.uid))ya();else window.onload=function(){ya()};var M,sa,za,Aa,Ca,Ba,ca,g,H,Ya,bb,G,Oa=0,Cb=0,gb=0,Qa=[],Ab=0,fb=[],Ra=0,N,Da,E,O,Z,$,P,oa,pa,T,ea,C,fa,Ea,F,da,q,L,Y,X,xa,V,U,aa,W,t,p,x;this.getStatus=function(){return!Ja?0:wa?3:y?1:2};this.Play=function(c){if(c){a.auto="play";a.file=c;A()}else!y&&n()};this.Pause=function(){y&&n()};this.Toggle=function(){n()};this.Stop=function(){ta&&l()};this.Resize=function(){ub()};this.Alert=function(c){ia(c,true)};
this.Comment=function(c){ia(c,false)};this.CurrentTime=function(){return ta&&g?g.currentTime:-1};this.Duration=function(){return ta&&g?g.duration:-1};this.Played=function(){return ta&&g?Math.round(g.currentTime/g.duration*100):-1};this.EventDetail=function(c){return a.events[c]}}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 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"}if(!this.JSON)this.JSON={};
(function(){function k(s){return s<10?"0"+s:s}function ya(s){Ha.lastIndex=0;return Ha.test(s)?'"'+s.replace(Ha,function(J){var u=La[J];return typeof u==="string"?u:"\\u"+("0000"+J.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+s+'"'}function ia(s,J){var u,B,D,la,Q=A,n,l=J[s];if(l&&typeof l==="object"&&typeof l.toJSON==="function")l=l.toJSON(s);if(typeof ka==="function")l=ka.call(J,s,l);switch(typeof l){case "string":return ya(l);case "number":return isFinite(l)?String(l):"null";case "boolean":case "null":return String(l);
case "object":if(!l)return"null";A+=ua;n=[];if(Object.prototype.toString.apply(l)==="[object Array]"){la=l.length;for(u=0;u<la;u+=1)n[u]=ia(u,l)||"null";D=n.length===0?"[]":A?"[\n"+A+n.join(",\n"+A)+"\n"+Q+"]":"["+n.join(",")+"]";A=Q;return D}if(ka&&typeof ka==="object"){la=ka.length;for(u=0;u<la;u+=1){B=ka[u];if(typeof B==="string")if(D=ia(B,l))n.push(ya(B)+(A?": ":":")+D)}}else for(B in l)if(Object.hasOwnProperty.call(l,B))if(D=ia(B,l))n.push(ya(B)+(A?": ":":")+D);D=n.length===0?"{}":A?"{\n"+A+
n.join(",\n"+A)+"\n"+Q+"}":"{"+n.join(",")+"}";A=Q;return D}}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 Ga=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
Ha=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,A,ua,La={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},ka;if(typeof JSON.stringify!=="function")JSON.stringify=function(s,J,u){var B;ua=A="";if(typeof u==="number")for(B=0;B<u;B+=1)ua+=" ";else if(typeof u==="string")ua=u;if((ka=J)&&typeof J!=="function"&&(typeof J!=="object"||typeof J.length!=="number"))throw Error("JSON.stringify");
return ia("",{"":s})};if(typeof JSON.parse!=="function")JSON.parse=function(s,J){function u(D,la){var Q,n,l=D[la];if(l&&typeof l==="object")for(Q in l)if(Object.hasOwnProperty.call(l,Q)){n=u(l,Q);if(n!==undefined)l[Q]=n;else delete l[Q]}return J.call(D,la,l)}var B;s=String(s);Ga.lastIndex=0;if(Ga.test(s))s=s.replace(Ga,function(D){return"\\u"+("0000"+D.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(s.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,
"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){B=eval("("+s+")");return typeof J==="function"?u({"":B},""):B}throw new SyntaxError("JSON.parse");}})();

