$(function()
{
	$("ul#nav li").hover(function()
	{
		$("ul:first", $(this)).show();
	}, function()
	{
		$("ul", $(this)).hide();
	});
	$("form#subscribe input[type=text]").each(function(i)
	{
		// Store default input values
		$(this).data("default", $(this).val());
	}).focus(function()
	{
		// Clear value if it is the default value on focus
		$e = $(this);
		($e.val() == $e.data("default")) ? $e.val("") : null;
	}).blur(function()
	{
		// Populate default value if field blank on blur
		$e = $(this);
		($e.val() == "") ? $e.val($e.data("default")) : null;
	});
	if ($("#slideshow").length > 0)
	{
		$("#slideshow").cycle(
		{
			fx: "fade",
			speed: 800,
			timeout: 5000
		});
	}
});
