function openFull(v_name){
	var fs = window.open( "/watch_fullscreen?video_id="+v_name, 'fullScreenVideo', "toolbar=no,width=" + screen.availWidth  + ",height=" + screen.availHeight + ",status=no,resizable=yes,fullscreen=yes,scrollbars=no");
	fs.focus();
}

function sendFlashVar (id, varname, varvalue) {
	window.document[id].SetVariable(varname, varvalue);
}

function playVideo(flashid, flv) {
	sendFlashVar(flashid, "newVideo", flv);
	sendFlashVar(flashid, "command", "changeVideo");
}

function openInOverlay(file) {
	/*
	var so = new SWFObject("../flash/video_player.swf", "flashvideo_overlay", "100%", "100%", "8");
	so.addParam("scalemode", "noscale");
	so.addParam("menu", "false");
	so.addParam("wmode", "opaque");
	so.addVariable("v_filename", file);
	so.addVariable("v_fullscreen", "0");
	so.addVariable("playing_fullscreen", "1");
	so.addVariable("v_autoplay", "1");
	so.write("video_overlay");
	document.getElementById("video_overlay").style.display = "block";
	*/
	var fs = window.open( "/watch_fullscreen?video_id="+file, 'fullScreenVideo', "toolbar=no,width=" + screen.availWidth  + ",height=" + screen.availHeight + ",status=no,resizable=yes,fullscreen=yes,scrollbars=no");
	fs.focus();
}
function destroyPlayer() {
	var fv = document.getElementById("video_overlay");
	fv.innerHTML = "&nbsp;";
	fv.style.display = "none";
}