$(function() {

  $('.email').live('click', function() {
  
    var emailaddress = $(this).attr('href').replace('mailto:','');
    
    $.modal('<div><h1>Disclaimer</h1><p><strong>Please Read Before Contacting via Email</strong></p><p>We welcome inquiries from prospective clients, however, we cannot represent you until we know that doing so will not create a conflict of interest. Therefore, please do not send us any information that you consider confidential until you have requested us to represent you and you have received written confirmation from us that we will do so. Until that time, any information you send us, even if it is confidential and sent in a good faith effort to retain the firm, will not preclude us from representing another client directly adverse to you in a matter in which the information is relevant and can be used against you.</p><center><p style="margin-top:25px;"><form action="mailto:'+emailaddress+'" method="GET" style="display:inline"><input type="submit" value="Accept and e-mail '+emailaddress+'"></form> <span style="margin-left:25px;">or</span> <a href="" onclick="$.modal.close();return false;" style="margin-left:25px;">Cancel</a></p></center></div>');
    
    return false;
    
  });
  
});
