$(document).ready(function(){
	
  //hide toolbar and make visible the 'show' button
	$("span.downarr a").click(function() {
    $("#toolbar").slideToggle("fast");
    $("#toolbarbut").fadeIn("slow");    
  });
  //show toolbar and hide the 'show' button
  $("span.showbar a").click(function() {
    $("#toolbar").slideToggle("fast");
    $("#toolbarbut").fadeOut();    
  });
  
  //show tooltip when the mouse is moved over a list element 
  $("ul#social li").hover(function() {
		$(this).find("div").fadeIn("fast").show(); //add 'show()'' for IE
    $(this).mouseleave(function () { //hide tooltip when the mouse moves off of the element
        $(this).find("div").hide();
    });
  }); 
  //don't jump to #id link anchor 
  $(".menutit, span.downarr a, span.showbar a").click(function() {
   return false;                                         
	});	

  $(".abrir").click(function() {	
	   $("#toolbar").css("height","200px");
	  $(".conteudoBarra").fadeIn("fast");
	  $("#barra").css("display","none");
  });	
  $(".imovel").click(function() {	
	   $("#toolbar").css("height","200px");
	  $(".conteudoBarra").fadeIn("fast");
	  $("#barra").css("display","none");
 });	
  $(".fechar").click(function() {	
	  $(".conteudoBarra").css("display","none");
	   $("#toolbar").css("height","36px");
		$("#barra").css("display","block");

 });  
});
