$(document).ready(function() {
   /* removed per NHANNA on 2010-03-29 due to tickets about price being hidden
   try {
      $(".store .products-list .item .details").css({'margin-left': "0"});
   } catch(err) {}*/
   
   if ($("#checkout_warning").length > 0) {
      $(".checkout_warning_anchor").attr("href","javascript:void(0);");
      $(".checkout_warning_anchor").click(function(){
         displayPayPalNotice();
      });
      $("#checkout_warning").hide();
   }
   
   //create detailed images hover (ONLY IF Under main prduct image)
   if($(".store .image-box > #detailed_images").length > 0) {
      var enlarged_link = $('#enlarged_link').attr("href");
      var enlarged_img = $('#enlarged_link img').attr("src");
      $('.thumb').hover(function(){
         var thumb_src = $(this).children('span').text();
         var protocol = document.location.protocol+"//";
         var domain = protocol+(document.domain);
         //REMOVED BY NHANNA on 2011-06-29 ... out causes it to change back before user can click so not necessary; $('#enlarged_link').attr("href",domain+thumb_src);
         //_debug(domain+thumb_src);
         $('#enlarged_link img').attr("src",domain+thumb_src);//'image_size.php?img=/' + $(this).children('span').html() + "&amp;h=237&amp;w=355"
      },function(){
         //REMOVED BY NHANNA on 2011-06-29 ... $('#enlarged_link').attr("href",enlarged_link);
         $('#enlarged_link img').attr("src",enlarged_img);
      });
   }
});
//---------------------------------------
function displayPayPalNotice () {
   tb_show('IE8 and Google Checkout/PayPal Dialog Window','#TB_inline?height=450&width=560&inlineId=checkout_warning&customClass=checkout_warning');
}

