Based upon the URL you provided, this will let you keep the disabled="disabled" attribute:
<script type="text/javascript">
$(document).ready(function()
{
$('#StandardProductAddToCart:disabled').click(function()
{
$('#NotAvailable').modal();
});
});
</script>