$(document).ready(function(){ if($('#closeMini').length > 0){ document.getElementById("closeMini").onclick = function (){ document.getElementById("leadinModal-1953546").style.display = "none"; } } if($('#modalBanner').length > 0){ $("#modalBanner").modal('show'); $('#modalBanner').modal({backdrop: 'static', keyboard: false}) document.getElementById("gotocontact").onclick = function (){ $("#modalBanner").modal('hide'); } } });