/**
 * Trigger a popup window to display info of the current song
 */
function songinfo(songID,title,artist,album,picture,mmss)
{
	var path = "http://www.atlantisradio.net/wp-request/";
	var songwin = window.open(path+'songinfo.php?songID='+songID+'&title='+title+'&artist='+artist+'&album='+album+'&picture='+picture+'&mmss='+mmss, 'songinfowin', 'location=no,status=no,menubar=no,scrollbars=yes,height=400,width=650');
	songwin.focus();
}


 
/**
 * Trigger a popup window to open a Audiorealm player for the current station
 */
function player(stationID)
{
	var playerwin = window.open("http://player.spacialnet.com/players/player.html?stationID="+stationID, "playerWindow", "location=no,status=no,menubar=no,scrollbars=no,resizeable=no");
	playerwin.focus();
}

/**
 * Handle requests on this same webserver
 */
function requestPrivate(songID)
{
	reqwin = window.open("request.html?songID="+songID, "_AR_request", "location=no,status=no,menubar=no,scrollbars=yes,resizeable=yes,height=420,width=668");
	reqwin.focus();
}

/**
 * Use the AudioRealm.com request handler
 */
function atlantisreq(songID)
{
	var path = "http://atlantisradio.net/";
	reqwin = window.open(path+"request.php?songID="+songID, "_AR_request", "location=no,status=no,menubar=no,scrollbars=yes,resizeable=yes,height=500,width=550");
	reqwin.focus();
}

/**
 * Hide pictures if show = false
 */
function showPicture(obj, show)
{
	if(show)
	{
		$(obj).show();
	}
	else
	{
		$(obj).hide();
	}
}
