\ConfigureEnv{algorithm}
{\ifvmode \IgnorePar\fi \EndP
\HCode{<div \a:LRdir class="algorithm">}%
\par\ShowPar
}
{\ifvmode \IgnorePar\fi \EndP
\HCode{</div>}\par\ShowPar
}
{}{}
\Css{div.algorithm table.caption {
border-bottom: 1px solid black; margin-bottom:1pt; }}
-_-_-