var isMail=/^[\w\-]+(\.[\w\-]+)*@[\w\-]+(\.[\w\-]+)*\.[\w\-]{2,}$/;$(document).ready(function(){var colwrap=$('div.colwrapper');$('div.column',colwrap).height(colwrap.height()-$('h2',colwrap).height());$('#archivesBreves ul').height(colwrap.height());colwrap=$('#archivesBreves div.colwrapper');$('ul',colwrap).height(colwrap.height()-$('h2',colwrap).height());$('#lettreSub, #lettreUnsub, #lettreUnsubTxt').submit(function(){var self=$(this);var liste=$('input[name=liste]',self);var format=$('#texte:checked',self).val()||liste.val();var adresse=$('input[name=adresse_email]',self).focus(function(){$(this).removeClass('error');});if(false===isMail.test(adresse.val())){adresse.val(adresse.val()||'?').addClass('error');return false;}
liste.val(format);});if($.support.cssFloat===false&&$.browser.version<7)
return;var sortingKeys=$('#sortingKeys');var selectBodys=$('ul.selectBody',sortingKeys);$('html').click(function(e){if(false===$(e.target).closest('div').hasClass('select'))
selectBodys.hide();});$('h4.selectTitle',sortingKeys).click(function(){$('div.select',sortingKeys).css('z-index',98);$(this).parent().css('z-index',99);var sel=$(this).next('ul.selectBody');selectBodys.not(sel).hide();sel.toggle();});});
