Adjusting height of scrolling div Javascript
<p>I am combining two scripts together a scroller and a content fader.  When I swap the content (fading), div's with alot of content make the scrolling div super long.  I was reading on the plugin demo for content scrolling: <a href="http://manos.malihu.gr/jquery-custom-content-scroller" rel="nofollow">http://manos.malihu.gr/jquery-custom-content-scroller</a> that you can use $(selector).mCustomScrollbar("update"); when loading different content to make the div adjust accordingly.</p>

<p>Well that is where I am stumped.  I know that code needs to go in my fading script somewhere but where is the question?  Here is the fading script where would it go?</p>

<pre><code>&lt;script type='text/javascript'&gt;//&lt;![CDATA[ 
$(window).load(function(){
(function($) {
    $.fn.Fader = function() {
        this.each(function() {
            $('.clickme').bind('click', function(e) {
                e.preventDefault();
                $( "#mediaswap div" ).fadeOut();
                $( "#mediaswap div" + $(this).attr('name') ).fadeIn();
            })
        });
    }
})(jQuery);


$(function() {
    $('#mediaswap').Fader();
});
});//]]&gt;  

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