/*

 * FlashObject embed

 *

 * by Geoff Stearns (geoff@choppingblock.com, http://www.choppingblock.com/)

 *

 * v1.0.7 - 11-17-2004

 *

 * Create and write a flash movie to the page, includes detection

 *

 * Usage:

 *

 *	myFlash = new FlashObject("path/to/swf.swf", "swfid", "width", "height", flashversion, "backgroundcolor");

 *	myFlash.altTxt = "Upgrade your Flash Player!";                // optional

 *	myFlash.addParam("wmode", "transparent");                     // optional

 *	myFlash.addVariable("varname1", "varvalue");                  // optional

 *	myFlash.addVariable("varname2", getQueryParamValue("myvar")); // optional

 *	myFlash.write();

 *

 */



FlashObject = function(swf, id, w, h, ver, c) {

	this.swf = swf;

	this.id = id;

	this.width = w;

	this.height = h;

	this.version = ver || 6; // default to 6

	this.align = "middle"; // default to middle

	this.redirect = "";

	this.sq = document.location.search.split("?")[1] || "";

	this.altTxt = "Please <a href='http://www.macromedia.com/go/getflashplayer'>upgrade your Flash Player</a>.";

	this.bypassTxt = "<p>Already have Flash Player? <a href='?detectflash=false&"+ this.sq +"'>Click here if you have Flash Player "+ this.version +" installed</a>.</p>";

	this.params = new Object();

	this.variables = new Object();

	if (c) this.color = this.addParam('bgcolor', c);

	this.addParam('quality', 'h