/* SWFLoader */
function SWFLoader() {
	this.id = "";
	this.title = undefined;
	this.wmode = "window";
	this.flashvars = "";
	this.classId = 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000';
	this.codeBase = 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0';
	this.pluginSpage = 'http://www.macromedia.com/go/getflashplayer';
	this.embedType = 'application/x-shockwave-flash';
}
SWFLoader.prototype.setting = function(obj){
	for(var property in obj){
		this[property] = obj[property];
	}
	if(this.alternate && document.getElementById(this.alternate)){
		var node = document.getElementById(this.alternate);
		this.alternate = node.innerHTML;
		node.style.display = "none";
	}
	this.parameter = "";
	this.parameter += "<param name='allowScriptAccess' value='always' />";
	this.parameter += "<param name='allowFullScreen' value='false' />";
	this.parameter += "<param name='movie' value='"+this.url+this.flashvars+"' />";
	this.parameter += "<param name='wmode' value='"+ this.wmode +"' />";
	this.parameter += "<param name='quality' value='best'/>";
	this.parameter += "<param name='base' value='.'>";
	this.parameter += "<param name='scale' value='noscale'/>";
	this.parameter += "<param name='expressinstall' value='Scripts/expressInstall.swf' />";
}
SWFLoader.prototype.addParameter = function(name, value){
	this.parameter += "<param name='"+name+"' value='"+value+"'/>";
}
SWFLoader.prototype.show = function(){
	var str = "";
	var title = (this.title) ? ' title="'+this.title+'"' : "";
	str += '<object id="'+this.id+'" width="'+this.width+'" height="'+this.height+'" classid="'+this.classId+'" codebase="'+this.codeBase+'"'+ title+'>';
		str += this.parameter;
		str += '<!--[if !IE]>-->';
		str += '<object id="'+this.id+'" type="application/x-shockwave-flash" data="'+this.url+this.flashvars+'" width="'+this.width+'" height="'+this.height+'" name="'+this.id+'"'+ title +'>';
		str += this.parameter;
		str += '<!--<![endif]-->';
			str += this.alternate;
		str += '<!--[if !IE]>-->';
		str += '</object>';
		str += '<!--<![endif]-->';
	str += '</object>';
	document.write(str);
}
function Ryan_Flash(Url, wd, ht, swfId, wm, vars) {// url,width,height,ID,transparent,var
 var TxtSwf = "" ;
 TxtSwf += "<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,29,0' width='"+ wd +"' height='"+ ht +"' id='"+ swfId +"'>" ;
 TxtSwf += "<param name='movie' value='"+ Url +"'>" ;
 TxtSwf += "<param name='wmode' value='"+ wm +"'>" ;
 TxtSwf += "<param name='FlashVars' value='" + vars + "'>" ;
 TxtSwf += "<param name='allowScriptAccess' value='always'>" ;
 TxtSwf += "<param name='allowFullScreen' value='true'>" ;
 TxtSwf += "<param name='quality' value='high'>" ;
 TxtSwf += "<param name='menu' value='false'>" ;
 TxtSwf += "<embed src='"+ Url +"' width='"+ wd +"' height='"+ ht +"' wmode='"+ wm +"' id='"+ swfId +"' FlashVars='"+ vars +"' allowScriptAccess='always' allowFullScreen='true' quality='high' menu='false' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'></embed>" ;
 TxtSwf += "</object>" ;
 document.write (TxtSwf);
}


