     
     if !@el? or @el.nodeType isnt 1
       return !silent and console?.warn 'oriDomi: First argument must be a DOM element'
-
+    
+    {@shading, @vPanels, @hPanels} = @settings
     @$el = $ @el if $
     elStyle = root.getComputedStyle @el
 

              parseInt(elStyle.paddingTop, 10) +
              parseInt(elStyle.paddingBottom, 10)

    @panelWidth = Math.floor(@width / @settings.vPanels) or 1
    @panelHeight = Math.floor(@height / @settings.hPanels) or 1
    @vPanels = []
    @hPanels = []
    @leftShaders = []
    @rightShaders = []
    @topShaders = []
    @bottomShaders = []
    
    if @settings.shading
      shader = document.createElement 'div'

    hMask.style.overflow = 'hidden'
    hMask.style.height = @panelHeight + 'px'
    hMask.appendChild contentHolder

    if @shading
      topShader = shader.cloneNode()
      topShader.className = 'oridomi-shader-top'
      bottomShader = shader.cloneNode()
