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

});


