﻿//*****************************************************************************
// JavaScript Array Object Extended Methods.
//*****************************************************************************
if ( !(new Array).indexOf ){
    Array.prototype.indexOf = function(obj)
    {
      for (var i = 0; i < this.length; i++)
        if (this[i] == obj)
          return (i);
      return (-1);
    }
}

if ( !(new Array).contains && (new Array).indexOf ){
    Array.prototype.contains = function(obj) { return (this.indexOf(obj) >= 0); }
} 
