$(function() {
        
        $('#banner-content').cycle({ 
            fx:     'fade', 
            speed:  5000
        }); 
        
        $('#home-news-content')
        .before('<div id="home-news-nav">')
        .cycle({ 
            fx:    'scrollDown', 
            sync:   0,
            speed: 1000, 
            delay: -10000,
            pause: 1,
            pager: '#home-news-nav'
        });

    //PREVIEW
    
    var config = {    
         //over: makeTall, // function = onMouseOver callback (REQUIRED)    
         //out: makeShort, // function = onMouseOut callback (REQUIRED)
         timeout: 700 // number = milliseconds delay before onMouseOut    
    };
    
    $(".dominio").hoverIntent( config );
    
    $(".dominio").hoverIntent( function() {
    
        div = $(this).find(".dominio-webthumb");
        
        div.html('<center><img src="images/loading.gif"></center>');
        
        id = $(this).attr("rel");
    
        div.load( 'home_ajax.php', {'p':'dominio','id':id}, function() {
        
            $(this).fadeIn();
        
        });
    
    }, function() {
    
        $(".dominio-webthumb").fadeOut();
        
    });
    
    $(".opera").hoverIntent( config );
    
    $(".opera").hoverIntent( function() {
    
        div = $(this).find(".opera-preview");
        
        id = $(this).attr("rel");
        
        div.html('<center><img src="images/loading.gif"></center>');
    
        div.load( 'home_ajax.php', {'p':'opera','id':id}, function() {
        
            $(this).fadeIn();
        
        });
    
    }, function() {
    
        $(".opera-preview").fadeOut();
        
    });
    
    $(".dx-opera").hoverIntent( config );
    
    $(".dx-opera").hoverIntent( function() {
    
        div = $(this).find("div");
        
        div.slideDown();
    
    }, function() {
    
        div = $(this).find("div");
        
        div.slideUp();
        
    });
    
});
