(function($)
{
	HOMEPAGE_FADEIN_SPEED = 'slow';
	HOMEPAGE_SLIDEDOWN_SPEED = 'slow';

	$(function()
	{
		// Make all external links open in a new tab/window
		var extLinks = $('a[rel="external"]');
		if(!(extLinks.css('target-name'))) extLinks.attr('target', '_blank');

		// Fade in the home page
		window.setTimeout($.proxy(function()
		{
			this.filter('article').fadeIn(HOMEPAGE_FADEIN_SPEED).end().filter('section').slideDown(HOMEPAGE_SLIDEDOWN_SPEED).end().promise().done(function(){ $(document.body).toggleClass('ie6rerender'); });
		}, $('section.homepagemain article, section.homepagemain aside>section').hide()), 50);
	});
})(jQuery);

