// JavaScript Document
	var ns4=document.layers?1:0;
	var ie=document.all?1:0;
	var ns6=document.getElementById&&!document.all?1:0;

	function Swap(Boton,Estilo)
	{
		Boton.className=Estilo;
		
	}
	function Redireccionar(Destino)
	{
		window.location=Destino;
	}
	function openPopUp(URLtoOpen, windowName, windowFeatures)
	{ 
        newWindow=window.open(URLtoOpen, windowName, windowFeatures);
    }

	function AnimaDiv(velocidad)
	{
		var objMenu1=document.getElementById('BoxTeam');
		var objSigno=document.getElementById('Signo');
		var ValorIni= objMenu1.offsetHeight;
		if 	(ValorIni == 0)
		{
		    objSigno.src="images/icon-ext.gif";
			Desplegar(ValorIni,velocidad);
		}
		else
		{
		    objSigno.src="images/icon-minim.gif";
			Replegar(ValorIni,velocidad)
		}
	}
	function Desplegar(valor,velocidad)
	{
		var aux=valor+velocidad;
		var objMenu1=document.getElementById('BoxTeam');
		var objContent=document.getElementById('TablaTeam');
		var Total =objContent.offsetHeight
		var Total2=0;
//		if(ie){
			if (valor<=Total)
			{
				objMenu1.style.height=valor+"px";
				setTimeout("Desplegar("+aux+","+velocidad+");", 1);
			}
			else
			{
				objMenu1.style.height=Total+"px";
			}
/*		}
		else if (ns6){
			Total2=document.getElementById('TablaTeam').offsetHeight;
			if (valor<=Total2)
			{
			//	document.getElementById('BoxTeam').style.left=valor;
				objMenu1.style.heigth=valor+"px";
				alert(aux);
				setTimeout("Desplegar("+aux+","+velocidad+");", 1);
			}
			else
			{
				document.getElementById('BoxTeam').style.left=Total2;
				objMenu1.style.heigth=Total2+"px";
			}
		}*/
	}			
	function Replegar(valor,velocidad)
	{
		var aux=valor-velocidad;
		var objMenu1=document.getElementById('BoxTeam');
//		if(ie){
			if (valor>=0)
			{
				objMenu1.style.height=valor+"px";
			setTimeout("Replegar("+aux+","+velocidad+");", 1);
			}
			else
			{
				objMenu1.style.height="0px";
			}
/*		}
		else if (ns6){
			if (valor>=0)
			{
				document.getElementById('BoxTeam').style.left=lw_width+valor;
				objMenu1.style.width=valor+"px";
				setTimeout("Desplegar("+aux+","+velocidad+");", 1);
			}
			else
			{
				document.getElementById('BoxTeam').style.left=lw_left;
				objMenu1.style.width="0px";
			}
		}*/
	}			

	function ShowScreen(sImg)
	{
	       showImg = document.getElementById("sshot");
	       showImg.src=("images/"+sImg);
	       showBox = document.getElementById("Box1");
	       showBox.style.visibility = "visible";
		/*showImg = eval("document.all.sshot");
		showImg.src=("images/"+sImg);
		showBox = eval("document.all.Box1");
		showBox.style.visibility = "visible";*/
	}	
	function OcultarScreen()
	{
	       showBox = document.getElementById("Box1");
	       showBox.style.visibility = "hidden";
	       showImg = document.getElementById("sshot");
	       showImg.src=("images/loading.gif");

		/*showBox = eval("document.all.Box1");
		showBox.style.visibility = "hidden";
		showImg = eval("document.all.sshot");
		showImg.src=("images/loading.gif");*/
	}			
	function MostrarDiv(obj1)
	{
		obj=document.getElementById(obj1);
		obj.style.display="inline";
	}
	function CerrarDiv(obj1)
	{
		obj=document.getElementById(obj1);
		obj.style.display="none";
	}
