function play_video(video_file, title, featured) {
  //jQuery('title').text(title);
  if (featured) {
    jQuery('#video_title').html(title);
  }
  else {
    jQuery('#video_title').html(title);
  }
  document.getElementById('video').innerHTML ='';
  document.getElementById('video').innerHTML = '<object width="480" height="288" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab"><param name="src" value="'+ video_file +'"><param name="controller" value="true"><param name="autoplay" value="true"><embed src="'+ video_file +'" width="480" height="288" autoplay="true" scale="tofit" loop="false" pluginspace="http://www.apple.com/quicktime/download/"></embed></object>';
 //jQuery('#video').html('<object width="480" height="288" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab"><param name="src" value="'+ video_file +'"><param name="controller" value="true"><param name="autoplay" value="true"><embed src="'+ video_file +'" width="480" height="288" autoplay="true" scale="tofit" loop="false" pluginspace="http://www.apple.com/quicktime/download/"></embed></object>');

};

function load_featured() {
  $.ajax({
    url: "featured.html",
    type: 'GET',
    dataType: 'html',
    cache: false,
    success: function(data, textStatus) {
      if ($('li', data).length > 0) {
        $('#featured_title').removeClass('hidden');
      }
      $('li', data).each(function() {
       var id = $(this).attr('id');
        if ($('#'+id).length == 0) {
          $('#featured1').append($('#' + id, data).hide().fadeIn(1700));
        }
      }
      );
    }
  });
};
function load_featured4() {
  $.ajax({
    url: "featured4.html",
    type: 'GET',
    dataType: 'html',
    cache: false,
    success: function(data, textStatus) {
      if ($('li', data).length > 0) {
        $('#featured_title').removeClass('hidden');
      }
      $('li', data).each(function() {
       var id = $(this).attr('id');
        if ($('#'+id).length == 0) {
          $('#featured4').append($('#' + id, data).hide().fadeIn(1700));
        }
      }
      );
    }
  });
};
function load_featured2() {
  $.ajax({
    url: "featured2.html",
    type: 'GET',
    dataType: 'html',
    cache: false,
    success: function(data, textStatus) {
      if ($('li', data).length > 0) {
        $('#featured_title').removeClass('hidden');
      }
      $('li', data).each(function() {
       var id = $(this).attr('id');
        if ($('#'+id).length == 0) {
          $('#featured2').append($('#' + id, data).hide().fadeIn(1700));
        }
      }
      );
    }
  });
};
function load_featured3() {
  $.ajax({
    url: "featured3.html",
    type: 'GET',
    dataType: 'html',
    cache: false,
    success: function(data, textStatus) {
      if ($('li', data).length > 0) {
        $('#featured_title').removeClass('hidden');
      }
      $('li', data).each(function() {
       var id = $(this).attr('id');
        if ($('#'+id).length == 0) {
          $('#featured3').append($('#' + id, data).hide().fadeIn(1700));
        }
      }
      );
    }
  });
};

function load_related() {
  $.ajax({
    url: "related.html",
    type: 'GET',
    dataType: 'html',
    cache: false,
    success: function(data, textStatus) {
      $('li', data).each(function() {
        var id = $(this).attr('id');
        if ($('#'+id).length == 0) {
          $('#related').append($('#' + id, data).hide().fadeIn(1700));
        }
      }
      );
    }
  });
};
