// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults
Object.extend(Number.prototype, {
 round: function(precision) {
	str = new String(Math.round(this * Math.pow(10, precision)));
	return str.slice(0, precision*-1) + "." + str.slice(precision*-1);
 }
});

function toggleClass(klass) {
	$$('.' + klass).each(function(item) {
		item.toggle();
	});
}
