function hide(divId){
  this.divId = divId
  this.divObj=document.getElementById(divId)
  //this.divObj.style.overflow="hidden"
  //divId.divObj.style.height=0
  this.divObj.style.visibility="hidden"
}

function unhide(divId){
  this.divId = divId
  this.divObj=document.getElementById(divId)
  //this.divObj.style.overflow="hidden"
  //divId.divObj.style.height=0
  this.divObj.style.visibility="visible"
}


function menu() {
jQuery(document).ready(
function(){  

    jQuery("ul.topnav li a").hover(function(){

        jQuery(this).parent().children("ul.subnav").stop(true,true).slideDown('fast').show();
      	jQuery(this).parent().find("ul.subnav li").hover(function(){jQuery(this).children("ul.navpressed").stop(true,true).slideDown('slow').show();},function(){
      		jQuery(this).children("ul.navpressed").slideUp('fast');	
      	});
        
  
        /*jQuery(this).parent().hover(function() {}, function(){  
        	jQuery(this).parent().find("ul.subnav").stop(true,true).slideUp('slow');

        });*/
        jQuery(this).parent().mouseleave(function(){  
        	jQuery(this).parent().find("ul.subnav").stop(true,true).delay(500).slideUp('slow');

        });  
  
 
        }).hover(function() { 
            jQuery(this).parent().find("navpressed").slideUp('fast').show(); 

        }, function(){
            jQuery(this).removeClass("subhover");
    });
    
    jQuery("ul.subnav li a").hover(function(){
      jQuery(this).parent().find("subpressed").show();        
      
        });  
});


}

function menu2(){

$(document).ready(function() {
		$(function(){
			$("#menu-wrapper").menuhover(2);
		});
});

}

function tendina(){

     $(document).ready(

function(){
	 
    $(".progetti").hover(function(){
    

        temp1 = $(this).children(".tendina");
        setTimeout("temp1.slideDown('fast').show();",500);        

        },function(){            
               temp = $(this).children(".tendina");  
               setTimeout("temp.fadeOut();",700);
               $(this).parent().find(".tendina").fadeOut();
}) 
}
)};

function tendina2(){
	$(document).ready(
		function(){
			
			$(".progetti").hover(
				function(){
					//$(this).parent().parent().find(".tendina").stop(true,false);
					$temp = $(this).children(".tendina");
					setTimeout("$temp.stop(true,true).slideDown('slow')",0);
				},
				function(){
					$temp.slideUp('fast');			
				}				
			);
			
		}
	);
}




