 $(document).ready(function(){
// flash animacion
//$('#slider').s3Slider({timeOut: 3000});


$('#slider').nivoSlider({ pauseTime:5000, pauseOnHover:false });

$('#all_data_user').mouseover( function () {
$('#avatares').hide();
$('#datos_user').show();
}).mouseout(function(){
$('#avatares').show();
$('#datos_user').hide();
});
//imagenes

$('.items .item').each(function () {
        title = $(this).attr('title');
        $(this).append('<span class="caption">' + title + '</span>');
        $(this).attr('title','');
    });

    $('.items .item').hover(
        function () {
            $(this).siblings().css({'opacity': '0.1'});
            $(this).css({'opacity': '1.0'}).addClass('effect');
            $(this).children('.caption').show();
        },
        function () {
            $(this).children('.caption').hide();
        }
    );

    $('.items').mouseleave(function () {
        $(this).children().fadeTo('100', '1.0').removeClass('effect');
    });


//user bloque

	var first = 0;
	var speed = 700;
	var pause = 3500;

		function removeFirst(){
			first = $('ul#listticker li:first').html();
			$('ul#listticker li:first')
			.animate({opacity: 0}, speed)
			.fadeOut('slow', function() {$(this).remove();});
			addLast(first);
		}

		function addLast(first){
			last = '<li style="display:none">'+first+'</li>';
			$('ul#listticker').append(last)
			$('ul#listticker li:last')
			.animate({opacity: 1}, speed)
			.fadeIn('slow')
		}

	interval = setInterval(removeFirst, pause);


});// final


