         super();
     }
     
+    private var numColsInRow:Array;
+    
     //--------------------------------------------------------------------------
     //
     //  Properties

     */
    override public function getNavigationDestinationIndex(currentIndex:int, navigationUnit:uint, arrowKeysWrapFocus:Boolean):int
    {
        // TODO (jszeto) Currently we just support LEFT/RIGHT. Need to add logic for UP/DOWN/PGUP/PGDN
        if (!target || target.numElements < 1)
            return -1; 
        
        var maxIndex:int = target.numElements - 1;
        var newIndex:int;
        
        if (currentIndex == -1)
        {
            if (navigationUnit == NavigationUnit.LEFT)
                return maxIndex;
            else if (navigationUnit == NavigationUnit.RIGHT)
                return 0;    
        }   
        
        if (navigationUnit == NavigationUnit.LEFT)
            newIndex = currentIndex - 1;
        else if (navigationUnit == NavigationUnit.RIGHT)
            newIndex = currentIndex + 1;
        else
            return currentIndex;
        
        if (newIndex > maxIndex)
            newIndex = 0;
        else if (newIndex < 0)
            newIndex = maxIndex;
        
        return newIndex;
    }
    
    // Helper function

        if (!layoutTarget)
            return;
        
        numColsInRow = [];
        
        var xPos:Number = 0;
        var yPos:Number = 0;
        var itemIndex:int = 0;
