function embedObject(filename, flashName, width, height, variableName, variableValue) {
	document.write('<object style="vertical-align: bottom" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="'+width+'" height="'+height+'" id="'+flashName+'Flash" align="middle">\n');
	document.write('<param name="allowScriptAccess" value="sameDomain" />\n');
	document.write('<param name="movie" value="'+filename+'" />\n');
	document.write('<param name="quality" value="high" />\n');
	document.write('<param name="bgcolor" value="#ffffff" />\n');
	if (variableName != '')	{
		document.write('<param name="flashVars" value="'+variableName+'='+variableValue+'" />');
		document.write('<embed src="'+filename+'" flashVars="'+variableName+'='+variableValue+'" quality="high" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="'+flashName+'Flash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	} else {
		document.write('<embed src="'+filename+'" quality="high" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="'+flashName+'Flash" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	}
	document.write('</object>\n');
}

function popUpWindow(width, height, url) {
	leftPixel = (screen.width / 2) - (width / 2);
	topPixel = (screen.height / 2) - (height / 2);
	window.open (url,"popUpWindow","width="+width+", height="+height+", scrollbars=1,status=no,left="+leftPixel+",top="+topPixel);
}