var tempor = null;
		var contador=0;	
		function suavisar(){
			var navegador = navigator.appName
				if (navegador == "Microsoft Internet Explorer"){
					x=1;
					while(x<13){
						tempor = setTimeout("reducir_opa(100,"+x+")", 1);
						x++;
					}}
				else{
					x=1;
					while(x<13){
						tempor = setTimeout("ocl(1,"+x+")", 1);
						x++;
				}}
				return false;
		}
		//IE
		function aumentar_opa(n,m){	
			document.getElementById('img'+m).style.filter='alpha(opacity='+n+')';
			n=n+1;
			if(n<100)
				tempor = setTimeout("aumentar_opa("+n+","+m+")", 1);
			else{
					tempor = setTimeout("reducir_opa("+n+","+m+")", 2000);
				}
			return false;
		}
		function reducir_opa(n,m){	
			document.getElementById('img'+m).style.filter='alpha(opacity='+n+')';
				n=n-1;
			if(n>0)
				tempor = setTimeout("reducir_opa("+n+","+m+")", 1);
			else{
					tempor = setTimeout("aumentar_opa("+n+","+m+")", 1);
				}
				return false;
		}
		//nestape
		function most(n,m){	
			document.getElementById('img'+m).style.opacity = n;
			n=n+0.01;
			if(n<1)
				tempor = setTimeout("most("+n+","+m+")", 1);
			else{
					tempor = setTimeout("ocl("+n+","+m+")", 2000);
				
				}
				return false;
		}
		function ocl (n,m){
			document.getElementById('img'+m).style.opacity = n;
			if(contador==0)
				n=n-0.05;
			else
				n=n-0.01;
			
			if(n>0)
				tempor = setTimeout("ocl("+n+","+m+")", 1);
			else{
				
					tempor = setTimeout("most("+n+","+m+")", 1);
				}
				return false;
		}
		
