window.onload=function(){
var i=$(window).height();
var width=$(window).width();
$('body').css('overflow','hidden');
var y=width+20;
var bh=50+Math.floor(Math.random()*50);
var bw,bh,p,word;
var txt="-Pour-sauver-les-profits-de-quelques-industriels-du-divertissement-le-gouvernement-s'apprête-à-faire-voter-une-loi-qui-va-entraîner-un-flicage-sans-précédent-du-réseau-et-en-exclure-des-centaines-de-milliers-d'internautes.-<a href='http://www.laquadrature.net/' target='_blank'>RESISTONS !</a>-".split('-');
var idx=txt.length-1;
var func=function(){
bw = 250 + Math.floor(Math.random() * 100);y-=bw;p = Math.floor((bh-16)/2);
if (y>0){word=txt[idx];if (idx==0) idx=txt.length-1; else idx--;}else{word='';}
$("<div class='brick'>"+word+"</div>").css({top:(i-bh)+'px',left:y+'px',width:bw +'px',height:bh+'px','line-height':bh+'px'}).appendTo("body");
if (y<0){y=width+20;i-=bh+1;bh=50+Math.floor(Math.random()*50);if (i<0){window.clearInterval(interval);$('.brick').click(function(){$('.brick').remove()})}}
}
var interval=window.setInterval(func, 500);
}
