addEvent(window, 'load', initCorners);

function initCorners() {
	var default_settings = {
		tl: { radius: 0 },
		tr: { radius: 0 },
		bl: { radius: 20 },
		br: { radius: 20 },
		antiAlias: true
	}
	var curved_bottom_settings = {
		tl: { radius: 0 },
		tr: { radius: 0 },
		bl: { radius: 20 },
		br: { radius: 20 },
		antiAlias: true
	}
	var curved_all_settings = {
		tl: { radius: 20 },
		tr: { radius: 20 },
		bl: { radius: 20 },
		br: { radius: 20 },
		antiAlias: true
	}

	/*
	Usage:
	
	curvyCorners(settingsObj, selectorStr);
	curvyCorners(settingsObj, Obj1[, Obj2[, Obj3[, . . . [, ObjN]]]]);
	
	selectorStr ::= complexSelector [, complexSelector]...
	complexSelector ::= singleSelector[ singleSelector]
	singleSelector ::= idType | classType
	idType ::= #id
	classType ::= [tagName].className
	tagName ::= div|p|form|blockquote|frameset // others may work
	className : .name
	selector examples:
	#mydiv p.rounded
	#mypara
	.rounded
	      
	NOTE:   divs cannot have the runat="server" tag defined
	*/
	curvyCorners(curved_bottom_settings, "#vod_main_page_outermoust_div");
	curvyCorners(curved_all_settings, "#vod_main_page_slideshow_outer_div");
	curvyCorners(default_settings, "#vod_main_body_content_div");
}
