// show the correct contacts
function showContacts()
{
    // init vars
    var options = $('departments').options;
    
    // loop through and hide / show the correct ones
    for (var i = 0; i < options.length; i ++)
        $(options[i].value).style.display = options[i].selected ? 'block' : 'none';
}

// change the ship data with other data
function changeShip(num)
{
    // hide all ships and show the one we need
    var classes = buffalo.utils.getElementsByClassName('fleetInfo');
    
    // loop through and hide the classes
    for (var i = 0; i < classes.length; i ++)
        classes[i].style.display = 'none';
    
    // show the correct one
    $('ship' + num).style.display = 'block';
}