function slideOfferte(i_offerta, count_offerte)
{
    window.setTimeout("offertaRandom("+i_offerta+", "+count_offerte+")", 5000);
}

function offertaRandom(i_offerta, count_offerte)
{
    for (i=0; i<count_offerte; i++)
        document.getElementById('offerta_'+i).style.display = 'none';
    
    document.getElementById('offerta_'+i_offerta).style.display = '';

    i_offerta++;    
    if ( i_offerta == count_offerte )
        i_offerta = 0;

    slideOfferte(i_offerta, count_offerte);
}

