visible

The visible method has two modes of operation.
1. If you call it without any arguments, it will return a Boolean value, specifying whether the control is visible.
2. If you pass a Boolean value to the method, it will apply it to the control and either show or hide it.

These are demonstrated in the sample below:

<div id="window" />

<script type="text/javascript">
jQuery(function($) {
    var window = $("#window").shieldWindow({
        title: "Window Title"
    }).swidget();

    //alert whether the control is visible
    alert(window.visible());

    //this will hide the control
    window.visible(false);

    //alert whether the control is visible
    alert(window.visible());
});
</script>