function flash_print(url, width, height, id) {
	var id = (flash_print.arguments[3]) ? id: 'tmp'+width+'_'+height;
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' id='"+id+"' ");
	document.write("codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0' ");
	document.write("width='" + width + "' height='" + height + "'>");
	document.write("  <param name='movie' value='" + url + "'>");
	document.write("  <param name='quality' value='high'>");
	document.write("  <param name='wmode' value='transparent'>");
	document.write("  <param name='allowFullScreen' value='true'>");
	document.write("  <embed src='" + url + "' quality='high' ");
	document.write("    pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'  ");
	document.write("    type='application/x-shockwave-flash' ");
	document.write("    width='" + width + "' height='" + height + "'>");
	document.write("  </embed>");
	document.write("</object>");
}
function media_print(url, width, height, autostart) {
	var width_print = (width) ? "width='" + width + "'": "";
	var height_print = (height) ? "height='" + height + "'": "";
	if(!autostart) autostart = '0';
	document.write("<embed src='" + url + "' wmode='transparent'");
	document.write("    "+ width_print + " " + height_print + "");
	document.write("    autostart='" + autostart + "'>");
	document.write("</embed>");
}
function printMovieTag(id, url, width, height, autostart) {
	document.write("<OBJECT id='"+id+"' classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' width='"+width+"' height='"+height+"'>");
	document.write("<PARAM NAME='URL' VALUE='"+url+"'>");
	document.write("<param name='rate' value='1'>");
	document.write("<param name='balance' value='0'>");
	document.write("<param name='currentPosition' value='0'>");
	document.write("<param name='playCount' value='1'>");
	document.write("<param name='autoStart' value='"+autostart+"'>");
	document.write("<param name='currentMarker' value='0'>");
	document.write("<param name='invokeURLs' value='-1'>");
	document.write("<param name='volume' value='50'>");
	document.write("<param name='mute' value='0'>");
	document.write("<param name='uiMode' value='none'>");
	document.write("<param name='stretchToFit' value='0'>");
	document.write("<param name='windowlessVideo' value='0'>");
	document.write("<param name='enabled' value='-1'>");
	document.write("<param name='enableContextMenu' value='0'>");
	document.write("<param name='fullScreen' value='0'>");
	document.write("<param name='enableErrorDialogs' value='0'>");
	document.write("</OBJECT>");
}
