alfa = function()
{
	var obj = this;
	var trans = jQuery.create("div", {"id":"trans-alfa"}, []);
	jQuery(trans).css({"z-index": "100",
					   "display": "none",
					   "filter": "alpha(opacity=60)",
					   "left": "0px",
					   "position": "absolute",
					   "top": "0px",
					   "background-color": "#000000",
					   "-moz-opacity": "0.6",
					   "opacity": "0.6"});
	
	this.size = function()
	{
		var de = document.documentElement;		
		var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.offsetWidth;
		var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.offsetHeight;
		
		w = ((document.body.offsetWidth > w)?document.body.offsetWidth:w)-(!jQuery.browser.msie?17:0);
		h = ((document.body.offsetHeight > h)?document.body.offsetHeight:h);
		
		jQuery(trans).css({"height": h, "width": w});
	};
	
	this.show = function()
	{
		jQuery(trans).show();
	};

	this.hide = function()
	{
		jQuery(trans).hide();
	};
	
	this.init = function()
	{
		jQuery("body").append(trans);
		jQuery(window).resize(function(){obj.size();});
		obj.size();
	};
};

var transparencia = new alfa();

jQuery(document).ready(function(){transparencia.init();});
