/*
Si te gusta esté código, copiatelo y utilizalo. 
El conocimiento es para todoas.
http://amaxofobia.awardspace.com/index.html
*/
function fondo(lugar,color){
	if (color == 1){
	lugar.className = "estilofplateado";
	lugar.style.cursor = "pointer";
	} if (color == 2 ){
	lugar.className = "estilofgris";
	} if (color == 3 ){
	lugar.className = "estilofclaro";
	lugar.style.cursor = "pointer";
	} if (color == 4 ){
	lugar.className = "estilofblanco";
	}
}
function fondovinc(lugar,color){
	if (color == 1){
	lugar.className = "estilofclaro";
	lugar.style.cursor = "pointer";
	}else{
	lugar.className = "estilofblanco";
	}
}

/* aumentar/reducir tamanio de la fuente */
function zoom(resolucion){
texto = document.getElementById("txt");
	if (resolucion == "in"){
		if (texto.className == "estilo1"){
		texto.className = "estilo2";
		zoomtxt("del");
		}else{
			if (texto.className == "estilo2"){
			texto.className = "estilo3";
			zoomtxt("del");
			}else{
				if (texto.className == "estilo3"){
				texto.className = "estilo4";
				zoomtxt("del");
				}else{
				zoomtxt("mas");
				}
			}
		}
	}
	if (resolucion == "out"){
		if (texto.className == "estilo4"){
		texto.className = "estilo3";
		zoomtxt("del");
		}else{
			if (texto.className == "estilo3"){
			texto.className = "estilo2";
			zoomtxt("del");
			}else{
				if (texto.className == "estilo2"){
				texto.className = "estilo1";
				zoomtxt("del");
				}else{
				zoomtxt("menos");
				}
			}
		}
	}
	if (resolucion == "orig"){
	texto.className = "estilo1";
	zoomtxt("del");
	}
}
function zoomtxt(cantidad){
informar = document.getElementById("escribir");
	switch (cantidad){
	case "mas": informar.innerHTML = "<div class='estiloba'>Tamaño m&aacute;ximo</div>";break;
	case "menos": informar.innerHTML = "Tamaño m&iacute;nimo";break;
	default: informar.innerHTML = "&nbsp;";
	}
}

/* variables de tapacont() */
dnd = new Array ("img0","img1");
img = new Array ("imgs/amaxofobia-0a.png","imgs/amaxofobia-0b.png","imgs/amaxofobia-1a.png","imgs/amaxofobia-1b.png");
pst = new Array ("pst0a","pst0b","pst1a","pst1b");
function tapacont(valor,donde,pic,pestania1,pestania2){
	if (valor == 0){
		document.getElementById(dnd[donde]).src=img[pic];
		document.getElementById(pst[pestania1]).className="estilocajaon";
		document.getElementById(pst[pestania2]).className="estilocajaoff";
	}else{
		document.getElementById(dnd[donde]).src=img[pic];
		document.getElementById(pst[pestania1]).className="estilocajaoff";
		document.getElementById(pst[pestania2]).className="estilocajaon";
	}
}
function pestcursor(lugar){
	if (lugar.className == "estilocajaoff"){
		lugar.style.cursor = "pointer";		
	}else{
		lugar.style.cursor = "auto";
	}
}