var toolTips=new Array();function createToolTip(E,C){if(toolTips!=null){var D=false;for(var B=0;B<toolTips.length;B++){if(toolTips[B]==E){D=true;break}}if(!D){var A=$create(MySpace.UI.Tooltip,{content:C},null,null,$get(E));A.set_showDelay(0);A.set_hideDelay(0);toolTips.push(E)}}}function showGrayImage(C,B){var A=$get(C);if(A!=null){A.src=B}}function blinkElement(B,D,E,H){try{H=H*2+1;var A=B;var F=A.style.color;var C=setInterval(function(){A.style.color=A.style.color==F?D:F},E);setTimeout("clearInterval("+C+");",E*H)}catch(G){}}function FriendSubmit(D){var E=$get("qry_123");var B=$get("f_first_name");var C="false";if(B!=null){if(oldSearchBox.get_value()!=""){C="true"}else{blinkElement(B,"red","400","3")}}else{if(newSearchBox.get_value()!=""){C="true"}else{blinkElement(E,"red","400","3")}}if(C=="true"){var A=$get(D);A.submit()}}function Menuage(){if(navigator.appVersion.indexOf("MSIE")==-1){return}var C,B,D,I,A=/\s*hvr/,H="",F,E="hvr",G="globalMenu";for(C=0;C<10;C++){D=document.getElementById(G+H);if(D){I=D.getElementsByTagName("LI");if(I){for(B=0;B<I.length;B++){I[B].onmouseover=function(){F=this.className;cl=(F)?F+" "+E:E;this.className=cl;this.style.zIndex=10000};I[B].onmouseout=function(){F=this.className;this.className=(F)?F.replace(A,""):""}}}}H=C+1}}Type.registerNamespace("MySpace.Splash.Today");MySpace.Splash.Today.TabControl=function(A){MySpace.Splash.Today.TabControl.initializeBase(this,[A]);this.tabContentDivs=new Array();this.tabIDs=null;this.tabsString="";this.firstTab=null};MySpace.Splash.Today.TabControl.prototype={initialize:function(){try{this.tabIDs=this.tabsString.split(",");var E=this;for(var C=0;C<this.tabIDs.length;C++){var A=this.tabIDs[C];var D=$get(A);if(D){D.tabControl=this;$addHandler(D,"click",this.tab_OnClick);if(D.className=="selected"){this.tabContentDivs[A]=$get(this.firstTab)}}}}catch(B){}},dispose:function(){try{if(this.tabIDs){for(var B=0;B<this.tabIDs.length;B++){var C=$get(this.tabIDs[B]);if(C){$clearHandlers(C)}}}}catch(A){}},tab_OnClick:function(){try{var G=this.tabControl;var C=this.id;for(var E=0;E<G.tabIDs.length;E++){var B=G.tabIDs[E];var F=$get(B);var A=G.tabContentDivs[B];if(B==C){F.className="selected";if(A){A.style.display="block"}else{G._loadTab(C)}}else{F.className="";if(A){A.style.display="none"}}}}catch(D){}},_loadTab:function(C){var B=document.createElement("div");B.className="today_loading";this.tabContentDivs[C]=B;this.get_element().appendChild(B);if(!MySpace.CMS.cache[C]){MySpace.CMS.cache[C]={}}var A=MySpace.CMS.cache[C];if(A&&new Date()<A.expire){this._onGetContentComplete(A.response,C)}else{var D=C.substring(5,C.length-3);MySpace.WebRequest.invoke("/modules/splash/handlers/partialupdatehandler.ashx?contenttype="+D,true,"",Function.createDelegate(this,this._onGetContentComplete),Function.createDelegate(this,this._onGetContentFail),C,0)}},_onGetContentComplete:function(E,D){try{var C=D;var B=new Date();B.setTime(B.getTime()+120000);MySpace.CMS.cache[C]={response:E,expire:B};var A=this.tabContentDivs[C];A.className="";A.innerHTML=E}catch(F){}},_onGetContentFail:function(B){try{var A=B;this.tabContentDivs[A].className="";this.tabContentDivs[A].innerHTML=""}catch(C){}}};MySpace.Splash.Today.TabControl.registerClass("MySpace.Splash.Today.TabControl",Sys.UI.Control);function TopTenTab(F,B,D,A,G,E){this.title=F;this.name=B;this.moreText=A;this.moreLink=G;this.charts=E;this.selectedChartIndex=0;this.selected=false;for(var C=0;C<this.charts.length;C++){this.charts[C].isFirst=C===0;this.charts[C].isLast=C===this.charts.length-1;this.charts[C].parent=this}}TopTenTab.prototype.select=function(){if(this.selected){return}var A=$get(this.name+"Tab");if(A===null){return}Sys.UI.DomElement.addCssClass(A,"selected");this.selected=true;TopTen.topChartsViewMoreLink.title=this.moreText;TopTen.topChartsViewMoreLink.innerHTML=this.moreText;TopTen.topChartsViewMoreLink.href=this.moreLink;Sys.UI.DomElement.addCssClass(TopTen.topChartDiv,"top"+this.name);this.charts[this.selectedChartIndex].select()};TopTenTab.prototype.unselect=function(){var A=$get(this.name+"Tab");if(A===null){return}Sys.UI.DomElement.removeCssClass(A,"selected");this.selected=false;Sys.UI.DomElement.removeCssClass(TopTen.topChartDiv,"top"+this.name)};TopTenTab.prototype.selectChart=function(A){this.selectedChartIndex=A;this.charts[this.selectedChartIndex].select()};TopTenTab.prototype.previousChart=function(){if(this.selectedChartIndex===0){return}this.selectChart(this.selectedChartIndex-1)};TopTenTab.prototype.nextChart=function(){if(this.selectedChartIndex===this.charts.length-1){return}this.selectChart(this.selectedChartIndex+1)};function TopTenChart(C,B,A){this.title=C;this.page=B;this.items=null;this.culture=A;this.isFirst=false;this.isLast=false}TopTenChart.prototype.select=function(){TopTen.currentChart=this;TopTen.topChartTitle.innerHTML=this.title;if(this.isFirst){Sys.UI.DomElement.addCssClass(TopTen.topChartPrevious,"disabled")}else{Sys.UI.DomElement.removeCssClass(TopTen.topChartPrevious,"disabled")}if(this.isLast){Sys.UI.DomElement.addCssClass(TopTen.topChartNext,"disabled")}else{Sys.UI.DomElement.removeCssClass(TopTen.topChartNext,"disabled")}TopTen.showLoading();if(this.items===null){this.getItems()}else{TopTen.topTenList.innerHTML=this.getHTML();TopTen.showChart()}};TopTenChart.prototype.getItems=function(){try{var B=(this.culture==null||this.culture=="")?userCulture:this.culture;MySpace.Web.Modules.Splash.Services.TopTenService.GetTopTen(this.parent.name,this.page,B,this.getItems_onComplete,this.getItems_onFail,this)}catch(A){TopTen.showError()}};TopTenChart.prototype.getItems_onComplete=function(B,A){try{var C=A;C.items=B;if(TopTen.currentChart==C){TopTen.topTenList.innerHTML=C.getHTML();TopTen.showChart()}}catch(D){TopTen.showError()}};TopTenChart.prototype.getItems_onFail=function(){TopTen.showError()};TopTenChart.prototype.getHTML=function(){var B="";for(var A=0;A<this.items.length;A++){var C=this.items[A];B+='<li><span class="listNumbers">'+C.Rank+'</span>             <div class="artistImage">             <img src="'+C.ImageUrl+'" alt="'+C.Name+'" /></div>             <div class="artistRank"><h4><a href="'+C.LinkUrl+'" title="'+C.Name+'">'+C.Name+'</a></h4>             <div class="genre" style="width: '+C.Width+'%;">'+C.Description+"</div></div></li>"}return B};if(typeof TopTen!="object"){TopTen=new Object()}TopTen.init=function(){this.selectedTab=null;this.currentChart=null;this.topChartsViewMoreLink=$get("topChartsViewMoreLink");this.topChartDiv=$get("topChart");this.topChartTitle=$get("topChartTitle");this.topChartPrevious=$get("topChartPrevious");this.topChartNext=$get("topChartNext");this.topTenList=$get("topTenList");this.topChartLoading=$get("topChartLoading");this.topChartError=$get("topChartError")};TopTen.selectTab=function(C){try{if(this.selectedTab===null){this.selectedTab=this.tabs[0]}for(var A=0;A<this.tabs.length;A++){if(this.tabs[A].name==C){this.tabs[A].select();this.selectedTab=this.tabs[A]}else{this.tabs[A].unselect()}}}catch(B){TopTen.showError()}};TopTen.previousChart=function(){try{if(this.selectedTab===null){this.selectedTab=this.tabs[0]}this.selectedTab.previousChart()}catch(A){TopTen.showError()}};TopTen.nextChart=function(){try{if(this.selectedTab===null){this.selectedTab=this.tabs[0]}this.selectedTab.nextChart()}catch(A){TopTen.showError()}};TopTen.showLoading=function(){try{if(TopTen.topTenList.clientHeight>0){TopTen.topChartLoading.style.height=TopTen.topTenList.clientHeight+"px"}TopTen.topChartError.style.display="none";TopTen.topTenList.style.display="none";TopTen.topChartLoading.style.display="block"}catch(A){TopTen.showError()}};TopTen.showError=function(){try{TopTen.topChartError.style.display="block";TopTen.topTenList.style.display="none";TopTen.topChartLoading.style.display="none"}catch(A){}};TopTen.showChart=function(){try{TopTen.topChartError.style.display="none";TopTen.topTenList.style.display="block";TopTen.topChartLoading.style.display="none"}catch(A){TopTen.showError()}};Type.registerNamespace("MySpace.Web.Modules.Splash.Services");MySpace.Web.Modules.Splash.Services.TopTenService=function(){MySpace.Web.Modules.Splash.Services.TopTenService.initializeBase(this);this._timeout=0;this._userContext=null;this._succeeded=null;this._failed=null};MySpace.Web.Modules.Splash.Services.TopTenService.prototype={GetTopTen:function(C,D,A,E,B,F){return this._invoke(MySpace.Web.Modules.Splash.Services.TopTenService.get_path(),"GetTopTen",false,{module:C,chart:D,culture:A},E,B,F)}};MySpace.Web.Modules.Splash.Services.TopTenService.registerClass("MySpace.Web.Modules.Splash.Services.TopTenService",Sys.Net.WebServiceProxy);MySpace.Web.Modules.Splash.Services.TopTenService._staticInstance=new MySpace.Web.Modules.Splash.Services.TopTenService();MySpace.Web.Modules.Splash.Services.TopTenService.set_path=function(A){MySpace.Web.Modules.Splash.Services.TopTenService._staticInstance._path=A};MySpace.Web.Modules.Splash.Services.TopTenService.get_path=function(){return MySpace.Web.Modules.Splash.Services.TopTenService._staticInstance._path};MySpace.Web.Modules.Splash.Services.TopTenService.set_timeout=function(A){MySpace.Web.Modules.Splash.Services.TopTenService._staticInstance._timeout=A};MySpace.Web.Modules.Splash.Services.TopTenService.get_timeout=function(){return MySpace.Web.Modules.Splash.Services.TopTenService._staticInstance._timeout};MySpace.Web.Modules.Splash.Services.TopTenService.set_defaultUserContext=function(A){MySpace.Web.Modules.Splash.Services.TopTenService._staticInstance._userContext=A};MySpace.Web.Modules.Splash.Services.TopTenService.get_defaultUserContext=function(){return MySpace.Web.Modules.Splash.Services.TopTenService._staticInstance._userContext};MySpace.Web.Modules.Splash.Services.TopTenService.set_defaultSucceededCallback=function(A){MySpace.Web.Modules.Splash.Services.TopTenService._staticInstance._succeeded=A};MySpace.Web.Modules.Splash.Services.TopTenService.get_defaultSucceededCallback=function(){return MySpace.Web.Modules.Splash.Services.TopTenService._staticInstance._succeeded};MySpace.Web.Modules.Splash.Services.TopTenService.set_defaultFailedCallback=function(A){MySpace.Web.Modules.Splash.Services.TopTenService._staticInstance._failed=A};MySpace.Web.Modules.Splash.Services.TopTenService.get_defaultFailedCallback=function(){return MySpace.Web.Modules.Splash.Services.TopTenService._staticInstance._failed};MySpace.Web.Modules.Splash.Services.TopTenService.set_path("/Modules/Splash/Services/TopTenService.asmx");MySpace.Web.Modules.Splash.Services.TopTenService.GetTopTen=function(C,D,A,E,B,F){MySpace.Web.Modules.Splash.Services.TopTenService._staticInstance.GetTopTen(C,D,A,E,B,F)};var gtc=Sys.Net.WebServiceProxy._generateTypedConstructor;if(typeof(MySpace.Web.Modules.Splash.Services.TopItem)==="undefined"){MySpace.Web.Modules.Splash.Services.TopItem=gtc("MySpace.Web.Modules.Splash.Services.TopItem");MySpace.Web.Modules.Splash.Services.TopItem.registerClass("MySpace.Web.Modules.Splash.Services.TopItem")}function doSubmit(){document.cookie="SplashDisplayName=1; expires=Fri, 31 Dec 1999 23:59:59 GMT;";if(oneClick==1){oneClick=0;if(loginText==null){loginText=document.getElementById("LoginText")}loginText.innerText=preLoadLogin;setTimeout("oneClick=1;",8000);document.aspnetForm.submit()}}function clearCookieAndHideGreeting(){document.cookie="SplashDisplayName=1; expires=Fri, 31 Dec 1999 23:59:59 GMT;";if(email!=null){email.value=""}if(greetingDiv!=null){greetingDiv.style.display="none"}return false}function validate_form(){if(validate_element(email)==false){return false}if(validate_element(password)==false){return false}if(validate_element(verification)==false){return false}return true}function validate_element(A){if(A!=null&&validate_required(A.value)==false){A.focus();return false}return true}function validate_required(A){return(A==null||A==""?false:true)}function onWindowSubmit(){var A=(typeof(validate_form)=="function"?validate_form():true);if(A==false){if(loginText==null){loginText=document.getElementById("LoginText")}loginText.innerText=postLoadLogin;setTimeout("oneClick=1;",8000)}return A}function Email_Textbox_onKeyUp(B){var A;if(window.event){A=window.event.keyCode}else{if(B){A=B.keyCode}}if(A==13){password.focus()}}function Password_Textbox_onKeyUp(B){var A;if(window.event){A=window.event.keyCode}else{if(B){A=B.keyCode}}if(A==13){if(onWindowSubmit()==true){doSubmit()}}}function RefreshCI(){clearTimeout(timerID);var A=document.getElementById(tbID);A.value="";var B=document.getElementById(imageID);B.src=url+"&r="+ ++i;timerID=self.setTimeout("RefreshCI()",secs*1000)}function StartCITimer(){timerID=self.setTimeout("RefreshCI()",secs*1000)}Type.registerNamespace("MySpace.Splash.StayLoggedIn");MySpace.Splash.StayLoggedIn.TabControl=function(A){MySpace.Splash.StayLoggedIn.TabControl.initializeBase(this,[A]);this.friendUpdates=null;this.friendStatus=null;this.friendUpdatesContent=null;this.friendStatusContent=null};MySpace.Splash.StayLoggedIn.TabControl.prototype={initialize:function(){try{var B=this;this.friendUpdates=$get("friendUpdates");this.friendStatus=$get("friendStatus");$addHandler(this.friendUpdates,"click",Function.createDelegate(this,this._showFriendUpdates));$addHandler(this.friendStatus,"click",Function.createDelegate(this,this._showFriendStatus));this._showFriendUpdates()}catch(A){}},dispose:function(){try{var C=$get("friendUpdates");var A=$get("friendStatus");if(this.friendUpdates){$clearHandlers(this.friendUpdates)}if(this.friendStatus){$clearHandlers(this.friendStatus)}}catch(B){}},_showFriendUpdates:function(){try{Sys.UI.DomElement.addCssClass(this.friendUpdates,"current");Sys.UI.DomElement.removeCssClass(this.friendStatus,"current");if(this.friendStatusContent){this.friendStatusContent.style.display="none"}if(this.friendUpdatesContent){this.friendUpdatesContent.style.display="block"}else{this.friendUpdatesContent=document.createElement("div");Sys.UI.DomElement.addCssClass(this.friendUpdatesContent,"friendUpdates");Sys.UI.DomElement.addCssClass(this.friendUpdatesContent,"today_loading");$get("stayloggedinModuleContent").appendChild(this.friendUpdatesContent);MySpace.WebRequest.invoke("/Modules/HomeDisplay/Services/ActivitiesService.asmx/GetActivitiesForHomeHtmlCached?mins=5&userid="+MySpace.ClientContext.UserId+"&culture=1",true,"",Function.createDelegate(this,this._onGetContentComplete),Function.createDelegate(this,this._onGetContentFail),this.friendUpdatesContent,0)}}catch(A){}},_showFriendStatus:function(){try{Sys.UI.DomElement.addCssClass(this.friendStatus,"current");Sys.UI.DomElement.removeCssClass(this.friendUpdates,"current");if(this.friendUpdatesContent){this.friendUpdatesContent.style.display="none"}if(this.friendStatusContent){this.friendStatusContent.style.display="block"}else{this.friendStatusContent=document.createElement("div");Sys.UI.DomElement.addCssClass(this.friendStatusContent,"friendStatus");Sys.UI.DomElement.addCssClass(this.friendStatusContent,"today_loading");$get("stayloggedinModuleContent").appendChild(this.friendStatusContent);MySpace.WebRequest.invoke("/Modules/HomeDisplay/Services/UserStatusService.asmx/GetHTMLForUserStatusExtended?rounded=true",true,"",Function.createDelegate(this,this._onGetContentComplete),Function.createDelegate(this,this._onGetContentFail),this.friendStatusContent,0)}}catch(A){}},_onGetContentComplete:function(B,A){try{var D=A;Sys.UI.DomElement.removeCssClass(D,"today_loading");if(Sys.Browser.agent==Sys.Browser.InternetExplorer){D.innerHTML=B.documentElement.text}else{D.innerHTML=B.documentElement.textContent}}catch(C){}},_onGetContentFail:function(A){try{var C=A;Sys.UI.DomElement.removeCssClass(C,"today_loading");C.innerHTML="error"}catch(B){}}};MySpace.Splash.StayLoggedIn.TabControl.registerClass("MySpace.Splash.StayLoggedIn.TabControl",Sys.UI.Control);if(typeof(Sys)!=="undefined"){Sys.Application.notifyScriptLoaded()};