$(document).ready(function(){
	

	// roundBox script
    $("div.roundBox").wrap('<div class="dialog"><div class="bd"><div class="c"><div class="s"></div></div></div></div>');
    $("div.dialog").prepend('<div class="hd"><div class="c"></div></div>').append('<div class="ft"><div class="c"></div></div>');	
	$("div.roundBox").append("<div class='clearBoth'></div>"); // adds clearBoth at the end of <div>
	
	// calltoAction
	$("div.calltoAction").before('<div class="calltoActionTop"></div>');
	$("div.calltoAction").after('<div class="calltoActionBottom"></div>');
	$("div.calltoAction").append("<div class='clearBoth'></div>"); // adds clearBoth at the end of <div>
	
	$("div.divider").append("<div class='clearBoth'></div>"); // adds clearBoth at the end of <div>

	// equal height script
	function equalHeight(group) {
		tallest = 0;
		group.each(function() {
			thisHeight = $(this).height();
			if(thisHeight > tallest) {
				tallest = thisHeight;
			}
		});
		group.height(tallest);
	}
	
	// equal script for buckets on frontpage
	equalHeight($("#bucketsContainer .roundBox"));
});  









