
function animateLandingPage() {

	$(".landingItem").each(animateItem);
	animateLogos();
}


function animateItem(i) {

	var row = Math.floor(i / 3);
	var column = i % 3;
	var t = row * 250 + column * 200;

	$(this).delay(t).animate( {opacity:1.0}, 1000 );
}

// scroll brands back and forth
function animateLogos() {

	var maxScroll = 2672; //document.getElementById("brands").scrollWidth - $("#brands").width(); alert(maxScroll);
	var cScroll = $("#brands").scrollLeft();
	if (cScroll < maxScroll / 2) { $("#brands").animate( { scrollLeft:maxScroll }, maxScroll * 20, animateLogos); }
	else { $("#brands").animate( { scrollLeft:0 }, maxScroll * 20, animateLogos ); }
}
