function writeFlash (flashID, flashMovie, width, height) {

	var t ="";
	t += '<object ';
	t += '	id="' + flashID + '"';
	t += '	classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	t += '	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" ';
	t += '	width="' + width + '" ';
	t += '	height="' + height + '">';
	t += '		<param name="movie" value="' + flashMovie + '">';
	t += '		<param name="quality" value="high">';
	t += '		<embed src="' + flashMovie + '" ';
	t += '			name="' + flashID + '"';
	t += '			quality="high" ';
	t += '			pluginspage="http://www.macromedia.com/go/getflashplayer" ';
	t += '			type="application/x-shockwave-flash" ';
	t += '			width="' + width + '" ';
	t += '			height="' + height + '">';
	t += '		</embed>';
	t += '</object>';
	
	document.write (t);
}



function writeDirector (DirectorID, DirectorMovie, width, height) {

	var t ="";
	t += '<object ';
	t += '	id="' + DirectorID + '"';
	t += '	classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" ';
	t += '	codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0" ';
	t += '	width="' + width + '" ';
	t += '	height="' + height + '">';
	t += '		<param name="src" value="' + DirectorMovie + '">';
	t += '		<param name="quality" value="high">';
	t += '		<param name="sw1" value="' + DirectorMovie + '">';
	t += '		<param name="sw2" value="">';
	t += '		<param name="swStretchStyle" value="fill">';
	t += '		<param name="swRemote" value="swSaveEnabled=true swVolume=true swRestart=true swPausePlay=true swFastForward=true swContextMenu=true ">';
	t += '		<embed src="' + DirectorMovie + '" ';
	t += '			name="' + DirectorID + '"';
	t += '			quality="high" ';
	t += '			sw1="' + DirectorMovie + '" ';
	t += '			sw2="" ';
	t += '			swRemote="swSaveEnabled=false swVolume=true swRestart=false swPausePlay=false swFastForward=false swContextMenu=true " ';
	t += '			swStretchStyle="fill" ';
	t += '			pluginspage="http://www.macromedia.com/shockwave/download/" ';
	t += '			type="application/x-director" ';
	t += '			width="' + width + '" ';
	t += '			height="' + height + '">';
	t += '		</embed>';
	t += '</object>';
	
	document.write (t);
}

