<!--
	/*
	Params:
		c = container de imagens - id da div que contem as imagens
		t = tempo entre a exibição das imagens - em milesegundos
		s = velocidade do esmaecer - em milesegundos
	*/	
	function rotativo(c,t,s){
		this.imgs = c.getElementsByTagName('img');
		this.timer = t;
		this.speed = s;
	}
	
	rotativo.prototype = {
		init: function(){
			for(var i=0;i<this.imgs.length;i++){
				this.imgs[i].style.display = 'none';
				this.change(this.imgs[i],0);
			}
			if(this.imgs.length > 0){this.opac(this.imgs[0],101);}
			if(this.imgs.length > 1){this.atual(this.imgs[0],this.imgs[1])};
		},
		atual: function(atual,prox){
			var trans = atual.style.opacity * 100;
			if(trans > 0){
				this.change(atual,'Sub');
				setTimeout('this.atual',200,'atual,prox');
			}
			else{
				this.prox(prox);
			}
		},
		prox: function(prox){
			var trans = prox.style.opacity * 100;
			if(trans < 100){
				this.change(prox,'Add');
				setTimeout('this.prox',200,'prox');
			}
			else{
				//setTimeout('this.atual',5000,'atual,prox');
			}
		},
		change: function(obj,tipo){
			var trans = obj.style.opacity * 100;
			if(tipo=='Sub'){
				trans -= this.speed;
				this.opac(obj,trans);
			}
			else if(tipo=='Add'){
				trans += this.speed;
				this.opac(obj,trans);
			}
		},
		opac: function(obj,trans){
			obj = obj.style;
			obj.filter = "alpha(opacity=" + trans + ")"; 
			obj.opacity=(trans/101);
			obj.MozOpacity=(trans/101);
			obj.KhtmlOpacity=(trans/101);
		}
	}
-->
