
// ALTURA
	function equalHeight(group) {
		tallest = 0;
		group.each(function() {
			thisHeight = $(this).height();
			if(thisHeight > tallest) {
				tallest = thisHeight;
			}
		});
	
	group.height(tallest);
	}

$(document).ready(function() {

	// EJECUTA ALTURAS IGUALES EN COLUMNAS
	equalHeight($(".columnas"));

	// EJECUTA NOTICIAS

	var first = 0;
	var speed = 700;
	var pause = 6000;
			
	function removeFirst(){
		first = $('ul#col li:first').html();
		$('ul#col li:first')
		.animate({opacity: 0}, speed)
		.fadeOut('slow', function() {$(this).remove();});
		addLast(first);
	}
				
	function addLast(first){
		last = '<li style="display:none">'+first+'</li>';
		$('ul#col').append(last)
		$('ul#col li:last')
		.animate({opacity: 1}, speed)
		.fadeIn('slow')
	}
			
	interval = setInterval(removeFirst, pause);	
	
	//	PIE DE IMAGENES
	$('img.captify').captify({});

	//	LIMPIAR INPUT
	//	$('.clearField').clearField();

});
