swipejs add class to current div
<p>i am using swipejs written in pure javascript from <a href="http://swipejs.com/" rel="nofollow">http://swipejs.com/</a>, however i am not really familiar with javascript. would like to know how can I detect the event and apply the class for current shown div. Something i want like this.</p>

<pre><code>&lt;script&gt;
// slider
var slider = new Swipe(document.getElementById('slider'), {
  callback: function(e, pos) {

   // 
})
bullets = document.getElementById('position').getElementsByTagName('em')


 &lt;/script&gt;
</code></pre>
