$(document).ready(function() {
	
	$(".groupedList .wrp").hide();
	$(".topLink").click(function() {
		if($(this).attr("rel") != "open") {
			
			if($.browser.msie && $.browser.version <= "6.0") {
				$(".groupedList .wrp").hide();			
				$(this).siblings().show();
			} else {
				$(".groupedList .wrp").slideUp();			
				$(this).siblings().slideDown();
			}	
			
			$(".topLink").removeAttr("rel");
			$(".topLink img:nth-child(2)").remove()
			$(this).append('<img src="/site_media/images/greenArrow.gif" style="display: none" />').attr("rel","open");
			$("img",this).fadeIn();
		}
	})
	
	
	if($("#wideLeft").size() <1) {
		if($.browser.msie && $.browser.version <= "6.0") {
			$(".groupedList:nth-child(1) .wrp").show();
		} else {
			$(".groupedList:nth-child(1) .wrp").slideDown(700);
		}
		$(".groupedList:nth-child(1) h2").append('<img src="/site_media/images/greenArrow.gif"  />').attr("rel","open");
		$(".groupedList:nth-child(1) h2 img").fadeIn();
	}
	
	
	$("#nav a").mouseover(function() {
		//$(this).css("opacity",0)
	})
})
