   
   #Build spec matrix from API data
   buildComparisonMatrix = (num_tries = 0)->
+    # num_tries defaults to 0 but otherwise can be overriden if the page has been refreshed by this function (in the case of a failed spec search)
     skus = $('#basic_matrix').attr('data-skus').split(',')
     anchor = $('#hideable_matrix')
     # Build up the direct comparison table. Similar method to views/direct_comparison/index.html.erb

      $('.nav_clear_btn:visible').hide()
  
  show_comparison_window = (num_tries = 0)->
    skus = optemo_module.readAllCookieValues(optemo_module.cmpcookie)
    width = undefined


      # Jquery 1.5 would finish all the requests before building the comparison matrix once
      # With 1.4.2 we can't do that. Keep code for later.
      # $.when.apply(this,reqs).done();
      buildComparisonMatrix(num_tries) # Passes num_tries because if the spec search fails, buildComparisonMatrix needs to know
                                       # how many times it's already tried to refresh the page
      if ($.browser.msie && $.browser.version.substr(0,1)<7) # IE6 comparison page "more specs" spacing issue
        # This is a weird combination of margins, absolute positioning, and an inserted spacer div. It seems stable.
        $('<div>&nbsp;</div>').insertBefore('#info div.togglespecs').css({"height" : "23px", "width" : "1px", "display" : "block", "clear" : "both"})
