$(function() {
	if (typeof window.XMLHttpRequest == "undefined") {
		/* test for ie6, and add class to make up for lack of li:hover */
		$("#nav li, #subnav li").hover(
			function() {$(this).addClass("hover");},
			function() {$(this).removeClass("hover");}
		);
	}
	
	
	// hide and show details
	var h2 = $(".details").hide().prev("h2").css({textDecoration: "underline", cursor: "pointer"});
	h2.click(function() {
		//$(".details:visible").hide(); 
		if ($(this).next().css("display") == "none") {
			$(this).next().show("slide",{direction:"up", easing:"easeOutBack"}, 2000);
		} else {
			$(this).next().slideUp("slow");		
		}
	});
	
	$("#testimonial_sub").hover(
		function() {$(this).animate({opacity: 0.5}, 500)},
		function() {$(this).animate({opacity: 1}, 500)}
	)
	
});
