PHP structure changed into a jQuery
<p>As this structure changed into a jQuery? And if this is possible at all?</p>

<pre><code>$path=$_SERVER["REQUEST_URI"];

$pathkor = substr(strrchr($path, "/"), 1);

$var = "/актеры/женщины/";


if(strstr($pathkor, '%D0%B6%D0%B5%D0%BD%D1%89%D0%B8%D0%BD%D1%8B') or strstr($pathkor, '98+99+100+101')){
    print '&lt;div class="punkt active"&gt;&lt;a alt="А-Б-В-Г" title="А-Б-В-Г" href="'.$var.'98+99+100+101"&gt;А-Г &lt;/a&gt; &lt;/div&gt;';
} else {
          print '&lt;div class="punkt "&gt;&lt;a alt="А-Б-В-Г" title="А-Б-В-Г" href="'.$var.'98+99+100+101"&gt;А-Г &lt;/a&gt; &lt;/div&gt;';   
}
</code></pre>

<p>The meaning of this code. Find the latest entries in an alias, and compare them. And if there is a match then appoint a special class.</p>
