function setRoundedCorners(){
	$(".roundedBox").each(function(){
		var p = $(this);
		var color= p.attr("color");
		var tr = $(document.createElement("tr")).append(document.createElement("td")).append($(document.createElement("div")).css({
			width:"8px",height:"8px",
			background:"url('images/"+color+"TL.png') top left no-repeat",
			"float":"left",position:"relative",top:"-8px"
		}));
		tr.append(document.createElement("td")).append($(document.createElement("div")).css({
			width:"auto",height:"8px",position:"relative",top:"-8px",backgroundColor:p.attr("hex"),marginLeft:"8px",
			marginRight:"8px",
	  		padding:"0",marginBottom:"-8px"
		}));
		tr.append(document.createElement("td")).append($(document.createElement("div")).css({
			width:"8px",height:"8px",background:"url('images/"+color+"TR.png') top left no-repeat",
			"float":"right",position:"relative",top:"-8px"
		}));
		
		var bl = $(document.createElement("div")).css({
			width:"16px",height:"14px",background:"url('images/"+color+"BL.png') top left no-repeat",
			position:"relative",top:p.height(),left:-(p.width()/2)+8
		})
		var bm = $(document.createElement("div")).css({
			width:"16px",height:"14px",background:"url('images/"+color+"Bottom.png') top left",position:"relative",
			width:p.width()-32,top:p.height()-14
		})
		var br = $(document.createElement("div")).css({
			width:"16px",height:"14px",background:"url('images/"+color+"BR.png') top left no-repeat",position:"relative",
			top:p.height()-28,left:(p.width()/2)-8
		})
		var t = $(document.createElement("table"));
		t.append(tr);
		var tr2 = $(document.createElement("tr")).append("td");
		tr2.append("td").append(p);
		tr2.append("td");
		t.append(tr2);
		document.appendChild(t[0]);
		//t.append()
		//p.prepend(tm);
		//p.prepend(tr);
		//p.append(bl);
		//p.append(bm);
		//p.append(br);
		p.css({backgroundColor:p.attr("hex")});
	})

}
