function FlashObject(uri,objId,fW,fH,fV)
{
	this.param = {};
	this.attr = {};
	
	this.canInit = !!window.swfobject;
	
	this.uri = uri;
	this.id = objId;
	this.width = fW;
	this.height = fH;
	
	var fVStr;
	if(typeof fV == 'number')
	{
		fVStr = fV.toString();
	}
	else
	{
		fVStr = fV;
	}
	if(fVStr.indexOf('.') == -1)
	{
		fVStr += '.0.0';
	}
	this.flashVersion = fVStr;
}

FlashObject.prototype.addParam = function(pName,pValue)
{
	if(this.canInit)
	{
		this.param[pName] = pValue;
	}
}

FlashObject.prototype.write = function()
{
	if(this.canInit)
	{
		//swfobject.embedSWF(this.uri,this.id,this.width,this.height,this.flashVersion,'',this.param,this.attr);
		swfobject.registerObject(this.id,this.flashVersion,this.uri);
	}
}
