function CoolStuffModule() {
}

CoolStuffModule.prototype.startFadeIn = function(el, milliseconds) {
  
  if (document.all) {
    var elSrcElement = event.srcElement
    el.style.filter = 'progid:DXImageTransform.Microsoft.Fade(duration=' + (parseFloat(milliseconds) || 1000)/1000 + ',overlap=1.0)'
    el.filters[0].apply()  
  }
  el.style.visibility = 'visible'  
  if (document.all) {
    el.filters[0].play()
  }
}
CoolStuffModule.prototype.startFadeOut = function(el, milliseconds) {
  if (document.all) {
    el.style.filter = 'progid:DXImageTransform.Microsoft.Fade(duration=' + (parseFloat(milliseconds) || 1000)/1000 + ',overlap=1.0)'
    el.filters[0].apply()  
  }
  el.style.visibility = 'hidden'  
  if (document.all) {
    el.filters[0].play()
  }
}

CoolStuffModule.prototype.giveShadow = function(el) {
    
}

function changeImageDetails(el) {
  floatingImg.src = el.src        
}
function changeImageDetailsBack(el) {
  
}
function showImage(imageID) {
  var el = document.getElementById(imageID)
  if (!el) {
    return
  }
  var csm = new CoolStuffModule()
  csm.startFadeIn(el, 500)        
}
function hideImage(imageID) {
  var el = document.getElementById(imageID)
  if (!el) {
    return
  }
  var csm = new CoolStuffModule()
  csm.startFadeOut(el, 500)
}
