function labelTastic(){
	var theInputs = jQuery('.loginForm input:not(.button)');
	if(theInputs.val() != ''){theInputs.prev().addClass('flump');}
	theInputs.focus(function(){jQuery(this).prev().addClass('flump');});
	theInputs.blur(function(){
		if(jQuery(this).val() == ''){jQuery(this).prev().removeClass('flump');}
	});
}

jQuery(document).ready(function(){
	labelTastic();
	
	// external links click tracking
	$('a[href*="expressionengine.com"],a[href*="amazon"]').click(function(e){		
		var theCategory = "Affiliate Links";
		var url = this.href;
		if(url.indexOf('expressionengine') >= 0){ var theAction = "ExpressionEngine"; }
		if(url.indexOf('amazon') >= 0){ var theAction = "Amazon"; }		
		_gaq.push([ '_trackEvent', theCategory, theAction, url ]);
		 setTimeout(function() { window.location = url; }, 100);
		e.preventDefault();
	});
});
