if(typeof MA == "undefined") var MA = {};
if(typeof MA.util == "undefined") MA.util = {};

MA.util.Elayer = Class.create();
MA.util.ElayerStatic = MA.util.Elayer;

MA.util.Elayer.prototype = {
	initialize: function(){
		var instance = this._this = this;
		Event.observe(w, 'load', function(){MA.util.ElayerStatic.onLoad(instance)});
	},
	
	display: function(element){
		element = $(element);
		element.show();
	},
	
	hide: function(element){
		element = $(element);
		element.hide();
	}
};

MA.util.ElayerStatic.onLoad = function(instance){
	var cookie = CookieManager.read('warning');
	//var cookie = null;
	if(cookie == null){
		CookieManager.save('warning', true, 7);
		instance.display('elayerWarning');
	}
}

var Elayer = new MA.util.Elayer();
