			var mouse=false;
			$(document).ready(function(){

				function altera_imagem(src, link){
					$("#B86-imagem img").remove();
					img = new Image();
					$(img)
						.load(function () {
							$(this).hide();
							$('#B86-imagem a').append(this);
							$('#B86-imagem a').attr("href", link);
							$(this).fadeIn();
						})
					.error(function () {})
					.attr('src', src);
				}
				function altera_texto(titulo, descricao, link){
					$("#B86-descricao h3 a").text(titulo);
					$("#B86-descricao p a").text(descricao);
					$("#B86-descricao a").attr("href", link)
				}

				$.interval(function(){	// plugin timeout
					// se o usuário não estiver com o mouse sob algum li
					if(mouse==false){
						// objeto recebe o elemento li ativo
						$curr = $("#B86carousel-list li.active");
						// verifica se o elemento corrente é o último
						// afim de corrigir a reiniciação
						if($curr.html() == $("#B86carousel-list li:last").html()){
							$next = $("#B86carousel-list li:first");
						}else{
							$next = $("#B86carousel-list li.active").next();
						}
						// variavel recebe o elemento src da proxima imagem
						next_src = $next.find("img").attr("src");
						next_link = $next.find("a").attr("href");
						next_titulo = $next.find("a").text();
						next_descricao = $next.find("a").attr("title");
						altera_imagem(next_src, next_link);
						altera_texto(next_titulo, next_descricao, next_link);
						$curr.toggleClass("active");
						$next.toggleClass("active");
					}
				}, 5000);

				$("#B86carousel-list li").mouseover(function(){
					mouse=true;
					$("#B86carousel-list li").removeClass("active");
					$curr = $(this);
					next_src = $curr.find("img").attr("src");
					next_titulo = $curr.find("a").text();
					next_descricao = $curr.find("a").attr("title");
					next_link = $curr.find("a").attr("href");
					altera_imagem(next_src, next_link);
					altera_texto(next_titulo, next_descricao, next_link);
					$curr.toggleClass("active");
				});
				$("#B86carousel a").mouseover(function(){
					mouse=true;
				});
				$("#B86carousel a").mouseout(function(){
					mouse=false;
				});

			});
