

$('fieldset').hide();

$('form a.more').live('click', function(e){
	e.preventDefault();
	$('fieldset').show();
	$(this).attr('class', 'less');
	$(this).html('less');
});

$('form a.less').live('click', function(e){
	e.preventDefault();
	$('fieldset').hide();
	$(this).attr('class', 'more');
	$(this).html('more');
});

$('input[name="show"][type="checkbox"]').change(function(){
	if( $('input[name="show"][type="checkbox"]').attr('checked') )
	{
		$('input[name="password"]').replaceWith('<input name="password" type="text" value="' + $('input[name="password"]').val() + '">');
	}
	else
	{
		$('input[name="password"]').replaceWith('<input name="password" type="password" value="' + $('input[name="password"]').val() + '">');
	}
});

$('.errors').append('<a class="close" href="#">✘</a>');

$('.errors a.close').live('click', function(e){
	e.preventDefault();
	$(this).parent().hide('slow');
});

$('#top li.you a').hover(function(){
	$(this).html('Me');
}, function(){
	$(this).html('You');
});

$('form').submit(function(e){
	$('button', this).attr('disabled', 'disabled');
});

//$('fieldset :not(legend)').hide();

/*
$('legend').toggle(function(){
	$(this).parent().find('*').show();
}, function(){
	$(this).parent().find(':not(legend)').hide();
});
*/

$(document).ready(function(){
	//
});



