var strLastContItem = "clima";
$("#bannerFloat .abrefecha").click(function(){
	var strNewContItem = $(this).parent("div").attr("rel");

	if (strNewContItem != strLastContItem) {
		$(this).next("div.contItem").slideDown();
		$(this).parents("#bannerFloat").find("."+strLastContItem).children("div.contItem").slideUp();
		$(this).addClass("ativo");
		$(this).parents("#bannerFloat").find("."+strLastContItem).children("a.abrefecha").removeClass("ativo");
		strLastContItem = strNewContItem;
	}

	return false;
});		

var strTop = 0;
var intval = "";
var heightSlide = $("#boxProdutosLista").height();

$(".sliderDown").hover(function(){
	intval = window.setInterval("slideDown()",1);
}, function() {
	clearInterval(intval);
});

$(".sliderUp").hover(function(){
	intval = window.setInterval("slideUp()",1);
}, function() {
	clearInterval(intval);
});

function slideDown() {
	if (strTop > (191-heightSlide)) {
		strTop = strTop - 1;
		$("#boxProdutosLista").animate({top: strTop + "px"},1)
	} else {
		clearInterval(intval);
	}
}

function slideUp() {
	if (strTop < 0) {
		strTop = strTop + 1;
		$("#boxProdutosLista").animate({top: strTop + "px"},1)
	} else {
		clearInterval(intval);
	}
}

$("#boxSolucoesNegocio .img").hover(function(){
	$(this).next(".lnk").addClass("lnk-atv");
}, function(){
	$(this).next(".lnk").removeClass("lnk-atv");
});

$("#bannerFloat .noticias .contItem ul li:last").addClass("noBorder");
