             var index1:int = findLayoutElementIndex(g, n, -1);
             if (index1 != -1)
             {
-                var element1:ILayoutElement = g.getLayoutElementAt(index1); 
+                var element1:ILayoutElement = g.getElementAt(index1); 
                 var element1Y:Number = element1.getLayoutBoundsY();
                 var element1Height:Number = element1.getLayoutBoundsHeight();                 
                 if ((element1Y < y1) && ((element1Y + element1Height) > y0))

    */
    private static function findLayoutElementIndex(g:GroupBase, i:int, dir:int):int
    {
        var n:int = g.numLayoutElements;
        while((i >= 0) && (i < n))
        {
           var element:ILayoutElement = g.getLayoutElementAt(i);
           if (element && element.includeInLayout)
           {
               return i;      

            llv.defaultMajorSize = typicalHeight;        
        }
        if (layoutTarget)
            llv.length = layoutTarget.numElements;        
     }

    /**
