addEvent(window, 'load', initCorners);

function initCorners() {
var settings = {
  tl: { radius: 10 },
  tr: { radius: 10 },
  bl: { radius: 10 },
  br: { radius: 10 },
  antiAlias: true
}

/*
Usage:

curvyCorners(settingsObj, selectorStr);
curvyCorners(settingsObj, Obj1[, Obj2[, Obj3[, . . . [, ObjN]]]]);

selectorStr ::= complexSelector [, complexSelector]...
complexSelector ::= singleSelector[ singleSelector]
singleSelector ::= idType | classType
idType ::= #id
classType ::= [tagName].className
tagName ::= div|p|form|blockquote|frameset // others may work
className : .name
selector examples:
  #mydiv p.rounded
  #mypara
  .rounded
*/

curvyCorners(settings, ".box");
}
