//NETVISION SLIDESHOW



$(document).ready(function() {

    $('#fr li').hide().css({ 'position': 'absolute' });

    var z = 9;
    $('#cr li').each(function() {
        $(this).css({ 'zIndex': z });
        z--;
    });
});

$(window).load(function() {

    $('#cr li').css({ 'position': 'absolute' });
    $('#cr li').css({ 'opacity': '1', 'display': 'block' });

    var nueva = 'si';
    carrusel();
    function carrusel() {

        var vc = 1000; // velocidad en los fades	
        var delai = 2500;  // delay intermedio									


        $('#cr li:nth-child(2)').delay(delai).fadeIn(vc);
        $('#cr li:first-child').delay(delai).fadeOut(vc, function() {

            $('#cr li:nth-child(3)').delay(delai).fadeIn(vc);
            $('#cr li:nth-child(2)').delay(delai).fadeOut(vc, function() {


                $('#cr li:nth-child(4)').delay(delai).fadeIn(vc);
                $('#cr li:nth-child(3)').delay(delai).fadeOut(vc, function() {


                    $('#cr li:nth-child(4)').delay(delai).fadeOut(vc);
                    $('#cr li:first-child').delay(delai).fadeIn(vc, function() {

                        carrusel();

                    });
                });
            });
        });
    }
});




