jQuery.noConflict();

jQuery(document).ready(function() {

     jQuery("#area").load("main.php");
	//jQuery("#panel_contents").load("Login%20System%20v.2.0/main.php");
	jQuery("img.tendina").click(function(){
		jQuery("div#panel").animate({
			height: "90px"
		})
		.animate({
			height: "100px"
		}, "fast");
		
		//jQuery("div.panel_button").toggle();
		jQuery("div.panel_button").show();
	        

	});	
	
   jQuery("div#hide_button").click(function(){
		jQuery("div#panel").animate({
			height: "0px"
		}, "fast");
		
		jQuery("div.panel_button").hide();
		
	
   });	
	
	
	
	

});

function doLogin() {
	
      jQuery("#area").load("process.php",{user:jQuery("#user").val(),pass:jQuery("#pass").val(),sublogin:"1"},function(){
		 //jQuery("#panel_contents").load("Login%20System%20v.2.0/main.php");
		 window.location.reload();
        });
	
	
}  

function doRegister() {
	
      jQuery("#area").load("process.php",{user:jQuery("#user").val(),pass:jQuery("#pass").val(),email:jQuery("#email").val(),subjoin:"1"},function(){
		//jQuery("#panel_contents").load("Login%20System%20v.2.0/register.php");
        });
	
}  


function loadRegister() {
	
      jQuery("#area").load("register.php");
      // jQuery("#panel_contents").load("Login%20System%20v.2.0/register.php");
}  

function loadForgot() {
	
      jQuery("#area").load("forgotpass.php");
       //jQuery("#panel_contents").load("Login%20System%20v.2.0/forgotpass.php");
}  

function doForgot() {
	
      jQuery("#area").load("process.php",{user:jQuery("#user").val(),subforgot:"1"},function(){
		//jQuery("#panel_contents").load("Login%20System%20v.2.0/forgotpass.php");
        });
     
} 

function doProcess() {
	
      jQuery("#area").load("process.php",{},function(){
		 
		 window.location.reload();
        });
	  
      //jQuery("#panel_contents").load("Login%20System%20v.2.0/process.php");
}  

function loadMain() {
	
      jQuery("#area").load("main.php");
      //jQuery("#panel_contents").load("Login%20System%20v.2.0/main.php");
}  
	