       @driver = {}
       this.setupRemote
     # Based on url, load corresponding remote driver  
-    setupRemote: () ->  
+    setupRemote: () -> 
+      @driver = switch
+        when @url.indexOf('http://speakerdeck.com/') > 1 then new SpeakerdeskRemote
+        when @url.indexOf('http://slideshare.net/') > 1  then new SlideshareRemote
+        when @url.indexOf('http://www.scribd.com/') > 1  then new ScribdRemote
+        else new RabbitRemote
+
     previous: () ->
-      @driver.jump(@driver.currentSlide() - 1)
+      #@driver.jump(@driver.currentSlide() - 1a
+      @driver.previous()
     next: () ->
-      @driver.jump(@driver.currentSlide() + 1)
+      #@driver.jump(@driver.currentSlide() + 1)
+      @driver.next()
     jump: (num) ->
       @driver.jump(num)
 

    jump: () ->
    next: () ->
    previous: () ->
    getCurrentSlide: () ->

  class SpeakerdeskRemote extends Remote
    constructor: () ->
      super
    next: () ->
      f = $('.speakerdeck-iframe');
      console.log($('.controls > a.next'))
      $('.controls > a.next').click();
      $('.nav .btnNext').length && $('.nav .btnNext').click()
    previous: () ->
      f = $('.speakerdeck-iframe');
      $('.controls > a.prev').click();
      $('.nav .btnPrevious').length && $('.nav .btnNext').click()


  class SlideshareRemote extends Remote
  class ScribdRemote extends Remote
  class RabbitRemote extends Remote
    

  return {
    init: ()->

            end
          when 'next'
            remote.next
          when 'prev', 'previous'
            remote.previous
          when 'current'
            remote.getCurrentSlide
          else
            console.log "Not implement"
        #Okay, remove that command
        r = new Firebase("https://qcommander.firebaseio-demo.com//#{connection.get('token')}/qc/".concat(snapshot.name()))
        r.remove()
      this.showConnectionBoard() 

