﻿/// <reference path="jquery-1.3.2.min-vsdoc2.js" />

function ToggleDescription(c) {
    var div = $(getNextSibling(c));
//    $(c.nextSibling).slideToggle("slow");
    if (div.is(":visible")) {
        $(c).text("Show Detail");
        div.fadeOut("slow");
    }
    else {
        $(c).text("Hide Detail");
        div.fadeIn("slow");
    }
}

function getNextSibling(startBrother) {
    endBrother = startBrother.nextSibling;
    while (endBrother.nodeType != 1) {
        endBrother = endBrother.nextSibling;
    }
    return endBrother;
} 