$(document).ready(function() {
			var alturacontenedor = $('#contenedor').height();
			var alturacabecera = $('#cabecera').height();
			var alturamenuH = $('#menuH').height();
			var alturapie = $('#pie').height();
            var alturacontenedortotal = alturacontenedor + alturapie + alturacabecera + alturamenuH;			
  	     // $('#menuH800 a, #menu a').click(function() {
									//	  golink= $(this);
									//	  if ($(window).height()<alturacontenedortotal) {
									//		    $('#contenedor').slideUp(500, function() { $('#contenedor').hide();  }  );
									//		    $('#contenedortotal').animate({'marginTop': ($(window).height()/2)-168, 'height': '336px'}, 1000, function() {
									//										window.location = $(golink).attr('href');	}   );
									//			}
									//	 else {
									//		 $('#contenedor').animate({height:0}, 500, function() { $('#contenedor').hide(); }  );
									//	     $('#contenedortotal').animate({marginTop: "-168px", height: "336px"}, 1000, function() {window.location = $(golink).attr('href');  } );
									//		   }return false;  });

			if ($(window).height()<alturacontenedortotal)
			{ if($.browser.msie) { $( function() {	
			$('#contenedortotal').css({'marginTop' : -(($(window).height()/2)+168), 'top' : "50%"});}); }
			 
			 else if ($.browser.mozilla) { $( function() { }); }
			      else { $('#contenedortotal').css({'marginTop' : ($(window).height()/2)-168, 'top' : "50%"}); }
				  
			$('#contenedor').slideDown(400); 	
			$('#contenedortotal').animate({marginTop: 0, top:0, height: alturacontenedortotal},800);
			
			} else {
			$('#contenedor').animate({height: alturacontenedor},400);	
			$('#contenedortotal').animate({marginTop: -(alturacontenedortotal)/2, height: alturacontenedortotal},800);
			
			}
		return false;
   });
