function toggle(obj) {
	if (document.layers){
		d1=document.layers[obj];
		if (d1.visibility=="hide"){
			d1.visibility="show";
		}else{
			d1.visibility="hide";
		}
	}else{
		if (document.getElementById){
			d1=document.getElementById(obj);
		}else if (document.all){
			d1=document.all[obj];
		}else{
			return;
		}
		if (d1.style.display=="none"){
			d1.style.display="block";
		}else{
			d1.style.display="none";
		}
	}
}

function next(){
	if(currPage != maxPages){
			$('thumbs'+currPage+'row').style.display = 'none';
			currPage++;
			$('thumbs'+currPage+'row').style.display = 'block';
			$('pageIdDiv').innerHTML = currPage+'&nbsp;/&nbsp;'+maxPages;
	}
}

function prev(){
	if(currPage != 1){

			$('thumbs'+currPage+'row').style.display = 'none';
			currPage--;
			$('thumbs'+currPage+'row').style.display = 'block';
			$('pageIdDiv').innerHTML = currPage+'&nbsp;/&nbsp;'+maxPages;

	}
}

