code: function( array, value ) {
  			if ( typeof value == 'function' ) {
  				for ( var i = 0, len = array.length; i < len; i++ ) {
  					if ( value( array[ i ] ) )
  						return i;
  				}
  			} else if ( array.indexOf )
  				return array.indexOf( value );
  			else {
  				for ( i = 0, len = array.length; i < len; i++ ) {
  					if ( array[ i ] === value )
  						return i;
  				}
  			}
  			return -1;
  		}
docs: Returns the index of an element in an array.
  
  var letters = [ 'a', 'b', 0, 'c', false ];
  alert( CKEDITOR.tools.indexOf( letters, '0' ) );		// -1 because 0 !== '0'
  alert( CKEDITOR.tools.indexOf( letters, false ) );		// 4 because 0 !== false
  
  @param {Array} array The array to be searched.
  @param {Object/Function} value The element to be found. This can be an
  evaluation function which receives a single parameter call for
  each entry in the array, returning `true` if the entry matches.
  @returns {Number} The (zero-based) index of the first entry that matches
  the entry, or `-1` if not found.