// JavaScript Document
function drawFlash(mediaSrc,width,height,flashParams)
{
  var str = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0" width="'+width+'" height="'+height+'" align="middle">'
			+'<param name="movie" value="'+mediaSrc+'" />'
			+'<param name="FlashVars" value="'+flashParams+'" />'
			+'<param name="quality" value="high" />'
			+'<param name="wmode" value="transparent" />'
			+'<embed src="'+mediaSrc+'" FlashVars="'+flashParams+'" quality="high" wmode="transparent" width="'+width+'" height="'+height+'" align="middle" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />'
		+'</object>';
		document.write(str);
}

function drawShockwave(mediaSrc,width,height)
{
var str='<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" 		 codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0" ID=1 width='+width+' height='+height+'>'
		+'<param name=src value="'+mediaSrc+'">'
		+'<param name=swRemote value="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\' ">'
		+'<param name=swStretchStyle value=none>'
		+'<PARAM NAME=bgColor VALUE=#0000FF>' 
		+'<embed src="'+mediaSrc+'" bgColor=#0000FF  width='+width+' height='+height+' swRemote="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\' " swStretchStyle=none type="application/x-director" pluginspage="http://www.macromedia.com/shockwave/download/"></embed>'
		+'</object>';
		document.write(str);
}
