// JavaScript Document
      $(document).ready(function(){
		var btn = $(".item-closed");
		btn.mouseover(function(){
				$(this).animate({"backgroundPosition":20},200);				
			});//
		btn.mouseout(function(){
				$(this).animate({"backgroundPosition":0},200);			
			});//
		btn.click(function(){
			var objAlvo = $(this).parent();
			var tamanhoLI = objAlvo.height();			
			if(tamanhoLI > 52){			
				var objLI = objAlvo.animate({"height":52},500);
				$(this).toggleClass("item-closed").toggleClass("item-opened");
			}else{
				$(".top-menu li").animate({"height":52}, 600);				
				var texto = objAlvo.find("div");
				var altura = texto.height() + 80;
				var objLI = objAlvo.animate({"height":altura},300);
				$(".top-menu li a").removeClass("item-opened").addClass("item-closed");
			}
			$(this).toggleClass("item-closed").toggleClass("item-opened");
			return false;
		});
	});

			function setActiveStyleSheet(title) {
			   var i, a, main;
			   for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
				 if(a.getAttribute("rel").indexOf("style") != -1
					&& a.getAttribute("title")) {
				   a.disabled = true;
				   if(a.getAttribute("title") == title) a.disabled = false;
				 }
			   }
		}
		function fecharPopup() {
		    document.getElementById('popup').style.display = 'none';
		}
		// Aqui definimos o tempo para fechar o pop-up automaticamente
		function aPopup() {
		    document.getElementById('popup').style.display = 'block';
		    setTimeout("fecharPopup()", 20000);
		}			

  

