function expand(object) { var objectid = object.firstChild.innerHTML; popdown = document.getElementById(objectid); popdown.style.visibility = 'visible'; smooth(popdown); } function smooth(objectid) { if (objectid.clientHeight != 200) { newh = objectid.clientHeight+10 objectid.firstChild.style.height = newh + 'px'; objectid.style.height = newh + 'px'; setTimeout('smooth(objectid)', 30); } }