$(document).ready(function() {
    // if the requested cookie does not have the value I am looking for show the modal box
    if ($.cookie("msg") != 'true')
    {
		$("#modal").modal();//show modal box message

        // in the message is a link with the id "modal_close"
        // when you click on that link the modal will close and the cookie is set to "true"
        // path "/" means it's active for the entire root site.. if you set it to "/admin" will be active on the "admin" folder
        // expires in 7 days
        // "modal" is the name i gave the cookie.. you can name it anything you want
        $('a.modalCloseImg').click(function(e) {
            $.cookie("msg", "true", { path: '/', expires: 10 });
            $('#clearmsg').slideDown(1000);
        });
    }  else {
    	$('#clearmsg').show();
    }

});//end ready
