// NOTE: The comments in this file are not stripped by the page constructor, because this file is loaded directly
//       by the browser via <script> tags. TODO: Perhaps change this to be content? Or at least go through a dispatcher
//       which could remove the comments.

/**
 * Shows or hides the box content, depending on whether it is currently hidden or shown, respectively.
 *
 * @param string cellId The cellId of the target box.
 */
function boxShowHide(cellId) {
    var row = $('sytadelBox'+cellId);
    var anchor = $('sytadelBoxLink'+cellId);
    if (!row.visible()) {
        row.show();
        anchor.update('&#8211;');
        anchor.removeClassName('sytadelTitleCollapseControlCollapsed');
    } else {
        row.hide();
        anchor.update('+');
        anchor.addClassName('sytadelTitleCollapseControlCollapsed');
    }
}
