<!--
var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the the FSCommand messages in a Flash movie

function gameRating_DoFSCommand(command, args) {
  var gameRatingObj = InternetExplorer ? gameRating : document.gameRating;
	
	if (command == 'login')
	{
		popup('/profile/loginPopUp.do','Login',480,334,'no','no');	
	}
	if (command == 'help')
	{
		displayGameRaterPopup('/games/raterInfo.do');
	}

}


function homepage_DoFSCommand(command, args) {
  var homepageObj = InternetExplorer ? homepage : document.homepage;
	
	if (command == 'login')
	{
		popup('/profile/loginPopUp.do','Login',480,334,'no','no');		
	}
	if (command == 'profile')
	{
		document.location.href='/profile.do';		
	}
}


// 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 gameRating_FSCommand(ByVal command, ByVal args)\n');
	document.write('  call gameRating_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);
}
//-->