/// <reference path="~/Media/js/jquery-1.3.2-vsdoc.js" />

$(document).ready(function() {
    $("#projectListing a").mouseover(function() {
        $(this).parent().addClass("highlight");
    });

    $("#projectListing a").mouseout(function() {
        $(".groupListing").children().removeClass("highlight");
    });

    var maxHeight = 0;
    $("#projectListing .groupListing").each(function(i) {
        if ($(this).height() > maxHeight) {
            maxHeight = $(this).height();
        }
    });
    $("#projectListing .groupListing .content").height(maxHeight + 1);

    $("#projectListing a.showme").click(function() {
        var idNumber = $(this).parent().parent().attr("id");
        $(".groupProject").hide();
        $("#display" + idNumber).show();
        
        $(".groupListing").children().removeClass("on");
        $(this).parent().addClass("on");
        
        return false;
    });

});