jQuery(document).ready(function() {
	jQuery(".nicebox").each(function() {
		if ( !jQuery(this).hasClass("notop") ) {
			jQuery(this).prepend('<div class="edge round4"></div><div class="edge round2"></div><div class="edge round1"></div>');
		}
		
		if ( !jQuery(this).hasClass("nobottom") ) {
			jQuery(this).append('<div class="edge round1"></div><div class="edge round2"></div><div class="edge round4"></div>');
		}
	});
});
