function createBox(){
	var currentBoxes  = $('.box');
	if(currentBoxes.length>10){
		alert('OMG To Many Boxes!');
		return;
	}
	var newbox = $('.box:first').clone();
	newbox.css('width','0px');
	newbox.css('height','0px');
	newbox.css('background-color','green');
	
	currentBoxes.parent().append(newbox);
	
	newbox.animate({width : '50px', height:'50px'}, 'fast');
}
$('#CreateBoxButton').click(function(){createBox();});