$(document).ready(function() {
	$(".rounded_input").each(function (i) {
		var input_width = parseInt($(this).css("width")); //get the width of input
		$(this).css("width", input_width - 8); // Shrink th input so it ends up inside the curved box
		var wrapper = $(this).wrap("<div class='rounded_container'><\/div>").parent();
		wrapper.wrap("<div class='rounded_border' style='width: "+input_width+"px;'><\/div>"); //apply border
		wrapper.corner("round 8px").parent().css('padding', '2px').corner("round 10px"); //round box and border
	});
});

