// JavaScript Document
var current = 0;
function toggle(id,total) {
	current = ((total + current + id)%total);
	//alert(current);
	for (i=0;i<total;i++) {
		if (i==current) {
			document.getElementById("no"+i).style.display = 'block';
		} else {
			document.getElementById("no"+i).style.display = 'none';
		}
	}
	document.getElementById('aGalleryControlCount').innerHTML = (current+1)+" of "+total;
}