window.onload = function()
{
    roundTheCorners();
}

function roundTheCorners()
{
  settings = {
      tl: { radius: 10 },
      tr: { radius: 10 },
      bl: { radius: 10 },
      br: { radius: 10 },
      antiAlias: true,
      autoPad: true,
      validTags: ["div"]
  }

  var myBoxObject = new curvyCorners(settings, "roundedBox");
  myBoxObject.applyCornersToAll();

  var myImgObject = new curvyCorners(settings, "roundedImg");
  myImgObject.applyCornersToAll();

  settings2 = {
      tl: { radius: 5 },
      tr: { radius: 5 },
      bl: { radius: 5 },
      br: { radius: 5 },
      antiAlias: true,
      autoPad: false,
      validTags: ["div"]
  }

  var mySmBoxObject = new curvyCorners(settings2, "roundedSmBox");
  mySmBoxObject.applyCornersToAll();
}
