                 }
                 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 obj:IStyleClient = IStyleClient(getOverrideContext(appliedTarget, parent));
        if (obj != null && appliedTarget)
        {
	        // Restore the old value
	        if (oldValue is Number)
	            obj.setStyle(name, Number(oldValue));
	        else if (oldValue is Boolean)
	            obj.setStyle(name, toBoolean(oldValue));
	        else if (oldValue === null)
	            obj.clearStyle(name);
	        else
	            obj.setStyle(name, oldValue);
	
	
	        var relatedProps:Array = RELATED_PROPERTIES[name] ?
	                                 RELATED_PROPERTIES[name] :
	                                 null;
	
	        // Restore related property values, if needed
	        if (relatedProps)
	        {
	            for (var i:int = 0; i < relatedProps.length; i++)
	            {
	                obj[relatedProps[i]] = oldRelatedValues[i];
	            }
	        }
        }
        else
        {

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