to your HTML Add class="sortable" to any table you'd like to make sortable Click on the headers to sort Thanks to many, many people for contributions and suggestions. Licenced as X11: http://www.kryogenix.org/code/browser/licence.html This basically means: do what you want with it. */ var stIsIE = /*@cc_on!@*/false; sorttable = { init: function() { // quit if this function has already been called if (arguments.callee.done) return; // flag this function so we don't do the same thing twice arguments.callee.done = true; // kill the timer if (_timer) clearInterval(_timer); if (!document.createElement || !document.getElementsByTagName) return; sorttable.DATE_RE = /^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/; forEach(document.getElementsByTagName('table'), function(table) { if (table.className.search(/\bsortable\b/) != -1) { sorttable.makeSortable(table); } }); }, makeSortable: function(table) { if (table.getElementsByTagName('thead').length == 0) { // table doesn't have a tHead. Since it should have, create one and // put the first table row in it. the = document.createElement('thead'); the.appendChild(table.rows[0]); table.insertBefore(the,table.firstChild); } // Safari doesn't support table.tHead, sigh if (table.tHead == null) table.tHead = table.getElementsByTagName('thead')[0]; if (table.tHead.rows.length != 1) return; // can't cope with two header rows // Sorttable v1 put rows with a class of "sortbottom" at the bottom (as // "total" rows, for example). This is B&R, since what you're supposed // to do is put them in a tfoot. So, if there are sortbottom rows, // for backwards compatibility, move them to tfoot (creating it if needed). sortbottomrows = []; for (var i=0; i
Leave it to the statisticians of the U.S. Census for being able to come up with the following statistics related to Halloween in the U.S.:
- 36.4 million
The estimated number of potential "trick-or-treaters" — 5 to 13-year-olds - across the United States in 2004, a decline of 381,000 from 2003. Of course, many other "kids" - older than 13, and younger than 5 - also go "trick-or-treating."
- 6
Number of states that, contrary to the national trend, experienced an increase in their elementary school-age population (children between 5 and 13) between 2003 and 2004. Arizona (8,400), Nevada (7,500) and Florida (7,100) led the way, with North Carolina, Colorado and Georgia rounding out the list.
In 2004, Utah had the highest proportion of its total population in the 5-to-13 age group (14.9 percent), followed by Alaska (14.1 percent).
- 106 million
- Number of potential stops for "trick-or-treaters," i.e., housing units occupied year-round.
- 998 million pounds
- Total pumpkin production of major pumpkin-producing states in 2004. Illinois, with a production of 457 million pounds, led the country. Pumpkin patches in California, Ohio, Michigan, Pennsylvania and New York also produced a lot of pumpkins: each state produced at least 70 million pounds worth. The value of all the pumpkins produced by these states was $100 million.
- 1,271
- Number of U.S. manufacturing establishments that produced chocolate and cocoa products in 2003. These establishments employed 43,379 people and shipped $12 billion worth of goods that year. California led the nation in the number of chocolate and cocoa manufacturing establishments, with 146, followed by Pennsylvania, with 120.
- 519
- Number of U.S. establishments that manufactured nonchocolate confectionary products in 2003. These establishments employed 23,343 people and shipped $7 billion worth of goods that year. California also led the nation in this category, with 79 establishments.
- 25 pounds
- Per capita consumption of candy by Americans in 2004; it is believed a large portion of this is consumed by kids around Halloween.
- 2,581
- Number of formal wear and costume rental establishments across the nation in 2003.
Finally, the U.S. Census Bureau has some thoughts on where you might like to spend October 31:
Happy Halloween!
Welcome to the blogosphere's toolchest! Here, unlike other blogs dedicated to analyzing current events, we create easy-to-use, simple tools to do the math related to them so you can get in on the action too! If you would like to learn more about these tools, or if you would like to contribute ideas to develop for this blog, please e-mail us at:
ironman at politicalcalculations
Thanks in advance!
Closing values for previous trading day.
This site is primarily powered by:
The tools on this site are built using JavaScript. If you would like to learn more, one of the best free resources on the web is available at W3Schools.com.