var Global = {
	getSpinner: function(color){
		var spinners = {
			orange: '<img src="http://rical-global.s3.amazonaws.com/img/ui-loading-spinner_orange.gif" width="12" height="12" />',
			gray: '<img src="http://rical-global.s3.amazonaws.com/img/ui-loading-spinner_gray.gif" width="12" height="12" />',
			white_on_green: '<img src="http://rical-global.s3.amazonaws.com/img/ui-loading-spinner_white_on_green.gif" width="12" height="12" />'
		};
		return spinners[color];
	}
};

$.fn.field = function() {
	$(this).css({color: '#999999'});

	return this.focus(function() {
		if ($(this).val() == this.defaultValue) {
			$(this).val('');
			$(this).css({color: '#333333'});
		}
	}).blur(function() {
		if (!$(this).val().length) {
			$(this).val(this.defaultValue);
			$(this).css({color: '#999999'});
		}
	});
};

