var iter_right=0;
var iter_left=0;
var glob_amount=0;
//////////////////////////////////////////////////////////////////////////////////////////////////
function move_left(amount){
	if(glob_amount==0){
		glob_amount=amount-1;
		iter_left=amount;
		iter_right=1;
	}
	
	$(".hets-1").show();
	
	if(iter_left==amount){ //if not top line
		$(".hets-2").hide();
	}else if(iter_left==1){
		$(".heresgall").animate({"right": "-="+(glob_amount*918)+"px"}, "fast");
		iter_left=amount;
		iter_right=1;
		$(".hets-2").show();
	}else{
		$(".heresgall").animate({"right": "+=918px"}, "slow");
		iter_left++;
		iter_right--;
		$(".hets-2").show();
	}

	if(iter_right==1){
		$(".hets-2").hide();
	}
}
/////////////////////////////////////////////////////////////////////////////////////////////////
function move_right(amount){
	if(glob_amount==0){
		glob_amount=amount-1;
		iter_left=amount;
		iter_right=1;
	}
	$(".hets-2").show();
	
	if(iter_right==(Math.ceil(amount/24)-1)){
		$(".hets-1").hide();
	}

	if(iter_right<=(Math.ceil(amount/24)-1)){
		
		if(iter_right==amount){
			$(".heresgall").animate({"right": "+="+(glob_amount*918)+"px"}, "fast");
			iter_left=amount;
			iter_right=1;
		}else{
			$(".heresgall").animate({"right": "-=918px"}, "slow");
			iter_left--;
			iter_right++;
		}
	}
}

