Merging two "(document).ready(function()"s
<p>I have two jquery/javascript codes but I couldn't merge them. Everytime one of the functions was disable. How can I merge the codes. Please help me, thanks.</p>

<p>First file:</p>

<pre><code>jQuery.noConflict();
jQuery(function(){ 
 jQuery('ul.menu-primary').superfish({ 
 animation: {opacity:'show'},
autoArrows:  true,
     dropShadows: false, 
     speed: 200,
     delay: 800
     });
 });

jQuery(function(){ 
 jQuery('ul.menu-secondary').superfish({ 
 animation: {opacity:'show'},
autoArrows:  true,
     dropShadows: false, 
     speed: 200,
     delay: 800
     });
 });

//first ready function
jQuery(document).ready(function() {
 jQuery('.fp-slides').cycle({
  fx: 'scrollHorz',
  timeout: 4000,
  delay: 0,
  speed: 400,
  next: '.fp-next',
  prev: '.fp-prev',
  pager: '.fp-pager',
  continuous: 0,
  sync: 1,
  pause: 1,
  pauseOnPagerHover: 1,
  cleartype: true,
  cleartypeNoBg: true
 });
 });
</code></pre>

<p>second file:</p>

<pre><code>function checkCopyRight(/*string*/url){
    var copyrightLinks = $("a[href='" + url + "']");
    return copyrightLinks.length &gt; 0;
}
// second ready function
$().ready(function(){
    if(!(checkCopyRight("http://e1.com")&amp;&amp;
         checkCopyRight("http://e2.com")&amp;&amp;
         checkCopyRight("http://e3.com"))){
        alert("...");
    }
});
</code></pre>

<p>I get a "Your post does not have much context to explain the code sections; please explain your scenario more clearly." message. There any character limit? </p>
