# This is a combination of 2 commits.
# The first commit's message is:

Calls to wpsc_you_save in wpsc_the_product_price_display pass the product id as a parameter, let's the price be calculated for an arbitrary product id passed as a parameter rather than always calculating the price for the current product in the loop.

Removed unnecessary calls to wpsc_you_save whose results where being overwritten by later processing

# This is the 2nd commit message:

Wrap the check for the WPeC customer cookie in a function
Rather than check for the customer cookie on the ready event the ready event sets a timer to cause the cookie check to happen very shortly after the ready event processing completes
Fix parsing of the customer cookie check response to retrieve the customer id from the AJAX response generated with the PHP function wp_send_json_success
When the cookie is present it is parsed to extract the WPeC customer id, this ensures that the customer ID is set when the cookie is present jsut the same as when the cookie is being created
Added some console messages to aid WPeC customer support in tracking down performance and reliability issues that have been reported in the WordPress support forum during the summer/fall of 2014

added time out value to HTTP request