function Silde(width, height, xml)
{
	this.width = width;
	this.height = height;
	this.xml = xml;
	this.movie = "/pub/swf/slide.swf";
}
Silde.prototype.setMovie = function(movie)
{
	this.movie = movie;
}
Silde.prototype.create = function()
{
	var html = '';
	html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+this.width+'" height="'+this.height+'" align="middle">';
	html += '<param name="allowScriptAccess" value="sameDomain" />';
	html += '<param name="movie" value="'+this.movie+'" />';
	html += '<param name="FlashVars" value="xmlPath='+this.xml+'" />';
	html += '<param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="wmode" value="transparent"><param name="bgcolor" value="#ffffff" />';
	html += '<embed src="'+this.movie+'" loop="false" menu="false" quality="high" wmode="transparent" bgcolor="#ffffff" width="'+this.width+'" height="'+this.height+'" name="silde" align="middle" allowScriptAccess="sameDomain"  FlashVars="xmlPath='+this.xml+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	html += '</object>';
	document.write(html);
}

// var s = new Silde(445, 200, 'xml/viewerData.xml');
// s.create();