// Accepts text variable from defs.js passed by calling file as parameter. Checks that definition file is done loading and another popup is not open. The defs_loaded flag is set in defs.js.
function startPopups(x)
{
if (defs_loaded != true) window.setTimeout("startPopups("+x+")", 50);
//Gets height of popup (based on newly added contents) and determines if it will extend off bottom of visible page. If it does, move it up, but not past top of visible page.
function doPopHeight()
{
var pageBottom = document.body.scrollTop + document.body.clientHeight;