 import mx.events.FlexEvent;
 import mx.events.FlexMouseEvent;
 import mx.events.ResizeEvent;
-import mx.managers.PopUpManager;
 
 import spark.components.Application;
 import spark.components.View;

            menuKeyHandler(event);
    }
    
    
    /**
     *  @private
     * 
     *  @langversion 3.0
     *  @playerversion Flash 10
     *  @playerversion AIR 2.5
     *  @productversion Flex 4.5
     */  
    private function orientationChangeHandler(event:StageOrientationEvent):void
    {   
        if (viewMenuOpen)
        {
            // Change the width
            // Reposition
            currentViewMenu.width = getLayoutBoundsWidth();
            
            
            currentViewMenu.validateNow();
            
            currentViewMenu.x = 0;
            currentViewMenu.y = Math.ceil(getLayoutBoundsHeight() - currentViewMenu.getLayoutBoundsHeight());
        }
    } 
    
    /**
     *  @private
     */ 

    //----------------------------------
    //  viewMenuOpen
    //----------------------------------
    
    /**
     *  Opens the view menu if set to true and closes it if set to false. 
