if (!Array.indexOf) {
	Array.prototype.indexOf=function(obj) {
		for (var i=0;i<this.length;i++) {
			if(this[i]==obj) {
				return i;
			}
		}
			return -1;
		}
}
		
if (!Array.add) {
	Array.prototype.add=function(obj) {
		if (this.indexOf(obj)<0) {
			this[this.length]=obj;
			return true;
		}
		else return false;
	}
}
		
if (!Array.push) {
	Array.prototype.push=function(obj) {
		if (this.indexOf(obj)<0) {
		}
	}
}
				
if (!Array.del) {
	Array.prototype.del=function(obj) {
		var index = this.indexOf(obj);
		if (index>=0) {
			for (var i=index;i<this.length-1;i++) {
				this[i]=this[i+1];
			}
			this[this.length]=null;
		}
		return index;
	}
}

