shorten functions into one
<p>I have a block with three buttons, every button loads a different content. 
How can I shorten those three almost identical functions into one function?</p>

<pre><code>$('#mega_online').click(function() {

        $("#contentjq_more").empty().html('&lt;center&gt;&lt;img src="http://site.com/image.gif" /&gt;&lt;/center&gt;');
        $("#contentjq").load("http://site.com/online.php?more=" + $morenum + "&amp;movies=1");
        $("#contentjq_more").empty().html('');
    $morenum = $morenum+20;
        $("#contentjq").show();

});

$('#mega_files').click(function() {
    $morenum = 0;
        $("#contentjq_more").empty().html('&lt;center&gt;&lt;img src="http://site.com/image.gif" /&gt;&lt;/center&gt;');
        $("#contentjq").load("http://site.com/files.php?more=" + $morenum + "&amp;movies=1");
        $("#contentjq_more").empty().html('');
    $morenum = $morenum+20;
        $("#contentjq").show();
});

$('#mega_music').click(function() {
    $morenum = 0;
        $("#contentjq_more").empty().html('&lt;center&gt;&lt;img src="http://site.com/image.gif" /&gt;&lt;/center&gt;');
        $("#contentjq").load("http://site.com/music.php?more=" + $morenum + "&amp;movies=1");
        $("#contentjq_more").empty().html('');
    $morenum = $morenum+20;
        $("#contentjq").show();
});
</code></pre>
