var $j = jQuery.noConflict();

$j(function() {
    $j('#pause').click(function() { $j('#slides').cycle('pause'); return false; });
    $j('#play').click(function() { $j('#slides').cycle('resume'); return false; });
    
    $j('#slideshow').hover(
        function() { $j('#controls').fadeIn(); },
        function() { $j('#controls').fadeOut(); }
    );
    
    $j('#slides').cycle({
        fx:     'fade',
        speed:   1000,
        timeout: 6000,
        next:   '#next',
        prev:   '#prev'
    });
});
