var altura = 0;
	var velocidad = 10;
	function extender() {
		var objeto = document.getElementById('texto');
		objeto.style.visibility = 'visible';
		altura += velocidad;
		if (!(altura >= 100)) {
			objeto.style.height = altura;
			window.setTimeout ("extender();", 20);
		}
		
	}
	function contraer() {
		var objeto2 = document.getElementById('texto');
		altura -= velocidad;
		if (!(altura <= 0)) {
			objeto2.style.height = altura;
			window.setTimeout ("contraer();", 20);
		} else {
			objeto2.style.visibility = 'hidden';
			objeto2.style.height = '0px';
		}
		
	}
	function extender_contraer () {
		if (	altura <= 0) {
			extender();
		} else {
			contraer();
		}
	}
	var altura2 = 0;
	var velocidad2 = 10;
	function extender2() {
		var objeto = document.getElementById('texto2');
		objeto.style.visibility = 'visible';
		altura2 += velocidad2;
		if (!(altura2 >= 100)) {
			objeto.style.height = altura2;
			window.setTimeout ("extender2();", 20);
		}
		
	}
	function contraer2() {
		var objeto3 = document.getElementById('texto2');
		altura2 -= velocidad2;
		if (!(altura2 <= 0)) {
			objeto3.style.height = altura2;
			window.setTimeout ("contraer2();", 20);
		} else {
			objeto3.style.visibility = 'hidden';
			objeto3.style.height = '0px';
		}
		
	}
	function extender_contraer2 () {
		if (	altura2 <= 0) {
			extender2();
		} else {
			contraer2();
		}
	}
	var altura3 = 0;
	var velocidad3 = 10;
	function extender3() {
		var objeto = document.getElementById('texto3');
		objeto.style.visibility = 'visible';
		altura3 += velocidad3;
		if (!(altura3 >= 100)) {
			objeto.style.height = altura3;
			window.setTimeout ("extender3();", 20);
		}
		
	}
	function contraer3() {
		var objeto4 = document.getElementById('texto3');
		altura3 -= velocidad3;
		if (!(altura3 <= 0)) {
			objeto4.style.height = altura3;
			window.setTimeout ("contraer3();", 20);
		} else {
			objeto4.style.visibility = 'hidden';
			objeto4.style.height = '0px';
		}
		
	}
	function extender_contraer3 () {
		if (	altura3 <= 0) {
			extender3();
		} else {
			contraer3();
		}
	}