// JavaScript Document

 $(document).ready(function() {
// Collapse everything but the first menu:
	 // Expand or collapse:
	 
	 showtime = "";
	 	 
	  $(".imgtrabalho").mouseover(function(){
			$(this).children(".legenda").animate({"bottom": "0px"}, "fast");
			clearInterval(showtime);
      }).mouseout(function(){
				if($("#menu").val() == 0) {
					showtime = setInterval(function () {
						$(".legenda").animate({"bottom": "-35px"}, "fast");
						clearInterval(showtime);
					}, 100);
				}				
      });
	  
	  $(".legenda").mouseover(function(){
	  		clearInterval(showtime);
	  		$("#menu").val("1");
      }).mouseout(function(){
	  		$("#menu").val("0");
      });
 
 });
 
 function menuflash(oque) {
 
 	if(oque == "abre") {
		$(".topo").css({"height": "430px"});
	} else {
		$(".topo").css({"height": "205px"});
	}
 
 }
 
 function move_box() {
    var offset = 0; // set offset (likely equal to your css top)
    var element = document.getElementById('fixed_div');

    element.style.top = (document.documentElement.scrollTop + offset) + 'px';
}