function sizeInit() { var sizeOpenAnim = new YAHOO.util.Anim('size', {width:{to:150}, height:{to:150}}, 0.5, YAHOO.util.Easing.backOut); var sizeOpen = function(){ var element = document.getElementById('size'); element.style.visibility = "visible"; sizeOpenAnim.animate(); }; var sizeCloseAnim = new YAHOO.util.Anim('size', {width:{to:1}, height:{to:1}}, 0.5, YAHOO.util.Easing.backIn); sizeCloseAnim