function Music_CantVoteOwnMusic(){var msg='<b>You cannot vote on your own music.</b>';return popup(window.event,msg);}function Music_AlreadyVoted(){var msg="<b>You've already voted for this music.</b>";return popup(window.event,msg);}function Music_LoginToVote(evt){var msg='<img src=/images/buttons/btn_thumbsup.gif align=absmiddle>&nbsp;&nbsp;<strong>Make your vote count!</strong><br>To vote on this music, <a href="/userlogin.aspx">login</a> or <a href="/signup/">join LiveVideo</a> for free.';return popup(evt,msg);}function Music_GetFlashPlayer(url1,url2){var version=deconcept.SWFObjectUtil.getPlayerVersion();var majorVersion=version['major'];if(majorVersion>=8){var so1=new SWFObject(url1,"FlashPlay","445","110","8","#FFFFFF");so1.addParam("loop","false");so1.addParam("autoplay","true");so1.addParam("wmode","transparent");var return1=so1.write("flashcontent");document.write(return1);}else if(majorVersion>=7){var so2=new SWFObject(url2,"FlashPlay","445","110","7","#FFFFFF");so2.addParam("loop","false");so2.addParam("autoplay","true");so2.addParam("wmode","transparent");var return2=so2.write("flashcontent");document.write(return2);}else{alert('You either have JavaScript turned off, or you need to upgrade to the current version of Flash Player.');document.write("<br /><br /><b><font color=red>You either have JavaScript turned off, or you need to upgrade to the current version of Flash Player.</font><br /><br />");document.write("Our detection engine shows that you currently have Flash version "+version['major']+" installed.<br /><br />");document.write("<a href=http://www.macromedia.com/go/getflashplayer/>Click here</a>&nbsp;to get the latest version of Flash Player.");}}function Playlist_CantVoteOwnPlaylist(){var msg='<b>You cannot vote on your own playlist.</b>';return popup(window.event,msg);}function Playlist_AlreadyVoted(){var msg="<b>You've already voted for this playlist.</b>";return popup(window.event,msg);}function Playlist_LoginToVote(evt){var msg='<img src=/images/buttons/btn_thumbsup.gif align=absmiddle>&nbsp;&nbsp;<strong>Make your vote count!</strong><br>To vote on this playlist, <a href="/userlogin.aspx">login</a> or <a href="/signup/">join LiveVideo</a> for free.';return popup(evt,msg);}function Playlist_AddToPlaylist(idMusic,idOwner,idListener,idPlaylistSelect){ShowDivById('divIdOptionLoading');var idPlaylist=document.getElementById(idPlaylistSelect).value;var url='mid='+idMusic;url+='&oid='+idOwner;url+='&lid='+idListener;url+='&pid='+idPlaylist;AjaxPostCall("/music/addToPlaylist.ashx",url,Playlist_AddToPlaylistResponse);}function Playlist_AddToPlaylistResponse(){if(req.readyState==4){updateAjaxControl('divIdOptionCanvas','There was an error adding the music.<br><br>Please try again later.');HideDivById('divIdOptionLoading');}}function Playlist_GetFlashPlayer(url1,url2){var version=deconcept.SWFObjectUtil.getPlayerVersion();var majorVersion=version['major'];if(majorVersion>=8){var so1=new SWFObject(url1,"FlashPlay","445","269","8","#FFFFFF");so1.addParam("loop","false");so1.addParam("autoplay","true");so1.addParam("wmode","transparent");var return1=so1.write("flashcontent");document.write(return1);}else if(majorVersion>=7){var so2=new SWFObject(url2,"FlashPlay","445","269","7","#FFFFFF");so2.addParam("loop","false");so2.addParam("autoplay","true");so2.addParam("wmode","transparent");var return2=so2.write("flashcontent");document.write(return2);}else{alert('You either have JavaScript turned off, or you need to upgrade to the current version of Flash Player.');document.write("<br /><br /><b><font color=red>You either have JavaScript turned off, or you need to upgrade to the current version of Flash Player.</font><br /><br />");document.write("Our detection engine shows that you currently have Flash version "+version['major']+" installed.<br /><br />");document.write("<a href=http://www.macromedia.com/go/getflashplayer/>Click here</a>&nbsp;to get the latest version of Flash Player.");}}function Playlist_Preview(domain,id){var embed=ss_getEmbed(domain,id,420);var url=domain+"/slideshow/view.aspx?crypid="+id;var text=embed;var pre=document.getElementById("preview");pre.innerHTML="<div align=left>"+text+"</div>";document.getElementById("curcryp").value=id;return false;}function Music_Search(KeywordId){var obj=document.getElementById(KeywordId);if(obj!=undefined){var keyword=obj.value;if(keyword.length){window.location.href="/music/search.aspx?tag="+keyword;}else{alert("Please enter a keyword.  This may be an Artist, Title, or Album.");}}}function Music_ToggleGenres(divPopular,divAll){document.getElementById(divPopular).style.display='none';document.getElementById(divAll).style.display='block';}function Music_AddToPlaylist(idSelectedPlaylist,idLoadingDiv,idReplaceDiv,qs){var selectedPlaylist=document.getElementById(idSelectedPlaylist).value;if(selectedPlaylist.length>0){if(confirm('Are you sure you want to add this song?')){qs+="&pid="+selectedPlaylist;GenericAjaxLink(idLoadingDiv,idReplaceDiv,'/music/addToPlaylist.ashx',qs,"Error! Please try again later.",'','0');}}else{alert("Please select a playlist.");}}