// JavaScript Document

	cantPalabras = 35;
	
	$(document).ready(function() {
		
		$("#home .bloqueNews .texto div, #home .bloqueMedia .textoMedia div").each(function(index){
			
			text = $(this).html();
			
			cortado = text.split(" ")
			
			muestra = "";
			oculta = "";
			
			
			for (i=0; i<cantPalabras; i++)
			{
				if(cortado.length > 0) {
					muestra += cortado.shift() + " ";
				}
			}
			
			$(this).html(muestra);
			$(this).append("...");
			
		});
	});
