Jquery Cookie to hide container for several days when clicked
===

I am developing a wordpress theme and I am displaying a message both for members and visitors (i check whether someone is a member or a visitor through php). I want to hide the box which includes the message if user click the "close" button for several days (let's say 7 days). Read a lot about cookies (documentation etc) on the web but still can't get this to work so I need some help... Thanks in advance!

    <?php if (is_user_logged_in()){
		echo "<div id='wel-msg'>Welcome, registered user! bla bla bla 
                       <div id='closer'>X</div></div>";
		}
		else {
		echo "<div id='wel-msg'>Welcome, visitor! blo blo blo <div id='closer'>X</div></div>";
		};
	?>