
$(document).ready(function(){
     //MAIN NAV BAR
     $("#nav img").mouseover(function(){
          if($(this).attr('class') != "over") {
               var over = $(this).attr('rel') + '_over.png';
               $(this).attr('src', '/wp-content/themes/lu/images/nav2/'+over);
          }
     });
     $("#nav img").mouseout(function(){
          if($(this).attr('class') != "over"){
               var over = $(this).attr('rel') + '_out.png';
               $(this).attr('src', '/wp-content/themes/lu/images/nav2/'+over);
          }
     });

     //MEMBER LINKS
     $("#members_block .list_item img").mouseover(function(){
          var over = $(this).attr('rel') + '2.jpg';
          $(this).attr('src', '/wp-content/themes/lu/images/links/'+over);
     });
     $("#members_block .list_item img").mouseout(function(){
          var over = $(this).attr('rel') + '1.jpg';
          $(this).attr('src', '/wp-content/themes/lu/images/links/'+over);
     });

     //TABS
     $("#tabbed_contents #tabs li a").click(function(){
          var relv = $(this).attr('rel');
          $("#tabbed_contents #tabs li a").each(function(i){
               if($(this).attr('rel') == relv){
            // EDIT to use domain name on server
                    $(this).find('img').attr('src', "/wp-content/themes/lu/images/tabs/"+$(this).find('img').attr('rel')+"2.gif");
               } else {
                    $(this).find('img').attr('src', "/wp-content/themes/lu/images/tabs/"+$(this).find('img').attr('rel')+"1.gif");
               }
          });
          $("#tabbed_contents .content").each(function(i){
               if($(this).attr('rel') == relv){
                    $(this).css('display','block');
               } else {
                    $(this).css('display','none');
               }
          });
          return;
     });
     $(document).pngFix();

});
