$(document).ready(function() {
	$('.meta').hover(function() {
		$(this).children('.other').fadeIn('fast');
	}, function() {
		$(this).children('.other').fadeOut('fast');
	});

	// OpenID fanciness for another time.

	// $('#yes_openid').hide();
	// $('#non_openid').prepend('<div><a href="#">Log in with OpenID</a></div>');
	// $('#openid').focus(function() {
	// 	$('#non_openid').fadeOut('fast');
	// });
	// $('#non_openid div a').click(function() {
	// 	$('#non_openid').slideUp('fast');
	// 	$('#yes_openid').fadeIn('slow');
	// 	return false;
	// });
	$('.wmd-preview').hide();
	$('#comments textarea').focus(function() {
		$('.wmd-preview').fadeIn('fast');
	});

	if($('#s').val() == "") {
		$('#s').toggleVal({ populateFrom: 'label', removeLabels: true });
	} else {
		$('#nav div label').hide();
	}
	
	// $('#main table tr:odd').addClass('even');
});
