//Shockwave OBJECT/EMBED

function put_shockwave(swID, swWidth, swHeight, swFile, sw1, sw9)
{
        var str = '<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000"';
	str += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0"';
	str += ' id='+swID+' width='+swWidth+' height='+swHeight+'>\n';
	str += '<param name=src value="'+swFile+'">\n';
	str += '<param name=logo value=true>\n';
              str += '<param name=progress value=true>\n';
	str += '<param name=swStretchStyle value=fill>\n';
        str += '<param name=bgColor VALUE=#000000>\n';
	str += '<param name=sw1 value="'+sw1+'">\n';
	str += '<param name=sw9 value="'+sw9+'">\n';
	str += '<param name=swRemote value="';
	str += "swSaveEnabled='false' swVolume='false' swRestart='false' swPausePlay='false' swFastForward='false' swContextMenu='false' ";
	str += '">\n';
	str += '<embed src="'+swFile+'"';
	str += ' bgColor=#000000 logo=true progress=true width='+swWidth+' height='+swHeight+' swStretchStyle=fill ';
	str += ' sw1="'+sw1+'"  ';
	str += ' sw9="'+sw9+'"  ';
	str += ' swRemote="';
	str += "swSaveEnabled='false' swVolume='false' swRestart='false' swPausePlay='false' swFastForward='false' swContextMenu='false' ";
	str += '"';
	str += ' type="application/x-director" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveDirector">\n';
	str += '</embed></object>';
	document.write(str);
}
//flash object/embed
function put_flash(swfID, swfWidth, swfHeight, swfFile, swf1, swf9)
{
	var str = ' <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
	str += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" ';
	str += 'id='+swfID+' width='+swfWidth+' height='+swfHeight+'>\n';
    str += ' <param name="movie" value="games/'+swfFile+'">\n';
    str += ' <param name="quality" value="high">\n';
    str += ' <embed src="games/'+swfFile+'" quality="high" ';
	str += 'pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" ';
	str += 'id='+swfID+' width='+swfWidth+' height='+swfHeight+'>\n';
	str += '</embed> </object>';
	document.write(str);
}