/* $Id$ */

/*
 * Function for toggling a box open or close.
 */
$.fn.toggleBox = function() {
    $(this).toggleClass('open').next().toggle();
    var text = $(this).next().is(':visible') ? '-' : '+';
    $(this).find('a').text( text );
}

/*
 * Body script execution area... 
 */
$(document).ready(function() {
    $('#download div.package div.header').slice(1).toggleBox();
    $('#download div.package div.header').click(function(event) {
        event.preventDefault();
        $(this).toggleBox();
    });
});

