cleaned up formatting, ran through jslint and made things more standards compliant. removed the .contains method and replaced it with an indexof call instead for IE compatability. :(