var current=4;
function movenext() {
	current++;	
	total=$("#inner").attr("total");
	
	if (current>4) {
		pos=0-(((current-4)*147)+(16*(current-4)));
		$("#inner").animate({
			'margin-left': pos,
		  }, 400, function() {
			// Animation complete.
		  });
	} 
	
	if (current==total && total>4) { $("#next").hide(); $("#prev").show(); } else { $("#next").show(); }
	if (current>4 && total>4) { $("#prev").show(); }
}

function moveprev() {
	current--;	
	total=$("#inner").attr("total");
	
	if (current>=4) {
		pos=0-(((current-4)*147)+(16*(current-4)));
		$("#inner").animate({
			'margin-left': pos,
		  }, 400, function() {
			// Animation complete.
		  });
	} 
	
	if (current==4 && total>4) { $("#prev").hide(); $("#next").show(); } else { $("#prev").show(); }
	if (current>4 && total>4) { $("#next").show(); }
	
}	
