/**
 * @author Dipl.-Ing. (FH) André Fiedler
 * 
 * Copyright (c) 2009 ö_konzept <http://oe-konzept.de>
 */

 Fx.Mask = new Class({

	Extends: Mask,
	
	options: {
		opacity: 1,
		tween: {}
	},
	
	initialize: function(target, options){
		this.parent(target, options);
		this.element.set('tween', this.options.tween);
		this.element.fade('hide').setStyle('display', 'block');
	},
	
	showMask: function(){
		this.element.fade(this.options.opacity);
		this.hidden = false;
		this.fireEvent('show');
	},

	hideMask: function(){
		this.element.fade('out');
		this.hidden = true;
		this.fireEvent('hide');
	}
 });