//  addEvent(window, 'load', initCorners);

  var curvyTopCornerSettings = {
    tl: { radius: 10 },
    tr: { radius: 10 },
    bl: { radius: 00 },
    br: { radius: 00 },
    antiAlias: true
  }
  var curvyAllCornerSettings = {
    tl: { radius: 5 },
    tr: { radius: 5 },
    bl: { radius: 5 },
    br: { radius: 5 },
    antiAlias: true
  }

  function initCorners() {
    curvyCorners(curvyAllCornerSettings, ".rounded");
    curvyCorners(curvyAllCornerSettings, "#search-panel-top");
  }

	/* The way this works is that we need to grab the 2nd child's height and set the parent and 1st child as follows:
		parent = 2nd child's height + 7
		1st child = 2nd child's height -3
	*/
	function updateRoundedSize(selector) {
		var divs = $$(selector);

		// Run through all matching divs, updating their roundedness
		divs.each(function(item) {
		
			var inner_divs = item.childElements();
			if (inner_divs && inner_divs.length == 2 && inner_divs[1].getHeight() > 0) {
				item.style.height = (inner_divs[1].getHeight() + 7) +'px';
				inner_divs[0].style.height = (inner_divs[1].getHeight() - 3) +'px';			
			}
		});
		
	}

