jQuery - combine statements
<p>Could i trouble someone to help me combine these statements...everytime i do i get a script error, but am unable to debug what is exactly wrong...</p>

<pre><code>&lt;script type="text/javascript"&gt; 
  $(function() {
      $('.slideshow').after('&lt;div id="mininav"
  class="mininav"&gt;').cycle({
          fx:     'fade',
          speed:  'fast',
          timeout: 5500,    pause: 1,
          pager:  '#mininav',
          before: function() { if (window.console)
  console.log(this.src); }
      });


  });
&lt;/script&gt;

&lt;script type="text/javascript"&gt; 
  $(function() {

   $('.slideshow').hover(function() {   
          $('#mininav-pause').show();   }, 
            function() {        $('#mininav-pause').hide();     });
  });
&lt;/script&gt;
</code></pre>
