$(document).ready(function(){

  $('#skill_select').change(function() {
    active = $(this).val();
    $('#matrix tbody').each(function() {
      if($(this).attr('id') == active) {
        $(this).show();
      } else {
        $(this).hide();
      }
    });
  });
  
  if($('#slideshow_footer')) {
    $('#slideshow_footer').cycle();
  }
  
  // Left Menu flyout menus
  $("ul.sf-menu").superfish({ 
    animation: { opacity: 'show' },
    speed: 'fast',
    delay: 600
  });
  
  // Flag tooltips
  $("ul.flags a[title]").qtip({
    style: {
      name: 'light',
      tip: 'bottomMiddle',
      padding: 1,
      background: '#0c1a3b',
      color: '#ffffff',
      border: {
         radius: 6,
         color: '#0c1a3b'
      }
    },
    position: {
      corner: {
         target: 'topMiddle',
         tooltip: 'bottomMiddle'
      }
    },
    show: { delay: 0 }
  });
  
  // Links with images no border
  $('#content a img').parent('a').addClass('noborder');

});