	/*
	Funciones de estiracion vertical
	*/
	var tEstira;
	var gObj;
	var objHeight = 0;
	function yestira(nombre, velocidad, suma, maximo,fromthere){
		gObj = document.getElementById(nombre);
		gObj.style.overflow = "hidden";
		gObj.style.position = "relative";
		if(maximo==null){
			objHeight = gObj.style.height.NumPx();
		}else{
			objHeight = maximo;
		}
		if(fromthere == null){
			gObj.style.height = "0px";
		}
		addopaque = 100 /  objHeight / 100; // muestra / total * base
		if(suma==null)suma=1;
		tEstira = setInterval("yestira2(" + suma + ")", velocidad);
	}

	function yestira2(suma){
		if(gObj.style.height.NumPx() < objHeight){
			gObj.style.height = (gObj.style.height.NumPx() + suma) + "px";
		}else{
			clearInterval(tEstira);
		}
	}
	/*
	Funciones de aparecer
	*/
	var aObj;
	var tAparece;
	var opacidad=0;
	function aparece(nombre, velocidad){
		aObj = document.getElementById(nombre);
		aObj.style.opacity = 0;
		tAparece = setInterval("aparece2()",velocidad);
	}
	function aparece2(){
		if(opacidad < 1){
			opacidad += 0.01;
			aObj.style.opacity = opacidad;
			aObj.style.filter = "alpha(opacity=" + (opacidad * 100) + ")";
		}else{
			opacidad=0;
			clearInterval(tAparece);
		}
	}
	/*
	Funciones de estiracion horizontal
	*/
	var txEstira;
	var gxObj;
	var objWidth = 0;
	function xestira(nombre, velocidad, suma, maximo,fromthere){

		gxObj = document.getElementById(nombre);
		gxObj.style.overflow = "hidden";
		gxObj.style.position = "relative";
		if(maximo==null){
			objWidth = gxObj.style.width.NumPx();
		}else{
			objWidth = maximo;
		}
		if(fromthere == null){
			gxObj.style.width = "0px";
		}
		if(suma==null)suma=1;
		txEstira = setInterval("xestira2(" + suma + ")", velocidad);
	}

	function xestira2(suma){
		if(gxObj.style.width.NumPx() < objWidth){
			gxObj.style.width = (gxObj.style.width.NumPx() + suma) + "px";
		}else{
			clearInterval(txEstira);
		}
	}
