function faq_open(Obj){ Parents = Obj.parentNode; childDIVtag = Parents.getElementsByTagName("div"); if(childDIVtag[0].style.display == "none"){ Obj.className = "on"; childDIVtag[0].style.overflow = "hidden"; childDIVtag[0].style.display = ""; BoxHeight = childDIVtag[0].offsetHeight -20; childDIVtag[0].style.height = "0px"; for(i=1; i<=10; i++){ setTimeout("childDIVtag[0].style.height='" + (BoxHeight/10)*i + "px'" , i*20 ); } setTimeout("childDIVtag[0].style.height=''" , 210 ); }else{ Obj.className = ""; BoxHeight = childDIVtag[0].offsetHeight -10; childDIVtag[0].style.overflow = "hidden"; for(i=1; i<=10; i++){ setTimeout("childDIVtag[0].style.height='" + ((BoxHeight/10)*(10 - i)) + "px'" , i*20 ); } setTimeout("childDIVtag[0].style.height=''" , 210 ); setTimeout("childDIVtag[0].style.display='none'" , 210 ); } }