$(document).ready(function() { //Code for the login/register panel
	
	// 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();
	});		
	
	//Code for the open/close of the forgot_password div
	$("a.lost-pwd").click(function(){
		$("div#forgotPassword").slideToggle("slow");			
	});
	

	
	
///////////////////// Company_name Field //////////////////////////	
	   //HIde the #employer DIV inside the registerForm
    $("#employerToggle").css("display", "none");
    $("#checkEmployer").click(function() {

     //If the #checkme checkbox is checked
     if($("#checkEmployer").is(":checked")){

         //Show the hidden Div
         $("#employerToggle").show("slow");
     }else {
         $("#employerToggle").hide("slow");
     }
   });
 ///////////////////////////////////////////////////////////////////  
		
});
