 
     changeImage: (e) ->
         img = $(@).attr 'href'
-        oldImg = $ 'div.drm-blackout img.img-visible'
-        oldImgSrc = oldImg.attr 'src'
+        _oldImg = $ 'div.drm-blackout img.img-visible'
+        _oldImgSrc = _oldImg.attr 'src'
         speed = @speed
 
         e.preventDefault()
 
-        if oldImgSrc isnt img             
-            oldImg.fadeOut speed, ->
+        if _oldImgSrc isnt img             
+            _oldImg.fadeOut speed, ->
                 $(@).attr('src', img).fadeIn speed
 
         e.stopPropagation()

###############################################################################
"use strict"

class @DrmLightbox
    constructor: (@images = $('ul.drm-lightbox-thumbnails'), @speed = 300) ->
        self = @

        thumbnails

    createLightbox: (thumbnails) ->
        _img = $(@).attr 'href'
        # html for the actual lightbox
        
        imgVisible = $ '<img></img>',
            class: 'img-visible'
            src: _img
            alt: 'thumbnail'

        close = $ '<button></button>',
