// Some fixes

// method Number.toFixed(n)
// (10.345001).toFixed(3) -> 10.345
if (!Number.prototype.toFixed) {
	Number.prototype.toFixed = function(e) {
		var y = Math.round(this*Math.pow(10,e))/Math.pow(10,e);
		var i = e-y.toString().length+y.toString().indexOf('.')+1;
		if (e>0) {
			if (y.toString().indexOf('.')<0)
				return y+'.'+Math.pow(10,e).toString().substring(1);
			else if (i>0)
				return y+Math.pow(10,i).toString().substring(1);
			else return y;
		} else return y;
	}
}

var core = {};
core.base_path = '/';
