maximized

The maximized 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 maximized.
2. If you pass a Boolean value to the method, it will apply it to the control and either maximize it or return to normal state.

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 maximized
    alert(window.maximized());

    //this will maximize the control
    window.maximized(true);

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