jquery and javascripts toghether
<p>I have this jquery..</p>

<pre><code>&lt;script type='text/javascript'&gt;
$(document).ready(function() {
$('.colnews2').hide();

$("#colnews1 li").click(function() {
    //alert($(this).attr("id"));
    $('.colnews2').hide();
    var value = $(this).attr("id");
    var theDiv = $("#colnews2-" + value);
    theDiv.slideDown();
    colnews1ID=value;
});

});
 &lt;/script&gt;
</code></pre>

<p>and this javascripts.. </p>

<pre><code>    var pager = new Imtech.Pager();
$(document).onload(function() {
    pager.paragraphsPerPage = 2; // set amount elements per page
    pager.pagingContainer = $('#mainlevel-nav'); // set of main container
    pager.paragraphs = $('div', pager.pagingContainer); // set of required containers
    pager.showPage(1);
});
</code></pre>

<p>and i need them in the same php.</p>

<p>I tried the following, but does not work.</p>

<pre><code>&lt;script type='text/javascript'&gt;
$(document).ready(function() {

var pager = new Imtech.Pager();

    pager.paragraphsPerPage = 2; // set amount elements per page
    pager.pagingContainer = $('#mainlevel-nav'); // set of main container
    pager.paragraphs = $('div', pager.pagingContainer); // set of required containers
    pager.showPage(1);


$('.colnews2').hide();

$("#colnews1 li").click(function() {
    //alert($(this).attr("id"));
    $('.colnews2').hide();
    var value = $(this).attr("id");
    var theDiv = $("#colnews2-" + value);
    theDiv.slideDown();
    colnews1ID=value;
});

});
&lt;/script&gt;
</code></pre>
