var bIsFirebugReady = (!!window.console && !!window.console.log);

$(document).ready(
	function (){
		// update the plug-in version
		$("#idPluginVersion").text($.Calculation.version);
		$("input[name^=field_13]").bind("keyup", recalc);
		recalc();
	}
);
function recalc(){
	$("#totalSum").calc("qty * price",
		{
			qty: $("input[name^=field_13]"),
			price: 4
		},
		function (s){
			return s.toFixed(2) + " EUR";
		},
		function ($this){
			var sum = $this.sum();
			
			$("#totalSum").text(
				sum.toFixed(2) + " EUR"
			);
		}
	);
}

