static public void ShowEditor()
	{
#if UNITY_IPHONE && !(UNITY_3_0 || UNITY_3_1 || UNITY_3_2 || UNITY_3_3 || UNITY_3_4 || UNITY_3_5 || UNITY_3_6 || UNITY_3_7 || UNITY_3_8 || UNITY_3_9)
		if (instance != null)
		{
			instance.Show(true);
			return;
		}

		instance = new SpriteTimelineEditor();

		if(timelineInstance == null)
			timelineInstance = new SpriteTimeline();

		// Get the selected object and see if it has a sprite:
		timelineInstance.Editor = instance;
		timelineInstance.SetupSelection();
		instance.position = new Rect(200, 200, 700, 400);
		timelineInstance.position = instance.position;
		timelineInstance.SetupRects();

		instance.autoRepaintOnSceneChange = true;
		instance.Show(true);
#else
		if (instance != null)
		{
			instance.ShowUtility();
			return;
		}

		instance = (SpriteTimelineEditor)EditorWindow.GetWindow(typeof(SpriteTimelineEditor), false, "Sprite Timeline");

		if (timelineInstance == null)
			timelineInstance = new SpriteTimeline();

		timelineInstance.Editor = instance;
		/*
				timelineInstance.SetupSelection();
				timelineInstance.SetupRects();
		*/
		timelineInstance.position = instance.position;

		instance.ShowUtility();
#endif
		instance.wndRect = instance.position;
	}
	public void OnCloseWindow()
	{
#if UNITY_IPHONE && !(UNITY_3_0 || UNITY_3_1 || UNITY_3_2 || UNITY_3_3 || UNITY_3_4 || UNITY_3_5 || UNITY_3_6 || UNITY_3_7 || UNITY_3_8 || UNITY_3_9)
		instance = null;
		closing = true;
		DestroyImmediate(this);
#endif
	}