function showMenu(){

	$("#header").animate({
		bottom: "0px"
	}, 300 );
		
}

function loadlogo(){

	$("body.home #header h1").animate({ opacity: 1 }, 300);

}

function loadmenu(){

	$("body.home #menu").animate({ opacity: 1 }, 300);

}

function loadlogos(){

	$("body.home #header #logos").animate({ opacity: 1 }, 300);

}

$(document).ready(function() {
	
	/*
	$("body.home #header h1, body.home #menu, body.home #header #logos").css('opacity',0);
	
	setTimeout("loadlogo()",2000);
	setTimeout("loadmenu()",3000);
	setTimeout("loadlogos()",4000);
	*/

	/* MENU HOVER */
	
	$("#menu li a").hover(
	
		function(){
			
			var menuActivo = $(this).parent().attr('class');
			
			if( menuActivo.indexOf('current_page_item') == -1 ){
			
				$(this).animate({
						height: "37px"
					}, 100 );
	
			}
				
		},
		
		function () {
			
			var menuActivo = $(this).parent().attr('class');
			
			if( menuActivo.indexOf('current_page_item') == -1 ){
		  
				$(this).animate({
					height: "19px"
				}, 200 );
			
			}
		
		}
	
	);

	/* MENU CLICK */
	
	$("#menu li a").click(function(){
		$("#header").animate({
			bottom: "-239px"
		}, 300 );
	});
	
	/* SUBMENU */
	
	$("#submenu li a").hover(function(){
		$(this).animate({
			paddingRight: "40px"
		}, 100 );
	},
	function(){
			$(this).animate({
				paddingRight: "30px"
			}, 200 );		
	});
	
	/* FADE */
	
	$(".fade, #gallery img").hover(
		function () {
		  $(this).fadeTo("fast", 0.6);
		},
		function () {
		  $(this).fadeTo("fast", 1);
		}
	);
	
	/* CONTACTO */
	
	/*
	$("#content.contact ul li").hover(function(){
		$(this).find('.googlemaps').css('display','block');
	},
	function(){
			$(this).find('.googlemaps').css('display','none');		
	});
	*/

	/* LIGHTBOX */
	
	$("a[rel='gallery']").colorbox();
	
	/* TABLAS */
	
	$(".tabla tr:odd").css("background-color", "#eeeeee");
		 
});
