var file = "flash/photostack.swf";
var name = "nitswf";
var bgcolor = "#ffffff";
var width = 500;
var height = 300;

document.write( "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,42,0\" id=\"sideobj\" width=\"" + width + "\" height=\"" + height + "\">\n" );
document.write( "\t<param name=\"movie\" value=\"" + file + "\" />\n" );
document.write( "\t<param name=\"bgcolor\" value=\"" + bgcolor + "\" />\n" );
document.write( "\t<param name=\"quality\" value=\"high\" />\n" );
document.write( "\t<param name=\"allowscriptaccess\" value=\"samedomain\" />\n" );
document.write( "\t<param NAME=\"wmode\" Value=\"Transparent\" />\n" );
document.write( "\t<embed type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" width=\"" + width + "\" height=\"" + height + "\" name=\"" + name + "\" src=\"" + file + "\" bgcolor=\"" + bgcolor + "\" quality=\"high\" swLiveConnect=\"true\" allowScriptAccess=\"samedomain\" loop=\"true\"></embed>\n" );
document.write( "</object>" );