function addFlash(objName, fileName, width, height) {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + width + '" height="' + height + '" id="' + objName + '" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="' + fileName + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value=#78BDE8 />');
	document.write('<embed src=' + fileName + ' quality="high" width="' + width + '" height="' + height + ' menu="false" allowScriptAccess="sameDomain" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash">');
	document.write('</object>');
}

function openCenter(popURL,popName,popW,popH) {
	var w = 480, h = 340; 

	if (document.all || document.layers || document.getElementById) { 
		w = screen.availWidth; 
		h = screen.availHeight; 
	}

	var leftPos = (w-popW) / 2, topPos = (h-popH) / 2; 

	newWindow = window.open(popURL,popName,'width=' + popW + ',height=' + popH + ',top=' + topPos + ',left=' + leftPos); 
	{
		setTimeout('newWindow.focus();',250);
	}
}

