/* JS from A List Apart: The Table Ruler - Christian Heilmann
 * Mar. 26, 2004: 
 * Modification of http://alistapart.textdrive.com/articles/tableruler
 */
function tableruler()
{
 if (document.getElementById && document.createTextNode)
  {
   var tables=document.getElementsByTagName('table');
   for (var i = 0;i < tables.length; i++)
   {
    if(tables[i].className == 'ruler')
    {
     var trs=tables[i].getElementsByTagName('tr');
     for(var j=0; j <trs.length;j++)
     {
      if (trs[j].parentNode.nodeName == 'TBODY')
       {
       trs[j].onmouseover=function(){this.className='ruled';return false}
       trs[j].onmouseout=function(){this.className='';return false}
     }
    }
   }
  }
 }
}