$(document).ready(function() {
						   
	/*--- search button click --------------------------------------*/	
	$("#header #top .topLinks .content ul li div.submit").click(function() {
		document.form[0].submit();																 
	});
	
	/*--- nav dropdown rollovers -----------------------------------*/
	$("#strategicApproach a").hover(function() {
		$(this).addClass("rollover");
		$("#strategicApproachNav").show();
	}, function() {
		$(this).removeClass("rollover");
		$("#strategicApproachNav").hide();										   
	});
	$("#strategicApproachNav").hover(function() {
		$(this).show();										   
		$("#strategicApproach a").addClass("rollover");											   
	}, function() {
		$(this).hide();
		$("#strategicApproach a").removeClass("rollover");									   
	});
	
	$("#investmentPrograms a").hover(function() {
		$(this).addClass("rollover");
		$("#investmentProgramsNav").show();
	}, function() {
		$(this).removeClass("rollover");
		$("#investmentProgramsNav").hide();										   
	});
	$("#investmentProgramsNav").hover(function() {
		$(this).show();										   
		$("#investmentPrograms a").addClass("rollover");											   
	}, function() {
		$(this).hide();
		$("#investmentPrograms a").removeClass("rollover");									   
	});
	
	$("#team a").hover(function() {
		$(this).addClass("rollover");
		$("#teamNav").show();
	}, function() {
		$(this).removeClass("rollover");
		$("#teamNav").hide();										   
	});
	$("#teamNav").hover(function() {
		$(this).show();										   
		$("#team a").addClass("rollover");											   
	}, function() {
		$(this).hide();
		$("#team a").removeClass("rollover");									   
	});
	
	$("#aboutUs a").hover(function() {
		$(this).addClass("rollover");
		$("#aboutUsNav").show();
	}, function() {
		$(this).removeClass("rollover");
		$("#aboutUsNav").hide();										   
	});
	$("#aboutUsNav").hover(function() {
		$(this).show();										   
		$("#aboutUs a").addClass("rollover");											   
	}, function() {
		$(this).hide();
		$("#aboutUs a").removeClass("rollover");									   
	});
	
	
	/*--- Print Bio Feature ----------------------------------------*/
	
	$(".employees div a").each(function() {
		$(this).click(function() {	
			
			// add name & title after image
			var nameTitle = $(this).parent().prev("h6").children("a").html();
			$(this).parent().children(".nameTitle").html(nameTitle);
			
			// add paragraphs into new print div
			$(".printEmployeeInfo").html("");
			$(this).parent().children("p").clone().appendTo(".printEmployeeInfo");
			
		});
	});
	
	/*--- footer location links ------------------------------------*/
	
	$("#footer #locations ul li a").each(function() {
		if (!($(this).parent().hasClass("footerLogo"))) {	
			$(this).hover(function() {
				$(this).parent().prev().removeClass("arrow");
				$(this).parent().prev().addClass("arrowLeft");
				$(this).parent().next().removeClass("arrow");
				$(this).parent().next().addClass("arrowRight");
			}, function() {
				$(this).parent().prev().removeClass("arrowLeft");
				$(this).parent().prev().addClass("arrow");
				$(this).parent().next().removeClass("arrowRight");
				$(this).parent().next().addClass("arrow");
			});
		}
	});
	
	/*--- IE6 fixes ------------------------------------------------*/
	
	if ($.browser.msie && $.browser.version < 7) {
		$("h1").click(function() {
			window.location.href="#";					   
		});
	}
	
});
