$(document).ready(function() {
    $("a[rel=lightbox]").lightBox();
          
     // bind "click" event for links with title="submit"
     $("a[title=submit]").click( function(){
        // it submits the form it is contained within
        $(this).parents("form").submit();
      });

    $("table.tablecolors tr:even").not(':first').addClass("even");
    $("table.tablecolors tr:odd").addClass("odd"); //This is not required - you can avoid this if you have a table background
    $("table.tablecolors tr").not(':first').hover(function(){
        $(this).addClass("hovcolor");
    }, function(){
        $(this).removeClass("hovcolor");
    });
    $("table.tablecolors tr").not(':first').click(function(){
       //$("table.tablecolors tr").removeClass("highlightcolor"); // Remove this line if you dont want to de-highlight the previously highlighted row
        $(this).toggleClass("highlightcolor");
    });
});

