      *  If the specified index is invalid, or target is null, then
      *  null is returned.
      * 
-     *  If the item at the specified index is null or includeInLayout
+     *  If the element at the specified index is null or includeInLayout
      *  false, then null is returned.
      * 
-     *  @param index The index of the item to be scrolled into view.
+     *  @param index The index of the element to be scrolled into view.
      *  @return A Point that contains offsets to horizontalScrollPosition 
      *      and verticalScrollPosition that will scroll the specified
-     *      item into view, or null if no change is needed. 
+     *      element into view, or null if no change is needed. 
      * 
      *  @see clipContent
      *  @see verticalScrollPosition

         if (!target || !clipContent)
            return null;
            
         var n:int = target.numLayoutItems;
         if ((index < 0) || (index >= n))
            return null;
            
         var item:ILayoutItem = target.getLayoutItemAt(index);
         if (!item || !item.includeInLayout)
            return null;
            
         var scrollR:Rectangle = target.scrollRect;
         if (!scrollR)
            return null;
            
         var itemXY:Point = item.actualPosition;
         var itemWH:Point = item.actualSize;
         var itemR:Rectangle = new Rectangle(itemXY.x, itemXY.y, itemWH.x, itemWH.y);
         
         if (scrollR.containsRect(itemR) || itemR.containsRect(scrollR))
            return null;
            
         var dxl:Number = itemR.left - scrollR.left;     // left justify item
         var dxr:Number = itemR.right - scrollR.right;   // right justify item
         var dyt:Number = itemR.top - scrollR.top;       // top justify item
         var dyb:Number = itemR.bottom - scrollR.bottom; // bottom justify item
         
         // minimize the scroll
         var dx:Number = (Math.abs(dxl) < Math.abs(dxr)) ? dxl : dxr;
         var dy:Number = (Math.abs(dyt) < Math.abs(dyb)) ? dyt : dyb;
                 
         // scrollR "contains"  itemR in just one dimension
         if ((itemR.left >= scrollR.left) && (itemR.right <= scrollR.right))
            dx = 0;
         else if ((itemR.bottom >= scrollR.bottom) && (itemR.top <= scrollR.top))
            dy = 0;
            
         // itemR "contains" scrollR in just one dimension
         if ((itemR.left <= scrollR.left) && (itemR.right >= scrollR.right))
            dx = 0;
         else if ((itemR.bottom <= scrollR.bottom) && (itemR.top >= scrollR.top))
            dy = 0;
            
         return new Point(dx, dy);

        if (!g)
            return 0;     

        var maxIndex:int = g.numLayoutElements -1;
        if (maxIndex < 0)
            return 0;

