function embedSWF(my_src, my_width, my_height, my_flashVars, my_marker, my_bgcolor) {
	//document.write('<p>BGCOLOR:' + my_bgcolor + ':<p>\n');
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="' + my_width + '" height="' + my_height + '" align="middle">\n');
	document.write('<param name="movie" value="' + my_src + '" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="flashVars" value="' + my_flashVars + '" />\n');
	if (my_bgcolor==undefined) {
		document.write('<embed src="' + my_src + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + my_width + '" height="' + my_height + '" flashvars="' + my_flashVars + '"></embed>\n');
	} else if (my_bgcolor=="transparent") {
		document.write('<param name="wmode" value="transparent" />\n');
		document.write('<embed src="' + my_src + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + my_width + '" height="' + my_height + '" flashvars="' + my_flashVars + '" wmode="transparent"></embed>\n');
	} else {	
		document.write('<param name="bgcolor" value="' + my_bgcolor + '" />\n');
		document.write('<embed src="' + my_src + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + my_width + '" height="' + my_height + '" bgcolor="' + my_bgcolor + '" flashvars="' + my_flashVars + '"></embed>\n');
	}
	document.write('</object>\n');
}


function embedDCR(my_src, my_width, my_height, my_id, my_marker) {	
	document.write('<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=7,0,0,0"  \n');
	document.write('	 width="'+my_width+'" height="'+my_height+'">\n');
	document.write('    <param name="src" value="'+my_src+'">\n');
	document.write('    <param name="swURL" value="'+my_id+'">\n');
	document.write('    <param name="sw1" value="'+my_id+'">\n');
	document.write('    <param name="sw2" value="'+my_height+'">\n');
	document.write('    <param name="sw3" value="'+my_width+'">\n');
	document.write('    <param name=swRemote value="swContextMenu=\'false\'">\n');
	if (my_marker=="credits") {
		document.write('    <param name="sw4" value="credits">\n');
	}
	document.write('    <param name="swStretchStyle" value="fill">\n');
	document.write('    <embed  \n');
	document.write('pluginspage= "http://www.macromedia.com/shockwave/download/" \n');
	document.write('src="'+my_src+'"  \n');
	document.write('swurl="'+my_id+'"  \n');
	document.write('sw1="'+my_id+'"  \n');
	document.write('sw2="'+my_height+'" \n');
	document.write('sw3="'+my_width+'"  \n');
	if (my_marker=="credits") {
		document.write('sw4="credits"\n');
	}
	document.write('swstretchstyle="fill"\n');
	document.write('swRemote="swContextMenu=\'false\'"\n');
	document.write('width= "'+my_width+'"  \n');
	document.write('height= "'+my_height+'" > </embed> </object>\n');
}

function embedGRV(my_src, my_width, my_height, my_id, my_marker) {
	document.write('<object classid="clsid:77e32299-629f-43c6-ab77-6a1e6d7663f6" id="OTOYControl" width="' + my_width + '" height="' + my_height + '" align="middle" border=0 codebase="http://www.OTOY.com/download/CAB/OTOYAX.cab#version=1,0,29,0">\n');
	document.write('<param name="Application" value="http://www.otoy.com/">\n');
	document.write('<param name="ApplicationTag" value="1a6b9ca4aa836243accdcd860964e200">\n');
	document.write('<param name="ApplicationVer" value="http://www.otoy.com/download/OTOY/OTOY.ini">\n');
	document.write('<param name="Manifest" value="http://www.otoy.com/download/EXT/manifest.ini">\n');
	document.write('<param name="Param1" value="http://www.ezone.com' + my_src + '">\n');
	document.write('</object>\n');
}
