                 }
                 else
                 {
-	                obj.setStyle(name, Number(value));
+                    obj.setStyle(name, Number(value));
                 }               
-	        }
-	        else if (oldValue is Boolean)
-	        {
-	            obj.setStyle(name, toBoolean(value));
-	        }
-	        else
-	        {
-	            obj.setStyle(name, value);
-	        }
+            }
+            else if (oldValue is Boolean)
+            {
+                obj.setStyle(name, toBoolean(value));
+            }
+            else
+            {
+                obj.setStyle(name, value);
+            }
         }
         else if (!applied)
         {

        var context:Object = getOverrideContext(target, parent);
        if (context != null)
        {
        	appliedTarget = context;
        	var obj:IStyleClient = IStyleClient(appliedTarget);
        	
	        var relatedProps:Array = RELATED_PROPERTIES[name] ?
	                                 RELATED_PROPERTIES[name] :
	                                 null;
	
	        // Remember the original value so it can be restored later
	        // after we are asked to remove our override (and only if we
	        // aren't being asked to re-apply a value).
	        if (!applied)
	        {
	            oldValue = obj.getStyle(name);
	        }
	
	        if (relatedProps)
	        {
	            oldRelatedValues = [];
	
	            for (var i:int = 0; i < relatedProps.length; i++)
	                oldRelatedValues[i] = obj[relatedProps[i]];
	        }
	
	        // Set new value
	        if (value === null)
	        {
	            obj.clearStyle(name);
	        }
	        else if (oldValue is Number)
	        {
	            // The "value" for colors can be several different formats:
	            // 0xNNNNNN, #NNNNNN or "red". We can't use
	            // StyleManager.isColorStyle() because that only returns true
	            // for inheriting color styles and misses non-inheriting styles like
	            // backgroundColor.
                if (name.toLowerCase().indexOf("color") != -1)
                {
                    var styleManager:IStyleManager2;

                    else
                        styleManager = parent.styleManager;
                    
                    obj.setStyle(name, styleManager.getColorName(value));
                }
                else if (value is String && 
                         String(value).lastIndexOf("%") == 
