/**
 * @author Phil
 */
jQuery(document).ready(function($) {
    $('.slide').each(function() {
        var img = $('img', this).attr('src');
        this.style.backgroundImage = 'url(' + img + ')';
        
    });
    
    $('#feature-item-nav, #feature-slideshow').toggle();
    
    $('#feature-slideshow').hover(function(e) {
        // over
        $('#feature-slideshow-nav').fadeIn('fast');
    }, function(e) {
        // out
        $('#feature-slideshow-nav').fadeOut('fast');
    });
    
    $('#feature-item-content').cycle({
        pause: true,
        next: '#feature-slideshow-nav-next',
        prev: '#feature-slideshow-nav-prev'
    });
});