// Add ECMAScript 5 bind-support for browsers that don't provide it by themselves (i.e. Safari)
if(typeof Function.prototype.bind=="undefined") {
	Function.prototype.bind = function (bind) {
		var self = this;
		return function () {
			var args = Array.prototype.slice.call(arguments);
			return self.apply(bind || null, args);
		}
	}	
}
