 
 package spark.components.supportClasses
 {
+import flash.display.StageOrientation;
+import flash.events.StageOrientationEvent;
 import flash.utils.getDefinitionByName;
 import flash.utils.getQualifiedClassName;
 
+import mx.core.FlexGlobals;
 import mx.core.mx_internal;
 import mx.events.FlexEvent;
 import mx.events.PropertyChangeEvent;
+import mx.managers.SystemManager;
 
 import spark.components.SkinnableContainer;
 import spark.components.View;

    //--------------------------------------------------------------------------
    
    /**
     *  If the navigator is the main navigator of the MobileApplication or
     *  class, this method is called when the back device key is pressed.
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10.1
     *  @playerversion AIR 2.5
     *  @productversion Flex 4.5
     */
    mx_internal function backKeyHandler():void
    {
    }
    
    /**
     *  @private
     *  This method checks if the current view can be removed
     *  from the display list. This is mx_internal because the
     *  TabbedViewNavigator needs to call it on its children.
     * 
     *  @return Returns true if the screen can be removed
     *  
     *  @langversion 3.0
     *  @playerversion Flash 10.1
     *  @playerversion AIR 2.5
     *  @productversion Flex 4.5
     */
    mx_internal function canRemoveCurrentView():Boolean
    {
    	// This is a method instead of a property because the default
    	// implementation in ViewNavigator has a side effect
        return true;
    }
    
    /**
     *  @private
     *  Creates the top view of the navigator and adds it to the
     *  display list.  This method is used when the navigator exists
     *  inside a TabbedViewNavigator.
     */ 
    mx_internal function createTopView():void
    {
        // Override in sub class
    }
    
    /**
     *  @private
     *  
     *  @langversion 3.0

     */
    override protected function getCurrentSkinState():String
    {
        var finalState:String = FlexGlobals.topLevelApplication.aspectRatio;
    
        if (_overlayControls)
            finalState += "AndOverlay";
