adding css to custom reusable function
<p>i created a function in jQuery which lets me create a lightbox as following:</p>

<pre><code>var lightbox = create_lightbox(params);
</code></pre>

<p>I would like to expand this function so i can add custom css to it and make it look like a feel in any given circumstance. I would prefer to be able to do the folowing:</p>

<pre><code>    lightbox.css = {
    "background-color" : "red",
    etc...

}
</code></pre>

<p>What would be the best way to do this and how would i iterate over the css elements inside my function?</p>

<p>tyvm </p>
