function fade(target) { if (!target) return; fadeIn(target); } function fade_storage(paramA) { return (function(){ paramA; }); } function fadeIn(target, opacity) { if (!opacity) opacity = 0; target.style.visibility = "visible"; if (opacity <= 100) { if (target.style.MozOpacity!=null) target.style.MozOpacity = (opacity/100)-.001; else if (target.style.opacity!=null) target.style.opacity = (opacity/100)-.001; else if (target.style.filter!=null) target.style.filter = "alpha(opacity="+opacity+")"; opacity += 10; window.setTimeout("fadeIn(" + fade_storage(target) + ", " + opacity + ")", 50); } }