dpr = {
	/// <summary>
	/// dpreview global object (all dpreview javascript functions and variables should 
	/// be declared as members of this object, to avoid collision with other libraries
	/// </summary>
};


dpr.shippingZones = [									// divides the world into zones, to represent affiliate coverage and currency settings
	{code:'US',affiliates: ['PriceGrabberUS','AmazonUS','AmazonSearchUS'],symbol:'$',currencyCode:'USD',buysUsDollars:1},
	{code:'UK',affiliates: ['PriceGrabberUK','AmazonUK','AmazonSearchUK'],symbol:'&pound;',currencyCode:'GBP',buysUsDollars:2},
	{code:'FR',affiliates: ['AmazonFR','AmazonSearchFR','CNet'],symbol:'&euro;',currencyCode:'EUR',buysUsDollars:1.47},
	{code:'DE',affiliates: ['AmazonDE','AmazonSearchDE','CNet'],symbol:'&euro;',currencyCode:'EUR',buysUsDollars:1.47},
	{code:'JP',affiliates: ['AmazonJP','AmazonSearchJP','CNet'],symbol:'&yen;',currencyCode:'JPY',buysUsDollars:0.0089}
];
dpr.getGenericShippingZone = function (zoneCode) 
{ 
	defaultZone = {code: zoneCode, affiliates: ['PriceGrabberUS','PriceGrabberUK','AmazonUS','AmazonDE','AmazonFR','AmazonUK','AmazonJP'], symbol:'$',currencyCode:'USD',buysUsDollars:1};
	for (var i=0; i<dpr.shippingZones.length; i++)
	{
		if (dpr.shippingZones[i].code == zoneCode) defaultZone = dpr.shippingZones[i];
	}
	return defaultZone;
}
dpr.initialMaxMerchants = 12;							// the number of merchant listings to display (if there are more merchants, a 'click for more merchants' link is presented)
dpr.initialMaxListingsAmazon = 4;						// the number of merchant listings to display (if there are more merchants, a 'click for more merchants' link is presented)
dpr.initialMaxListingsText = 8;							// the number of merchant listings to display in the text list (if there are more merchants, a 'click for more merchants' link is presented)
dpr.initialMaxListingsLogos = 3;						// the number of merchant listings to display in the text list (if there are more merchants, a 'click for more merchants' link is presented)
dpr.edgeCacheRoot = "http://a.img-dpreview.com/";		// the root of the edge-caching server to prepend to any relative urls which should utilise the network
dpr.clickThroughPath = '/products/endpoints/clickthrough.ashx';		// the product click-through redirection handler
dpr.shopDataPath = '/products/endpoints/shopdata.ashx';				// the url of the handler which serves the JSON data for the buybox
dpr.affiliateDataExpiryHours = 6;						// the number of hours that the merchant listing JSON files are valid for
dpr.affiliateDataExiryOffsetMinutes = 20;				// the number of minutes to wait (after the JSON files have been regenerated) before retrieving the new versions
dpr.message_ToLowTowDisplay_short = 'The manufacturer has asked not to display a price below a certain amount.';
dpr.message_ToLowTowDisplay_long = 'Manufacturers sometimes ask that retailers not display a price if it drops below a certain amount. The "too low" message indicates that the price of the item is so low that the manufacturer requested that it not be advertised.  Click here to continue to Amazon and see this low price.';