// JavaScript Document

var prevTimes = 0;
var theMove = 0;
var x = 0;

function slideFolio(col){
	<!--var x = ((col-1)*-525)-->
	
	if(col == 2){
		theMove = theMove - 541;
		x = theMove;
	}else if (col == 1){
		if (x < 0){
			theMove = theMove + 541;
			x = theMove;
		}
	}
	
	var folioChange = new Fx.Tween('thegallery', {duration:1000});
	folioChange.start('left',x);
	var cur = "trigger"+col;
	$(cur).addClass('current');

	for (i=1;i<=8;i++){
		var loopLI = "trigger"+i;
		if (cur==loopLI){}else{
			$(loopLI).removeClass('current');
		}
	}
}

function scrollTimes(col){
	prevTimes = prevTimes + col;
	return prevTimes;
}

