// JScript source code
function openPlayer(videoID) {
	var height = 695;
	var width = 880;

	var top = parseInt((screen.height - height) / 2, 10);
	var left = parseInt((screen.width - width) / 2, 10);	

	var url = "http://jetvision.zoomwvi.com/video.aspx?playerID=4"
	var windowParams = "top=" + top + ",left=" + left + ",toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=" + width + ",height=" + height;

	if (videoID != null)
		url += "&videoID=" + videoID;

	// Open the window.
	window.open(url, "ShaneTV", windowParams);
}

/*
function openPlayer(contentID, parentCategoryID, categoryID) {
	var height = 597;
	var width = 700;
	
	var top = parseInt((screen.height - height) / 2, 10);
	var left = parseInt((screen.width - width) / 2, 10);

	// Get the subdirectory name.
	var subdirectory = location.pathname;
	subdirectory = "ShaneTV";
	
	// Get the server name.
	var server = "zoomcom.ca";
	
	var path = "http://" + server + "/" + subdirectory + "/Viewer/";
	
	var mainPage = "Frames.aspx";
	var urlParams = "?";
	var windowParams = "top=" + top + ",left=" + left + ",toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=" + width + ",height=" + height;
	
	if (contentID != null) {
		urlParams += "&contentID=" + contentID;
	}

	if (parentCategoryID != null) {
		urlParams += "&parentCategoryID=" + parentCategoryID;
	}

	if (categoryID != null) {
		urlParams += "&categoryID=" + categoryID;
	}

	// Open the window.
	window.open(path + mainPage + urlParams, subdirectory, windowParams);
}
*/