function fFlashMessage() {
	new mooFlashMessage($$('.flash'));
}
window.addEvent('domready', fFlashMessage);

function popup( href, name, h, l ) {
	var hauteur = Math.round( ( screen.availHeight - h ) / 2 );
	var largeur = Math.round( ( screen.availWidth - l ) / 2 );
	var popup = window.open( href, name, 'toolbar=0,location=0,directories=0,status=0, scrollbars=1,resizable=1,menubar=0,top='+hauteur+',left='+largeur+',width='+l+',height='+h);
	popup.focus();
	return false;	
}

function popupOrder( Obj ) {
	return popup( Obj.href, 'order', 600, 800 );
}
function popUp(url) {
	    sealWin=window.open(url,"win",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=600,height=300');
	    self.name = "mainWin";
	    }

function scriptnl()
{
	if(document.getElementById('emailnewsletter').value == 'Votre adresse email'){
		document.getElementById('emailnewsletter').value='';
	}

}


function popupCenter( href, l, h) {
	var hauteur = Math.round( ( screen.availHeight - h ) / 2 );
	var largeur = Math.round( ( screen.availWidth - l ) / 2 );
	window.open( href, 'rsmPopup', 'toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=1,menubar=0,top='+hauteur+',left='+largeur+',width='+l+',height='+h);
	return false;	
}
