$(window).load(function(){
	if($("body").hasClass("home")){
		$('.title span').not(".blurb").css('display', 'block').animate({ opacity: 0 }, 0);
		$("#banner_strategy .title span").first().fadeIn(1000).animate({opacity: 1,top:"48"}, 500, function(){
				$("#banner_placement .title span").first().fadeIn(1000).animate({opacity: 1,top:"48"}, 500, function(){
					$("#banner_growth .title span").first().fadeIn(1000).animate({opacity: 1,top:"48"}, 500, function(){
							$("#banner_strategy .title .byline").first().fadeIn(1000).animate({opacity: 1,left:"167"}, 500, function(){
									$("#banner_placement .title .byline").first().fadeIn(1000).animate({opacity: 1,left:"195"}, 500, function(){
										$("#banner_growth .title .byline").first().fadeIn(1000).animate({opacity: 1,left:"147"}, 500, function(){
											
											$("#banner_wrap a").hover(
												function(){
													$(this).siblings(".title").find("span").not(".blurb").stop(true,true).animate({top:"10"});
													$(this).siblings(".title").find(".blurb").stop(true,true).fadeIn(500);;
												},
												function(){
													$(this).siblings(".title").find("span").not(".blurb").stop(true,true).animate({top:"48"});
													$(this).siblings(".title").find(".blurb").stop(true,true).fadeOut(500);;
												}
											);
											
										});														  
									});													  
							});													  
					});														  
				});													  
		});
	}						
});
$(document).ready(function(){
		
		$("#box_1").hover(
			function(){
				//$(this).animate({height:"100%"}, 500);
				$('#special_content_1').fadeIn(300);
				$(this).addClass("special_box_hover");
				$('#special_content_4').hide();
				$('#special_content_2').hide();
				$('#special_content_3').hide();
				$("#box_4").removeClass("special_box_hover");
				$("#box_2").removeClass("special_box_hover");
				$("#box_3").removeClass("special_box_hover");
			},
			function(){
			}
		);
		$("#box_2").hover(
			function(){
				//$(this).animate({height:"100%"}, 500);
				$('#special_content_2').fadeIn(300);
				$(this).addClass("special_box_hover");
				$('#special_content_4').hide();
				$('#special_content_1').hide();
				$('#special_content_3').hide();
				$("#box_4").removeClass("special_box_hover");
				$("#box_1").removeClass("special_box_hover");
				$("#box_3").removeClass("special_box_hover");
			},
			function(){
			}
		);
		$("#box_3").hover(
			function(){
				//$(this).animate({height:"100%"}, 500);
				$('#special_content_3').fadeIn(300);
				$(this).addClass("special_box_hover");
				$('#special_content_4').hide();
				$('#special_content_2').hide();
				$('#special_content_1').hide();
				$("#box_4").removeClass("special_box_hover");
				$("#box_2").removeClass("special_box_hover");
				$("#box_1").removeClass("special_box_hover");
			},
			function(){
			}
		);
		$("#box_4").hover(
			function(){
				//$(this).animate({height:"100%"}, 500);
				$('#special_content_4').fadeIn(300);
				$(this).addClass("special_box_hover");
				$('#special_content_3').hide();
				$('#special_content_2').hide();
				$('#special_content_1').hide();
				$("#box_3").removeClass("special_box_hover");
				$("#box_2").removeClass("special_box_hover");
				$("#box_1").removeClass("special_box_hover");
			},
			function(){
			}
		);
		
		var dropdownParents = $(".menu li ul").parent("li");
		//dropdownParents = $(dropdownParents).filter('.page-item-6');
		
		$('.page-item-6 a:first').click(function(event){
		  event.preventDefault();
		  return false;
		});

		$(dropdownParents).hover(
				function(){
					$(this).children("ul:first").addClass("menu_hover").fadeIn(600);
				},
				function(){
					$(this).children("ul:first").stop(true,true).removeClass("menu_hover").hide();
				});
						   });
