// JavaScript Document


function loadVideo(video, w, h, layer){
	
	var shtml = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"";
	shtml += " codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\"";
	shtml += "  width=\"" + w + "\" height=\"" + h + "\" >";
	shtml += " <param name=\"movie\" value=\"" + video + "\" id=\"ES\">";
	//shtml += " <param name=FlashVars value=\"P="+subPage+"\">";
	shtml += " <param name=\"quality\" value=\"high\">";
	//shtml += " <param name=\"wmode\" value=\"transparent\">";
	shtml += " <embed src=\"" + video + "\" quality=high  width=\"" + w + "\" height=\"" + h + "\" name=\"ES\" ";
	shtml += "  type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed>";
	shtml += "     </object>";

	if (document.getElementById(layer))
	   document.getElementById(layer).innerHTML = shtml;
}