$().ready(function() {
	$('div#newsletter form').submit(function() {
		s = $(this).serialize();
		$.ajax({
			type: "POST",	
			data: s,
			url: "newsletter.php",
			success: function(retour){
				$('#ret_news-content').html(retour);
				$('#ret_news').jqmShow();
			}
	});
	return false;
	});
});

$().ready(function() {
  $('#ret_news').jqm({
    overlay: 50, /* 0-100 (int) : 0 is off/transparent, 100 is opaque */
    overlayClass: 'whiteOverlay'});
	
  $('input.jqmdX')
  .hover(
    function(){ $(this).addClass('jqmdXFocus'); }, 
    function(){ $(this).removeClass('jqmdXFocus'); })
  .focus( 
    function(){ this.hideFocus=true; $(this).addClass('jqmdXFocus'); })
  .blur( 
    function(){ $(this).removeClass('jqmdXFocus'); });

});
