function SWF(get_url, get_width, get_height, get_objId, get_transparent) {
	this.url = get_url;
	this.width = get_width;
	this.height = get_height;
	this.obj = null;
	this.emd = null;
	this.objId = get_objId;
	this.transparent = get_transparent;
	this.swfObject = '';
	
	this.applyIn = function(divId) {
		document.getElementById(divId).innerHTML = this.createSwfObject();
		this.obj = document.getElementById(this.objId);
		this.emd = document.getElementById(this.objId).lastChild;
	}
	
	this.createSwfObject = function() {
		this.swfObject = '<object ';
		this.swfObject += 'classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ';
		this.swfObject += 'codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" ';
		this.swfObject += 'width="'+this.width+'" ';
		this.swfObject += 'height="'+this.height+'" ';
		this.swfObject += 'id="'+this.objId+'" ';
		this.swfObject += '>';
		
		this.swfObject += this.addParam('allowScriptAccess', 'always');
		this.swfObject += this.addParam('movie', this.url);
		this.swfObject += this.addParam('quality', 'high');
		if(this.transparent) this.swfObject += this.addParam('wmode', 'transparent');
		
		this.swfObject += '<embed ';
		this.swfObject += 'src="'+this.url+'" ';
		this.swfObject += 'quality="high" ';
		if(this.transparent) this.swfObject += 'wmode="transparent" ';
		this.swfObject += 'width="'+this.width+'" ';
		this.swfObject += 'height="'+this.height+'" ';
		this.swfObject += 'name="'+this.objId+'_emd" ';
		this.swfObject += 'allowScriptAccess="always" ';
		this.swfObject += 'type="application/x-shockwave-flash" ';
		this.swfObject += 'swLiveConnect=true ';
		this.swfObject += 'pluginspage="http://www.macromedia.com/go/getflashplayer" ';
		this.swfObject += '/>';
		
		this.swfObject += '</object>';
		
		return this.swfObject;
	}
	
	this.addParam = function(param, value) {
		return '<param name="'+param+'" value="'+value+'" />';
	}
	
	this.resize = function(newWidth, newHeight) {
		this.obj.height = newHeight;
		this.emd.height = newHeight;
		this.height = newHeight;
		this.obj.width = newWidth;
		this.emd.width = newWidth;
		this.width = newWidth;
		this.onResize();
	}
	
	this.setVariable = function(param, value) {
		this.obj.SetVariable(param, value);
	}
	
	this.onResize = function() {};
}
