// Colorise all text/password input boxes on a page
// License: http://www.gnu.org/licenses/gpl.txt
// Homepage: http://blog.leenix.co.uk/2009/07/jquery-onfocusonblur-text-box-color.html
// Version 1.01

// -- Set this var --

var gotFocusColor = '#FCFFC5'; // background color when input is selected
var gotNormalColor = '#FFFFFF';

// ----------------------------

var currentStyle; // what we revert back to when input is blured
jQuery(document).ready(function() {
	jQuery("input:[type=text], input:[type=password], textarea:[name=textarea]").focus(function () {
		currentStyle = this.style.background;
		this.style.background=gotFocusColor;
	});
	jQuery("input:[type=text], input:[type=password], textarea:[name=textarea]").blur(function () {
		this.style.background = '#fff';
		currentStyle = gotNormalColor;
	});
});



