if(typeof rmi != 'object')
	rmi={};
if(typeof rmi.util != 'object')
	rmi.util={};

	rmi.util.arrayInsert=function($a,$b,$c)
	{
		$c=parseInt($c);
		if(typeof $c != 'number' || $c>=$a.length)
			return $a.concat($b);
		if($c<=0)
			return $b.concat($a);
		return $a.splice(0,$c).concat($b,$a);
	};
	
	rmi.util.arrayRemove=function(a,b,c)
	{
		if(typeof(a.length)!='number') return a;
		if(typeof(b)!='number' || b<0)b=0;
		if(typeof(c)!='number' || c>a.length)c=a.length;
		return a.slice(0,b).concat(a.slice(c, a.length));
	}
	
	rmi.util.objSetTimeout=function(object, command, milliseconds)
	{ // from google's open source markermanager
		return window.setTimeout(function(){command.call(object);}, milliseconds);
	};
