// execute your scripts when the DOM is ready. this is a good habit
$(function() {

	// beim Mauseintritt
	$("form.expose").bind("click keydown", function() {
		
		$(this).expose({
			
			// eigene Maske, eingestellt in CSS
			maskId: 'mask',

			// wenn exposing beendet ist, den Hintergrund des Formulars verändern
			onLoad: function() {
				this.getExposed().css({backgroundColor: 'transparent', backgroundImage:'none'});
			},

			// when "unexposed", return to original background color
			onClose: function() {
				this.getExposed().css({backgroundColor: null});
			},

			api: true

		}).load();
	});
	

	/*
	// beim Mausaustritt
	$("form.expose").mouseleave(function() {
		$(this).css({backgroundColor: 'red'});
	});
	*/
		
	
});

