/**
 * Animations for the home page
 */

$(function() {
	//animateMenuItems();
	animateLeftNavLinkText();
	animateWhiteStripes();
	animateFlowerFadeIn();
});

function animateMenuItems()
{
	// done one at a time so the interval can be changed
	for (i = 1; i <= 6; i++) {
		animateMenuItem(i, 300 + (i * 500));
	}
}

function animateMenuItem(index, timeout) {

	var cobbledName = "ul li:nth-child(" + index + ")";

	var menuitem = $(cobbledName);
	//menuitem.animate({
	//	width : 175,
	//	left : 0
	//}, timeout);
	
		menuitem.animate({
//		"padding-right": "0px",
	opacity : 1.0
	
	//'marginLeft' : "-=140px"
	
		
	}, timeout);
}

function animateLeftNavLinkText() {

	//$(".leftNavLink").css("display", "inline");

	$(".leftNavLink").animate({
		opacity : 1.0

	}, 2000);
}

function animateWhiteStripes() {
//	$('#leftStripes').show("slow");

	//$('#leftStripes').animate({
	//	top : 0,
	//	height : 910
	//}, 2000);
	
	//$('#bigdiv').animate({
	//	background-position : top
	//}, 2000);
		
}

function animateFlowerFadeIn()
{
	$('#headerStars').animate({
		opacity : 1.0
	}, 2000);
}

