//workaround for IE http://www.adobe.com/devnet/activecontent/articles/devletter.html
function SWFObject(swfURL, swfName, swfWidth, swfHeight, swfVersion, swfBGColor)
{
	this._url = swfURL;
	this._name = swfName;
	this._width = swfWidth;
	this._height = swfHeight;
	this._version = swfVersion;
	this._bgcolor = swfBGColor;
}

SWFObject.prototype._url;
SWFObject.prototype._name;
SWFObject.prototype._width;
SWFObject.prototype._height;
SWFObject.prototype._version;
SWFObject.prototype._bgcolor;

SWFObject.prototype.write = function(contentType)
{
var screenScale = "";
var screenSize = "";

var div = document.getElementById(contentType);
screenSize = 'width="'+this._width+'" height="'+this._height+'"';

//alert("hello"+this._url);
//div.innerHTML='blah';s
//div.innerHTML+='blah2';
var temp = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+this._version+',0,0,0" id="'+this._name+'" align="middle" ';
temp += screenSize;
temp += ' />\n';
temp += '<param name="allowScriptAccess" value="sameDomain" />\n';
temp += '<param name="movie" value="'+this._url+'" />\n';
temp += screenScale;
temp += '<param name="quality" value="best" />\n';
temp += '<param name="bgcolor" value="'+this._bgcolor+'" />\n';
temp += '<embed border=0 src="'+this._url+'" quality="best" bgcolor="'+this._bgcolor+'" name="'+this._name+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" ';
temp += screenSize;
temp += ' />\n';
temp += '</object>\n';
//alert(temp);
div.innerHTML = temp;
}

