//Only add this implementation if one does not already exist. 
// property can be a number for an array of arrays or null
if (Array.prototype.find==null) Array.prototype.find=function(value, property){ 
   var ret = null;
   for (var i=0;i < this.length;i++) {
   	if (property == null) {
	   	if (this[i] == value) {
	   		ret = value;
	   		break;
	   	}
   	} else {
	   	if (this[i][property] == value) {
	   		ret = value;
	   		break;
	   	}
   	}
   }
   return ret;
}

if (window.is_ie && !is_ie && HTMLOptionsCollection.prototype.find==null) HTMLOptionsCollection.prototype.find = Array.prototype.find;

ArrayFind=function(array, value, property){ 
   var ret = null;
   for (var i=0;i < array.length;i++) {
   	if (property == null) {
	   	if (array[i] == value) {
	   		ret = value;
	   		break;
	   	}
   	} else {
	   	if (array[i][property] == value) {
	   		ret = value;
	   		break;
	   	}
   	}
   }
   return ret;
}
