slider = {
		_count : 0,
		_length : null,
		_timeOutID : null,
		_timer : 5,

	start : function(){
		with(this){ _preLoader(); _length = imgs._imagens.length; _work(); }
	},
	
	_preLoader : function(){
		for(x in imgs._imagens){
			var image = new Image();
			image.src = imgs._imagens[x][0];
		}
	},
	
	_work : function(){
		with(this){
			(_count == _length) ? _count = 0 : (_count < 0) ? _count = _length-1 : void(0);
			var current = imgs._imagens[_count];
			_exchange(current);
			if(imgs._imagens.length>1){
				(typeof(_timeOutID) == "number") ? clearTimeout(_timeOutID) : void(0);
				_timeOutID = setTimeout(function(){ next(); }, (Number(_timer)*1000));
			}
		}
	},

	_exchange : function(img){
		$("#slide .pic img").fadeTo("slow", 1.0);
		$(".block").fadeTo("slow", 1.0);
		$("#slide .pic img").attr({
			src: img[0],
			title: img[1],
			alt: img[1]
		});
		$(".dcontent a").html(img[1]);
		$(".dcontent a").attr('href',img[2]);
	},
	
	next : function(){
	with(this){
		$("#slide .pic img").fadeTo("slow", 0.2);
		$(".block").fadeTo("slow", 0.2);
		setTimeout(function(){ _count++; _work(); }, 500);
	}
	},
	
	tControl : function(act){
		with(this){
		(act=="m")?((_timer==4)?void(0):_timer=_timer-1):((_timer==9)?void(0):_timer= _timer +1);
		}
	}
};