	function changeColor(id, color) {
		element = document.getElementById(id);
		element.style.background = color;
	}

	function cargar_lateral(){
			var MovMaximo = $("#contenedor").height() - 100;
			var offset = jQuery("#menu").offset();
			var topPadding = 0;
			
			jQuery(window).scroll(function() {
						if (jQuery(window).scrollTop() > offset.top) {
							var posicion = jQuery(window).scrollTop();
							if (posicion < MovMaximo) {
								jQuery("#menu").stop().animate({
									marginTop: jQuery(window).scrollTop() - offset.top + topPadding
										
								});
							}
						} else {
							jQuery("#menu").stop().animate({
								marginTop: 0
							});
						};
			});

		
	}
