Concept of current class is well-explained in this article: http://yugui.jp/articles/846