/*
 * FlashObject embed
 * by Geoff Stearns (geoff@deconcept.com, http://www.deconcept.com/)
 *
 * v1.1.0 - 03-31-2005
 *
 * writes the embed code for a flash movie, includes plugin detection
 *
 * Usage:
 *
 *	myFlash = new FlashObject("path/to/swf.swf", "swfid", "width", "height", flashversion, "backgroundcolor");
 *	myFlash.write("objId");
 *
 * for best practices, see:
 *  http://blog.deconcept.com/2005/03/31/proper-flash-embedding-flashobject-best-practices/
 *
 */

function setFlash(sFlash, sObject, iWidth, iHeight)
{
	var oFlash = new FlashObject(sFlash, sFlash, iWidth, iHeight, 6);
	oFlash.addParam("menu", false);
	oFlash.addParam("loop", false);
	oFlash.addParam("wmode", "transparent");
	oFlash.write(sObject);
	return false;
}

function setHomepageFlash()
{
	setFlash("flash/banner_middle.swf", "flash", 211, 136);
}
