


function read_swf(swf,width,height,bgImages)
{	
	var url =document.URL;
	var dir ="./";
	var path = dir+swf;
	var fvs ="";
	
	fvs +="&containerUrl=" +url;
	if(bgImages != undefined){
		fvs +="&bgImages=" +bgImages.join();
	}
	//
	var htm = "";
	htm+="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'";
	htm+=" codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab'";
	htm+=" width=" + width;
	htm+=" height=" + height + ">";
	if(fvs) htm+="<param name='FlashVars' value='" +fvs +"'>";
	htm+="<param name=movie value=" + path + ">";
	htm+="<param name=quality value=high>";
	htm+="<embed src=" + path;
	htm+=" quality=high";
	if(fvs) htm+=" FlashVars='" +fvs +"'";
	htm+=" width="+ width;
	htm+=" height=" + height;
	htm+=" type='application/x-shockwave-flash'";
	htm+=" pluginspage='http://www.macromedia.com/go/getflashplayer'>";
	htm+="</embed>";
	htm+="</object>";
	document.write(htm);

}
