shorthand in jquery
<p>I have this jquery codes:</p>

<pre><code> $(document).ready(function() {
$("#masthead ul li").mouseover(function(){
    $("#masthead ul li").removeClass("cr");
    $(this).toggleClass("cr");
});
   }); 

  $(document).ready(function() {
$("#intUl li").mouseover(function(){
    $("#intUl li").removeClass("cr");
    $(this).toggleClass("cr");
});
}); 
</code></pre>

<p>Can we write shorthand for two similar jquery code?
Thanks in advance</p>
