$(document).ready(function () {
   var currentRow;
   $('.pv_list tr').click(function () {
      if (currentRow) {
         currentRow.removeClass('selected');
      }

      currentRow = $(this);

      currentRow.addClass('selected');

      $('.pv_action .button').attr('href', currentRow.attr('href'));

      $('.pv_selectlabel').css({display:'none'});
      $('.pv_action .button').css({display:'block'});
   });
});
$(document).ready(function() {
   // init image slider
   $('#image_slider').jcarousel();

   // init main photo
   $("#product_detail_image").attr("src", $("#image_slider li a").attr("href"));

   // re-apply [bottom] for the IE's, which don't like to update [bottom] when JS sets heights that
   // should influence a positioned element's position.
   setTimeout(resetOverlayPosition, 110);

});

function resetOverlayPosition() {
   $('.pb_overlay_text').each(function () {
      this.style.bottom = getStyleValue(this, 'bottom');
   });
}


function focusSliderImage(_url) {
	$("#product_detail_image").attr("src", _url);
}

