/*
	Additional methods for Arrays used in IGN scripts.

	*** IGN_Core.js must be executed prior to executing this script

	Author: OldManLink (Peter Hugosson-Miller)
	Creation date: 2004-07-26
	Version: 1.0
*/

Array.prototype.iterate = function(oneOrTwoArgumentFunction)
{/*
	Iterate over my indexed elements, passing each element, and its index
	in the receiver as arguments to the supplied function.
*/
	for (var i = 0 ; i < this.length ; i++)
	{
		var args = new Array();
		args[0] = this[i];
		args[1] = i;
		oneOrTwoArgumentFunction.apply(this, args);
	}
}

Array.prototype.addLast = function(anObject)
{/*
	Add anObject at the indexed slot corresponding to my current size.
*/
	this[this.length] = anObject
}

