var totalItems = 14;
var nPages = Math.ceil(totalItems / 6);

var nPages = 0;
var currentPage = 1;
var pageWidth = 879;
var nPage = 0;
var marginValue = 0;

window.addEvent('domready', function(){
/*	
	$('navlink1').addEvents({	
		'mousedown': function(){
			if (currentPage+1 <= nPages) {
				currentPage++;
				marginValue = pageWidth * (currentPage - 1);
				marginValue = "-" + marginValue + "px";
				$('holder').set('tween', {
					duration: 1000,
					transition: Fx.Transitions.Quad.easeOut // This could have been also 'bounce:out'
				}).tween('margin-left', marginValue);						
				if (currentPage == nPages) {
					this.className = "disabled";
				}
				if (currentPage > 1) {
					$('navlink2').className = "enabled";
				}
				pageString = "page " + currentPage + " of " + nPages;
				$('pageDesc').set('html',pageString);
			}
		}
	});

	$('navlink2').addEvents({		
		'mousedown': function(){
			if (currentPage > 1) {
				currentPage--;
				if (currentPage == 1) {
					this.className = "disabled";
					marginValue = "0px";
				} else {
					marginValue = pageWidth * (currentPage - 1);
					marginValue = "-" + marginValue + "px";
				}
				$('navlink1').className = "enabled";				
				$('holder').set('tween', {
					duration: 1000,
					transition: Fx.Transitions.Quad.easeOut // This could have been also 'bounce:out'
				}).tween('margin-left', marginValue);
				pageString = "page " + currentPage + " of " + nPages;
				$('pageDesc').set('html',pageString);
			}
		}
	});
	$('pageDesc').set('html','page 1 of ' + nPages);
*/
});