// JavaScript Document

function writeFlash(path, width, height, id, domain, buttons, index, color, image, headline){
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + width + '" height="' + height + '" id="' + id + '" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="allowFullScreen" value="false" />');
	document.write('<param name="movie" value="' + path + '" />');
	document.write('<param name="FlashVars" value="buttons=' + buttons + '&index=' + index + '&domain=' + domain + '&color=' + color + '&image=' + image + '&headline=' + headline + '"></param>');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<embed src="' + path + '" quality="high" bgcolor="#ffffff" width="' + width + '" height="' + height + '" name="' + id + '"align="middle" allowScriptAccess="sameDomain" flashVars="buttons=' + buttons + '&domain=' + domain + '&index=' + index + '&color=' + color + '&image=' + image + '&headline=' + headline + '" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
}