$(document).ready(function()
{
	$('h1')
		.splitAndBumpUp(
			'slow',
			100, 0,
			new Array(
				{
					x: -12, y: 8,
					a: new Array({ y: -63 })
				},
				{
					x: 165, y: 8,
					a: new Array({ y: -95 })
				},
				{
					x: 82, y: 249,
					a: new Array(
					{
						y: -223
					},
					{
						x: 8,
						y: -10,
						r: -14,
						t: 3000
					})
				}
			));

	if ($.browser.msie)
	{
		// Hackery to make IE's anti-aliasing not look rubbish
		$('h1 span:last')
			.css(
			{
				backgroundColor: $('body').css('backgroundColor'),
				zIndex: -1
			})
	}

	if ($.teedyayRotationModel == null)
	{
		var excuse = "I'm sorry &mdash; your browser sucks too much to show this page properly. Please get a newer one. The rest of the web will look better too. :-)";
		if ($.browser.opera)
			excuse = "I'm sorry &mdash; Opera is unable to show this page properly. Honestly, it looks much better in other browsers. :-)";
		$('#yadayada')
			.html(excuse)
			.css({ position: 'absolute', left: '750px', top: '250px' })
			.fadeIn(2000);
	}
});
