jQuery missing ; before statement
<p>I have a problem with jQuery, my code looks ok, but I'm getting an error, which sounds like this:</p>

<blockquote>
  <p>missing ; before statement
  [Break on this error] }elseif($('.v_gallery li:first').hasClass('s')){\n</p>
</blockquote>

<p>And my code looks like this:</p>

<blockquote>
  <p>_gallery_pag : function() {<br />
     $('#top_pag a').live('click',function() {                                   var _type = $(this).attr('rel');</p>

<pre><code>  switch(_type)
  {
   case '1':
    if($('.v_gallery li:last').hasClass('s'))
    {
     $('.v_gallery li:first').find('a').click();
    }elseif($('.v_gallery li:first').hasClass('s')){
     alert('You can\'t go back!You are at the first page!');
    }
   break;
  }
  return false;
 });  
}
</code></pre>
</blockquote>

<p>I know, probably I miss spell checked something...because I don't see any problems.</p>

<p>10x guys</p>
