             haloorange: 0xFFB600,
             halosilver: 0xAECAD9
         };
-
-    //--------------------------------------------------------------------------
-    //
-    //  Class variables
-    //
-    //--------------------------------------------------------------------------
-    /**
-     *  @private
-     */
-    private static var instance:IStyleManager2;
-
-    //--------------------------------------------------------------------------
-    //
-    //  Class methods
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     */
-    public static function getInstance():IStyleManager2
-    {
-        if (!instance)
-        {
-            // In Flex 4 each application/module creates its own style manager.
-            // There will be no style manager if the application/module was compiled for 
-            // Flex 3 compatibility. In that case create there will be no instance 
-            // associated with the top-level application so create a new instance.
-            instance = IStyleManager2(IFlexModuleFactory(SystemManagerGlobals.topLevelSystemManagers[0]).
-                       getImplementation("mx.styles::IStyleManager2"));
-            
-            if (!instance)
-                instance = new StyleManagerImpl(SystemManagerGlobals.topLevelSystemManagers[0]);
-        }
-        
-        return instance;
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Constructor
-    //
-    //--------------------------------------------------------------------------
-
-    /**
-     *  @private
-     * 
-     *  @param moduleFactory The module factory that is creating this instance. May not be null.
-     */
-    public function StyleManagerImpl(moduleFactory:IFlexModuleFactory)
-    {
-        super();
-
-        this.moduleFactory = moduleFactory;
-        this.moduleFactory.registerImplementation("mx.styles::IStyleManager2", this);
-        
-        // get our parent styleManager
-        if (moduleFactory is DisplayObject)
-        {
-            var request:Request = new Request(Request.GET_PARENT_FLEX_MODULE_FACTORY_REQUEST);
-            DisplayObject(moduleFactory).dispatchEvent(request); 
-            var moduleFactory:IFlexModuleFactory = request.value as IFlexModuleFactory;
-            if (moduleFactory)
-            {
-                _parent = IStyleManager2(moduleFactory.
-                                         getImplementation("mx.styles::IStyleManager2"));
-            }
-                
-        }
-    }
-
-    //--------------------------------------------------------------------------
-    //
-    //  Variables
-    //
-    //--------------------------------------------------------------------------
-
+    
     /**
      *  @private
      *  Whether any advanced selectors have been registered with this style


    /**
     *  @private
     *  This style manager's flex module factory.
     */
    private var moduleFactory:IFlexModuleFactory;

     */
    public function isInheritingStyle(styleName:String):Boolean
    {
        if (mergedInheritingStylesCache)
            return mergedInheritingStylesCache[styleName] == true;

        if (_inheritingStyles[styleName] == true)
            return true;
        
        if (parent && parent.isInheritingStyle(styleName))
