// It appears that IE for the Mac doesn't like to include scripts 
// with capital letters so this script isn't named 'popupVideo.js'

// Opens a popup window titled "title" with an embedded url (video) of width "width" and height "height"
function popupWindow(url) {
	var width = 800;																		// Width of the popup window
	var height = 500;																		// Height of the popup window
	var left = Math.round((document.body.clientWidth - width)/2);			// Placement of the left edge of the window
	var top = Math.round((screen.height - height)/4);							// Placement of the top edge of the window
	if (left == 0) left = 100;
	if (top == 0) top = 100;
	window.open(url, 'PopupWindow', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=' + width + ',height=' + height + ',left=' + left + ',top=' + top);
}