function createFlashObject(file, width, height) {

	document.writeln("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' height='"+height+"' width='"+width+"'>");
	document.writeln("<param name='movie' value='"+file+"'>");
	document.writeln("<param name='quality' value='best'>");
	document.writeln("<param name='play' value='true'>");
	document.writeln("<param name='menu' value='false'>");
	document.writeln("<param name='scale' value='noscale'>");
	document.writeln("<embed scale='noscale' menu='false' height='"+height+"' pluginspage='http://www.macromedia.com/go/getflashplayer' src='"+file+"' type='application/x-shockwave-flash' width='"+width+"' quality='best' play='true'>");
	document.writeln("</object>");

}

function popup(file, width, height, popTitle){

	var posX = (screen.width/2)-(width/2); 
	var posY = (screen.height/2)-(height/2)-50;
	var pos = "left="+posX+",top="+posY; 
	
	window.open(file,popTitle,"width="+width+", height="+height+", resizable=no, scrollbars=no, menubar=no, toolbar=no, directories=no, location=no, status=no, " + pos);

}