Your message was sent.") $('#emailBrandModal').delay(3000).modal('hide'); e.preventDefault(); return false; } else { $('#emailBrandModal .errors').html('

' + res.message + ''); e.preventDefault(); return false; } } }); return false; } }); /* end contact button */ /* gallery embed swapping */ $(".image").click(function() { $(this).blur(); var rel = $(this).attr("rel"); var name = $(this).attr("name"); var full = $(this).attr("full"); var caption = $(this).attr("title"); $('.active').removeClass("active"); $(this).parent().addClass("active"); $('#embed').hide(); $('#embed').fadeIn('slow'); if(rel == 'image') { $('#embed').html("
" + caption + ""); } else if(rel== 'youtube') { $('#embed').html("