$(function(){
	// UI effects
	$('#user-login input.in-sub').hover(
		function(){
			$(this).addClass('in-sub-focus');
		},
		function(){
			$(this).removeClass('in-sub-focus');
		}
	);
	$('#user-login input.in-sub').focus(function(){ $(this).addClass('in-sub-focus'); });
	$('#user-login input.in-sub').blur(function(){ $(this).removeClass('in-sub-focus'); });
	
	var fieldSelect = 'fieldset.form .field input[type=text],fieldset.form .field select, #user-login input.in-txt';
	$(fieldSelect).blur(); // blur any selections in case of refresh
	$(fieldSelect).focus(function(){
		$(this).parents('.field').addClass('fld-focus');
	});
	$(fieldSelect).blur(function(){
		$(this).parents('.field').removeClass('fld-focus');
	});
	
	$('.btn-grid .btn, .button').hover(
		function(){
			$(this).addClass('btn-hover');
		},
		function(){
			$(this).removeClass('btn-hover');
		}
	);
});

