﻿function writeQuick(DivID, FileUrl, H, W) {
  var d = document.getElementById(DivID);
	d.innerHTML = "<object CLASSID=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" width=\"" + W + 
     "\" height=\"" + H + "\" CODEBASE=\"http://www.apple.com/qtactivex/qtplugin.cab\">\r\n" +
	 "<param name=\"src\" value=\"" + FileUrl + "\">\r\n" +
	 "<param name=\"qtsrc\" value=\"" + FileUrl + "\">\r\n" +
	 "<param name=\"autoplay\" value=\"true\">\r\n" +
	 "<param name=\"loop\" value=\"false\">\r\n" +
	 "<param name=\"volume\" value=\"100\">\r\n" +
	 "<param name=\"controller\" value=\"true\">\r\n" +
	 "<embed src=\"" + FileUrl + "\" qtsrc=\"" + FileUrl + "\" width=\"" + W + 
	 "\" height=\"" + H + "\" autoplay=\"true\" loop=\"false\" volume=\"100\" controller=\"true\"" +
	 "pluginspage=\"http://www.apple.com/quicktime/\"></embed>\r\n" +
	 "</object>";
}

function writeReal(DivID, FileUrl, H, W) {
  var d = document.getElementById(DivID);
	d.innerHTML = "<object classid=\"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" width=\"" + W +"\" " +
        "height=\"" + H + "\" id=\"RVOCX\">\r\n" +
        "<param name=\"src\" value=\"" + FileUrl + "\">\r\n" +
		"<param name=\"autostart\" value=\"true\">\r\n" +
		"<param name=\"controls\" value=\"imagewindow\">\r\n" +
		"<param name=\"console\" value=\"video\">\r\n" +
		"<embed src=\"" + FileUrl + "\" width=\"" + W + "\" height=\"" + H + "\"\r\n" +
        "type=\"audio/x-pn-realaudio-plugin\" autostart=\"true\" controls=\"imagewindow\" console=\"video\">\r\n" +
        "</embed>\r\n" +
		"</object>\r\n" +
		"<br />\r\n" +
		"<object classid=\"clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\" width=\"" + W + 
		"\" height=\"100\" id=\"RVOCX\">\r\n" +
		"<param name=\"" + FileUrl + "\" value=\"URL\">\r\n" +
		"<param name=\"autostart\" value=\"true\">\r\n" +
		"<param name=\"controls\" value=\"all\">\r\n" + 
		"<param name=\"console\" value=\"video\">\r\n" +
		"<embed type=\"audio/x-pn-realaudio-plugin\" src=\"" + FileUrl + "\" width=\"" + W + "\"" +
		"height=\"100\" autostart=\"true\" controls=\"all\" console=\"video\">\r\n" +
		"</embed>\r\n" +
		"</object>";
}

function writeWMP(DivID, FileUrl, H, W) {
  var d = document.getElementById(DivID);
	d.innerHTML = "<object classid=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" width=\"" + W + "\"" +
        "height=\"" + (H+44) + "\" id=\"MediaPlayer\" type=\"application/x-oleobject\">\r\n" +
		"<param name=\"FileName\" value=\"" + FileUrl + "\">\r\n" +
		"<param name=\"autostart\" value=\"1\">\r\n" +
		"<param name=\"showcontrols\" value=\"1\">\n\r" +
	  "<param name=\"Volume\" value=\"100\">\r\n" +
		"<embed src=\"" + FileUrl + "\" width=\"" + W + "\" Volume=\"100\" height=\"" + (H+44) + 
		"\" type=\"application/x-mplayer2\" autostart=\"1\" showcontrols=\"1\">\r\n" +
		"</embed></object>";
}

function writeMPEG(DivID, FileUrl, H, W)  {
  var d = document.getElementById(DivID);
	d.innerHTML = "<object classid=\"CLSID:05589FA1-C356-11CE-BF01-00AA0055595A\" width=\"" + W + "\"" +
        "height=\"" + H + "\" id=\"MediaPlayer\" type=\"video/mpeg\">\r\n" +
		"<param name=\"FileName\" value=\"" + FileUrl + "\">\r\n" +
		"<param name=\"autostart\" value=\"1\">" +
		"<param name=\"showcontrols\" value=\"1\">\n\r" +
		"<embed src=\"" + FileUrl + "\" width=\"" + W + "\" height=\"" + H + 
		"\" type=\"video/mpeg\" autostart=\"1\" showcontrols=\"1\">\r\n" +
		"</embed></object>";
}
