$(document).ready(function()
{
	$(':text:first').focus();

	var signup = new Ajaxable('#signup_form');
	var login = new Ajaxable('#login_form');
	
	signup.setajaxstart(function()
	{
	    pophtml('Creating you in the system...');
	});
	login.setajaxstart(function()
	{
	    pophtml('Logging you in...');
	});
	signup.setaftererror(function()
	{
	    poptog('#pop_warn');
	});
	login.setaftererror(function()
	{
	    poptog('#pop_warn');		
	});
});




