// JavaScript Document
function attachFlash(url, name, target, width, height){
	target = document.getElementById(target);
	
	var script;
	script =  "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"" + width + "\" height=\"" + height + "\"  id=\"" + name + "\"  >";
    script += "<param name=\"allowScriptAccess\" value=\"sameDomain\" />";
	script +=  "<param name=\"movie\" value=\"" + url + "\">";
    script +=  "<param name=\"quality\" value=\"high\">";
    script +=  "<embed src=\"" + url + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" name=\"" + name + "\" type=\"application/x-shockwave-flash\" width=\"" + width + "\" height=\"" + height + "\"></embed>";
	script +=  "</object>";
	target.innerHTML = script;
	

}
