$(document).ready(function(){

	// News ticker. Presently (and possibly finally) without any rotation or animation.
	// Fetches xml from href defined in the rss anchor
	$.getFeed(
	{
		url: $('#rss a').attr('href'),
		success:
			function(feed)
			{
				var items = new Array();
				for (var i=0; i<feed.items.length && i<4; ++i)
				{
					items[i] =
						{
							title: feed.items[i].title,
							link: feed.items[i].link
						};
				}
				currentItem = items[0];
				$('#words').html('<a href="'+currentItem.link+'">'+currentItem.title+'</a>');
			}
	});

	// Open a new window with the flash lift configurator inside
	$('.configurator').click(
		function(event)
		{
			event.preventDefault();
			window.open('/flash/lift_configurator/configurator.html', 'configurator', 'width=880, height=710');
		}
	);

});


