       Requires mousewheel plugin for jQuery. 
       ###
       return unless (@mousewheel.enabled and @isFocused())
-      
+
       now = (new Date()).getTime()
       return if now - @mousewheel._lastShift < @mousewheel.minTimeBetweenShifts
       
-      viewport = $(window)
+      viewport = $ window
       viewportTop = viewport.scrollTop()
       viewportBottom = viewportTop + viewport.height()
       

          and lastTarget.height is newTarget.height \
          and lastTarget.left is newTarget.left \
          and lastTarget.top is newTarget.top \
          and lastTarget.opacity is newOpacity

        item.object.data "lastTarget", newTarget

        item.object.removeClass('rondellItemNew rondellItemFocused').stop(true)
        .css
          zIndex: newZ
          display: "block"
        .animate newTarget, fadeTime, @funcEase, =>
          if item.object.css('opacity') < @opacityMin then item.object.hide() else item.object.show()
        
        item.hidden = false
        unless item.small
          item.small = true
          if item.icon and not item.resizeable
            margin = (@itemProperties.size.height - item.icon.height()) / 2
            item.icon.stop(true).animate(
                marginTop: margin
                marginBottom: margin
              , fadeTime
            )
      else if item.hidden
        # Update position even if out of view to fix animation when reappearing
        item.object.css(
          left: newX
          top: newY
          'z-index': newZ
        )
      else
        # Hide items which are moved out of view
        item.hidden = true
        item.object.stop(true)
        .css('z-index', newZ)
        .animate(
            opacity: 0
          , fadeTime / 2, @funcEase, =>
          @hideCaption(layerNum)
        )

    shiftTo: (layerNum) =>
      if @repeating 

      
      # Start or stop auto rotation if enabled
      paused = @autoRotation.paused
      if e.type is 'mouseenter'
        # Set active rondell id if hovered
        Rondell.activeRondell = @id
        
