             t.siblings("img.productimg").removeClass("productimg").removeAttr('title') #navbox
             t.parent().siblings("img.productimg").removeClass("productimg").removeAttr('title') #Hero
           )
-        
-    )
+      ) # $.ajax()
+    # endif skus != blank
   
   #****Public Functions****
   

    skus = $('.productimg').map( -> 
      return $(this).attr('data-sku')
    ).toArray().join(" ")
    $.ajax(
        url: API_URL+skus,
        type: "GET",
        dataType: "jsonp",
        success: (data) ->
          $(data["products"]).each( (i) ->
            c = $('.productinfo[data-sku="'+this.sku+'"]')
            #Check whether onsale
            if (this.salePrice != this.regularPrice && Math.abs(this.regularPrice - this.salePrice) > 0.1) # No floating point error please
              #We have a sale!
              c.find('.saleprice').show()
              c.find('.price').hide()
              c.find('.save').show()
              c.find('.saleends').show()
            else
              #No sale
              c.find('.saleprice').hide()

              c.find('.saleends').hide()
                        
            #Update the saleprice
            if futureshop_layout
              c.find('.saleprice').find('span.price_dollars').html(parseInt(this.salePrice))
              c.find('.saleprice').find('span.price_cents').html(parseInt(100 * (this.salePrice - parseInt(this.salePrice))))
            else # Do the regular (Best Buy) layout
              c.find('.saleprice > span').html((if optemo_french? then "" else "$") + this.salePrice + (if optemo_french? then " $" else ""))

            #Update the regular price
            if futureshop_layout
              c.find('.price').find('span.price_dollars').html(parseInt(this.regularPrice))
              c.find('.price').find('span.price_cents').html(parseInt(100 * (this.regularPrice - parseInt(this.regularPrice))))              
            else
              c.find('.price > span').html((if optemo_french? then "" else "$") + this.regularPrice + (if optemo_french? then " $" else ""))
            #Update the savings
            savings = (parseFloat(this.regularPrice)-parseFloat(this.salePrice)).toFixed(2)
            current_savings = c.find('.save > span').html()
            if current_savings? && !(savings is current_savings or savings is current_savings[1..-1])
              if futureshop_layout
                c.find('.futureshop_sale_background > span').show().html("Save " + (if optemo_french? then "" else "$") + parseInt(savings) + (if optemo_french? then " $" else ""))
              else # Best buy layout
                c.find('.save > span').html((if optemo_french? then "" else "$") + savings + (if optemo_french? then " $" else ""))
                #Remove saleEnd data because we don't have accurate ones
