Looks like this file could use a more closure style JavaScript... but I know Adam is tweaking it to use JQuery, so we can look at it after that's integrated.