jQuery Accordian shows more page than it has
<p>Hi I am implementing accordian using jQuery it shows more page than it has . It contains 
  some expandable elements.My code is follows</p>

<p>Script:</p>

<pre><code>  var curLvl = $('#accordion').accordion('option', 'active');
    $('#accordion').accordion('destroy');
    $('#accordion').accordion({active: curLvl});
    &lt;?php if (count($maps) &gt; 0) { ?&gt;
    $('#accordion').accordion({collapsible: true, active: false});
    &lt;?php } else { ?&gt;
        $('#accordion').accordion('destroy');
    &lt;?php } ?&gt;
</code></pre>

<p>Html Sample</p>

<pre><code>&lt;div id="prvAccordion" class="tpl-sections"&gt;
  //code related to expandable things
&lt;/div&gt;
</code></pre>
