the expires option is not working. please try like this
$(document).ready(function () {
alert('I am ready');
if ($.cookie('modal_shown') == null) {
$.cookie('modal_shown', 'yes');
setTimeout(function(){
$("#modal").fadeIn(500);
},7000);
}
});