Array.prototype.unique = function () {
	var r = new Array();
		o:for(var i = 0, n = this.length; i < n; i++){
			for(var x = 0, y = r.length; x < y; x++){
				if(r[x]==this[i]){
					continue o;
				}
			}
			r[r.length] = this[i];
		}
	return r;
}

Array.prototype.forEach = function(fun /*, thisp*/)
{
	var len = this.length;
	if (typeof fun != "function") {
		throw new TypeError();
	}

	var thisp = arguments[1];
	for (var i = 0; i < len; i++){
		if (i in this){
			fun.call(thisp, this[i], i, this);
		}
	}
};

