 var pepe;
 var b=0;
 var variable=0.1
 var dir=1;
 var base;
 var origen;
 function ocultarCapa(x,t,ID){
	  if (ID=="I"){ dir=1; base=70; origen=75;}
	  else{	dir=-1; base=130; orgien=75;}	 
	  c=document.getElementById(t);
	  if (c.style.width > "200px"){
	        variable=-0.1;
			b=1;mostrar(x,t);
	 }

 }
 function mostrarCapa(x,t,ID){
	 c=document.getElementById(t);
	 if (c.style.width > "200px"){
	        variable=-0.1;
			b=1;
	  }
	  else  {
		  variable=0.1; 
		  b=0;	
	  }   
	  if (ID=="I"){ dir=1; base=70; origen=75;mostrar(x,t);}
	  else{	dir=-1; base=130; orgien=75;
      mostrar1(x,t);
	    	/*  if (c.style.width > "180px"){
	             document.getElementById('D_'+t).style.marginLeft="-190px";}	 
	           else {
	             document.getElementById('D_'+t).style.marginLeft="-10px";}*/
	  }
	 
 }
 function mostrar(x,t){	 
	   c=document.getElementById(t);
      if(!x){x=b} 
      b=x+variable; 
      c.style.opacity=b;//Firefox;
      c.style.filter="alpha(opacity="+(b*100)+")"; //IE*/  
      c.style.width=((b*190))+"px";
	  c.style.marginLeft="0px";
      if (b<1 && b>0){
		  pepe=setTimeout("mostrar(b,'"+t+"')",50);		 
      }
      else{
          clearTimeout(pepe);
     }
}

 function mostrar1(x,t){	 
      c=document.getElementById(t);
      if(!x){x=b} 
      b=x+variable; 
      c.style.opacity=b;//Firefox;
      c.style.filter="alpha(opacity="+(b*100)+")"; //IE*/  
      c.style.width=((b*190))+"px";
	  document.getElementById('D_'+t).style.marginLeft=("-" + ((b*190)))+"px";
	  if (b<1 && b>0){
		  pepe=setTimeout("mostrar1(b,'"+t+"')",50);		 
      }
      else{
          clearTimeout(pepe);
     }
}