title: Jquery Layout Plugin How to determine whether a pane is open or closed
body: <p>I am using <code>jquery.layout-1.2.0</code> by <em>Fabrizio Balliano</em></p>
  
  <p>i want to know in my <code>java script</code> whether a Layout Pane is in open state or closed state.</p>
  
  <p>As per documentation i tried the following.</p>
  
  <pre><code>var lout = $('body').layout();
  // get layout 'state'
  var is_west_open = lout.state.west.isOpen;
  alert(is_west_open);
  if (!is_west_open)
    outerLayout.toggle('west');
  </code></pre>
  
  <p>Alert is returning '<code>Undefined</code>'</p>
  
  <p>What did i miss?</p>