/**
 * Trigger a popup window to display info of the current song
 */
function songinfo(songID)
{
	var songwin = window.open("songinfo.html?songID="+songID, "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
 */
//Using FesterHead's Song Requester service
function requestAudioRealm( songid, samhost, samport )
{
  var window_options = "location=no, status=no, menubar=no, scrollbars=no, resizeable=yes, height=410, width=707";
  var path = "http://request.seoul.fm/request.php?songid=" + songid + "&samport=" + samport + "&samhost=" + samhost;
  reqwin = window.open( path, "FesterHeadSongRequester", window_options );
}
/**
 * Hide pictures if show = false
 */
function showPicture(obj, show)
{
	if(show)
	{
		$(obj).show();
	}
	else
	{
		$(obj).hide();
	}
}
