if(isChrome){var winSettings="width=735px,height=450px, resizable=yes, scrollbars=no"}else{var winSettings="width=735px,height=420px, resizable=yes, scrollbars=no"}var playerWinInitInProgress=false;function winUrl(d,c,e,a,b){b=b==null?publicSiteId:b;return String.format(e?"{2}/audio/{0}/{1}.html":"{2}/flashaudio.aspx",getItemTypeStr(d),c,a)}function winOpened(){if(window.__playerWindow&&window.__playerWindow.closed){window.__playerWindow=null;playerWinInitInProgress=false}if(playerWinInitInProgress==true){return true}var a=false;if(window.__playerWindow&&window.__playerWindow.open&&!window.__playerWindow.closed){a=true}else{playerWinInitInProgress=true}return a}function winSetup(d,c,f,b){if(b==true){if(f==true){try{window.__playerWindow.getExternalItemData(d,c,true);playerWinInitInProgress=false}catch(a){alert(Localizations.Multimedia.Playlist.WindowIsLoading)}}else{try{window.__playerWindow.addToPlaylist(d,c,false);playerWinInitInProgress=false}catch(a){alert(Localizations.Multimedia.Playlist.WindowIsLoading)}}}else{try{window.__playerWindow.itemType=d;window.__playerWindow.itemId=c;window.__playerWindow.playNow=f}catch(a){}this.__itemType=d;this.__itemId=c;this.__playNow=f}if(window.__playerWindow){winFocus(window.__playerWindow)}}function getItemTypeStr(a){return RFERL.Publisher.Model.AudioItemType.toString(a).toLowerCase()}function DownloadOptionsDropdown(i){var i=i;var a=0;var b=null;var g=400;var d=15;var c=10;this.prepare=function(){for(var m=0,k=i.length;m<k;++m){$("."+i[m]).each(function(q){var o=$(this).children("div");var x=$(this).children("ul");var v;var r;var t=$(o).height();var p=t+1;var n=0;$(x).children("li").each(function(z){n+=$(this).width()+8});try{isIE6=navigator.userAgent.toLowerCase().indexOf("msie 6")!=-1;if(isIE6){n=n+8}}catch(u){}var y=$("<div>");var s=$(x).html();$(x).html("");$(x).css("position","absolute");$(x).css("width",n+"px");$(x).css("top",p+"px");r=$(o).width();r+=parseInt($(this).css("padding-left"),10)+parseInt($(this).css("padding-right"),10);r+=parseInt($(o).css("padding-left"),10)+parseInt($(o).css("padding-right"),10);r=r-2;$(x).html(s);v=parseInt((r-n)/2);v=v-3;$(x).css("left",v+"px");y.attr("class","linecoverer");if(n>=r){y.css("width",r+"px");l=0;if(isChrome||isSafari){l=1}y.css("left",l+"px")}else{w=n+4;l=v+1;y.css("width",w+"px");y.css("left",l+"px")}y.css("top",t+"px");y.html("<img src='/img/spacer.gif' alt='' width='1' height='1' />");$(this).append(y)})}};this.fixCuttedLinks=function(){for(var m=0,k=i.length;m<k;++m){$("."+i[m]).each(function(p){var r=$(this).children("ul");var o=$(this).children("div");var s=$(this).offset().left+$(r).offset().left;var q=$(r).width();var n=s+q;h(this,0,s,n,this)})}};var h=function(q,u,s,x,o){var v=$(q).parent();if($(v).css("overflow")=="hidden"){var p=$(v).offset().left;var r=$(v).offset().left+$(v).width();var t=$(o).children("ul");var n=$(o).children("div");var k=8;if(x>r&&$(t).width()>$(n).width()){$(o).css("position","static");$(o).removeClass("roloverlink_hover");var m=$(t).offset().left-(x-r)-k;$(t).css("left",m+"px");return}if(s<p&&$(t).width()>$(n).width()){$(o).css("position","static");$(o).removeClass("roloverlink_hover");var m=$(t).offset().left+(p-s)+k;if((isChrome||isSafari)&&m>0){m=0}if((!isChrome&&!isSafari)&&m>-1){m=-1}$(t).css("left",m+"px");return}}u++;if(u<=d){setTimeout(function(){try{h(v,u,s,x,o)}catch(y){return}},c)}else{return}};this.bindEvents=function(){$(document).bind("click",function(o){j()});for(var n=0,k=i.length;n<k;++n){var m=this.open;$("."+i[n]).bind("mouseenter",function(o){m(o)});$("."+i[n]).bind("mouseleave",function(o){e()})}};this.open=function(k){f();j();b=$(k.currentTarget);b.css("position","relative");try{elementFloat=b.css("float");isIE6=navigator.userAgent.toLowerCase().indexOf("msie 6")!=-1;if(isIE6&&elementFloat=="right"){setTimeout(function(){b.css("position","static");b.css("position","relative")},10)}}catch(m){}b.addClass("roloverlink_hover");b.children(".linecoverer").css("visibility","visible");b.children("ul").css("visibility","visible");fixOperaRedraw("#fefefe")};var j=function(){if(b){b.css("position","static");b.removeClass("roloverlink_hover");b.children(".linecoverer").css("visibility","hidden");b.children("ul").css("visibility","hidden");fixOperaRedraw("#fefefe")}};var e=function(){a=window.setTimeout(function(){j()},g)};var f=function(){if(a){window.clearTimeout(a);a=null}}};