// JavaScript Document
function showVideo(videoLayer)
{
	var layer = document.getElementById(videoLayer);
	layer.style.visibility = 'visible';
	
	document.getElementById(videoLayer + "_VIDEO").controls.play();
}
function hideVideo(videoLayer)
{
	var layer = document.getElementById(videoLayer);
	layer.style.visibility ='hidden';
	
	document.getElementById(videoLayer + "_VIDEO").controls.stop();
}
function loadVideo(layer, path, width, height)
{
	document.write("<OBJECT id=\"" + layer + "_VIDEO\" width=\"" + width + "\" height=\"" + height + "\" CLASSID=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\" type=\"application/x-oleobject\">");
	document.write("<PARAM NAME=\"URL\" VALUE=\"" + path + "\">");
	document.write("<PARAM NAME=\"SendPlayStateChangeEvents\" VALUE=\"True\">");
	document.write("<PARAM NAME=\"AutoStart\" VALUE=\"False\">");
	document.write("<PARAM name=\"uiMode\" value=\"full\">");
	document.write("<PARAM name=\"PlayCount\" value=\"9999\">");
	document.write("<PARAM name=\"enabled\" value=\"True\">");
	document.write("<PARAM name=\"stretchToFit\" value=\"False\">");
	document.write("</OBJECT>");
}
