anchor.diff:  						href = linkto & "#page+1#";
   						next = tag.a(next, {href=href});
   					}
  -					if ( len(images) mod images_per_page eq 0 )
  -						total_pages = len(images) / images_per_page;
  -					else
  -						total_pages = 1 + ( len(images) - (len(images) mod images_per_page) ) / images_per_page;
  -					center = "Page #page# of #total_pages#";
  +
   					prc.Pagenation = tag.table(tag.TR(tag.TD(prev) & tag.td(center) & tag.td(next)), {class="gallery-builder-pagenation"});
   				}
   				else
  
positive.code: 						href = linkto & "#page+1#";
  						next = tag.a(next, {href=href});
  					}
  					else if ( page eq len(images) )
  					{
  						prev = tag.span("&lt;&lt;", {class="gallery-builder-page-enabled"});
  						href = linkto & "#page-1#";
  
negative.code: 				var images_per_page = prc.gallery.getImages_per_page();
  				if ( len(images) gt prc.gallery.getImages_per_page() )
  				{
  					if ( len(images) mod images_per_page eq 0 )
  						total_pages = len(images) / images_per_page;
  					else
  						total_pages = 1 + ( len(images) - (len(images) mod images_per_page) ) / images_per_page;
  					var center = "Page #page# of #total_pages#";
  					var page = event.getValue("page", 1);
  					if ( page lt 2 )
  					{
  						prev = tag.span("&lt;&lt;", {class="gallery-builder-page-disabled"});
  