');
// Setting the height of the ul to the height of the tallest page:
ul.height(maxHeight);
var swSlider = ul.find('.swSlider');
swSlider.append('

').width(totalWidth);
var hyperLinks = ul.find('a.swShowPage');
hyperLinks.click(function(e){
// If one of the control links is clicked, slide the swSlider div
// (which contains all the pages) and mark it as active:
$(this).addClass('active').siblings().removeClass('active');
swSlider.stop().animate({'margin-left':-(parseInt($j(this).text())-1)*ul.width()},'slow');
e.preventDefault();
});
// Mark the first link as active the first time this code runs:
hyperLinks.eq(0).addClass('active');
return this;
}})(jQuery);
$j(document).ready(function(){
/* The following code is executed once the DOM is loaded */
// Calling the jQuery plugin and splitting the
// #holder UL into pages of 4 LIs each:
$j('#holder').sweetPages({perPage:4});
// The default behaviour of the plugin is to insert the
// page links in the ul, but we need them in the main container:
var controls = $j('.swControls').detach();
controls.appendTo('#main');
});

Thankyou 123Inks for excellent service. I ordered a package on a Friday and it arrived just in time as I ran out of black ink... I can now rely on a good supplier of ink. Again thank you and you have another satisfied customer.