boxEdges = function() {
  if (!document.getElementsByTagName) return
  var divs = document.getElementsByTagName('div')
  for (var i = 0; i < divs.length; i++) {
    var div = divs[i]
    if (Element.hasClassName(div, 'rounded'))
      createEdges(div)
  }
}

createEdges = function(object) {
  object.style.position = 'relative'
  var beforeObject = object.childNodes[0]
  var commonStyle = 'position: absolute; width: 15px; height: 15px;'
  var element = { tag: 'div', parent: object, insertBefore: beforeObject }
  element.style = commonStyle +
  ' top: 0px; left: 0px; background: url("/i/boxedges/left_top.png")'
  Element.createElement(element)
  element.style = commonStyle +
  ' top: 0px; right: 0px; background: url("/i/boxedges/right_top.png")'
  Element.createElement(element)
  element.style = commonStyle +
  ' bottom: 0px; right: 0px; background: url("/i/boxedges/right_bottom.png")'
  Element.createElement(element)
  element.style = commonStyle +
  ' bottom: 0px; left: 0px; background: url("/i/boxedges/left_bottom.png")'
  Element.createElement(element)
}