$(document).ready(function() {
  $("#divContentColumn").css({'padding': "19px"});

  // Cycle through hidden list to extract items (saves an API hit)
  var getcat = false;
  $("ul#productList li").each(function() {
    $("#productNavLanding #slider ul").append('<li>' + $(this).html() + '</li>');
    if ( !getcat ) {
      $("#productCategoryName").text($(this).find("div.thumb").attr('category'));
      getcat = true;
    }
  });
  // Assign handlers to new list
  $("#productNavLanding #slider ul li div.thumb a").hover(
    function() {
      var title = $(this).find("span.title").text();
      var name = $(this).parent().parent().find("div.name").text();
      $("#productName").html('<span class="lgYellow">' + title + '</span> <span class="smWhite">' + name + '</span>');
      $(this).css('color', '#ffbe00');
    },
    function() {
      $("#productName").html('');
      $(this).css('color', '#fff');
    }
  );

  // Initialize the slider
  $("#productNavLanding #slider ul").jcarousel({
    scroll: 1,
    buttonNextHTML: '<div class="next"></div>',
    buttonPrevHTML: '<div class="prev"></div>'
  });
});