Jquery Check stylesheet and do action
<p>me again! I'm learning a lot from this site! </p>

<p>Now.. i want to know how do i check with jQuery  what stylesheet i'm using and perform an action. In the case, place a favicon..</p>

<p>i have this script for change stylesheet on my page:</p>

<pre><code>$("#painel_faccao li a").click(function() { 
    $("link#faccao").attr("href",$(this).attr('rel'));      
    $.cookie("css",$(this).attr('rel'), {expires: 365, path: '/'});
 return false;

});
</code></pre>

<p>and my favicon on page:</p>

<pre><code>&lt;link id="favicon" rel="shortcut icon" type="image/png" href="favicon.png" /&gt;
</code></pre>

<p>i know i must use this:</p>

<pre><code>$("#favicon").attr("href","favicon2.png");
</code></pre>

<p>but i don't know how to make jquery check the stylesheet.. </p>

<p>someone can help me?</p>
