
$(document).ready(function() {

  $('.thumbs li a').click(function() {
    $('#ird-player embed').attr('src', $(this).attr('href'));
    $('#ird-player param:first').attr('value', $(this).attr('href'));
    $('#ird-player').html($('#ird-player').html());// necessary for cross-browser compatibility
    return false;
  });
    $('.thumbs li a').hover(function() {
    var num = $(this).attr('id').split(':')[1]; // id attribute has syntax = c:{1-n}, e.g. c:1,c:2,etc.
    $('#testimonial').html($('#t' + num).html()); // id attribute of testimonials = t{1-n}, e.g. t1,t2,etc.
  }, //end hover mouseenter
  function() {
    $('#testimonial').html('Choose a segment from the menu above.');
  });//end hover mouse-leave
});// end dom ready handler


