var NATURAVIDEOHISTORIA = {
    _init: function() {
        try {
            NATURAVIDEOHISTORIA._carrosel_video_historia();

        } catch (e) {
            alert(e.description);
        };
    },

    _carrosel_video_historia: function() {

        $('.boxCarossel ').each(function(index) {

            $('.boxCarossel .imgCarrosselVHistorias').each(function() {

                if ($(this).index() == 0) {
                    $(this).find('.thumbGrande').css({ 'position': 'absolute', 'left': '0px', 'top': '-30px' });
                    $(this).find('.thumbPequena').css({ 'position': 'absolute', 'left': '0px' })
                    $(this).find('.boxAcoesCarrosel').css({ 'position': 'absolute', 'left': '215px', 'top': '115px' })
                }
                if ($(this).index() == 1) {
                    $(this).find('.thumbGrande').css({ 'position': 'absolute', 'left': '150px', 'top': '-30px' });
                    $(this).find('.thumbPequena').css({ 'position': 'absolute', 'left': '206px' })
                    $(this).find('.boxAcoesCarrosel').css({ 'position': 'absolute', 'left': '360px', 'top': '115px' })
                }
                if ($(this).index() == 2) {
                    $(this).find('.thumbGrande').css({ 'position': 'absolute', 'left': '333px', 'top': '-30px' });
                    $(this).find('.thumbPequena').css({ 'position': 'absolute', 'left': '412px' })
                    $(this).find('.boxAcoesCarrosel').css({ 'position': 'absolute', 'left': '550px', 'top': '115px' })
                    
                }
            })

            $('.boxCarossel .imgCarrosselVHistorias').hover(
				function() {

				    $(this).eq(index).addClass('imgAtiva imgCarrosselVHistorias');
				    $(this).find('.thumbGrande').show();
				    $(this).find('.thumbPequena').hide();
				    $(this).find('.boxAcoesCarrosel').show();
				},
				function() {
				    $(this).eq(index).removeClass('imgAtiva');
				    $(this).find('.thumbGrande').hide();
				    $(this).find('.thumbPequena').show();
				    $(this).find('.boxAcoesCarrosel').hide();
				}
			)
        })
    }
};







