
$(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);
}
