$(function()
{
	$('#swordLabel').click(function() {
		$('#swordForm').removeClass('inactive').addClass('active');
		$('#swordInput').focus();
	});
	
	$('#swordInput').focusout(function() {
		var el = document.getElementById('swordInput');
		el.value = jQuery.trim(el.value);
		if (el.value == '') $('#swordForm').removeClass('active').addClass('inactive');
	});
	
	var el = document.getElementById('swordInput');
	$('#swordForm').addClass(el.value == '' ? 'inactive' : 'active');
	$('#swordSubmit').hide();
});
