// onDOMReady
$(function () {
	// Add open class to parent that owns the current item, then open its parent
	$("ul.navigation ul a[href="+ document.location +"]").addClass("current").parents("ul").addClass("open").siblings("a").addClass("open");
	
	// Open & Close navigation
	$("ul.navigation > li").hover(function () {
		($.browser.msie) ? $(this).children("ul").css({display : 'block'}) : $(this).children("ul").slideDown(300);
		$(this).children("a").css("color", "#F58220");
	},
	function () {
		($.browser.msie) ? $(this).children("ul").css({display : ''}) : $(this).children("ul").slideUp(300);
		$(this).children("a").css("color", "#494342");
	});
	
	// Remove the open / close event from the nav marked as "current"
	$("ul.navigation ul.open").parents("li").unbind();
	
	// Re add styling to first paragraph
	$("div.article p:first").addClass("introduction");
});