function SMEmbedVideo(fileSrc){
var _this = this;
	_this.mediaFileSrc = fileSrc;
	_this.getFileExt = function(){
		var f = _this.mediaFileSrc;
		return((f.substring(f.lastIndexOf('.')+1, f.length)).toLowerCase());
	};
	_this.mediaFileExt = _this.getFileExt();
	_this.autoStart = false;
	_this.showControls = true;
	_this.loopMovie = false;
	_this.movieWidth = 900;
	_this.movieHeight = 450;
	_this.bgColor = '#FF6600';
};

SMEmbedVideo.prototype.buildParam = function(paramName, paramValue){
	return('<param name="' + paramName + '" value="' + paramValue + '">');
};

SMEmbedVideo.prototype.printWebsite = function(){
	document.write(this.renderHTML());
};

SMEmbedVideo.prototype.renderHTML = function(){
var _this = this;

	var sEmbed = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="embedded" width="' 
		+ _this.movieWidth.toString() + '" height="' + _this.movieHeight.toString() + '">'
		+ _this.buildParam('src', _this.mediaFileSrc)
		+ _this.buildParam('bgcolor', _this.bgColor);
	sEmbed += '<embed type="application/x-shockwave-flash" pluginspace="http://www.macromedia.com/go/getflashplayer" id="embedded" width="' 
		+ _this.movieWidth.toString() + '" height="' + _this.movieHeight.toString() + '" '
		+ 'src="' + _this.mediaFileSrc + '" '
		+ 'quality="high" '
		+ 'bgcolor="' + _this.bgColor + '" '
		+ '></embed>';
	sEmbed += '</object>';
	return(sEmbed);
};

var prometen = new SMEmbedVideo('promet.swf');
with(prometen){
	autoStart = false;
	showControls = true;
	movieWidth = 900;
	movieHeight = 450;
};