function Move(tmp_idelement,tmp_showLength) {
	this.prefixLeftArrow = "leftArrow";//imagem com evento move_left
	this.prefixRightArrow = "rightArrow";//imagem com evento move_right
	this.prefixPanel = "panel";//div que terá sua margem alterada
	
	this.idElement = tmp_idelement;//define o nome do elemento: var moveGaleria = new Move('Galeria',2);
	this.showLength = tmp_showLength;//só ativa setas depois que o total de posições for maior que esse valor
	this.position = 0;
	this.positionLength = 1;
	
	this.leftArrow;
	this.rightArrow;
	
	this.move_left = function(tmp_width) {
		if (this.position < 0) {
			this.position++;
			margin = this.position * tmp_width + 1;
			Tween.addTween($(this.prefixPanel+this.idElement), {_marginLeft: margin, time: 1, transition: "circOut"});
			
			this.rightArrow.style.display = "";
		}
		if (this.position == 0) {
			this.leftArrow.style.display = "none";
		}
	}
	this.move_right = function(tmp_width) {
		if ((this.position + this.positionLength) > 1) {
			this.position--;
			margin = this.position * tmp_width;
			Tween.addTween($(this.prefixPanel+this.idElement), {_marginLeft: margin, time: 1, transition: "circOut"});
			
			this.leftArrow.style.display = "";
		}
	
		if ((this.position + this.positionLength) == this.showLength) {
			this.rightArrow.style.display = "none";
		}
	}
	this.init = function(tmp_positionLength){
		if(!this.leftArrow){
			this.leftArrow = document.getElementById(this.prefixLeftArrow+this.idElement);
		}
		if(!this.rightArrow){
			this.rightArrow = document.getElementById(this.prefixRightArrow+this.idElement);
		}
		
		this.positionLength = tmp_positionLength;
		if(this.positionLength > this.showLength){
			if (this.position >= 0) {
				this.leftArrow.style.display = "none";
				this.rightArrow.style.display = "";
			}
		}
	}
}
