var AdTooltip={continuePlayback:false,addStyles:function(B){var C=null;if(document.createStyleSheet){C=document.createStyleSheet()}else{var A=document.getElementsByTagName("head")[0];C=document.createElement("style");A.appendChild(C)}if(Sys.Browser.agent===Sys.Browser.InternetExplorer){C.cssText=B}else{if(Sys.Browser.agent===Sys.Browser.Safari){C.innerText=B}else{C.innerHTML=B}}},close:function(){if(typeof(window.tip)!="undefined"){window.tip.hide()}},reposition:function(){var D=286;var F=300;var B;if(Sys.Browser.agent===Sys.Browser.InternetExplorer){B=document.getElementById("shell")}else{if(Sys.Browser.agent===Sys.Browser.Safari){B=document.getElementById("shell")}else{B=document.getElementById("shell").getElementsByTagName("object")[0]}}var A=MySpaceMusic.getElementPosition(B);var C=0;if(B.offsetWidth>F){C=(B.offsetWidth-F)/2}var E=(MusicPlayerControl.Width=="450")?44:99;window.tip._tipDiv.style.left=(A.x+C)+"px";window.tip._tipDiv.style.top=(A.y+E)+"px"},open:function(A){if(typeof(A)!="undefined"){AdTooltip.continuePlayback=A}AdTooltip.close();var F=286;var H=300;var C;if(Sys.Browser.agent===Sys.Browser.InternetExplorer){C=document.getElementById("shell")}else{if(Sys.Browser.agent===Sys.Browser.Safari){C=document.getElementById("shell")}else{C=document.getElementById("shell").getElementsByTagName("object")[0]}}var B=MySpaceMusic.getElementPosition(C);var E=0;if(C.offsetWidth>H){E=(C.offsetWidth-H)/2}var G=(MusicPlayerControl.Width=="450")?44:99;var D=".tooltipdiv .helper{background:none;border:none;}.tooltipdiv .helperarrow{display:none;}.tooltipleft{margin-left:10px;}";AdTooltip.addStyles(D);content="<iframe scrolling='no' style='position:absolute;' id='musicFlashPlayerContent' height='"+F+"' width='"+H+"' frameborder='0' src='"+MusicPlayerControl.TooltipUrl+"'></iframe>";window.tip=$create(MySpace.UI.Tooltip,{content:content,autoPos:false,hover:false,tipPos:"bottom",margin:0},null,null,$get(MusicPlayerControl.SwfObjectDiv));window.tip._tipDiv.childNodes[1].style.display="none";window.tip._tipDiv.childNodes[2].childNodes[0].style.display="none";window.tip._tipDiv.childNodes[2].childNodes[2].style.display="none";window.tip._tipDiv.childNodes[3].style.display="none";window.tip._tipDiv.childNodes[2].style.background="transparent";window.tip.show();window.tip._tipDiv.style.left=(B.x+E)+"px";window.tip._tipDiv.style.top=(B.y+G)+"px";$addHandler(window,"resize",AdTooltip.reposition)},onClickContinueListen:function(){if(typeof(window.parent)!="undefined"&&typeof(window.parent.tip)!="undefined"){window.parent.tip.hide();if(AdTooltip.continuePlayback){window.parent.MySpaceMusic.getPlayerFlashObject().playCurrentTrack()}}}};var FlashUpgrade={checkIfBelow104:function(){if((Sys.Browser.agent===Sys.Browser.Safari)&&(Sys.Browser.version<200)){return true}if(Sys.Browser.agent===Sys.Browser.Firefox){var A=navigator.oscpu;return(A.indexOf("10.3")!=-1)||(A.indexOf("10.2")!=-1)}return false},Init:function(){var E=null;try{E=new SWFObject(MusicPlayerControl.EmbedHandlerURL,"shell",MusicPlayerControl.Width,MusicPlayerControl.Height,MusicPlayerControl.PlayerVersion,MusicPlayerControl.BgColor)}catch(H){}var C=MusicPlayerControl.PlayerVersion.split(".");var D=false;var G=false;var F=false;var B=false;var A=false;if(E&&E.installedVer!=undefined){D=E.installedVer.major>C[0];G=E.installedVer.major==C[0];F=E.installedVer.minor>C[1];B=E.installedVer.minor==C[1];A=E.installedVer.rev>=C[2]}if(D||(G&&F)||(G&&B&&A)){if(E){E.addParam("allowScriptAccess","always");E.addParam("wmode","transparent");E.write(MusicPlayerControl.SwfObjectDiv)}}else{MusicPlayerControl.NeedUpgrade=true;document.getElementById(MusicPlayerControl.SwfObjectDiv).style.backgroundColor="#FFFFFF";if(MusicPlayerControl.FlashUpgradeEnabled){if(!MusicPlayerControl.IsPixelPlayer){document.getElementById(MusicPlayerControl.SwfObjectDiv).innerHTML=MusicPlayerControl.FlashUpgradeMarkup.replace("{0}",FlashUpgrade.GetFlashUpgradeURL(true));if(MySpace.ClientContext.FunctionalContext=="MusicSinglePlaylist"||MySpace.ClientContext.FunctionalContext=="ArtistAlbums"){$get("PlaylistsSinglePlayer").style.height="172px";$get("flashUpgradeBig").style.margin="0px 0px 0px 67px"}}else{}}else{document.getElementById(MusicPlayerControl.SwfObjectDiv).innerHTML='<span style="color:#000000;"><blockquote>'+MusicPlayerControl.ResourcesGetFlash+"</blockquote></span>"}}},GetFlashUpgradeURL:function(A){var J=MusicPlayerControl.AllOtherFlashUpgradeURL;if(A){var D=navigator.userAgent.toLowerCase();var C=navigator.platform.toLowerCase();var H=false;var I=false;var B=false;var E=false;var F=false;var K=false;var G=false;H=(D.indexOf("win 9x 4.90")!=-1&&D.indexOf("win")!=-1);I=(D.indexOf("win98")!=-1)||(D.indexOf("windows 98")!=-1);B=(D.indexOf("inux")!=-1);E=(D.indexOf("mac os x")!=-1);F=(E&&FlashUpgrade.checkIfBelow104());K=(E&&((D.indexOf("ppc")!=-1)||(D.indexOf("powerpc")!=-1)));G=(E&&((C.indexOf("intel")!=-1)));if(I||H){if(Sys.Browser.agent===Sys.Browser.InternetExplorer){J=MusicPlayerControl.WinME98_IE_FlashUpgradeURL}if(Sys.Browser.agent===Sys.Browser.Firefox){J=MusicPlayerControl.WinME98_Netscape_FlashUpgradeURL}}else{if(B){J=MusicPlayerControl.Linux_FlashUpgradeURL}else{if(F){if(K){J=MusicPlayerControl.MacOSX_Less10dot4_PowerPC_FlashUpgradeURL}if(G){J=MusicPlayerControl.MacOSX_Less10dot4_Intel_FlashUpgradeURL}}}}}return J}};var LoginObj={ajaxActionHandler:"/Modules/MusicV2/Services/MusicUtil.ashx?action=EnforceLogin",req:null,_loginWin:null,Sleep:function(A){setTimeout("LoginObj.EnforceLoginOpenComplete()",A)},LoginRedirect:function(){if(LoginObj.req.readyState==4){var json=eval("("+LoginObj.req.responseText+")");if(json.ServerResponse.IsRequestSuccessful){window.location.href=json.ServerResponse.DisplayText}}},EnforceLoginPOMP:function(A){LoginObj._loginWin=window.open(decodeURI(A),"newWin","","");LoginObj.Sleep(1000)},EnforceLoginOpenComplete:function(){if(LoginObj._loginWin==null){LoginObj.Sleep(1000)}else{if(LoginObj._loginWin.document==null){LoginObj.Sleep(1000)}else{var A=LoginObj._loginWin.document.getElementById(MusicPlayerControl.SwfObjectDiv);if(A==null){LoginObj.Sleep(1000)}else{LoginObj._loginWin.LoginObj.EnforceLogin()}}}}};var Purchase={Popup:null,AlbumOnlySong:false,BuyOptionObjects:null,ClickedWhileSongPlaying:null,ButtonMouseOver:function(D,B){if(D!=null&&B!=""){if(D.className==""){D.className=B}else{var E="";var A=D.className.split(" ");for(var C=0;C<A.length;C++){if(A[C]==B){return}}D.className+=" "+B}}},ButtonMouseOut:function(D,C){if(D!=null&&C!=""){var E="";var A=D.className.split(" ");for(var B=0;B<A.length;B++){if(A[B]!=C){E+=(E?" ":"")+A[B]}}D.className=E}},ButtonClicked:function(){if(Purchase.ClickTrackingEnabled()){Purchase.ButtonClickTracking()}MySpace.UI.hideElements=function(B,A){for(name in B){if(B[name]=="object"){B[name]=""}}for(var C=0;C<B.length;C++){var E=document.getElementsByTagName(B[C]);for(var D=0;D<E.length;D++){if(A){E[D].setAttribute("origvis",E[D].style.visibility)}E[D].style.visibility=A?"hidden":(E[D].getAttribute("origvis")?E[D].getAttribute("origvis"):"")}}};Purchase.OpenPopup(Purchase.CreatePopupContent())},RingtonesButtonClicked:function(A){if(Purchase.ClickTrackingEnabled()){Purchase.MakeBeaconRequest("","ringtones","jamster",MySpace.Application.keyDisabled("MusicJV_BuyButtonMultipleProviders"))}if(MySpace.ClientContext.FunctionalContext!="PopUpPlayer"){Purchase.Popup._hide()}Ringtones.openBeta(A)},CreatePopupContent:function(){var j=0;var buyOptions=new Array();var ringtoneArtist="";var iTunesButton="<div id='poiTunesLogo'></div> 							<div id='poiTunesPrice'>"+MySpaceRes.Purchase.For+"</div>";var amazonButton="<div id='poAmazonLogo'></div> 							<div id='poAmazonPrice'>"+MySpaceRes.Purchase.For+"</div>";var jamsterButton="<div id='poRingtoneButtons'> 								<H5 class='poHfive'><span id='poBoldText' class='poBoldText'>"+MySpaceRes.Purchase.ChooseMp3s+"</span></H5> 								<div id='poRingtoneButton' class='poMusicButton' onclick=\"javascript:Purchase.RingtonesButtonClicked('{0}');\" > 									<div id='poJamsterLogo'></div> 									<div id='poJamsterPrice'>"+MySpaceRes.Purchase.Ringtones+"</div> 								</div> 							 </div>";var popupContent="<div id='po'> 								<div id='poGreeting'> 									<H2 class='poHtwo'>"+MySpaceRes.Purchase.GreatChoice+"</H2> 								</div>									<div id='poInformation'> 									<H5 class='poHfive'>"+MySpaceRes.Purchase.DownloadInformation+"</H5> 								</div> 								<div id ='poAlbumOnly'> 									<H5 class='poHfive'><span id='poBoldText' class='poBoldText' style='color:red !important;font-weight:bold !important;font-size:10px !important;'>"+MySpaceRes.Purchase.AlbumOnly+"</span></h5> 								</div> 								<div id='poMusicButtons'> 									<H5 class='poHfive'><span id='poBoldText' class='poBoldText'>"+MySpaceRes.Purchase.DownloadMp3s+"</span></H5>";var sortFunction=function(a,b){var c=a.providerName;var d=b.providerName;if(c>d){return -1}if(c<d){return 1}return 0};buyOptions=Purchase.BuyOptionObjects.split("|");for(j=0;j<buyOptions.length;j++){buyOptions[j]=eval("("+buyOptions[j]+")")}buyOptions.sort(sortFunction);for(j=0;j<buyOptions.length;j++){switch(buyOptions[j].purchaseType.toLowerCase()){case"song":popupContent=MySpaceMusic.textFormat(popupContent,buyOptions[j].mediaName,buyOptions[j].artistName);switch(buyOptions[j].providerName.toLowerCase()){case"amazon":popupContent+="<div id='poMusicButton' class='poMusicButton' onclick=\"javaScript:Purchase.SongClicked('"+buyOptions[j].providerName+"','"+buyOptions[j].productId+"','"+((buyOptions[j].mediaId!=null)?buyOptions[j].mediaId:"")+"','','');\">";popupContent+=MySpaceMusic.textFormat(amazonButton,(buyOptions[j].price=="")?"FREE":buyOptions[j].price);break;case"itunes":popupContent+="<div id='poMusicButton' class='poMusicButtonNoBackground' onclick=\"javaScript:Purchase.SongClicked('"+buyOptions[j].providerName+"','"+buyOptions[j].productId+"','"+((buyOptions[j].mediaId!=null)?buyOptions[j].mediaId:"")+"','','');\">";popupContent+=MySpaceMusic.textFormat(iTunesButton,(buyOptions[j].price=="")?"FREE":buyOptions[j].price);break;default:}popupContent+="</div>";break;case"albumonly":popupContent=MySpaceMusic.textFormat(popupContent,buyOptions[j].mediaName,buyOptions[j].artistName);switch(buyOptions[j].providerName.toLowerCase()){case"amazon":popupContent+="<div id='poMusicButton' class='poMusicButton' onclick=\"javaScript:Purchase.SongClicked('"+buyOptions[j].providerName+"','"+buyOptions[j].productId+"','"+((buyOptions[j].mediaId!=null)?buyOptions[j].mediaId:"")+"','','');\">";popupContent+=MySpaceMusic.textFormat(amazonButton,(buyOptions[j].price=="")?"FREE":buyOptions[j].price);break;case"itunes":popupContent+="<div id='poMusicButton' class='poMusicButtonNoBackground' onclick=\"javaScript:Purchase.SongClicked('"+buyOptions[j].providerName+"','"+buyOptions[j].productId+"','"+((buyOptions[j].mediaId!=null)?buyOptions[j].mediaId:"")+"','','');\">";popupContent+=MySpaceMusic.textFormat(iTunesButton,(buyOptions[j].price=="")?"FREE":buyOptions[j].price);break;default:}popupContent+="</div>";Purchase.AlbumOnlySong=true;break;case"album":popupContent=MySpaceMusic.textFormat(popupContent,buyOptions[j].mediaName,buyOptions[j].artistName);switch(buyOptions[j].providerName.toLowerCase()){case"amazon":popupContent+="<div id='poMusicButton' class='poMusicButton' onclick=\"javaScript:Purchase.AlbumClicked('"+buyOptions[j].providerName+"','"+buyOptions[j].productId+"','"+((buyOptions[j].mediaId!=null)?buyOptions[j].mediaId:"")+"','','');\">";popupContent+=MySpaceMusic.textFormat(amazonButton,(buyOptions[j].price=="")?"FREE":buyOptions[j].price);break;case"itunes":popupContent+="<div id='poMusicButton' class='poMusicButtonNoBackground' onclick=\"javaScript:Purchase.AlbumClicked('"+buyOptions[j].providerName+"','"+buyOptions[j].productId+"','"+((buyOptions[j].mediaId!=null)?buyOptions[j].mediaId:"")+"','','');\">";popupContent+=MySpaceMusic.textFormat(iTunesButton,(buyOptions[j].price=="")?"FREE":buyOptions[j].price);break;default:}popupContent+="</div>";break;case"playlist":popupContent="<div id='po'> 										<div id='poGreeting'> 											<H2 class='poHtwo'>"+MySpaceRes.Purchase.GreatChoice+"</H2> 										</div>											<div id='poInformation'> 											<H5 class='poHfive'>"+MySpaceRes.Purchase.DownloadInformationPlaylist+"</H5> 										</div> 										<div id ='poAlbumOnly'> 										</div> 										<div id='poMusicButtons'> 											<H5 class='poHfive'><span id='poBoldText' class='poBoldText'>"+MySpaceRes.Purchase.DownloadMp3s+"</span></H5>";popupContent=MySpaceMusic.textFormat(popupContent,buyOptions[j].artistName,buyOptions[j].mediaName);popupContent+="<div id='poMusicButton' class='poMusicButton' onclick=\"javaScript:Purchase.PlaylistClicked('"+buyOptions[j].providerName+"','"+buyOptions[j].productId+"','"+((buyOptions[j].mediaId!=null)?buyOptions[j].mediaId:"")+"','','');\">";popupContent+=MySpaceMusic.textFormat(amazonButton,buyOptions[j].price);popupContent+="</div>";break;case"ringtone":ringtoneArtist=buyOptions[j].artistName;break;default:}}popupContent+="</div>";if(ringtoneArtist!=""){popupContent+=MySpaceMusic.textFormat(jamsterButton,ringtoneArtist)}popupContent+="</div>";return popupContent},OpenPopup:function(A){Purchase.Popup=MySpace.UI.Popup.create(A,"",Purchase.ClosePopupCallback);var B=MySpace.UI.getElementsByClassName("popup_wrapper").length-1;Purchase.Popup.set_top(50);Purchase.Popup.set_width(300);MySpace.UI.getElementsByClassName("popup_x")[B].style.background="transparent url(http://x.myspacecdn.com/modules/musicv2/static/img/poCloseButton.png) no-repeat 0";MySpace.UI.getElementsByClassName("popup_x")[B].style.width="43px";MySpace.UI.getElementsByClassName("popup_title")[B].style.padding="0px";MySpace.UI.getElementsByClassName("popup_title")[B].style.height="0px";MySpace.UI.getElementsByClassName("popup_title")[B].style.display="none";MySpace.UI.getElementsByClassName("popup_content")[B].style.padding="0px";MySpace.UI.getElementsByClassName("popup_content")[B].style.margin="0px";MySpace.UI.getElementsByClassName("popup_content")[B].style.border="2px black solid";MySpace.UI.getElementsByClassName("popup_box")[B].style.padding="0px";MySpace.UI.getElementsByClassName("popup_box")[B].style.border="0px";MySpace.UI.getElementsByClassName("popup_buttons")[B].style.padding="0px";MySpace.UI.getElementsByClassName("popup_buttons")[B].style.margin="0px";MySpace.UI.getElementsByClassName("popup_x")[B].style.top="10px";if(Purchase.AlbumOnlySong){$get("poAlbumOnly").style.visibility="visible"}else{$get("poAlbumOnly").style.visibility="hidden"}Purchase.AlbumOnlySong=false;Purchase.Popup.show()},ClosePopupCallback:function(){if(Purchase.ClickedWhileSongPlaying==null){if((Sys.Browser.agent===Sys.Browser.Firefox)&&(MySpace.ClientContext.FunctionalContext==="UserViewProfile"||MySpace.ClientContext.FunctionalContext==="SitesProfile")){document.getElementById("shell").getElementsByTagName("object")[0].resumeAfterRingtonesClose()}else{document.getElementById("shell").resumeAfterRingtonesClose()}}else{if(Purchase.ClickedWhileSongPlaying){if((Sys.Browser.agent===Sys.Browser.Firefox)&&(MySpace.ClientContext.FunctionalContext==="UserViewProfile"||MySpace.ClientContext.FunctionalContext==="SitesProfile")){document.getElementById("shell").getElementsByTagName("object")[0].playCurrentTrack()}else{document.getElementById("shell").playCurrentTrack()}}Purchase.ClickedWhileSongPlaying=null}},AlbumClicked:function(provider,productId,albumId,artistName,albumName){if(Purchase.ClickTrackingEnabled()){Purchase.MakeBeaconRequest(albumId,"album",provider,MySpace.Application.keyDisabled("MusicJV_BuyButtonMultipleProviders"))}switch(provider.toLowerCase()){case"amazon":if(MusicPlayerControl.AllowAmazonInPlace&&productId!=undefined&&productId!=null&&productId!=""){Purchase.AmazonInPlace(productId)}else{Purchase.AmazonAffiliate(productId,"album")}break;case"itunes":if(productId!=undefined&&productId!=null&&productId!=""){var providers=eval("("+MusicPlayerControl.Providers+")");var urlCulture=MySpace.Cookies.MSCulture.get_values().IPCulture.toLowerCase();if(urlCulture=="en-au"||urlCulture=="en-nz"||urlCulture=="en-gb"){encodedProductId=encodeURIComponent(productId);iTunesURL=MySpaceMusic.textFormat(providers.iTunes.Address,encodedProductId+"%3F")}else{if(urlCulture=="en-us"||urlCulture=="es-us"){doubleEncodedProductId=encodeURIComponent(encodeURIComponent(productId));iTunesURL=MySpaceMusic.textFormat(providers.iTunes.Address,doubleEncodedProductId+"%253F")}else{iTunesURL=MySpaceMusic.textFormat(providers.iTunes.Address,"?"+productId)}}var newWindow=window.open(iTunesURL,"iTunesSA","status=yes, scrollbars=yes, resizable=yes, toolbar=yes, location=yes, directories=no, menubar=yes, width=950, height=700");MySpaceMusic.checkForPopUpBlocker(newWindow)}break;default:}},SongClicked:function(provider,productId,songId,artistName,songName){if(Purchase.ClickTrackingEnabled()){Purchase.MakeBeaconRequest(songId,"song",provider,MySpace.Application.keyDisabled("MusicJV_BuyButtonMultipleProviders"))}switch(provider.toLowerCase()){case"amazon":if(MusicPlayerControl.AllowAmazonInPlace&&productId!=undefined&&productId!=null&&productId!=""){Purchase.AmazonInPlace(productId)}else{Purchase.AmazonAffiliate(productId,"song")}break;case"itunes":if(productId!=undefined&&productId!=null&&productId!=""){var providers=eval("("+MusicPlayerControl.Providers+")");var urlCulture=MySpace.Cookies.MSCulture.get_values().IPCulture.toLowerCase();if(urlCulture=="en-au"||urlCulture=="en-nz"||urlCulture=="en-gb"){encodedProductId=encodeURIComponent(productId);iTunesURL=MySpaceMusic.textFormat(providers.iTunes.Address,encodedProductId+"%26")}else{if(urlCulture=="en-us"||urlCulture=="es-us"){doubleEncodedProductId=encodeURIComponent(encodeURIComponent(productId));iTunesURL=MySpaceMusic.textFormat(providers.iTunes.Address,doubleEncodedProductId+"%2526")}else{iTunesURL=MySpaceMusic.textFormat(providers.iTunes.Address,"?"+productId)}}var newWindow=window.open(iTunesURL,"iTunesSA","status=yes, scrollbars=yes, resizable=yes, toolbar=yes, location=yes, directories=no, menubar=yes, width=950, height=700");MySpaceMusic.checkForPopUpBlocker(newWindow)}break;default:}},PlaylistClicked:function(C,A,B){if(Purchase.ClickTrackingEnabled()){Purchase.MakeBeaconRequest(B,"playlist",C,MySpace.Application.keyDisabled("MusicJV_BuyButtonMultipleProviders"))}switch(C.toLowerCase()){case"amazon":switch(MySpace.ClientContext.FunctionalContext){case"MusicSinglePlaylist":buyPlaylistUrl=MySpaceMusic.textFormat("http://www.amazon.com/gp/browse.html?node={0}&tag={1}&ASINs={2}","1266319011","playlistpurchase-20",A);break;case"CelebrityPromo":buyPlaylistUrl=MySpaceMusic.textFormat("http://www.amazon.com/gp/browse.html?node={0}&tag={1}&ASINs={2}","1266319011","featuredplaylistpurchase-20",A);break;default:buyPlaylistUrl=MySpaceMusic.textFormat("http://www.amazon.com/gp/browse.html?node={0}&tag={1}&ASINs={2}","1266319011","mys0d05-20",A);break}window.open(buyPlaylistUrl,"AmazonSA","status=yes, scrollbars=yes, resizable=yes, toolbar=yes, location=yes, directories=no, menubar=yes, width=950, height=700");break;default:}},AmazonInPlace:function(A){var E=MusicPlayerControl.AmazonPrice+"&asin="+A+"&mode=";var C=626;var D=426;if(navigator.userAgent.toLowerCase().indexOf("firefox/")>=0){C=611;D=366}E+="windowed";var B=window.open(E,"Amazon","status=no, scrollbars=no, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=610, height=400");MySpaceMusic.checkForPopUpBlocker(B)},AmazonAffiliate:function(B,A){standardAffUrl="http://www.amazon.com/dp/"+B;if(A=="album"){switch(MySpace.ClientContext.FunctionalContext){case"ArtistAlbums":standardAffUrl+="?tag=albumalbumpurchase-20";break;case"MusicSinglePlaylist":standardAffUrl+="?tag=playlistalbumpurchase-20";break;case"UserViewProfile":case"SitesProfile":if(MySpace.ProfileClientContext!=null&&MySpace.ProfileClientContext.ProfileType==7){standardAffUrl+="?tag=artistalbumpurchase-20"}else{if(MySpace.ProfileClientContext!=null&&MySpace.ProfileClientContext.ProfileType==8){standardAffUrl+="?tag=brandalbumpurchase-20"}else{standardAffUrl+="?tag=useralbumpurchase-20"}}break;case"CelebrityPromo":standardAffUrl+="?tag=featuredalbumpurchase-20";break;case"PopUpPlayer":standardAffUrl+="?tag=pompalbumpurchase-20";break;case"SiteSearch":standardAffUrl+="?tag=searchalbumpurchase-20";break;case"MusicTopCharts":standardAffUrl+="?tag=chartsalbumpurchase-20";break;default:standardAffUrl+="?tag=mys0d05-20"}}if(A=="song"){switch(MySpace.ClientContext.FunctionalContext){case"ArtistAlbums":standardAffUrl=standardAffUrl+"?tag=albumsongpurchase-20";break;case"MusicSinglePlaylist":standardAffUrl+="?tag=playlistsongpurchase-20";break;case"UserViewProfile":case"SitesProfile":if(MySpace.ProfileClientContext!=null&&MySpace.ProfileClientContext.ProfileType==7){standardAffUrl+="?tag=artistsongpurchase-20"}else{if(MySpace.ProfileClientContext!=null&&MySpace.ProfileClientContext.ProfileType==8){standardAffUrl+="?tag=brandsongpurchase-20"}else{standardAffUrl+="?tag=usersongpurchase-20"}}break;case"CelebrityPromo":standardAffUrl+="?tag=featuredsongpurchase-20";break;case"PopUpPlayer":standardAffUrl+="?tag=pompsongpurchase-20";break;case"Music":standardAffUrl+="?tag=msmhomesongpurchase-20";break;case"SiteSearch":standardAffUrl+="?tag=searchsongpurchase-20";break;case"MusicTopCharts":standardAffUrl+="?tag=chartssongpurchase-20";break;default:standardAffUrl=standardAffUrl+"?tag=mys0d05-20"}}var C=window.open(standardAffUrl,"AmazonSA","status=yes, scrollbars=yes, resizable=yes, toolbar=yes, location=yes, directories=no, menubar=yes, width=950, height=700");MySpaceMusic.checkForPopUpBlocker(C)},ButtonClickTracking:function(){try{if(Purchase.BuyOptionObjects){var buyOptions=Purchase.BuyOptionObjects.split("|");if(buyOptions.length>0){var providers="";for(var j=0;j<buyOptions.length;j++){buyOptions[j]=eval("("+buyOptions[j]+")");providers+=buyOptions[j].providerName.toLowerCase()+","}providers=providers.substring(0,providers.length-1);var srcType=buyOptions[0].purchaseType=="albumonly"?"song":buyOptions[0].purchaseType;Purchase.MakeBeaconRequest(buyOptions[0].mediaId,srcType,providers,true)}}}catch(e){}},findTopLevelElement:function(A){while(!(Sys.UI.DomElement.containsCssClass(A,"msm_draggablesong")||Sys.UI.DomElement.containsCssClass(A,"ui-draggable"))){A=A.parentNode;if(A.tagName.toLowerCase()==="body"){return null}}return A},AddMusicSearchClickTracking:function(C){var B=Purchase.ClickedBuyButton;if(C.srcType==="song"){var A=Purchase.findTopLevelElement(B);if(A!=null){C.albumid=A.getAttribute("msm_albumid");C.searchid=A.getAttribute("msm_searchid");C.pagenum=A.getAttribute("msm_pn");C.filter=A.getAttribute("msm_filter");C.sort=A.getAttribute("msm_sort");C.origin=A.getAttribute("msm_origin");C.dorigin=A.getAttribute("msm_dorigin");C.action=A.getAttribute("msm_action");C.rank=A.getAttribute("msm_rank")}}else{if(C.srcType==="album"){if(B.parentNode.id==="AlbumBuy"||B.parentNode.id==="AlbumBuyNew"){A=B.parentNode;C.artistid=A.getAttribute("msm_artistid");C.searchid=A.getAttribute("msm_searchid");C.pagenum=A.getAttribute("msm_pn");C.filter=A.getAttribute("msm_filter");C.sort=A.getAttribute("msm_sort");C.origin=A.getAttribute("msm_origin");C.dorigin=A.getAttribute("msm_dorigin");C.action=A.getAttribute("msm_action");C.rank=A.getAttribute("msm_rank")}}}return C},MakeBeaconRequest:function(E,B,C,A){var D;if(A){D={type:"musicbuybtn",srcType:B};if(E&&E!==""){if(B==="song"){D.songid=E}else{if(B==="album"){D.albumid=E}else{if(B==="playlist"){D.playlistid=E}}}}if(!MySpace.Application.keyDisabled("DWBeaconMusicBuyButton")){D.prov=C;if(MySpace.Application.keyDisabled("MusicJV_BuyButtonMultipleProviders")){D.lb="0"}else{D.lb="1"}}if(MySpace.ClientContext.FunctionalContext==="SiteSearch"&&!MySpace.Application.keyDisabled("DWBeaconMusicSearch")&&Purchase.ClickedBuyButton){D=Purchase.AddMusicSearchClickTracking(D)}}else{if(!MySpace.Application.keyDisabled("DWBeaconMusicBuyButton")){D={type:"musicbuylb",ptype:B,prov:C}}}if(D){MySpace.Beacon.Request(D)}},ClickTrackingEnabled:function(){return MySpace.BeaconData&&MySpace.Beacon&&(!MySpace.Application.keyDisabled("DWBeaconMusicBuyButton")||MySpace.ClientContext.FunctionalContext==="SiteSearch"&&!MySpace.Application.keyDisabled("DWBeaconMusicSearch"))}};var Ringtones={Popup:null,open:function(B){var D="";var C=[];MySpace.UI.hideElements=function(H,G){for(name in H){if(H[name]=="object"){H[name]=""}}for(var I=0;I<H.length;I++){var K=document.getElementsByTagName(H[I]);for(var J=0;J<K.length;J++){if(G){K[J].setAttribute("origvis",K[J].style.visibility)}K[J].style.visibility=G?"hidden":(K[J].getAttribute("origvis")?K[J].getAttribute("origvis"):"")}}};if(B!=""){B=B.replace(/[^A-Za-z0-9\s:-]/g,"").replace(/[\s]/g,"+");C=B.split(":");D=MusicPlayerControl.JambaUrl+C[0];switch(MySpace.Cookies.MSCulture.get_values().IPCulture.toLowerCase()){case"en-gb":var E=window.open(D,"JambaRingtones","status=no, scrollbars=no, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=757, height=721");MySpaceMusic.checkForPopUpBlocker(E);break;case"en-au":D="http://ad.jamster.com.au/landingpages/campaigns/int_o_flash/myspacemusic/?adv_partner=0017&partner_var=Music&artist="+C[0];var E=window.open(D,"JambaRingtones","status=no, scrollbars=no, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=757, height=721");MySpaceMusic.checkForPopUpBlocker(E);break;case"en-nz":D="http://ad.jamster.co.nz/landingpages/campaigns/int_o_flash/myspacemusic/?adv_partner=0017&partner_var=Music&artist="+C[0];var E=window.open(D,"JambaRingtones","status=no, scrollbars=no, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=757, height=721");MySpaceMusic.checkForPopUpBlocker(E);break;default:if(MySpace.ClientContext.FunctionalContext=="PopUpPlayer"){var E=window.open(D,"JambaRingtones","status=no, scrollbars=yes, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=780, height=820");MySpaceMusic.checkForPopUpBlocker(E)}else{content="<iframe id='ringtonesIframe' width='763' height='820' scrolling='no' style='border:0;' src='"+D+"'></iframe>";var F=MySpace.UI.Popup.create(content,"",Ringtones.close);$get("ringtonesIframe").style.display="block";F.set_top(10);F.set_width(773);for(var A=0;A<MySpace.UI.getElementsByClassName("popup_wrapper").length;A++){MySpace.UI.getElementsByClassName("popup_content")[A].style.padding="0px";MySpace.UI.getElementsByClassName("popup_content")[A].style.width="763px"}F.show()}}}},openBeta:function(A){var B="";MySpace.UI.hideElements=function(F,E){for(name in F){if(F[name]=="object"){F[name]=""}}for(var G=0;G<F.length;G++){var I=document.getElementsByTagName(F[G]);for(var H=0;H<I.length;H++){if(E){I[H].setAttribute("origvis",I[H].style.visibility)}I[H].style.visibility=E?"hidden":(I[H].getAttribute("origvis")?I[H].getAttribute("origvis"):"")}}};if(A!=""){A=A.replace(/[^A-Za-z0-9\s:-]/g,"").replace(/[\s]/g,"+");B=MusicPlayerControl.JambaUrl+A;switch(MySpace.Cookies.MSCulture.get_values().IPCulture.toLowerCase()){case"en-gb":var D=window.open(B,"JambaRingtones","status=no, scrollbars=no, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=757, height=721");MySpaceMusic.checkForPopUpBlocker(D);break;case"en-au":B="http://ad.jamster.com.au/landingpages/campaigns/int_o_flash/myspacemusic/?adv_partner=0017&partner_var=Music&artist="+A;var D=window.open(B,"JambaRingtones","status=no, scrollbars=no, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=757, height=721");MySpaceMusic.checkForPopUpBlocker(D);break;case"en-nz":B="http://ad.jamster.co.nz/landingpages/campaigns/int_o_flash/myspacemusic/?adv_partner=0017&partner_var=Music&artist="+A;var D=window.open(B,"JambaRingtones","status=no, scrollbars=no, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=757, height=721");MySpaceMusic.checkForPopUpBlocker(D);break;default:if(MySpace.ClientContext.FunctionalContext=="PopUpPlayer"){var D=window.open(B,"JambaRingtones","status=no, scrollbars=yes, resizable=no, toolbar=no, location=no, directories=no, menubar=no, width=780, height=820");MySpaceMusic.checkForPopUpBlocker(D)}else{content="<iframe id='ringtonesIframe' width='763' height='820' scrolling='no' style='border:0;' src='"+B+"'></iframe>";Ringtones.Popup=MySpace.UI.Popup.create(content,"",Ringtones.ClosePopupCallback);var C=MySpace.UI.getElementsByClassName("popup_wrapper").length-1;$get("ringtonesIframe").style.display="block";Ringtones.Popup.set_top(10);Ringtones.Popup.set_width(768);MySpace.UI.getElementsByClassName("popup_x")[C].style.background="transparent url(http://x.myspacecdn.com/modules/musicv2/static/img/poCloseButton.png) no-repeat 0";MySpace.UI.getElementsByClassName("popup_x")[C].style.width="43px";MySpace.UI.getElementsByClassName("popup_title")[C].style.padding="0px";MySpace.UI.getElementsByClassName("popup_title")[C].style.height="0px";MySpace.UI.getElementsByClassName("popup_title")[C].style.display="none";MySpace.UI.getElementsByClassName("popup_content")[C].style.padding="0px";MySpace.UI.getElementsByClassName("popup_content")[C].style.margin="0px";MySpace.UI.getElementsByClassName("popup_content")[C].style.border="2px black solid";MySpace.UI.getElementsByClassName("popup_box")[C].style.padding="0px";MySpace.UI.getElementsByClassName("popup_box")[C].style.border="0px";MySpace.UI.getElementsByClassName("popup_buttons")[C].style.padding="0px";MySpace.UI.getElementsByClassName("popup_buttons")[C].style.margin="0px";MySpace.UI.getElementsByClassName("popup_x")[C].style.top="10px";Ringtones.Popup.show()}}}},close:function(){var A=MySpaceMusic.getPlayerFlashObject();if(A!=null){A.resumeAfterRingtonesClose()}},ClosePopupCallback:function(){Ringtones.Popup._hide();Purchase.ButtonClicked()}};var MySpaceMusic={focusStatus:true,playerLoaded:false,prevSongID:null,prevArtistIDArray:null,isPlayingAudioAd:false,createPopUp:function(G,B,J,E,C){var I="";var K=G;var D=document.createElement("div");var F=50;var A=100;var H;if(C=="optin"){H=MySpace.UI.Popup.create(K,"");H.set_width(B+18);if(MySpace.ClientContext.FunctionalContext=="PopUpPlayer"&&C=="optin"){H.set_top(0)}else{if(C=="optin"&&Sys.Browser.agent==Sys.Browser.InternetExplorer&&Sys.Browser.version==6){H.set_top(F)}}}else{D.innerHTML="<div id='divWrapper' class='popup_wrapper' style='z-index:1000201;left:0px;width: "+A+"%;display:none;visibility:hidden;text-align:center;padding:auto auto auto auto;'><div class='appspopup_box' style='width:"+B+"px; height:"+J+"px; margin-left: auto;margin-right: auto;border: 4px solid #6698CB;'>"+E+"<div></div><div class='appspopup_content' style='margin:0 auto;'></div><div class='appspopup_buttons'></div></div></div>";H=$create(MySpace.UI._Popup,{title:I,content:K,left:0,top:F},null,null,D.firstChild)}return H},textFormat:function(C){var B=arguments.length-1;for(var A=0;A<B;A++){C=C.replace(new RegExp("\\{"+A+"\\}","gi"),arguments[A+1])}return C},getElementPosition:function(A){var C=0;var B=0;if(A){do{C+=A.offsetLeft;B+=A.offsetTop}while((A=A.offsetParent)&&MySpaceMusic.getElementStyle(A,"position")!="relative")}return{x:C,y:B}},getElementStyle:function(B,A){var C="";if(B.currentStyle){C=B.currentStyle[A]}else{if(document.defaultView&&document.defaultView.getComputedStyle){C=document.defaultView.getComputedStyle(B,null).getPropertyValue(A)}else{C=B[A]}}return C},showPopupBlockerMessage:function(){var C=false;var A=document.createElement("iframe");A.setAttribute("src","/modules/musicv2/pages/NoAmazonPopupMessaging.aspx");A.setAttribute("id","amazonNoPopUp");A.style.position="absolute";A.setAttribute("allowTransparency","true");A.setAttribute("frameBorder","0");A.style.backgroundColor="transparent";var G=300;var F=300;var E=document.getElementById(MusicPlayerControl.SwfObjectDiv);var D=MySpaceMusic.getElementPosition(E);if(E.offsetHeight>G){A.style.top=D.y+"px"}else{var B=D.y-(G-E.offsetHeight)/2;A.style.top=B+"px"}if((parseInt(MusicPlayerControl.Height)==1)&&(parseInt(MusicPlayerControl.Width)==1)){A.style.position="fixed";A.style.left="44%";A.style.top="44%"}else{A.style.left=D.x+"px";A.style.width=F+"px"}A.style.height=G+"px";A.style.borderStyle="none";document.body.appendChild(A)},getPlayerFlashObject:function(){var A=document.getElementsByTagName("object");for(i in A){if(typeof(A[i].playSong)!="undefined"){return A[i]}}return null},Focus:function(){MySpaceMusic.focusStatus=true},Blur:function(){MySpaceMusic.focusStatus=false},IsWindowFocused:function(){return MySpaceMusic.focusStatus},onBuyClickedFromHTML:function(A,B){if(document.getElementById("shell")){if((Sys.Browser.agent===Sys.Browser.Firefox)&&(MySpace.ClientContext.FunctionalContext==="UserViewProfile"||MySpace.ClientContext.FunctionalContext==="SitesProfile")){Purchase.ClickedWhileSongPlaying=document.getElementById("shell").getElementsByTagName("object")[0].getPlayingState();if(Purchase.ClickedWhileSongPlaying){document.getElementById("shell").getElementsByTagName("object")[0].pauseCurrentTrack()}}else{Purchase.ClickedWhileSongPlaying=document.getElementById("shell").getPlayingState();if(Purchase.ClickedWhileSongPlaying){document.getElementById("shell").pauseCurrentTrack()}}}Purchase.ClickedBuyButton=A;MySpaceMusic.onBuyClicked(B)},onBuyClicked:function(A){Purchase.BuyOptionObjects=A;Purchase.ButtonClicked()},onFindRingtoneClicked:function(B,A){if(MusicPlayerControl.AllowJamba){Ringtones.open(A)}},onPlayingTrack:function(E,F,D,B){if(MySpace.Ads&&MySpace.Ads.BandType){MySpace.Ads.BandType.Genre1=D[0];MySpace.Ads.BandType.Genre2=D[1];MySpace.Ads.BandType.Genre3=D[2]}if(E!=MySpaceMusic.prevSongID&&F!=MySpaceMusic.prevArtistIDArray){if(document.getElementById("feedResult")!=null){if(F[0]>0){if(document.getElementById("ArtistFeeds")!=null){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.GetMultipleArtistsUpdateFromArtistUpdatesApi(F,MySpaceMusic.WebSvrManager.ArtistUpdateSuccess,MySpaceMusic.WebSvrManager.OnFailure)}else{MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.GetMultipleArtistsUpdate(F,MySpaceMusic.WebSvrManager.ArtistUpdateSuccess,MySpaceMusic.WebSvrManager.OnFailure)}}else{document.getElementById("feedResult").innerHTML='<br/><div class="activityFeedNoUpdate">'+MySpaceRes.PopUpPlayer.NoUpdatesForThisArtist+"</div>"}}MySpaceMusic.prevSongID=E;MySpaceMusic.prevArtistIDArray=F}if(document.getElementById("msaaSimilarSongsDiv")!=null){if(typeof(Carousel)!="undefined"&&E>0&&E!=Carousel.seedSong){if(typeof(PlayButton)!="undefined"&&!PlayButton.IsSimilarSong(PlayButton._oldElem)){var A=document.getElementById("shell").getSongMetadata();var C=(A[6]!=null)?A[6]:-1;Carousel.loadModule(E,C)}}}},onBuyAlbumClicked:function(B,C,A,D){Purchase.AlbumClicked("Amazon",B,C,A,D)},onBuySongClicked:function(B,D,A,C){Purchase.SongClicked("Amazon",B,D,A,C)},DisablePlayButtons:function(){try{jQuery.each($(".chrtSongd1d0CSS"),function(E,F){$(F).html($(F).html().replace(/onmouseover/,"offmouseover").replace(/onclick/,"offclick").replace(/title/,"offtitle").replace(/search_btn_play.gif/,"search_btn_playDisabled.gif"))})}catch(D){}try{images=document.getElementsByTagName("*");for(var B=0;B<images.length;B++){if(images[B].id.indexOf("PlayButton_")!=-1||images[B].id.indexOf("SimilarSong_")!=-1){images[B].onclick=function(){};try{images[B].setAttribute("onclick","");$clearHandlers(images[B])}catch(C){}images[B].style.opacity=".2";images[B].style.filter="alpha(opacity=20)";images[B].style["-ms-filter"]="progid:DXImageTransform.Microsoft.Alpha(Opacity=20)"}}}catch(A){}},EnablePlayButtons:function(){try{jQuery.each($(".chrtSongd1d0CSS"),function(D,E){$(E).html($(E).html().replace(/offmouseover/,"onmouseover").replace(/offclick/,"onclick").replace(/offtitle/,"title").replace(/search_btn_playDisabled.gif/,"search_btn_play.gif"))})}catch(C){}try{images=document.getElementsByTagName("*");for(var B=0;B<images.length;B++){if(images[B].id.indexOf("PlayButton_")!=-1||images[B].id.indexOf("SimilarSong_")!=-1){images[B].style.opacity="";images[B].style.filter="";images[B].style["-ms-filter"]="";$addHandler(images[B],"click",function(){if((typeof(PlayButton)!=="undefined")){PlayButton.OnClickPlaySongButton(this)}else{if((typeof(ButtonControls)!=="undefined")){ButtonControls.OnClickPlaySongButton(this)}}})}}}catch(A){}},onLockPlayerControls:function(){MySpaceMusic.isPlayingAudioAd=true;MySpaceMusic.DisablePlayButtons()},onUnLockPlayerControls:function(){MySpaceMusic.EnablePlayButtons();MySpaceMusic.isPlayingAudioAd=false},checkForPopUpBlocker:function(A){if(A){A.focus()}else{MySpaceMusic.showPopupBlockerMessage()}},MedRecRefresh:function(A){if(MySpace.ClientContext.FunctionalContext=="UserViewProfile"||MySpace.ClientContext.FunctionalContext=="SitesProfile"){AdTooltip.open(A)}if(MySpace.ClientContext.FunctionalContext=="MusicDiscography"){AdTooltip.open()}},MedRecDismiss:function(){AdTooltip.close()},OptIn:function(B,D,F,C,E,A){popupWidth=530;popupHeight=515;popupContent="<iframe id='popupiframe' scrolling='no' style='border:0;overflow:hidden' src=\"/modules/musicv2/pages/optindialog.aspx?userid="+B+"&songid="+F+"&playlistid="+D+"&artistid="+C+"&albumid="+A+"\" width='"+popupWidth+"' height='"+popupHeight+"'></iframe>";invCloseBtn="<p class='popup_x' style='background:none; width:55px; height:25px; top:42px; margin:-28px 20px 0 0; padding:0 20px 0 0; cursor:pointer; float:right; position:relative;'></p>";popup=MySpaceMusic.createPopUp(popupContent,popupWidth,popupHeight,"","optin");popup.show()},EnforceLogin:function(){try{if(window.XMLHttpRequest){LoginObj.req=new XMLHttpRequest();LoginObj.req.onreadystatechange=LoginObj.LoginRedirect;LoginObj.req.open("GET",LoginObj.ajaxActionHandler,true);LoginObj.req.send(null)}else{if(window.ActiveXObject){LoginObj.req=new ActiveXObject("Microsoft.XMLHTTP");if(LoginObj.req){LoginObj.req.onreadystatechange=LoginObj.LoginRedirect;LoginObj.req.open("GET",LoginObj.ajaxActionHandler,true);LoginObj.req.send()}}}}catch(A){}},popupAllowed:function(){var A=window.open("","","width=1,height=1,left=0,top=0,scrollbars=no");if(A){var B=true;A.close()}else{MySpaceMusic.showPopupBlockerMessage()}return B},onStop:function(B,A){if(typeof(PlayButton)!="undefined"){Sys.UI.DomElement.removeCssClass(PlayButton._oldElem,PlayButton._oldElem.className);Sys.UI.DomElement.addCssClass(PlayButton._oldElem,PlayButton._oldClassName);PlayButton._oldElem.title=PlayButton._oldTitle;Sys.UI.DomElement.removeCssClass(PlayButton.oldParentElem,"isPlaying")}else{if(typeof(ButtonControls)!="undefined"){ButtonControls._oldElem.src=ButtonControls._oldSrc;ButtonControls._oldElem.title=ButtonControls._oldTitle;Sys.UI.DomElement.removeCssClass(ButtonControls.oldParentElem,"isPlaying")}}},onPausingCurrentTrack:function(){if(typeof SongList.SongItem.onPlayerPause=="function"){SongList.SongItem.onPlayerPause()}},onPlayingCurrentTrack:function(){if(typeof SongList.SongItem.onPlayerPlay=="function"){SongList.SongItem.onPlayerPlay()}},PlaySongInPOMP:function(D,B,A,E){try{document.getElementById("shell").playSong(D,B,A,E)}catch(C){}},onPlayerLoaded:function(){MySpaceMusic.playerLoaded=true;if((typeof SongList.SongListView.onPlayerLoaded)!="undefined"){SongList.SongListView.onPlayerLoaded()}},onShareClick:function(H,E,K,A,G,F,L,D,C,J){var B=(A>0)?"http://www.myspace.com/index.cfm?fuseaction=music.artistalbums&artistid={0}&ap=1&albumid={1}&songid={2}".Format(G,A,K):"http://www.myspace.com/{0}/music/playlists/{1}?songid={2}&ap=1".Format(C,J,K);var I=new MySpaceMusic.AddThisFlashJS();I.open("shell",F+" by "+L,B,E,H,false)},onEmbedClicked:function(J,G,N,A,I,H,O,E,M){alert("test1");var K=document.getElementById("shell");K=K.getElementsByTagName("object")[0];var D=MySpaceMusic.getElementPosition(K);var L=document.getElementById("musicFlashPlayerContent");var B=document.createElement("div");B.style.background="#F3F3F3";B.style.borderStyle="solid";B.style.borderWidth="5px";B.style.zIndex="500";B.style.width="240px";B.style.height="40px";B.style.position="absolute";B.style.top=D.y+G+"px";B.style.left=D.x+J+"px";var F=document.createElement("input");F.id="codeInput";F.value="<div style='width:400;height:76px;'><embed FlashVars='songId="+N+"' src='http://lads-stage.myspace.com/Embeds/SongEmbed/SongEmbed.swf' width='400' height='77'></div><table style='background-color:#EDEDED;width:400px;border-style:solid;border-width:1px;border-top-color:#EDEDED;border-left-color:#ACACAC;border-right-color:#ACACAC;border-bottom-color:#ACACAC;' width='400px' border='0'><tr><td style='padding-left:10px;margin-left:10px;font-size:x-small;color:#666666'>";F.style.zIndex="1000";F.style.position="absolute";F.style.top="10px";F.style.left="15px";F.style.height="15px";F.style.width="205px";F.style.fontSize="65%";B.appendChild(F);alert("test2");var C=document.createElement("div");C.style.zIndex="2000";C.style.backgroundImage="url(http://www.myspace.com/music/modules/common/static/img/closeButton.png)";C.style.position="absolute";C.style.width="6px";C.style.height="5px";C.style.top="5px";C.style.right="5px";C.onmouseup=function(){L.removeChild(B)};B.appendChild(C);L.appendChild(B);alert("test3");jQuery.ajax({url:"http://www.myspace.com/modules/musicv2/services/MiniProfile.ashx?songid="+N+"&seoText=true",success:seoTextreceved});alert("test4")},seoTextreceved:function(B){alert("test5");var A=document.getElementById("codeInput");A.value+=B+"</td><td width=66><a href='http://www.myspace.com/'><img src='logo.jpg' style='padding-right:5px;padding-bottom:5px;padding-top:5px;border-style:none;font-family:Arial;'></a></td></tr></table>";A.style.visibility="visible"},AddThisFlashJS:function(){this.flashID=null;this.debug=false;this.divX=0;this.divY=0;this.addThisFlashDiv=null;this.init=function(B,D){this.debug=(D==true)?true:false;this.flashID=B;var C=document.getElementById(this.flashID);if(Sys.Browser.agent==Sys.Browser.Firefox&&C.getElementsByTagName("object").length>0){C=C.getElementsByTagName("object")[0]}var A=MySpaceMusic.getElementPosition(C);this.divX=A.x;this.divY=A.y;this.addThisFlashDiv=document.getElementById("AddThisFlashDIV");if(!this.addThisFlashDiv){this.addThisFlashDiv=document.createElement("div");this.addThisFlashDiv.setAttribute("id","AddThisFlashDIV");this.addThisFlashDiv.style.position="absolute";this.addThisFlashDiv.style.zIndex=100000;this.addThisFlashDiv.style.visibility="hidden";this.addThisFlashDiv.style.width=(!this.debug)?"0px":"16px";this.addThisFlashDiv.style.height=(!this.debug)?"0px":"16px";if(this.debug){this.addThisFlashDiv.style.border="1px solid #FF0000"}document.getElementById(this.flashID).parentNode.appendChild(this.addThisFlashDiv)}};this.open=function(D,F,C,B,A,E){this.init(D,E);this.addThisFlashDiv.style.top=this.divY+B+"px";this.addThisFlashDiv.style.left=this.divX+A+"px";this.addThisFlashDiv.style.height="1px";this.addThisFlashDiv.style.width="1px";if(this.debug){this.addThisFlashDiv.style.visibility="visible"}else{return addthis_open(this.addThisFlashDiv,"",C,F)}};this.close=function(){if(this.debug){this.addThisFlashDiv.style.visibility="hidden"}else{addthis_close()}};this.sendto=function(){if(this.debug){this.addThisFlashDiv.style.visibility="hidden"}else{return addthis_sendto()}}}};if(typeof($addHandler)!=="undefined"){if(Sys.Browser.agent===Sys.Browser.InternetExplorer){$addHandler(document,"focusout",MySpaceMusic.Blur);$addHandler(document,"focusin",MySpaceMusic.Focus)}else{if(Sys.Browser.agent===Sys.Browser.Safari){$addHandler(window,"blur",MySpaceMusic.Blur);$addHandler(window,"focus",MySpaceMusic.Focus)}else{$addHandler(window,"blur",MySpaceMusic.Blur);$addHandler(window,"focus",MySpaceMusic.Focus)}}}var popup;function ClosePopUp(){popup._hide();popupId=document.getElementById("divWrapper");document.body.removeChild(popupId)}killPopupBlockerMessaging=function(){popupFrame=document.getElementById("amazonNoPopUp");document.body.removeChild(popupFrame)};String.prototype.Format=function(){var C=this;for(var A=0;A<arguments.length;A++){var B=new RegExp("\\{"+A+"\\}","g");C=C.replace(B,arguments[A])}return C};Type.registerNamespace("MySpace.Web.Modules.MusicV2.Services");MySpace.Web.Modules.MusicV2.Services.PopUpPlayer=function(){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.initializeBase(this);this._timeout=0;this._userContext=null;this._succeeded=null;this._failed=null};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.prototype={GetMultipleArtistsUpdate:function(C,B,A,D){return this._invoke(MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.get_path(),"GetMultipleArtistsUpdate",false,{ArtistIds:C},B,A,D)},GetArtistUpdate:function(B,C,A,D){return this._invoke(MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.get_path(),"GetArtistUpdate",false,{ArtistId:B},C,A,D)},GetMultipleArtistsUpdateFromArtistUpdatesApi:function(C,B,A,D){return this._invoke(MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.get_path(),"GetMultipleArtistsUpdateFromArtistUpdatesApi",false,{ArtistIds:C},B,A,D)}};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.registerClass("MySpace.Web.Modules.MusicV2.Services.PopUpPlayer",Sys.Net.WebServiceProxy);MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance=new MySpace.Web.Modules.MusicV2.Services.PopUpPlayer();MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.set_path=function(A){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._path=A};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.get_path=function(){return MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._path};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.set_timeout=function(A){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._timeout=A};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.get_timeout=function(){return MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._timeout};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.set_defaultUserContext=function(A){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._userContext=A};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.get_defaultUserContext=function(){return MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._userContext};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.set_defaultSucceededCallback=function(A){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._succeeded=A};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.get_defaultSucceededCallback=function(){return MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._succeeded};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.set_defaultFailedCallback=function(A){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._failed=A};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.get_defaultFailedCallback=function(){return MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance._failed};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.set_path("/Modules/MusicV2/Services/PopUpPlayer.asmx");MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.GetMultipleArtistsUpdate=function(B,C,A,D){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance.GetMultipleArtistsUpdate(B,C,A,D)};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.GetArtistUpdate=function(B,C,A,D){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance.GetArtistUpdate(B,C,A,D)};MySpace.Web.Modules.MusicV2.Services.PopUpPlayer.GetMultipleArtistsUpdateFromArtistUpdatesApi=function(B,C,A,D){MySpace.Web.Modules.MusicV2.Services.PopUpPlayer._staticInstance.GetMultipleArtistsUpdateFromArtistUpdatesApi(B,C,A,D)};MySpaceMusic.WebSvrManager={ArtistUpdateSuccess:function(A,B){if(A!=null){var C=document.getElementById("feedResult");if(C!=null){C.innerHTML=A}}},OnFailure:function(A){}};