title: jquery mark first link as active in menu
body: <p>What am I trying to do is marking first link in menu as active, or better said, I need it to have a specific css settings. It would be kind of easy to do for me if I would not be using jquery for adding those css settings to the every link when I click on it (simple menu = when you click, it changes color, ...). So I need first link marked in css (as you can see in the code...) and when I click other menu link, the first link gets to normal css settings. Here is my code, I welcome any suggestions.</p>
  
  <p>EDIT: btw, first link is also marked with rel="sl1" ...if it can be useful for solution...</p>
  
  <pre><code> $(document).ready(function()
                  {
  
                      //prvy odkaz musi byt uz oznaceny pri nacitani stranky
                      $('#menu-vertikal li:first-of-type').addClass('aktivny-link');
                        $('#menu-vertikal li a').click(function () {
                        $('#menu-vertikal li.aktivny-link').removeClass('aktivny-link');
                        $('#menu-vertikal li').eq($(this).parent().index()).addClass('aktivny-link');
  
                      }); 
  
  
  
                      //zaciatok prepinania obsahu
  
                      $('#menu-vertikal ul a').on('click', function(){
                             var target = $(this).attr('rel');
                             $("#"+target).show().siblings("div").hide();
                          });
                  });
  </code></pre>