rewrote whole thing as a jquery plugin. much easier to use