writing modal pop-up with jQuery
<p>I'm trying to understand how modal windows work. I know, there are multiple plug-ins out there but I'd like to write my own -- a simple one. </p>

<p>-- I can add a jquery function to show() hidden layer when some element is clicked on a page. </p>

<p>-- I can make it load above the page content but tweaking CSS, but I'm still not sure how to do couple of things. </p>

<p>For example, how do I make the rest of the page fade below the window?</p>

<p>Thanks.</p>
