// copyright (c) 2006 Majigs, LLC

rolling=false;rollTarg=null;rollSteps=8;rollStep=0;rollOF=null;rollHeight=null;rollCB=null;function rollDown(elem,top,left,width,height,callback){if(rolling)
return;rolling=true;rollTarg=elem;m(elem,top,left);sz(elem,width,1);rollHeight=i(height);rollStep=0;rollCB=callback;rollOF=getStyle(elem,'overflow');elem.style.overflow='hidden';s(elem);rollTarg=elem;setTimeout('rollDownST()',20);}
function rollDownST(){rollStep++;if(rollStep==rollSteps){rollTarg.style.height=rollHeight+'px';}else{rollTarg.style.height=((rollHeight*rollStep)/rollSteps)+'px';}
if(rollStep==rollSteps){rollTarg.style.overflow=rollOF;rolling=false;if(rollCB!=null){rollCB(rollTarg);}
rollTarg=null;return;}
setTimeout('rollDownST()',20);}