/**
 * @author mike
 */
$(document).ready(function(){
	/*hide definitions for all items except first*/
	//$("dd:not(:first)").hide();
	$(".navilink").hide();	/*when you click on a link, toggle menu.*/
	$(".navihead.showblade").next().show();
	$(".navihead").click(function(){
	/*slide up the visible ones out of view and invisible ones into view*/
		$(".navilink").slideUp("medium");
		if($(this).next().css("display")=="none")
		{
			$(this).next().slideDown("medium");
		}
		return false;
	});
	$(".content").corner("top");
	$("h1:not(.dontround)").corner("top");
	$(".nfooter").show();
	$(".nfooter").css({"position":"relative"});
	$(".nfooter").css({"position":"absolute"});
	// Expand Panel
	$("#open").click(function(){
		$("div#panel").slideDown("slow");	
	});	
	
	// Collapse Panel
	$("#close").click(function(){
		$("div#panel").slideUp("slow");	
	});		
	
	// Switch buttons from "Log In | Register" to "Close Panel" on click
	$("#toggle a").click(function () {
		$("#toggle a").toggle();
	});		
});