js-pane not work in jquery tab
<p>this blow code <code>#pane1</code> and <code>#pane2</code> can work correctly between tab1 <code>div</code> , but after moving <code>#pane1</code> or <code>#pane2</code> into tab2 <code>div</code> thats hide and not work.</p>

<pre><code>&lt;?php
include('load_header.php');
include('main.php');
?&gt;
&lt;script type="text/javascript"&gt;
    $(document).ready(function() 
    {
        $('#pane1').jScrollPane();
        $('#pane2').jScrollPane();  

        $(".tab_content").hide(); //Hide all content
        $("ul.tabs li:first").addClass("active").show(); //Activate first tab
        $(".tab_content:first").show(); //Show first tab content
        $("ul.tabs li").click(function() 
        {
            $("ul.tabs li").removeClass("active"); //Remove any "active" class
            $(this).addClass("active"); //Add "active" class to selected tab
            $(".tab_content").hide(); //Hide all tab content
            var activeTab = $(this).find("a").attr("href"); //Find the rel attribute value to identify the active tab + content
            $(activeTab).fadeIn(); //Fade in the active content
            return false;
        });
        $("#close").hover(
            function() { $(this).stop().animate({"opacity": ".4"}, "fast"); },
            function() { $(this).stop().animate({"opacity": "1"}, "fast");  });
    });
&lt;/script&gt;
&lt;body&gt;
  &lt;div class="win7style both" id='win7stylemain' style="z-index: 100;height: 448px;width: 650px;"&gt;
    &lt;div style='position: absolute;top:0px;left: 10px;'&gt;&lt;a href='index.php'&gt;&lt;img src='images/close.png' id='close'/&gt;&lt;/a&gt;&lt;/div&gt;
    &lt;span id='win7headertext'&gt;Lorem ipsum dolor sit amet,&lt;/span&gt;
    &lt;span style='padding-top:10px;'&gt;&lt;/span&gt;
    &lt;div class="content" style='height: 410px;'&gt;
            &lt;ul class="tabs"&gt;
                &lt;li&gt;&lt;a href="#tab1"&gt;Lorem ipsum dolor sit amet,&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="#tab2"&gt;Lorem ipsum dolor sit amet,&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="#tab3"&gt;Lorem ipsum dolor sit amet,&lt;/a&gt;&lt;/li&gt;
                &lt;li&gt;&lt;a href="#tab4"&gt;Lorem ipsum dolor sit amet,&lt;/a&gt;&lt;/li&gt;
            &lt;/ul&gt;
            &lt;div class="tab_container"&gt;
                &lt;div id="tab1" class="tab_content"&gt;
                    &lt;div class='headertitle path'&gt;&lt;a id='tb1help' href='#' title=''&lt;/a&gt;&lt;/div&gt;
                    &lt;h2 class='headertitle'&gt;Lorem ipsum dolor sit amet,&lt;/h2&gt;
                &lt;/div&gt;
                &lt;div id="tab2" class="tab_content"&gt;
                    &lt;div class='headertitle path'&gt;&lt;a id='tb1help' href='#' title=''&lt;/a&gt;&lt;/div&gt;
                    &lt;h2 class='headertitle'&gt;Lorem ipsum dolor sit amet,&lt;/h2&gt;
            &lt;div id="pane2" class="scroll-pane"&gt;
                &lt;p&gt;&amp;gt;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec condimentum pretium nisl. Integer quis tellus nec turpis placerat scelerisque. In semper lacus eu nisi. Praesent dignissim metus sit amet enim. Nam auctor, neque semper congue sagittis, risus mi commodo pede, nec euismod magna libero at sem. In enim magna, vestibulum et, blandit sit amet, tempor vel, ligula. Phasellus ante augue, congue vitae, faucibus quis, gravida sit amet, diam. Nullam congue accumsan magna. Etiam a nunc. Aliquam elit urna, ornare vitae, ultrices et, tempus non, nisl. Duis eros neque, luctus quis, interdum ultricies, auctor eu, urna. Donec nibh. Integer in purus tempus mi venenatis mollis. Cras nunc odio, porttitor at, accumsan ac, adipiscing vitae, ante.&lt;/p&gt;
                &lt;p&gt;Nam dui enim, fringilla vitae, rhoncus non, pharetra in, nunc. Sed a lectus vel orci bibendum placerat. Aliquam erat volutpat. Integer odio. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Duis dictum egestas lorem. Donec ultricies volutpat tellus. Phasellus justo arcu, pharetra eget, cursus non, consectetuer ac, nunc. Fusce orci tortor, semper vel, lacinia vitae, accumsan id, quam. Mauris semper molestie lectus. Duis venenatis erat ultrices nisl.&lt;/p&gt;
                &lt;p&gt;Morbi augue enim, ultricies nec, lobortis sed, iaculis eu, quam. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos hymenaeos. Curabitur sollicitudin, elit eu porttitor varius, tellus velit tristique sem, vitae blandit nisi eros id purus. Nunc non lorem. Nunc blandit purus nec nisi. Donec vulputate, urna vel interdum tristique, tellus mauris pretium lacus, quis sodales lectus nunc sit amet turpis. Suspendisse potenti. Fusce accumsan. Maecenas aliquam consectetuer augue. Fusce est neque, condimentum nec, condimentum vitae, consectetuer ac, tortor. Praesent ultricies urna in lectus. Nam erat nunc, venenatis nec, facilisis sed, feugiat ac, pede. Vivamus aliquam aliquet libero. Curabitur dolor nunc, scelerisque at, gravida dignissim, rutrum at, orci. Maecenas vitae libero id eros rutrum hendrerit. Duis lacinia mauris non erat. Nullam et dolor vel leo sollicitudin suscipit. Sed laoreet libero.&lt;/p&gt;
                &lt;p&gt;Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Praesent turpis. Suspendisse molestie, neque non congue ullamcorper, neque sem consequat nisl, eget pulvinar odio erat et tellus. Nunc luctus convallis dolor. Nullam non mauris. Etiam nisi magna, adipiscing eu, nonummy ac, laoreet nec, est. Pellentesque tristique, est vel condimentum feugiat, nisi justo rhoncus pede, in pulvinar mauris lectus vitae dui. Pellentesque scelerisque. Vestibulum tellus dolor, porta quis, facilisis nec, convallis vitae, quam. Quisque nisi. Nunc vitae nulla vel turpis mollis molestie. Etiam vitae massa.&amp;lt;&lt;/p&gt;
            &lt;/div&gt;
                &lt;/div&gt;  
                &lt;div id="tab3" class="tab_content"&gt;
                    &lt;div class='headertitle path'&gt;&lt;a id='tb1help' href='#' title=''&lt;/a&gt;&lt;/div&gt;
                    &lt;h2 class='headertitle'&gt;Lorem ipsum dolor sit amet,&lt;/h2&gt;
                &lt;/div&gt;  
                &lt;div id="tab4" class="tab_content"&gt;
                    &lt;div class='headertitle path'&gt;&lt;a id='tb1help' href='#' title=''&lt;/a&gt;&lt;/div&gt;
                    &lt;h2 class='headertitle'&gt;Lorem ipsum dolor sit amet,&lt;/h2&gt;
                    &lt;div id="jp-container" class="jp-container4" &gt;
                        &lt;p&gt;
                            Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec in ligula id sem tristique ultrices
                            eget id neque. Duis enim turpis, tempus at accumsan vitae, lobortis id sapien. Pellentesque nec orci
                            mi, in pharetra ligula. Nulla facilisi. Nulla facilisi. Mauris convallis venenatis massa, quis
                            consectetur felis ornare quis. Sed aliquet nunc ac ante molestie ultricies. Nam pulvinar ultricies
                            bibendum. Vivamus diam leo, faucibus et vehicula eu, molestie sit amet dui. Proin nec orci et elit
                            semper ultrices. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus
                            mus. Sed quis urna mi, ac dignissim mauris. Quisque mollis ornare mauris, sed laoreet diam malesuada
                            quis. Proin vel elementum ante. Donec hendrerit arcu ac odio tincidunt posuere. Vestibulum nec risus
                            eu lacus semper viverra.
                        &lt;/p&gt;
                    &lt;/div&gt;                    
                &lt;/div&gt;   
                &lt;div id="tab5" class="tab_content"&gt;
                    &lt;div class='headertitle path'&gt;&lt;a id='tb1help' href='#' title=''&lt;/a&gt;&lt;/div&gt;
                    &lt;h2 class='headertitle'&gt;Lorem ipsum dolor sit amet,&lt;/h2&gt;
                &lt;/div&gt;         
            &lt;/div&gt;      
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/body&gt;
</code></pre>
