try
{
	var x = window.parent.frames[0].document;
}
catch(e)
{
	try
	{
		window.parent.frames[0].document.location.href="header.aspx";
	}
	catch(e)
	{
	}
}

function PreviewSong(artistName, songTitle, songURL, imageURL)
{	
	if(InWmp())
	{
		var player7x;
		player7x = new ActiveXObject("WMPlayer.OCX.7");
		try
		{
			player7x.openPlayer (songURL);
		}
		catch(err)
		{
			document.getElementById("player7").URL = songURL;	
			document.getElementById("player7").controls.play();
		}
	}
	else
	{
		parent.frames[0].PreviewSong(artistName, songTitle, songURL, imageURL);
	}
}
function InWmp()
{
    try
    {
        if(window.external != null)
            return (typeof(window.external.NavigateTaskPaneURL) != 'undefined');
    }
    catch(e)
    {
    }
    return false;
}	


