function writeObject(imageid) {
	document.writeln('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,65,0" width="100%" height="100%" id="Slideviewer">');
	document.writeln('<param name="allowScriptAccess" value="sameDomain" />');
	document.writeln('<param name="movie" value="Slideshowviewer.swf" />');
	document.writeln('<param name="FlashVars" value="imageid='+imageid+'" />');
	document.writeln('<param name="menu" value="false" />');
	document.writeln('<param name="quality" value="high" />');
	document.writeln('<param name="bgcolor" value="#ffffff" />');
	document.writeln('<embed src="Slideviewer.swf" FlashVars="imageid='+imageid+'" menu="false" quality="high" bgcolor="#ffffff" width="100%" height="100%" name="Slideviewer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.writeln('</object>');
}
