             var type:String = types[i].toString();
             if (styleManager.hasAdvancedSelectors() && advancedObject != null)
             {
-                var decls:Array = styleManager.getStyleDeclarations(type);
+                var decls:Object = styleManager.getStyleDeclarations(type);
                 if (decls)
                 {
                     var matchingDecls:Array = matchStyleDeclarations(decls, advancedObject);

     *  @return An unsorted Array of matching style declarations for the given
     *  subject.
     */
    private static function matchStyleDeclarations(declarations:Array,
            object:IAdvancedStyleClient):Array // of CSSStyleDeclaration
    {
        var matchingDecls:Array = [];

        // Find the subset of declarations that match this component
        for each (var decl:CSSStyleDeclaration in declarations)
        {
            if (decl.matchesStyleClient(object))
                matchingDecls.push(decl);
        }

        return matchingDecls;
    }


        }

        if (styleManager.hasAdvancedSelectors() && advancedObject != null)
        {                   
            // Advanced selectors may result in more than one match per type so
            // we sort based on specificity, but we preserve the declaration
            // order for equal selectors.
