function toggleNav(obj, mode)
{
	if (mode==1)
	{ obj.style.backgroundColor = '#ffe98c'; }
	else if (mode==0)
	{ obj.style.backgroundColor = '#FEDE58'; }
}

window.onload = function()
{
  /*
  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.
  */
  settings = {
	  tl: { radius: 5 },
	  tr: { radius: 5 },
	  bl: { radius: 5 },
	  br: { radius: 5 },
	  antiAlias: true,
	  autoPad: true,
	  validTags: ["div","img"]
  }

  /*
  Usage:

  newCornersObj = new curvyCorners(settingsObj, classNameStr);
  newCornersObj = new curvyCorners(settingsObj, divObj1[, divObj2[, divObj3[, . . . [, divObjN]]]]);
  */
  var myBoxObject = new curvyCorners(settings, "curved-container");
  myBoxObject.applyCornersToAll();
  
    var myBoxObject = new curvyCorners(settings, "curved-image-container");
  myBoxObject.applyCornersToAll();
}