var navigationDisable = 0;

function nextPage() {	
	if(navigationDisable == 0) {
		if(currentPage < maxPages) {
			new Effect.MoveBy('cars_table', 0, -552, {duration: 0.3, limit: 1, afterFinish: function() { navigationDisable = 0 } });	
			currentPage++;
			$('pageNumber').innerHTML = currentPage;
			navigationDisable = 1;
		}
	}
}
function previousPage() {
	if(navigationDisable == 0) {
		if(currentPage > 1) {
			new Effect.MoveBy('cars_table', 0, +552, {duration: 0.3, limit: 1, afterFinish: function() { navigationDisable = 0 } });
			currentPage--;
			$('pageNumber').innerHTML = currentPage;		
			navigationDisable = 1;		
		}
	}
}