// =============================================================================
/*
   IE5/Win&Mac用、Array拡張（pushとspliceの実装）

   最終更新日:2003年7月17日(水)
   -----------------------------------------------------------------------------

   メソッド
	- Array.push ( value )

	- Array.splice ( start, deleteCount, value ... )

*/
// =============================================================================



if(typeof Array != "undefined" && typeof Array.prototype != "undefined" && typeof Array.prototype.push == "undefined")
{
// -----------------------------------------------------------------------------
/*
   Array.pushメソッド
*/
Array.prototype.push = function ( value ) {
	this[this.length] = value;
	return this.length;
}
// -----------------------------------------------------------------------------
}



if(typeof Array != "undefined" && typeof Array.prototype != "undefined" && typeof Array.prototype.splice == "undefined")
{
// -----------------------------------------------------------------------------
/*
   Array.spliceメソッド
*/
Array.prototype.splice = function ( start, deleteCount ) {
	var temp_array = new Array()
	var return_array = new Array()

	for( var i=0; i<start; i++) {
		temp_array[temp_array.length] = this[i];
	}
	for( var i=2; i<arguments.length; i++) {
		temp_array[temp_array.length] = arguments[i];
	}
	for( var i=start + deleteCount; i<this.length; i++) {
		temp_array[temp_array.length] = this[i];
	}
	for( var i=0; i<deleteCount; i++) {
		return_array[i] = this[start + i];
	}
	this.length = 0;
	for( var i=0; i<temp_array.length; i++) {
		this[this.length] = temp_array[i];
	}
	return return_array;
}
// -----------------------------------------------------------------------------
}