$(document).ready(function(){ if (!checkSkip()) { animation(); } });

var skip = false;

function animation()
{
	$("div#lheader").hide();
	$("ul#nav").hide();
	$("div#footer").hide();
	$("div#content").css("height", "2px");
	$("div#content").fadeIn(500).animate({top:"0px",height:"450px"}, 1500, function() { 
		if (!skip)
		{
			$("div#footer").fadeIn(1000);
			$("div#lheader").fadeIn(1000);
			$("div#skip").fadeIn(1000);
			if (isIE6())
			{
				$("img#skippng").ifixpng();	
			}
			$("div#introcontent").fadeIn(1000).delay(10000, function() {
			if (!skip)
			{ 
				$("div#introcontent").fadeOut(1000, function() {
					if (!skip)
					{
					$(this).remove();
					$("div#skip").fadeOut(1000, function() {
						if (!skip)
						{
							$(this).remove(); 
							$("ul#nav").fadeIn(1000);
						}
					});
					$("div#midcontent").fadeIn(1000);
					}
				});
			}
		 	});
		}
	});
}

function Skip()
{
	skip = true;
	$("div#skip").remove();
	$("div#introcontent").remove();
	$("ul#nav").show();
	$("div#midcontent").show();
	$("div#content").css("top", "0px");
	$("div#content").show();
}

function checkSkip()
{
	if (window.location.hash == '#skip')
	{
		Skip();
		return true;
	}
	return false;
}
