//firebugx
if (!window.console || !console.firebug)
{
    var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
    "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];

    window.console = {};
    for (var i = 0; i < names.length; ++i)
        window.console[names[i]] = function() {}
}


function rando (range) {
	return Math.floor(Math.random() * range);
} 

jQuery(function () {

	//stuff
	var $ = jQuery;
	
	var words = [
		'steve is going to murder me',
		'you are not keeping up',
		'program faster',
		'your fingers are stupid',
		'short, simple',
		'come on, get er done',
		'don\'t lose it',
		'pressure is on, buddy',
		'try not to suck',
		'don\'t steal other peoples\' work, man',
		'no tolerance for bugs',
		'you are jquery\'s bitch'
	];
	
	var html = '';
	var n = 50+rando(100);
	var w = $(window).width();
	var h = $(window).height();
	for (var i = 0; i < n; i++) {
		html += '<div id="words'+i+'" style="color:rgb('+rando(256)+','+rando(256)+','+rando(256)+');top:'+h/2+'px;left:'+w/2+'px;font-size:'+rando(10)+'px;">'+words[rando(words.length)]+'</div>';
	}
	$('body').append(html);
	
	$('div').each(function (i) {
		var $this = $(this);
		setTimeout(function(){
			$this.animate({top:rando(h),left:rando(w),fontSize:(10 + rando(50))}, 3000 + rando(20000));
		}, rando(20000));
	});
	
		

});
