function MoveLeft() {
	this.curPageNumb--;	
	var moveleftBtn = document.getElementById("scrollLeft");
	var moverightBtn = document.getElementById("scrollRight");
	moveleftBtn.style.visibility = 'visible';
	moverightBtn.style.visibility = 'visible';

	if (this.curPageNumb >= 1) {
		new Effect.MoveBy('ScrollThumb', 0, this.scrollWidth , {duration: 0.4,  transition: Effect.Transitions.sinoidal});
	}
	if (this.curPageNumb == 1) {
		setTimeout ( "hideScrollLeftBtn()", 400 );
	}
}

function MoveRight() {
	this.curPageNumb++;
	var moveleftBtn = document.getElementById("scrollLeft");
	var moverightBtn = document.getElementById("scrollRight");
	moveleftBtn.style.visibility = 'visible';
	moverightBtn.style.visibility = 'visible';
	if (this.curPageNumb <= this.totalPageNumb) {
		new Effect.MoveBy('ScrollThumb', 0, -this.scrollWidth , {duration: 0.4,  transition: Effect.Transitions.sinoidal});
	}
	if (this.curPageNumb == this.totalPageNumb) {
		setTimeout ( "hideScrollRightBtn()", 400 );
	}
}
function MoveTo() {
	this.xpos = (this.curPageNumb * this.scrollWidth) - this.scrollWidth;
	var moveleftBtn = document.getElementById("scrollLeft");
	var moverightBtn = document.getElementById("scrollRight");
	moveleftBtn.style.visibility = 'visible';
	moverightBtn.style.visibility = 'visible';

	new Effect.MoveBy('ScrollThumb', 0, (-this.xpos) , {duration: 0.4,  transition: Effect.Transitions.sinoidal});

	if (this.curPageNumb == 1) {
		setTimeout ( "hideScrollLeftBtn()", 400 );
	}
	if (this.curPageNumb == this.totalPageNumb) {
		setTimeout ( "hideScrollRightBtn()", 400 );
	}
}
function hideScrollLeftBtn() {
  document.getElementById("scrollLeft").style.visibility = 'hidden';
}

function hideScrollRightBtn() {
  document.getElementById("scrollRight").style.visibility = 'hidden';
}
