$(document).ready(function() {

	// Column childs CSS3 fix
	$(".columns>.col:last-child").addClass("last-child");
	$(".columns>.col:first-child").addClass("first-child");
	$(".columns.three>.col:eq(1)").addClass("middle-child");

	// Perform rounded corners on all divs with the 'corner' attribute.
	$("div.[corner]").each(function(index)
	{
		var thisJ = $(this);
		
		// Get the attribute value.
		var cornerAttr = thisJ.attr('corner');
		var corners = cornerAttr.split(',', 4);

		// Set the corners.
		curvyCorners({
			tl: { radius: parseInt(corners[0]) },
		 	tr: { radius: parseInt(corners[1]) },
		 	bl: { radius: parseInt(corners[2]) },
			br: { radius: parseInt(corners[3]) },
			antiAlias: true
		}, thisJ.get()[0]);
	});	
						   
});
