var Shadow = {
  add: function(elem)
  {
    if(Element.getStyle(elem, 'position') == 'static') Position.relativize(elem);
    var tpl = new Template('<div class="#{cname}"></div>');
    ['shadow_t', 'shadow_r', 'shadow_b', 'shadow_l',
     'shadow_tl', 'shadow_tr', 'shadow_bl', 'shadow_br'].each(function(value) {
      new Insertion.Bottom(elem, tpl.evaluate({cname:value}));
    });
  }
}
