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: 							content = content & tag.starttag("tr");
  						if ( prc.gallery.getUse_lightbox() )
  						{
  							var img = tag.img({src=images[i].getThumb()});
  							var desc = images[i].getDescription();
  							var anquor = tag.a(img, {href=images[i].getImage(), alt=desc, title=desc});
  							content = content & tag.td(anquor, {class=css});
  						}
  						else
  							content = content & tag.td(tag.img({src=images[i].getImage()}));
  						if ( this.checkCloseRow(i, len(images), page, images_per_page, number_rows, number_columns) )
  							content = content & tag.endtag("tr");
  					}
  				}
  				// check if table row is not completed,
  				var j = len(images);
  				var k = j mod number_columns;
  				if ( total_pages eq page and k gt 0 )
  				{
  