
function load() {
	shuffle();
	$(".block").draggable();
}

function shuffle() {
	var isIE = (navigator.appName.indexOf("Microsoft")!=-1);
	var w = (isIE) ? document.body.offsetWidth : window.innerWidth;
	var h = (isIE) ? document.body.offsetHeight : window.innerHeight;
	
	var y = 10;
	var xb = $("#info").width() - 20;
	var x = 0;

	$(".block").each(function(i){
		var el = $('#'+this.id);
		while (x<xb)
			x = Math.random()*(w-el.width()-45);
		el.animate({
			left: x,
			top: y
		});
		y += el.height()+15+Math.random()*30-15;
		xb = -1;
		x = -2;
	});
}
