need to add before and after disconnected html code like /div to an object
<p>got a simple question! i have a code with structure like that:</p>

<pre><code>    &lt;a class="adv_link" target="_blank" href=""&gt;Link 1&lt;/a&gt;
    text here 1
    &lt;div class="adv_separator"&gt;&lt;/div&gt;

    &lt;a class="adv_link" target="_blank" href=""&gt;Link 2&lt;/a&gt;
    text here 2
    &lt;div class="adv_separator"&gt;&lt;/div&gt;

and etc...
</code></pre>

<p>i want to add BEFORE EACH link with class "add_link" the code: <code>&lt;div class="slide"&gt;</code> and add AFTER EACH div with class "adv_separator" the code: <code>&lt;/div&gt;</code> how i can do it with jquery?</p>

<p>p.s. in other words i want to create several divs nested with these links,texts and divs so i can use jquery cycle plugin to create a slider.</p>

<p>thank you all for the help!</p>
