	$(document).ready(function(){
		
		//Ideas Page fade boxes
		$("div.ideas").hide();
		$("#concepts-box").show();
		
		$('.concepts').click(function(){
			$("div.ideas").hide();
			$('#concepts-box').fadeIn();
		});
		$('.innovation').click(function(){
			$("div.ideas").hide();
			$('#innovation-box').fadeIn();
		});
		$('.recognition').click(function(){
			$("div.ideas").hide();
			$('#recognition-box').fadeIn();
		});

		//adds arrow to h1 tags
		$("h1").prepend("<div class='h1-bullet'></div>");
		
		//replaces hr tags
		$("hr").replaceWith("<div class='hr'></div>");
		
		//announcements box on homepage
		$('#home #announcements').load("default.asp?id=31");
		
		//keeps slidebox open on current section
		$("#consulting dt#consulting + dd").addClass("open");
		$("#capital dt#capital + dd").addClass("open");
		$("#people dt#people + dd").addClass("open");
		$("#careers dt#careers + dd").addClass("open");
		
		//slidebox
		$("dd:not(.open)").hide();
		$("dt a:not(#nomenu)").click(function(){
			$("dd:visible").slideUp("slow");
			$(this).parent().next().slideDown("slow");
			return false;
		});

		//highlights current page
		var path = location.search.substring(1);
		
		// Set your homepage here, eg. /index.php or /
		var home = "";
		// Check the home link against the path and set the navigation accordingly. 
		if (path == home || path == "/") {
			// Note that the jQuery selector matches *only* the home link
			var $nav = $('#nav a[@href="' + home + '"]');
		} else {
			var $nav = $('#nav a[@href$="' + path + '"]');
		}
		
		$nav.addClass('active');

	});
