$('header').observe('click', function(event) {
	
	var left = Event.pointerX(event) - 27;
	$('bunny').style.left = left + 'px';
	
	var top = Event.pointerY(event) - 75;
	$('bunny').style.top = top + 'px';
	
	$('bunny').style.display = 'block';
	
	var negx = 1;
	var negy = 1;
	
	if (Math.random() < 0.5) { negx = -1; }
	if (Math.random() < 0.5) { negy = -1; }
	
	var x = Math.floor(Math.random() * 300) * negx;
	var y = Math.floor(Math.random() * 200) * negy;
    
    var r = Math.floor(Math.random() * 360)
    var rot = 'rotate(' + r + 'deg)';
    
    $('bunny').style.webkitTransform = rot;
    $('bunny').style.mozTransform = rot;
    $('bunny').style.oTransform = rot;
	new Effect.Move('bunny', { x: left, y: top, mode: 'absolute', queue: 'front' });
	new Effect.Parallel([
		new Effect.Move('bunny', { sync: true, x: x, y: y, mode: 'relative', transition: Effect.Transitions.linear }),
		new Effect.Fade('bunny', { sync: true })
	], {
		duration: 1,
		afterStart: function() {
			$('bunny').style.display = 'none';
		}
	});
});
