     public var minimizeButton:Button;
     
     //----------------------------------
+    //  titleIconImage
+    //----------------------------------
+
+    /**
+     *  The title icon in the TitleBar.
+     *  
+     *  @langversion 3.0
+     *  @playerversion AIR 1.1
+     *  @productversion Flex 3
+     */
+    [SkinPart (required="false")]
+    public var titleIconImage:BitmapImage;
+
+    //----------------------------------
     //  titleTextField
     //----------------------------------
 

     */
    override protected function getCurrentSkinState():String 
    {
        if (isMac())
            return "mac";
        else if (window.nativeWindow.displayState == NativeWindowDisplayState.MAXIMIZED)
            return "maximized";
            
        return "normal";
    }    
    
    //--------------------------------------------------------------------------

import flash.display.NativeWindowDisplayState;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.system.Capabilities;

import mx.core.IWindow;

import spark.components.Button;
import spark.components.supportClasses.SkinnableComponent;
import spark.primitives.BitmapImage;
import spark.primitives.SimpleText;
import spark.skins.*;
import spark.skins.default.MacTitleBarSkin;
import spark.skins.default.TitleBarSkin;

/**
 *  The default title bar for a WindowedApplication or a Window.
