// Code by Jesse Hemingway
// This ridiculous piece of code is to get around the latest IE embedded object fiasco
// ******************************************************************************************

function writeFlashObject(movie, width, height, id, bgcolor, params)
{
	var text = '';
	text += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='" + width + "' height='" + height + "' id='" + id + "'>";
	text += "<param name='movie' value='" + movie + "' />";
	text += "<param name='quality' value='high' />";
	text += "<param name='bgcolor' value='" + bgcolor + "' />";
	if (params)
		text += "<param name='flashvars' value='" + params + "' />";
	text += "<embed src='" + movie + "' quality='high' bgcolor='" + bgcolor + "' width='" + width + "' height='" + height + "' name='" + id + "' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'";
	if (params)
		text += " flashvars='" + params + "'";
	text += " /></object>";
	document.write(text);
}



