$(document).ready(function() {
	$('body').css('height', $(window).height());

	$('#loading').fadeOut();
	
	$('h1').fadeIn().animate({
		bottom: '392px',
		height: '98px'
	}, function() {
		if($.support.opacity)
		{
			$('h2').fadeIn(function() {
				$('p').slideDown(function() {
					$('#links').fadeIn();
				});
			});
		}
		else {
			$('h2').show(0, function() {
				$('p').slideDown(function() {
					$('#links').show(0);
				});
			});
		}
	});
	
	if($.support.opacity)
	{
		$('#links a').each(function() {
			$(this).css('opacity', '.5');
		});

		$('#links a').hover(function() {
			$(this).stop().animate({ opacity: '1' });
		}, function() {
			$(this).stop().animate({ opacity: '.5' });
		});
	}

	$('#links a').click(function(event) {
		event.preventDefault();
		window.open($(this).attr('href'));
	});
	
	
	$(window).resize(function() {
		$('body').css('background-position', '0px ' + -(1200 - $(document).height()) + 'px');
	});
});
