adding ability to specify ads every N pages, for use with chicago tribune javascript ad library
recompile after removing some debug code