jQuery(document).ready(function() {
	
	// Expand Panel
	if(jQuery("#open")){
		jQuery("#open").click(function(){
			jQuery("div#panel").slideDown("slow");
		
		});
	}
	
	// Collapse Panel
	
	if(jQuery("#close")){
		jQuery("#close").click(function(){
			jQuery("div#panel").slideUp("slow");	
		});
	}
	
	// Switch buttons from "Log In | Register" to "Close Panel" on click
	if(jQuery("#toggle a")){
		jQuery("#toggle a").click(function () {
			jQuery("#toggle a").toggle();
		});
	}
	 
	// Forgot Password
	if(jQuery("#fpass")){
		jQuery("#fpass").bind("click",function(){
									
									jQuery(".success").hide();
									jQuery("#header_mem_login").html("Forgot Passowrd?");
									jQuery("#for_pass").show();
									jQuery("#mem_login").slideUp("slow");
									//
								 });
	}
	// Login link click
	if(jQuery("#link_login")){
		jQuery("#link_login").bind("click",function(){
									
									jQuery(".success").hide();
									jQuery("#header_mem_login").html("Member Login");
									jQuery("#for_pass").hide();
									jQuery("#mem_login").slideDown("slow");
									//
									
								 });
	}
});
