var v = null;
function playStreaming(url){
	document.getElementById('mediaplayer').src = "video_player.php?url=" + url + '&w=320';
	v = url;
}

function LargeVideo(vidWidth) {
	// width assumes a 4:3 aspect ratio
	if (v != null) {
		document.getElementById('mediaplayer').src = "video_player.php?w=320";
		//alert('scrollbars=0,location=0,toolbar=0,width='+vidWidth+',height='+(vidWidth * .75));
		window.open('video-popup.php?url=' + v + '&w=' + vidWidth, 'vidWindow', 'resizable=0,scrollbars=0,location=0,toolbar=0,width='+vidWidth+',height='+(vidWidth * .75 + 45));
	} else {
		alert ('Please select a video, then click this link to view the video in a larger window.');
	}
}

function onVideoClose() {
	//playStreaming(v);
}