// JavaScript Document

// requires func.common.js
// requires rounded_corners_lite.inc.js

function load_rounded_corners() {
	// The new 'validTags' setting is optional and allows
	// you to specify other HTML elements that curvyCorners
	// can attempt to round.

	// The value is comma separated list of html elements
	// in lowercase.

	// validTags: ["div", "form"]

	// The above example would enable curvyCorners on FORM elements.
	
	// Use false for radius width if we want to make a corner square.
	
	settings = {
		 tl: { radius: 10 },
		 tr: { radius: 10 },
		 bl: { radius: 10 },
		 br: { radius: 10 },
		 antiAlias: true,
		 autoPad: true,
		 validTags: ["div"]
	}
	
	
	// Usage:
	// 
	// newCornersObj = new curvyCorners(settingsObj, classNameStr);
	// newCornersObj = new curvyCorners(settingsObj, divObj1[, divObj2[, divObj3[, . . . [, divObjN]]]]);
	
	var myBoxObject = new curvyCorners(settings, "rounded_box");
	myBoxObject.applyCornersToAll();
}

addEvent(window, 'load', load_rounded_corners, false);