 		this.popup = popup;
 		
         browserMode = Capabilities.playerType == "ActiveX" && !popup;
-
+        desktopMode = Capabilities.playerType == "Desktop" && !popup;
+        // Flash main windows come up activated, AIR main windows don't
+        windowActivated = !desktopMode;
+    
         container.focusManager = this; // this property name is reserved in the parent
 
         // trace("FocusManager constructor " + container + ".focusManager");

     */
    private function sortFocusableObjectsTabIndex():void
    {
        //trace("FocusableObjectsTabIndex");
        
        focusableCandidates = [];
        

        while (p && p != s)
        {
            if (!p.tabChildren)
                return false;
            if (p is IFocusManagerComponent && !(IFocusManagerComponent(p).hasFocusableChildren))
                return false;
            p = p.parent;
        }
