Cross hover in table

Uses a bit of css with not so much js

HTML

Hover on top of the table...
<table>
    <colgroup></colgroup>
    <colgroup></colgroup>
    <colgroup></colgroup>
    <colgroup></colgroup>
    <colgroup></colgroup>
	<thead>
	    <tr>
	        <th>1</th>
	        <th>2</th>
	        <th>3</th>
	        <th>4</th>
	        
	    </tr>
	</thead>
	<tbody>
    		<tr>
    			<td></td>
    			<td></td>
    			<td></td>
    			<td></td>
    			<td></td>
    		</tr>
    		<tr>
    			<td></td>
    			<td></td>
    			<td></td>
    			<td></td>
    			<td></td>
    		</tr>
            
           
    	</tbody>
</table>

CSS

.hover { background-color: lightGrey; }

td{
    border: 1px solid lightGrey;
    padding:0;
}

td{height:25px; width:100px;}

JavaScript

$(function(){
    $("table").delegate('td','mouseover mouseleave', function(e) {
        if (e.type == 'mouseover') {
          $(this).parent().addClass("hover");
          $("colgroup").eq($(this).index()).addClass("hover");
        }
        else {
          $(this).parent().removeClass("hover");
          $("colgroup").eq($(this).index()).removeClass("hover");
        }
});
})