To avoid cluttering the global scope, why don't we wrap the entire program with an anonymous function? —mc10 (t/c) 04:05, 30 August 2011 (UTC)Reply
$(document).ready(mainArchiveSection);
$(document).ready(function() { ... });