$(document).ready(function(){
    $('#show-news').hide();
    // $.backstretch("html/public/img/Zero3productions1.jpg",{speed: 700});
    $.vegas( 'slideshow',
    {
        delay: 8000,
        backgrounds: 
        [
            {src: 'html/public/img/Zero3productions1.jpg', fade: 1000},
            {src: 'html/public/img/Zero3productions2.jpg', fade: 1000},
            {src: 'html/public/img/Zero3productions3.jpg', fade: 1000},
            {src: 'html/public/img/Zero3productions4.jpg', fade: 1000}
        ]
    } )('overlay');

    
    
    $('#open-news').click(function(e){
        e.preventDefault();
        if( $('#show-news').is(':visible') )
        {
            $('#show-news').slideUp(300);            
        }
        else
        {
            $('#show-news').slideToggle(300);
            $('#newsletter').remove('.news-home');
        }
    })
    
   // $('.nivoSlider').nivoSlider();
})

$(window).load(function() {
    $('.nivoSlider').nivoSlider();
});


