// execute your scripts when the DOM is ready. this is a good habit
$(function() {

	// expose the form when it's clicked or cursor is focused
	$("form.expose").bind("click keydown", function() {

		$(this).expose({

			// custom mask settings with CSS
			maskId: 'mask',

			// when exposing is done, change form's background color
			onLoad: function() {
				this.getExposed().css({backgroundColor: 'transparent'});
			},

			// when "unexposed", return to original background color
			onClose: function() {
				this.getExposed().css({backgroundColor: null});
			},

			api: true

		}).load();
	});
});
