/* Author: Oliver Chank

*/

$(document).ready(function() {
	$('.boule').each(function() {
		var w = $(this).find('div').first().width() + 20;
		$(this).find('img').first().css({ width: w, height: w });
		$(this).css({ width: w, height: w });
	});

var width2 = $(window).width()-300;
var height2 = $(window).height()-300;
						 
$(".boule").each(function(){
	$(this).fadeIn("slow");
	$(this).draggable();
		var randomX=Math.floor(Math.random()*width2+200);
		var randomY=Math.floor(Math.random()*height2+200);
		var thiswidth = $(this).width();
	$(this).css({
		left: randomX-$(this).width(),
		top: randomY-$(this).height()
	});
	
});
		

});


