window.addEvent('domready', function() {
	return false;
	if (Cookie.read('cookie_m_Splash__alter_20090505') == 'is_viewed') { return(false)}
	var myCookie = Cookie.write('cookie_m_Splash__alter_20090505', 'is_viewed', {duration: 60});
	var html =''
	+'<div class="Module" id="M__spash">'
		+'<div class="M__body" id="MB__spash">'
			+'<div id="M_splash_wrapper" style="position:absolute;z-index:6000;">'
				+'<div id="M_splash_wrapper_content" style="margin:0;text-align:left;position:absolute;left:230px;background-color:#fff;padding:5px;width:500px;z-index:5902">'
				+'<div>'
				+'<img src="addon/2009_01_19/m_Splash/images/20090505_demenagement.png" style="width:500px" alt="Mercredi 6 mai, Alter déménage ! rue Guillaume Tell 57, 1060 Bruxelles."/>'
			+'</div>'
		+'</div>'
		+'<div id="M_splash_wrapper_background" style="position:absolute;background-color:#666;top:0;z-index:5900;display:none">'
		+'</div>'
	+'</div>';
	document.body.innerHTML = html+document.body.innerHTML
	$('M_splash_wrapper').style.display = 'block';
	var el_splash = $('M_splash_wrapper');
	el_splash.setStyles({
		'height': ($$('body')[0].getSize().y+1600)+"px",
		'width': ($$('body')[0].getSize().x-16)+"px",
	});
	var leftPos = (((($$('body')[0].getSize().x)-600)/2)+"px");
	$('M_splash_wrapper_background').setStyles({
			'width': ($$('body')[0].getSize().x-20)+"px",
			'height': ($$('body')[0].getSize().y+1600)+"px",
			'left':0,
			'cursor':'pointer'
	});
	$('M_splash_wrapper_content').setStyles({
			'top':'10px',
			'left': leftPos,
			'cursor':'pointer'
	});



	MTvow_Splash_toggle_wrapper($('M_splash_wrapper_background'),'fade_50');
	MTvow_Splash_toggle_wrapper($('M_splash_wrapper_content'),'fade_100');
	$('M_splash_wrapper').addEvent('click',function(e) {
			e.stop();																				// stop propagation
			this.style.display='none';
	});
	function MTvow_Splash_toggle_wrapper(el, toggleState){
		with(el){
			switch(toggleState){
				case 'fade_50' :
						setStyles({
							'display':'block',
							'opacity':0.3
						});
						set('tween', {duration: 'long'});
						tween('opacity', '.4');
					break;
				case 'hide' :
					fade(0);
					break;
				case 'fade-hide' :
					//
					//style.position	='absolute';
					//style.zIndex		='60000';
					fade('hide');
					style.display = 'none';
				break;
				case 'fade_100' :
						setStyles({
							'display':'block',
							'opacity':0.1
						});
						set('tween', {duration: 'long'});
						tween('opacity', '1');
					break;
				break;
			}
		}
	}

});

