/* HTML5 RADIO PLAYER V4.19.03.17 https://www.flashradio.info Copyright (C) SODAH | JOERG KRUEGER https://www.sodah.de */ (function(a,l){"function"===typeof define&&define.amd?define(["jquery"],l):a.jQuery?l(a.jQuery):l(a.Zepto)})(this,function(a,l){a.fn.flashradio=function(g){var e="string"===typeof g,t=Array.prototype.slice.call(arguments,1),G=this;g=!e&&t.length?a.extend.apply(null,[!0,g].concat(t)):g;if(e&&"_"===g.charAt(0))return G;e?this.each(function(){var e=a(this).data("flashradio"),Q=e&&a.isFunction(e[g])?e[g].apply(e,t):e;if(Q!==e&&Q!==l)return G=Q,!1}):this.each(function(){a(this).data("flashradio",new a.flashradio(this, g))});return G};a.flashradio=function(g,e){function t(a){var b=document.createElement("link");b.type="text/css";b.rel="stylesheet";b.href="https://fonts.googleapis.com/css?family="+a;document.getElementsByTagName("head")[0].appendChild(b)}function G(){navigator.userAgent.toString().toLowerCase();try{var h=window.localStorage.getItem(b+"volume");null!==h&&(C=h)}catch(z){D(z)}Ga()&&(C=100);""!=Ta&&t(Ta);""!=Ua&&t(Ua);Va=document.getElementById(b);Va.innerHTML="";a("#"+b).addClass("sodahnativeflashradio4").css({overflow:"hidden", display:"block"});E=document.createElement("div");E.id=b+"containerinside";Va.appendChild(E);a("#"+b+"containerinside").css({position:"relative",left:"0px",top:"0px",height:"100%",width:"100%",background:Wa});"big"==x&&(qa()||(h=document.createElement("img"),h.id=b+"coverblurshadow1",E.appendChild(h),a("#"+b+"coverblurshadow1").css({"z-index":"17","-webkit-filter":"blur(40px)",filter:"blur(40px)",opacity:"1",position:"absolute","border-radius":"50%",padding:"0",margin:"0"}).disableSelection(),h=document.createElement("img"), h.id=b+"coverblurshadow2",E.appendChild(h),a("#"+b+"coverblurshadow2").css({"z-index":"18","-webkit-filter":"blur(40px)",filter:"blur(40px)",opacity:"1",position:"absolute","border-radius":"50%",padding:"0",margin:"0"}).disableSelection()),h=document.createElement("div"),h.id=b+"volumecontrollerbackground",E.appendChild(h),a("#"+b+"volumecontrollerbackground").css({"z-index":"19",position:"absolute","background-color":H,opacity:"0.1",left:"20px",height:"3px",overflow:"hidden","border-radius":"1.5px"}).disableSelection()); Ma=document.createElement("div");Ma.id=b+"volumecontroller";E.appendChild(Ma);a("#"+b+"volumecontroller").css({"z-index":"20",position:"absolute","background-color":Nb}).disableSelection();"big"==x&&a("#"+b+"volumecontroller").css({"background-color":H,left:"20px",height:"3px",width:"0","border-radius":"1.5px"});"big"==x?(h=document.createElement("div"),h.id=b+"volumeicon",Ma.appendChild(h),a("#"+b+"volumeicon").css({"z-index":"20",position:"absolute",top:"-3px",right:"-20px",height:"8.891px",width:"40px", padding:"0",margin:"0","line-height":"0px","background-color":H,fill:m}).html('').disableSelection(), h=document.createElement("div"),h.id=b+"temp_stationname",E.appendChild(h),a("#"+b+"temp_stationname").css({"z-index":"0","font-family":ia,overflow:"visible",position:"absolute",opacity:0,"text-align":"left","white-space":"nowrap",height:"24px","font-size":"16px",lineHeight:"16px"}).disableSelection(),h=document.createElement("div"),h.id=b+"temp_artist",E.appendChild(h),a("#"+b+"temp_artist").css({"z-index":"0","font-family":ia,overflow:"visible",position:"absolute",opacity:0,"text-align":"left", "white-space":"nowrap",height:"30px","font-size":"20px",lineHeight:"20px"}).disableSelection(),h=document.createElement("div"),h.id=b+"temp_songtitle",E.appendChild(h),a("#"+b+"temp_songtitle").css({"z-index":"0","font-family":ia,overflow:"visible",position:"absolute",opacity:0,"text-align":"left","white-space":"nowrap",height:"24px","font-size":"16px",lineHeight:"16px"}).disableSelection()):(Xa=document.createElement("div"),Xa.id=b+"temp_song",E.appendChild(Xa),a("#"+b+"temp_song").css({position:"absolute", "z-index":"0","font-family":ia,overflow:"visible",opacity:0,"text-align":"left","white-space":"nowrap"}).disableSelection(),Ya=document.createElement("div"),Ya.id=b+"temp_radio",E.appendChild(Ya),a("#"+b+"temp_radio").css({position:"absolute","z-index":"0","font-family":Na,overflow:"visible",opacity:0,"text-align":"left","white-space":"nowrap"}).disableSelection());try{d=document.createElement("canvas"),d.id=b+"canvas",E.appendChild(d),a("#"+b+"canvas").css({"z-index":"21",display:"block",background:"none", position:"absolute"}),"big"==x&&a("#"+b+"canvas").css({"z-index":"5"}),c=d.getContext("2d"),c.fillStyle=m}catch(z){D(z)}"big"==x?(h=document.createElement("div"),h.id=b+"stationname",E.appendChild(h),a("#"+b+"stationname").css({"z-index":"22","font-family":Na,overflow:"hidden",position:"absolute",left:"20px",color:H,"text-align":"left","white-space":"nowrap",height:"24px","font-size":"16px",lineHeight:"16px","text-shadow":"0px 0px 5px rgba("+p(fa).r+", "+p(fa).g+", "+p(fa).b+", 0.6)"}).disableSelection(), h=document.createElement("div"),h.id=b+"artist",E.appendChild(h),a("#"+b+"artist").css({"z-index":"22","font-family":ia,overflow:"hidden",position:"absolute",left:"20px",color:H,"text-align":"left","white-space":"nowrap",height:"30px","font-size":"20px",lineHeight:"20px","text-shadow":"0px 0px 5px rgba("+p(fa).r+", "+p(fa).g+", "+p(fa).b+", 0.6)"}).disableSelection(),h=document.createElement("div"),h.id=b+"songtitle",E.appendChild(h),a("#"+b+"songtitle").css({"z-index":"22",position:"absolute",left:"20px", overflow:"hidden","font-family":ia,color:H,"white-space":"nowrap",height:"24px","font-size":"16px",lineHeight:"16px","text-shadow":"0px 0px 5px rgba("+p(fa).r+", "+p(fa).g+", "+p(fa).b+", 0.6)"}).disableSelection()):(channelname=document.createElement("div"),channelname.id=b+"channelname",E.appendChild(channelname),a("#"+b+"channelname").css({position:"absolute","z-index":"22",overflow:"hidden","font-family":Na,color:H,"white-space":"nowrap","text-align":"left"}).disableSelection(),Za=document.createElement("div"), Za.id=b+"statustext",E.appendChild(Za),a("#"+b+"statustext").css({position:"absolute","z-index":"22",overflow:"hidden","font-family":ia,color:H,"white-space":"nowrap","text-align":"left"}).disableSelection());ra=document.createElement("div");ra.id=b+"volumesetcontainer";E.appendChild(ra);a("#"+b+"volumesetcontainer").css({position:"absolute","z-index":"43"}).disableSelection();"big"==x&&a("#"+b+"volumesetcontainer").css({height:"40px",width:"40px",bottom:"40px",right:"20px"});$a=document.createElement("div"); $a.id=b+"volumeupbutton";ra.appendChild($a);a("#"+b+"volumeupbutton").css({position:"absolute",fill:H}).html('').disableSelection(); "big"==x&&a("#"+b+"volumeupbutton").css({height:"40px",width:"40px"});ab=document.createElement("div");ab.id=b+"volumeoffbutton";ra.appendChild(ab);a("#"+b+"volumeoffbutton").css({position:"absolute",fill:H,visibility:"hidden"}).html('').disableSelection(); "big"==x&&a("#"+b+"volumeoffbutton").css({height:"40px",width:"40px"});"small"==x&&(xa=document.createElement("div"),xa.id=b+"volumetext",ra.appendChild(xa),a("#"+b+"volumetext").css({position:"absolute","font-family":ia,color:H,"white-space":"nowrap","text-align":"center"}).disableSelection());Oa=document.createElement("img");Oa.id=b+"volumehit";ra.appendChild(Oa);Oa.src="data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///////wAAACH5BAEAAAIALAAAAAABAAEAAAICVAEAOw%3D%3D";a("#"+b+"volumehit").css({position:"absolute", cursor:"pointer","z-index":"24",padding:"0",margin:"0"});Ga()||a("#"+b+"volumehit").mouseenter(function(){0==C?(a("#"+b+"volumeoffbutton").stop(),a("#"+b+"volumeoffbutton").animate({opacity:.5},200,function(){})):(a("#"+b+"volumeupbutton").stop(),a("#"+b+"volumeupbutton").animate({opacity:.5},200,function(){}))}).mouseleave(function(){0==C?(a("#"+b+"volumeoffbutton").stop(),a("#"+b+"volumeoffbutton").animate({opacity:1},200,function(){})):(a("#"+b+"volumeupbutton").stop(),a("#"+b+"volumeupbutton").animate({opacity:1}, 200,function(){}))}).click(function(){0==C?(C=Ob,Q(C)):(Ob=C,Q(0,C),C=0);B()});a("#"+b+"volumehit").disableSelection();"big"==x&&a("#"+b+"volumehit").css({height:"40px",width:"40px"});if("true"==la){a("#"+b+"volumetext").css({opacity:.25});"small"==x&&(a("#"+b+"volumeupbutton").css({opacity:.25}),a("#"+b+"volumeoffbutton").css({opacity:.25}));h=document.createElement("div");h.id=b+"imagecontainer";E.appendChild(h);a("#"+b+"imagecontainer").css({position:"absolute","z-index":"19","background-color":m, "box-sizing":"border-box","-moz-box-sizing":"border-box","-webkit-box-sizing":"border-box",border:"2px solid "+m}).disableSelection();"big"==x&&a("#"+b+"imagecontainer").css({overflow:"hidden","background-color":"transparent","border-radius":"50%",border:"0"});var k=document.createElement("img");k.id=b+"imagehit1";h.appendChild(k);a("#"+b+"imagehit1").css({position:"absolute","z-index":"21",top:"0px",left:"0px",height:"100%",width:"100%",cursor:"pointer",padding:"0",margin:"0"}).click(function(){""!= ma&&window.open(ma)}).fadeOut(0).disableSelection();k=document.createElement("img");k.id=b+"imagehit2";h.appendChild(k);a("#"+b+"imagehit2").css({position:"absolute","z-index":"20",top:"0px",left:"0px",height:"100%",width:"100%",cursor:"pointer",padding:"0",margin:"0"}).click(function(){""!=ma&&window.open(ma)}).fadeOut(0).disableSelection();"big"==x&&a("#"+b+"imagehit1, #"+b+"imagehit2").css({"box-sizing":"border-box","-moz-box-sizing":"border-box","-webkit-box-sizing":"border-box",border:"20px solid rgba("+ p(H).r+", "+p(H).g+", "+p(H).b+", 0.25)","border-radius":"50%"})}else a("#"+b+"volumesetcontainer").css({"background-color":m});Pa=document.createElement("img");Pa.id=b+"volumegrab";Pa.src="data:image/gif;base64,R0lGODlhAQABAJEAAAAAAP///////wAAACH5BAEAAAIALAAAAAABAAEAAAICVAEAOw%3D%3D";E.appendChild(Pa);a("#"+b+"volumegrab").css({position:"absolute","z-index":"44",padding:"0",margin:"0"}).disableSelection();"big"==x&&a("#"+b+"volumegrab").css({left:"20px"});Ga()||(a("#"+b+"volumegrab").mouseover(function(h){a("#"+ b+"volumegrab").css("cursor","url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNAay06AAAALlSUR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qVkrsNuDnIAAAAASUVORK5CYII%3D), auto"); ha="big"==x?a("#"+b+"volumecontroller").width():F?a("#"+b+"volumecontroller").height():a("#"+b+"volumecontroller").width()},onmove:function(h){if("big"==x)ha+h.offset.xha+h.offset.x&&a("#"+b+"volumecontroller").css({width:"0px"}),C=100*a("#"+b+"volumecontroller").width()/a("#"+b+"volumegrab").width();else{if(F){ha+h.offset.yha+h.offset.y&&a("#"+b+"volumecontroller").css({height:"0px"});try{d.height=a("#"+b+"volumecontroller").height()}catch(Ha){D(Ha)}C=100*a("#"+b+"volumecontroller").height()/a("#"+b+"volumegrab").height()}else{ha+h.offset.xha+h.offset.x&&a("#"+b+"volumecontroller").css({width:"0px"});try{d.width=a("#"+b+"volumecontroller").width()}catch(Ha){D(Ha)}C=100*a("#"+b+"volumecontroller").width()/a("#"+b+"volumegrab").width()}xa.innerHTML=Math.ceil(C)+"%"}B();L.volume=C/100},onfinish:function(h){a("#"+b+"volumegrab").css("cursor","url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNAay06AAAALlSURBVEiJxZe9bhNBEMd/5zsSkhjs0Fi0SYG7CAmltQUpeAGeISmTB6CFSOQFkoKOwqJAQAQNCCHyIUs0KYAiEmUaQ2GshORuPyhu196c95wLSHik0a3v7P3Nf2Zudx1orRmHlcZCHSc48t0MgqDIbwPjANr4SHPL6gWPsJIDe2k+PwAUIIwXaxqt9ZB7LAC2gTfANeCtNga8A24CVeAqEDrB5bKKgrctaHNzU5fLZe2Aj42/B2omsEkTQC64SHOVgMaI54GUcjqO47vAd+AFcB2YAq7kqS8K9ppSCiAQQiCEAAi63e494DkwC0yT9tEQvAjY7V7m5+cBkFJaGEmS9MFCCDqdTgN4Rlr3aTxpLwLWwMOtrS0Ams0mjUZjCGaDcMZ3gBvADJ6UFwU/XV5ePraTKqXIgbnjgLTWFnyOVeQ91qTvJ0mSoJSi1Wr1A7AwKWVfvRlD2t0TeFI9Cmxr238vLUwphZQSKSVHR0eTLiwDDo1Sd+GBrPyMvQa6wCvSBumn0dbXNpj1w8PDSaf2Nniv5SkuAY1er1dWSt2vVCotTBqtWt/VHRvLXT7zFAfAjlXU6XSaFmwV+dw+29vbA/hGuoYrPJtIbqqjKFqvVqsf7KRLS0tTPojPV1ZWDhg0pTTwQoq1EOJzGIYbtVrtU5IkrK6uemG+e8At4BEQG5dZxXk1VkAipWwDQghBvV4nW2Nfndvttp0jBk6BMzzb5aiuFsBJFEXrc3NzH0fV1PW1tbUD4Ou/gBUQCyH2wzB8Uq/Xdy5qKifNjw30FEi4RI1d+JmUcj8Mw42FhYVdC8mrt7EY+G089oEvWjJtZ55IKXfDMAwWFxdvk9mxMvbFAE/ISTNA4DtxeA57JdJ1d4Z0n50FyqTrsJs1TarwF/AD+El6OpHwd4c9ZaLXzthu8lmwIFXcM98bSjMUV2ytZGAT5jq06zA4ccYMFpA0Kod1WTAM6juqzjYz5ya/EPw/bGx/Yf4AHxykPX4eCXQAAAAASUVORK5CYII%3D), auto"); try{window.localStorage.removeItem(b+"volume"),window.localStorage.setItem(b+"volume",C)}catch(Ha){D(Ha)}}}));ya=document.createElement("div");ya.id=b+"playstopcontainer";E.appendChild(ya);mobilecheck()||a("#"+b+"playstopcontainer").mouseenter(function(){na?(a("#"+b+"stopbutton").stop(),a("#"+b+"stopbutton").animate({opacity:.5},200,function(){})):(a("#"+b+"playbutton").stop(),a("#"+b+"playbutton").animate({opacity:.5},200,function(){}))}).mouseleave(function(){na?(a("#"+b+"stopbutton").stop(),a("#"+ b+"stopbutton").animate({opacity:1},200,function(){})):(a("#"+b+"playbutton").stop(),a("#"+b+"playbutton").animate({opacity:1},200,function(){}))});a("#"+b+"playstopcontainer").click(function(){(na=!na)?Z():W()}).disableSelection();"big"==x?a("#"+b+"playstopcontainer").css({"z-index":"42",position:"absolute",height:"80px",width:"80px",overflow:"hidden","border-radius":"50%",border:"2px solid "+H,bottom:"20px",cursor:"pointer","background-color":m}):a("#"+b+"playstopcontainer").css({position:"absolute", left:"0px",top:"0px","background-color":m,cursor:"pointer"});bb=document.createElement("div");bb.id=b+"player";ya.appendChild(bb);a("#"+b+"player").css({position:"absolute",top:"0px",left:"0px",width:"0px",height:"0px"});cb=document.createElement("div");cb.id=b+"playbutton";ya.appendChild(cb);a("#"+b+"playbutton").css({position:"absolute","z-index":"43",fill:H}).html('').disableSelection(); "big"==x&&a("#"+b+"playbutton").css({top:"20px",left:"20px",right:"20px",bottom:"20px"});db=document.createElement("div");db.id=b+"stopbutton";ya.appendChild(db);a("#"+b+"stopbutton").css({position:"absolute","z-index":"44",visibility:"hidden",fill:H}).html('').disableSelection(); "big"==x&&a("#"+b+"stopbutton").css({top:"20px",left:"20px",right:"20px",bottom:"20px"});L=new Audio;L.id=b+"html5audio";L.preload="auto";setInterval(function(){na&&Qa&&1==L.networkState&&L.play()["catch"](function(){})},1E3);"small"==x&&(F?a("#"+b+"volumecontroller").css({height:"0px"}):a("#"+b+"volumecontroller").css({width:"0px"}));B();a(window).resize(function(){R()});R();setTimeout(function(){R()},200);za();Q(C,0);I();setTimeout(function(){!eb||mobilecheck()||Pb()||(na=!0,Z())},10)}function B(){0== C?(a("#"+b+"volumeoffbutton").css({visibility:"visible"}),a("#"+b+"volumeupbutton").css({visibility:"hidden"})):(a("#"+b+"volumeoffbutton").css({visibility:"hidden"}),a("#"+b+"volumeupbutton").css({visibility:"visible"}))}function Q(h,c){if("big"==x)c=c||0,c!=h&&a({countNum:c}).animate({countNum:Math.floor(h)},{duration:800,easing:"linear",step:function(){try{0==Math.ceil(this.countNum)%5&&(L.volume=this.countNum/100)}catch(z){D(z)}},complete:function(){try{L.volume=h/100}catch(z){D(z)}}}),a("#"+ b+"volumecontroller").stop(),a("#"+b+"volumecontroller").animate({width:(f-40)/100*h+"px"},{duration:800,progress:function(){},complete:function(){}});else if(c=c||0,c!=h&&a({countNum:c}).animate({countNum:Math.floor(h)},{duration:800,easing:"linear",step:function(){xa.innerHTML=Math.ceil(this.countNum)+"%";try{0==Math.ceil(this.countNum)%5&&(L.volume=this.countNum/100)}catch(z){D(z)}},complete:function(){xa.innerHTML=Math.floor(h)+"%";try{L.volume=h/100}catch(z){D(z)}}}),F){a("#"+b+"volumecontroller").css({left:"0px", top:f+"px"});a("#"+b+"volumecontroller").stop();a("#"+b+"volumecontroller").animate({height:y/100*h+"px"},{duration:800,progress:function(){try{d.height=Math.round(a("#"+b+"volumecontroller").height())}catch(z){D(z)}},complete:function(){try{d.height=Math.round(a("#"+b+"volumecontroller").height())}catch(z){D(z)}}});a("#"+b+"volumecontroller").css({width:f+"px","border-bottom":"solid 1px "+m,"border-right":"none"});try{a("#"+b+"canvas").css({top:f+"px",left:"0px"}),d.width=f}catch(z){D(z)}}else{a("#"+ b+"volumecontroller").css({top:"0px",left:n+"px"});a("#"+b+"volumecontroller").stop();a("#"+b+"volumecontroller").animate({width:y/100*h+"px"},{duration:800,progress:function(){try{d.width=Math.round(a("#"+b+"volumecontroller").width())}catch(z){D(z)}},complete:function(){try{d.width=Math.round(a("#"+b+"volumecontroller").width())}catch(z){D(z)}}});a("#"+b+"volumecontroller").css({"border-right":"solid 1px "+m,"border-bottom":"none",height:n+"px"});try{a("#"+b+"canvas").css({top:"0px",left:n+"px"}), d.height=n}catch(z){D(z)}}}function R(){f=a("#"+b).width();n=a("#"+b).height();if("small"==x){if(F=fh;h++)c={},c.x=Math.floor(Math.random()* f+1),c.y=Math.floor(Math.random()*n+1),c.radius=F?Math.floor(Math.random()*f/5+2):Math.floor(Math.random()*n/5+2),c.alpha=1,c.speed=Math.floor(50*Math.random()+30),K.push(c)}function ka(){a("#"+b+"temp_stationname").html(Y);a("#"+b+"temp_stationname").width()>f-80-40?MarqueeStationnamerunning||($mq_stationname=a("#"+b+"stationname").marquee({duration:5E3*f/300,direction:"left",duplicated:!0}),MarqueeStationnamerunning=!0):(a("#"+b+"stationname").css({"text-align":"center"}).html(Y),MarqueeStationnamerunning= !1)}function aa(){a("#"+b+"temp_artist").html(M);M!=Qb&&(a("#"+b+"artist").css({"text-align":"left"}).html(M),MarqueeArtistrunning=!1);a("#"+b+"temp_artist").width()>f-40?MarqueeArtistrunning||($mq_artist=a("#"+b+"artist").marquee({duration:5E3*f/300,direction:"left",duplicated:!0}),MarqueeArtistrunning=!0):(a("#"+b+"artist").css({"text-align":"center"}).html(M),MarqueeArtistrunning=!1);Qb=M}function J(){a("#"+b+"temp_songtitle").html(N);N!=Rb&&(a("#"+b+"songtitle").css({"text-align":"left"}).html(N), MarqueeSongtitlerunning=!1);a("#"+b+"temp_songtitle").width()>f-40?MarqueeSongtitlerunning||($mq_songtitle=a("#"+b+"songtitle").marquee({duration:5E3*f/300,direction:"left",duplicated:!0}),MarqueeSongtitlerunning=!0):(a("#"+b+"songtitle").css({"text-align":"center"}).html(N),MarqueeSongtitlerunning=!1);Rb=N}function X(){"TRUE"==sa.toUpperCase()&&(Aa=!1,a("#"+b+"channelname").html(Y),a("#"+b+"temp_radio").html(Y),ba());"FALSE"==sa.toUpperCase()&&(a("#"+b+"channelname").html(Y),a("#"+b+"channelname").css({overflow:"hidden", "text-overflow":"ellipsis"}));if("AUTO"==sa.toUpperCase()){a("#"+b+"temp_radio").css({"font-size":n/2+"px",lineHeight:"1"}).html(Y);var h=2;"true"==la&&(h=3);a("#"+b+"channelname").html(Y);Aa=!1;F?a("#"+b+"temp_radio").width()>n-h*f?ba():(a("#"+b+"channelname").html(Y),Aa=!1):a("#"+b+"temp_radio").width()>f-h*n?ba():(a("#"+b+"channelname").html(Y),Aa=!1)}latest_radioname=Y}function ba(){if(!Aa){try{Sb.marquee("destroy")}catch(wa){}var h=F?2*(a("#"+b+"temp_radio").width()+n):10*(a("#"+b+"temp_radio").width()+ f);Sb=a("#"+b+"channelname").marquee({duration:h,direction:"left",gap:f/2,duplicated:!0});Aa=!0}}function k(){"TRUE"==sa.toUpperCase()&&(a("#"+b+"statustext").html(v),a("#"+b+"temp_song").html(v),Ba=!1,P());"FALSE"==sa.toUpperCase()&&v!=Tb&&(a("#"+b+"statustext").html(v),a("#"+b+"statustext").css({overflow:"hidden","text-overflow":"ellipsis"}));if("AUTO"==sa.toUpperCase()){a("#"+b+"temp_song").css({"font-size":n/4+"px","line-height":n/4+"px"}).html(v);var h=2;"true"==la&&(h=3);a("#"+b+"statustext").html(v); Ba=!1;F?a("#"+b+"temp_song").width()>n-h*f?P():(a("#"+b+"statustext").html(v),Ba=!1):a("#"+b+"temp_song").width()>f-h*n?P():(a("#"+b+"statustext").html(v),Ba=!1)}Tb=v}function P(){if(!Ba){try{Ub.marquee("destroy")}catch(wa){}var h=F?2*(a("#"+b+"temp_song").width()+n):10*(a("#"+b+"temp_song").width()+f);Ub=a("#"+b+"statustext").marquee({duration:h,direction:"left",gap:f/2,duplicated:!0});Ba=!0}}function Z(){if(Qa){eb&&(da="fake");if("undefined"==typeof Ia&&"real"==da){try{Ia=new (window.AudioContext|| window.webkitAudioContext),ta=Ia.createAnalyser(),ta.smoothingTimeConstant=.9,ta.fftSize=1024}catch(h){"real"==da&&(da="fake"),D(h)}try{"crossOrigin"in L&&(L.crossOrigin="anonymous",L.onerror=ca,Vb=L,Wb=Ia.createMediaElementSource(Vb),Wb.connect(ta),ta.connect(Ia.destination))}catch(h){D("SODAH: "+h)}}Xb="none"!=r.toLowerCase()&&"nothing"!=r.toLowerCase()&&"php"!=r.toLowerCase()&&"true"==Yb?r+Ca():Ca();a("#"+b+"playbutton").css({visibility:"hidden"});a("#"+b+"stopbutton").css({visibility:"visible"}); try{a(".sodahnativeflashradio4").each(function(){a(this).attr("id")!=b&&a(this).data("flashradio").stopradio()})}catch(h){D(h)}L.src=Xb;L.play()["catch"](function(){})}}function ca(a){a.target?D("server not set correctly"):D("browser doesn't support crossOrigin requests")}function W(){if(0a;a+=1)na?q.push(Math.floor(254/(a/100+1)*Math.random()+1)):q.push(0),Ja[a]+=(q[a]-Ja[a])/9;q=Ja}try{"real"==da&&(q=new Uint8Array(ta.frequencyBinCount),ta.getByteFrequencyData(q))}catch(Zb){}try{switch(ja){case "1":Da();break;case "2":c.clearRect(0,0,d.width,d.height);c.lineWidth=1;c.miterLimit=1;c.beginPath(); if(F){c.moveTo(0,0);for(b=0;b>4;k=(k&15)<<4|d>>2;var g=(d&3)<<6|f;b+=String.fromCharCode(c);64!=d&&(b+=String.fromCharCode(k));64!=f&&(b+=String.fromCharCode(g))}while(h").html(b.servertitle).text(),"small"==x?X():ka()}catch(wa){}}function mc(a){a=a.replace(/\\n/g,"\\n").replace(/\\'/g,"\\'").replace(/\\"/g,'\\"').replace(/\\&/g,"\\&").replace(/\\r/g,"\\r").replace(/\\t/g,"\\t").replace(/\\b/g,"\\b").replace(/\\f/g,"\\f");a=a.replace(/[\u0000-\u0019]+/g, "");return a=a.substr(2,a.length-3)}function nc(){var b="none"==r.toLowerCase()||"nothing"==r.toLowerCase()||"php"==r.toLowerCase()?U+"/status-json.xsl":r+U+"/status-json.xsl";"php"==r.toLowerCase()?a.ajax({dataType:"text",method:"POST",crossDomain:!1,url:va+"fallback.php",data:{url:b,mode:"fallback"},success:function(a){fc(a)}}):a.ajax({dataType:"text",url:b,crossDomain:!0,success:function(a){fc(a)}})}function fc(b){try{b=JSON.parse(b);var c={};if(b.icestats.source.length===l)c=b.icestats.source; else for(var k=0;k").html(c.server_name).text());c.hasOwnProperty("title");"small"==x?X():ka()}catch(xc){}}function Ea(){if("true"==la){var c="https://itunes.apple.com/search?term="+encodeURIComponent(v)+"&media=music&limit=1";D(c);a.ajax({dataType:"jsonp",url:c,success:function(c){var k="";1==c.results.length?(k=c.results[0].artworkUrl100, k="none"==r.toLowerCase()||"nothing"==r.toLowerCase()||"php"==r.toLowerCase()?k.replace("100x100","300x300"):r+k.replace("100x100","300x300"),ma=c.results[0].trackViewUrl,""!=ib&&(ma+="&app=itunes&at="+ib)):(k=Fa,ma="");O++;2").html(c.title).text())if(v=a("
").html(c.title).text(),Ea(),"small"==x)k();else{var f=v.split(" - ");0=h)b[k++]=String.fromCharCode(h),c++;else if(223>=h){var d=a.charCodeAt(c+1);b[k++]=String.fromCharCode((h&31)<<6|d&63);c+=2}else if(239>=h){d=a.charCodeAt(c+1);var f=a.charCodeAt(c+2);b[k++]=String.fromCharCode((h&15)<<12|(d&63)<<6|f&63);c+=3}else{d=a.charCodeAt(c+1);f=a.charCodeAt(c+2);var e=a.charCodeAt(c+3);h=(h&7)<<18|(d&63)<<12|(f&63)<<6|e&63;h-=65536;b[k++]=String.fromCharCode(55296|h>>10&1023);b[k++]=String.fromCharCode(56320|h&1023);c+=4}}b=b.join("");hc(b)},error:function(a, b,c){V()}}):a.ajax({dataType:"text",url:b,crossDomain:!0,success:function(a){hc(a)},error:function(a,b,c){V()}})}function hc(b){b=a(b).text();b=b.split(",");if(6").html(b[6]).text();if(7").html(b[h]).text();v!=c&&(v=c,Ea(),"small"==x?k():(b=v.split(" - "),0").html(b).text())if(v=a("
").html(b).text(),Ea(),"small"==x)k();else{var c=v.split(" - ");0oa;oa+=1)Ja.push(Math.floor(254/(oa/100+1)*Math.random()+1));var f=0,n=0,Ob=0,Ub,Sb,L,Xb,bb,va,Qa=!0;a(document).ready(function(){b=vc;var a=document.getElementsByTagName("script"),c,k;for(c=0;k=a[c];c++)if(k=k.src,0<=k.indexOf("nativeflashradiov4.js"))var d=k.substring(0,k.indexOf("nativeflashradiov4.js"));va=d; lb!=l&&""!=lb.toString()&&(r=lb.toString());kb!=l&&""!=kb.toString()&&(hb=kb.toString());jb!=l&&""!=jb.toString()&&(gb=jb.toString());mb!=l&&""!=mb.toString()&&(dc=mb.toString());nb!=l&&""!=nb.toString()&&(U=nb.toString());ob!=l&&""!=ob.toString()&&(cc=ob.toString());pb!=l&&""!=pb.toString()&&(La=pb.toString());qb!=l&&""!=qb.toString()&&(pa=qb.toString());rb!=l&&""!=rb.toString()&&(Ra=rb.toString().toLowerCase());sb!=l&&""!=sb.toString()&&(H=sb.toString());tb!=l&&""!=tb.toString()&&(m=tb.toString()); Ib!=l&&""!=Ib.toString()&&(la=Ib.toString().toLowerCase());Kb!=l&&""!=Kb.toString()&&(Yb=Kb.toString().toLowerCase());Jb!=l&&""!=Jb.toString()&&(ib=Jb.toString());Lb!=l&&""!=Lb.toString()&&(x=Lb.toString().toLowerCase());if(Mb!=l&&""!=Mb.toString())Wa=Mb.toString().toLowerCase();else{a=m;c=-.9;a=String(a).replace(/[^0-9a-f]/gi,"");6>a.length&&(a=a[0]+a[0]+a[1]+a[1]+a[2]+a[2]);c=c||0;d="#";var f;for(f=0;3>f;f++)k=parseInt(a.substr(2*f,2),16),k=Math.round(Math.min(Math.max(0,k+k*c),255)).toString(16), d+=("00"+k).substr(k.length);Wa=d}Nb="rgba("+p(m).r+", "+p(m).g+", "+p(m).b+", 0.6)";d=H;d=d.replace("#","");a=parseInt(d.substr(0,2),16);c=parseInt(d.substr(2,2),16);d=parseInt(d.substr(4,2),16);fa=127>(299*a+587*c+114*d)/1E3?"#ffffff":"#000000";if(ub!=l&&""!=ub.toString())Y=ub.toString();else switch(Ra){case "icecast2":nc();break;case "shoutcast2":ua();break;case "radionomy":Ka()}vb!=l&&""!=vb.toString()&&(sa=vb.toString().toLowerCase());wb!=l&&""!=wb.toString()&&(eb="true"==wb.toString().toLowerCase()? !0:!1);xb!=l&&""!=xb.toString()&&(kc="true"==xb.toString().toLowerCase()?!0:!1);yb!=l&&""!=yb.toString()&&(a=yb.toString(),/^(f|ht)tps?:\/\//i.test(a)||(a="http://"+a),Sa=a);zb!=l&&""!=zb.toString()&&(C=parseInt(zb.toString()));Ab!=l&&""!=Ab.toString()&&(bc=parseInt(Ab.toString()));Bb!=l&&""!=Bb.toString()&&(Na=Bb.toString());Cb!=l&&""!=Cb.toString()&&(Ta=Cb.toString());Db!=l&&""!=Db.toString()&&(ia=Db.toString());Eb!=l&&""!=Eb.toString()&&(Ua=Eb.toString());Fb!=l&&""!=Fb.toString()&&(da=Fb.toString().toLowerCase()); Gb!=l&&""!=Gb.toString()&&(ja=Gb.toString());Hb!=l&&""!=Hb.toString()&&(Fa=Hb.toString());Ga()&&(C=100);"real"==da&&Pb()&&(da="fake");G()});this.stopradio=function(){W()};this.startradio=function(){Z()};this.setvolume=function(a){C=parseInt(a);B();Q(C)};html5audiocheck=function(){var a=!1;try{var b=document.createElement("audio");a=!(!b.canPlayType||!b.canPlayType("audio/mpeg;").replace(/no/,""))}catch(z){a=!1}a&&(a=/chrome/.test(navigator.userAgent.toLowerCase())||/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)|| /OPR\/(\d+\.\d+)/i.test(navigator.userAgent)||/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?!0:!1);return a};mobilecheck=function(){return navigator.userAgent.match(/Android/i)||navigator.userAgent.match(/webOS/i)||navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/iPod/i)||navigator.userAgent.match(/BlackBerry/i)||navigator.userAgent.match(/Windows Phone/i)?!0:!1}}}); (function(a){function l(k,e,l){if("touch"!==e.substr(0,5))return a(k).unbind(e,l);var t;for(t=0;t
');var k=e.find(".js-marquee").css({"margin-right":g.gap,"float":"left"});g.duplicated&&k.clone(!0).appendTo(e);e.wrapInner('
'); t=e.find(".js-marquee-wrapper");if(ba){var P=e.height();t.removeAttr("style");e.height(P);e.find(".js-marquee").css({"float":"none","margin-bottom":g.gap,"margin-right":0});g.duplicated&&e.find(".js-marquee:last").css({"margin-bottom":0});var Z=e.find(".js-marquee:first").height()+g.gap;g.startVisible&&!g.duplicated?(g._completeDuration=(parseInt(Z,10)+parseInt(P,10))/parseInt(P,10)*g.duration,g.duration*=parseInt(Z,10)/parseInt(P,10)):g.duration*=(parseInt(Z,10)+parseInt(P,10))/parseInt(P,10)}else{var ca= e.find(".js-marquee:first").width()+g.gap,W=e.width();g.startVisible&&!g.duplicated?(g._completeDuration=(parseInt(ca,10)+parseInt(W,10))/parseInt(W,10)*g.duration,g.duration*=parseInt(ca,10)/parseInt(W,10)):g.duration*=(parseInt(ca,10)+parseInt(W,10))/parseInt(W,10)}g.duplicated&&(g.duration/=2);if(g.allowCss3Support){k=document.body||document.createElement("div");var I="marqueeAnimation-"+Math.floor(1E7*Math.random()),Da=["Webkit","Moz","O","ms","Khtml"],S="animation",T="",ea="";k.style.animation&& (ea="@keyframes "+I+" ",R=!0);if(!1===R)for(var za=0;za"+k+""); ka(t[0],"AnimationIteration",function(){e.trigger("finished")});ka(t[0],"AnimationEnd",function(){ua();e.trigger("finished")})}else t.animate(G,g.duration,g.easing,function(){e.trigger("finished");g.pauseOnCycle?e.timer=setTimeout(ua,g.delayBeforeStart):ua()});e.data("runningStatus","resumed")};e.bind("pause",J.pause);e.bind("resume",J.resume);g.pauseOnHover&&(e.bind("mouseenter",J.pause),e.bind("mouseleave",J.resume));R&&g.allowCss3Support?ua():e.timer=setTimeout(ua,g.delayBeforeStart)}})};a.fn.marquee.defaults= {allowCss3Support:!0,css3easing:"linear",easing:"linear",delayBeforeStart:1E3,direction:"left",duplicated:!1,duration:5E3,gap:20,pauseOnCycle:!1,pauseOnHover:!1,startVisible:!1}})(jQuery);