/*

    Copyright 2002, eric@base10.org
    
    This file is part of OOMouseovers.

    You should have received a copy of the license terms along with 
    OOMouseovers; if not, read the latest license at 
    http://base10.org/software/mouseovers.php

*/


// check to see if something exists
function IsDef(thing) {
  return (typeof thing != 'undefined');
}

// add new element on the end of an array
if (!IsDef(Array.push)) {
  Array.prototype.push = function() {
  	for (var i = 0; i < arguments.length; i++) {
  		this[this.length] = arguments[i];
  	}
  	return this.length;
  };
}