if(typeof(Product)!="undefined"){
	Product.Config.prototype=Object.extend(Product.Config.prototype,{
		formatPrice: function(price, showSign)
		{
			var str = '';
			price = parseFloat(price);
			if(showSign){
				if(price<0){
					str+= '-';
					price = -price;
				}
				else{
					str+= '+';
				}
			}

			var roundedPrice = (Math.round(price*100)/100).toString();

			if (this.prices && this.prices[roundedPrice]) {
				str+= this.prices[roundedPrice];
			}
			else {
				precision=2;
				if(typeof(optionsPrice)!="undefined")
					if(typeof(optionsPrice.priceFormat)!="undefined")
						precision=optionsPrice.priceFormat.requiredPrecision;
				if(typeof(globalCutZeroSignPrice)!="undefined")
					if(price-parseInt(price)==0){
						precision=0;
					}
				str+= this.priceTemplate.evaluate({price:price.toFixed(precision)});
			}
			return str;
		}

		
	});
}
