<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie
function vote_DoFSCommand(command, args) {
  var voteObj = InternetExplorer ? vote : document.vote;
	
	if (command == "login")
	{
		performLogin();		
	}

}

function artistRating_DoFSCommand(command, args) {
  var artistRatingObj = InternetExplorer ? artistRating : document.artistRating;
	
	if (command == "login")
	{
		performLogin();		
	}

}

function albumRating_DoFSCommand(command, args) {
  var albumRatingObj = InternetExplorer ? albumRating : document.albumRating;
	
	if (command == "login")
	{
		performLogin();		
	}

}

function trackRating_DoFSCommand(command, args) {
  var trackRatingObj = InternetExplorer ? trackRating : document.trackRating;
	if (command == "login")
	{
		performLogin();		
	}

}

function audioComponent_DoFSCommand(command, args) {
  var audioComponentObj = InternetExplorer ? audioComponent : document.audioComponent;
	if (command == "login")
	{
		performLogin();		
	}
	else if (command == 'openPlayer')
	{
		openMediaPlayer(args);
	}

}

function audioComponent2_DoFSCommand(command, args) {
  var audioComponent2Obj = InternetExplorer ? audioComponent2 : document.audioComponent2;
	
	if (command == "login")
	{
		performLogin();		
	}
	else if (command == 'openPlayer')
	{
		openMediaPlayer(args);
	}

}

function homepage_DoFSCommand(command, args) {
  var homepageObj = InternetExplorer ? homepage : document.homepage;
	
	if (command == 'login')
	{
		performLogin();		
	}

}


// Hook for Internet Explorer 
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && 
	  navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');

	document.write('Sub vote_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call vote_DoFSCommand(command, args)\n');
	document.write('end sub\n');

	document.write('Sub artistRating_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call artistRating_DoFSCommand(command, args)\n');
	document.write('end sub\n');

	document.write('Sub albumRating_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call albumRating_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	
	document.write('Sub trackRating_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call trackRating_DoFSCommand(command, args)\n');
	document.write('end sub\n');	

	document.write('Sub audioComponent_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call audioComponent_DoFSCommand(command, args)\n');
	document.write('end sub\n');	

	document.write('Sub audioComponent2_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call audioComponent2_DoFSCommand(command, args)\n');
	document.write('end sub\n');
	
	document.write('Sub homepage_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call homepage_DoFSCommand(command, args)\n');
	document.write('end sub\n');

	document.write('</SCRIPT\> \n');
}


function performLogin()
{
	popup('/login/login.do','popup',615,535,0,0);
}

function openMediaPlayer(mediaId)
{
	var path = '/mediaplayer/home.do?mediaId=' + mediaId;
	popup(path,'popup',646,520,0,0);
}
//-->