
function roundDIVs() {
         
	var headerBorderSettings = {
          tl: { radius: 10 },
          tr: { radius: 10 },
          bl: { radius: 10 },
          br: { radius: 10 },
          antiAlias: true,
          autoPad: false,
          validTags: ["div"]
         }         
	
	var pageSettings = {
          tl: { radius: 12 },
          tr: { radius: 12 },
          bl: { radius: 12 },
          br: { radius: 12 },
          antiAlias: true,
          autoPad: false,
          validTags: ["div"]
         }

	var postSettings = {
          tl: { radius: 10 },
          tr: { radius: 10 },
          bl: { radius: 10 },
          br: { radius: 10 },
          antiAlias: true,
          autoPad: false,
          validTags: ["div"]
         }
         
	var commentTopSettings = {
          tl: { radius: 10 },
          tr: { radius: 10 },
          bl: false,
          br: false,
          antiAlias: true,
          autoPad: false,
          validTags: ["div"]
         }         
                         
	var commentBottomSettings = {
          tl: false,
          tr: false,
          bl: { radius: 10 },
          br: { radius: 10 },
          antiAlias: true,
          autoPad: false,
          validTags: ["div"]
         }                  
         

	var roundedHeaderBorder = new curvyCorners(headerBorderSettings, "header-border");	
	var roundedPage = new curvyCorners(pageSettings, "page");	
	var roundedPosts = new curvyCorners(postSettings, "post");	
	var roundedCommentsTop = new curvyCorners(commentTopSettings, "comment-top");	
	var roundedCommentsAdminTop = new curvyCorners(commentTopSettings, "comment-top-admin");	
	var roundedCommentsBottom = new curvyCorners(commentBottomSettings, "comment-bottom");	
	roundedHeaderBorder.applyCornersToAll();
	roundedPage.applyCornersToAll();
	roundedPosts.applyCornersToAll();
	roundedCommentsTop.applyCornersToAll();
	roundedCommentsAdminTop.applyCornersToAll();
	roundedCommentsBottom.applyCornersToAll();
}



function addEvent(obj, evType, fn){
	if(obj.addEventListener){
		obj.addEventListener(evType, fn, false); 
		return true;
	} else if (obj.attachEvent){
		var r = obj.attachEvent('on'+evType, fn);
		return r;
	} else {
		return false;
	}
}	

// Register the init of Sliders on the onload event of the page
addEvent(window, "load", roundDIVs);


