function scrollup(o,d,c){
       if(d==c){
              var t=o.firstChild.cloneNode(true);
              o.removeChild(o.firstChild);
              o.appendChild(t);
              t.style.marginTop=o.firstChild.style.marginTop='0px';
       }
       else{
              var s=1,c=c+s,l=(c>=d?c-d:0);
              o.firstChild.style.marginTop=-c+l+'px';
             window.setTimeout(function(){scrollup(o,d,c-l)},20);
       }
}

function forumFolder(fid){
	var obj=E("folder_"+fid);
	obj.className=obj.className=='folder_0' ? 'folder_1' : 'folder_0';
	E("folderdiv_"+fid).style.display= obj.className=='folder_1'?'':'none';
}



