$(document).ready(function(){

	$('#home').ready(function(){
		setTimeout(function() {
			$('#home .splash-white-label-text').animate({ paddingLeft:'495px', opacity:1}, 1200);
		}, 500);
		setTimeout(function() {
			$('#home .splash-text').animate({opacity:1}, 1200);
		}, 1200);

		setTimeout(function() {
			$('#home .splash-screen-1').animate({ top:'0px', opacity:1}, 800);
		}, 1400);
		setTimeout(function() {
			$('#home .splash-screen-2').animate({ top:'0px', opacity:1}, 800);
		}, 2200);
		setTimeout(function() {
			$('#home .splash-screen-3').animate({ top:'0px', opacity:1}, 800);
		}, 3000);
	});

	$('#solutions').ready(function(){
		setTimeout(function() {
			$('#solutions .splash-screen-1').animate({ top:'0px', opacity:1}, 800);
		}, 500);
	});
	
	// $(".scroll").click(function(event){
	// 	event.preventDefault();
	// 	$('html,body').animate({scrollTop:$(this.hash).offset().top}, 750);
	// });

	// Products & Solutions
	$("ul.products-solutions-menu").tabs("div.panes > div", {
		effect: 'fade'
	});

	// If product and solution link is clicked in footer, reload the page so the selected tab is loaded
	$('#products-solutions a.prod-link').click(function(e) {
		e.preventDefault();
		window.location.hash = $(this).attr('rel');
		window.location.reload();
	});

	// Scroll to top of product page if footer link is clicked to activate a tab
	$('#products-solutions').ready(function(){
		$('html,body').animate({scrollTop:0}, 0);
	})

	// Sample system tabs in modal
	$("ul.sample-system-tabs").tabs("div.sample-system-panes > div", {current : 'active'});

});
