/********************************************
* Extensions for the Array object.
*	
******************************/

Array.prototype.inArray = function (value) {
	// Returns true if the passed value is found in the
	// array.  Returns false if it is not.
	var i;
	for(i = 0; i < this.length; i++) {
		if(this[i] == value) {
			return true;
		}
	}
	return false;
};

Array.prototype.remove = function(s) {
	for(i = 0;i < this.length;i++){
		if(s == this[i]) this.splice(i, 1);
	}
};
/*

Array.prototype = {
	inArray: function() {
		var i;
		for(i = 0; i < this.length; i++) {
			if(this[i] == value) {
				return true;
			}
		}
		return false;
	},
	remove: function() {
		for(i = 0;i < this.length;i++){
			if(s == this[i]) this.splice(i, 1);
		}
	}
}
*/
function isArray(obj) {
	var isArray = false;
	
	if(typeof(obj) == 'object') {
		for(a in obj) {
			if(typeof(a) != 'object') {
				isArray = true;
				break;
			}
		}
	}
	
	return isArray;
}
