<!--

function initSite() { newPage('artists.html'); }
Event.observe( window, 'load', initSite, false );

function newPage(html){
	new Ajax.Request('pages/'+html, {
		method: 'get',
		onSuccess: function(response) {
			$('content').innerHTML = response.responseText;
		}
	});
}

// music player swapping
function playArtistMS( plid, artistid, profileid )
{
	if( plid != 0 )
	{
		var playerHtml = '';
		playerHtml += '<div id="msplayer" style="width: 450px; height: 345px;">';
		playerHtml += '<object style="overflow: hidden; visibility: visible; display: inherit;">';
		playerHtml += '<embed type="application/x-shockwave-flash" src="http://musicservices.myspace.com/Modules/MusicServices/Services/Embed.ashx/ptype=4,ap=1,plid='+plid+',artid='+artistid+',skinid=16,profid='+profileid+'" style="" id="shell" name="shell" bgcolor="#101010" quality="high" allowscriptaccess="always" wmode="transparent" flashvars="e=http%3A//profile.myspace.com/index.cfm%3Ffuseaction%3Duser.viewprofile%26friendid%3D3103383" height="345" width="450"></object></div>';
		$('musicPlayer').innerHTML = playerHtml;
	}
	else
	{
		$('musicPlayer').innerHTML = 'no music player available for this artist.';
	}
}

function playArtistVb( artistid )
{
	var playerHtml = '';
	playerHtml += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="virbPlayer" align="top" height="480" width="520"><param name="movie" value="http://www.virb.com/_swf/virbPlayer.swf?skin=white&amp;pageId='+artistid+'"> <param name="quality" value="high"> <param name="bgcolor" value="#ffffff"> <param name="scale" value="noscale"> <param name="salign" value="tl"> <param name="wmode" value="transparent"> <embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="http://www.virb.com/_swf/virbPlayer.swf?skin=white&amp;pageId='+artistid+'" scale="noscale" name="virbPlayer" quality="high" salign="tl" wmode="transparent" allowscriptaccess="sameDomain" align="top" height="480" width="520"></object>';
	$('musicPlayer').innerHTML = playerHtml;
}


//-->