function toggleDetails(id)
{
  
  if( $('show_details_'+id).style.display == 'none' )
  {
    width = 120;
  }
  else
  {
    width = 200;
    $('postmetadata_'+id).style.width = width+'px';
  }
  
  //$('postmetadata_'+id).morph('width:'+width+'px;');
  
  Effect.toggle('details_'+id, 'blind', {afterFinish:function(){
       $('show_details_'+id).toggle();
       $('hide_details_'+id).toggle();
       if( width == 120 )
       {
           $('postmetadata_'+id).style.width = width+'px';
       }
       
                }});
}
