/*
 * Name:
 *	play_window.js
 *
 * Description:
 *	Defines functions for the Play Window
 *     width default 350
 *     height default 215
 *
 * Pre-conditions:
 *	None
 *
 * Post-conditions:
 *	Defines the following functions:
 *
 * Log:
 *	Shaunak Kashyap		11/21/2005
 *	- Creation
 *
 */

/*
 * Name:
 *	openPlayer
 *
 * Description:
 *	Opens the play window
 *
 * Pre-conditions:
 *	audioType	REQUIRED	Type of audio
 *	audioId		REQUIRED	Id of audio
 *	width		OPTIONAL	width of play window
 *	height		OPTIONAL	height of play
 *
 * Post-conditions:
 *	The player is opened
 *
 * Log:
 *	Shaunak Kashyap		11/21/2005
 *	- Creation
 *  Kripa Shenai        01/09/2007
 *  - Cached Queries
 */

function openPlayer(audioType, audioId) {
	width = 350;
	height = 215;
	var playWindowUrl  = "http://www.kyw1060.com/play_window.php";
		playWindowUrl += "?audioType=" + audioType;
		playWindowUrl += "&audioId=" + audioId;

	window.open(playWindowUrl, "playWindow", "width="+ width + ",height="+ height+ ",resizable=no,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no");

} // END function - openPlayer



/*
 * Name:
 *	openPlayer
 *
 * Description:
 *	Opens the podcast subscrible window
 *
 * Pre-conditions:
 *	contentType	REQUIRED	Content Type
 *	contentId	REQUIRED	Id of Content
 *
 * Post-conditions:
 *	The podcast subscrible is opened
 *
 * Log:
 *	Li Zheng	11/29/2006
 *	- Creation
 *  - Cached Queries
 */

function openSubscribeWindow(contentType,contentId) {
	width = 500;
	height = 500;
	var subscribleWindowUrl  = "http://www.kyw1060.com/podcast_chooser.php";
		subscribleWindowUrl += "?contentType=" + contentType;
		subscribleWindowUrl += "&contentId=" + contentId;

	window.open(subscribleWindowUrl, "subscribleWindowUrl", "width="+ width + ",height="+ height+ ",resizable=yes,scrollbars=yes,toolbar=no,location=yes,directories=no,status=no,menubar=no");
} // END function - openPlayer