/**
 * @author mpartridge
 */
visibility = new Array();

function showHide(divid) {

    if (document.getElementById) {
        var switch_id = document.getElementById(divid);
        
        var linkid = 'expand_' + divid;
        var button = document.getElementById(linkid);
        
        if (visibility[divid] != 'show') {
            switch_id.className = 'show';
            visibility[divid] = 'show';
        }
        else {
            switch_id.className = 'hide';
            visibility[divid] = 'hide';
        }
    }
}