
screen MainMenu
{
	onaction escape "event EscapePushedInMain" 
	defaultwidget Play
	
//=========================== 		 ==========================	
//==================== BACKGROUND ELEMENTS ====================
//=========================== 		 ==========================	

	widget Button Background
	{
		mins 0,0
		size 800,600

		texture "data/gfx/ui/MainMenu/Title_BG"
	}

	widget Button LuxorLogo_3
	{
		mins 306, 40
		size 180, 133
		texture "data/gfx/ui/MainMenu/logo3_"
	}

	widget EffectEmitter BackgroundEffects
	{
		mins 0, 0
		effectName "MainMenu_Background_01"

		StartOn
	}

	//widget Button LuxorLogoBall
	//{
	//	mins 355, 75
	//	size 97, 106
	//	texture "data/gfx/ui/MainMenu/logoBALL_"
	//}

//	widget EffectEmitter LuxorLogoBallEffect
//	{
//		mins 400, 129
//		effectName "MainMenu_LogoBall_01"
//
//		StartOn
//	}
	

//=========================== 		 ==========================	
//=================== COMMON MOVING ELEMENTS ==================
//=========================== 		 ==========================	

	widget Button stonetop
	{
		mins 38, 38
		size 748, 502
		texture "data/gfx/ui/MainMenu/Title_tablet"
	}

//=========================== 		 ==========================	
//=================== COMMON ESCAPE FUNCTIONS ==================
//=========================== 		 ==========================	
	
	widget Button ExitGameFromMain
	{
		disabled
		hidden

		eventToenableOn "UIShowMainMenuButtons"
		eventToDisableOn "UIHideMainMenuButtons"

		mins -1, -1
		size 1, 1
		text ""

		onaction enter "pushdialog VerifyQuit"

		EventToExecuteActionOn "EscapePushedInMain" 
	}
	
	widget Button ESCToMainFromCampaignSelect
	{
		disabled
		hidden

		eventToenableOn "UIShowModeSelectButtons"
		eventToDisableOn "UIHideModeSelectButtons"

		mins -1, -1
		size 1, 1
		text ""

		onaction enter "PlayUIAnim ModeSelectTransitionToMainMenu"

		EventToExecuteActionOn "EscapePushedInMain" 
	}
	
	widget Button ESCToMainFromFreeplay
	{
		disabled
		hidden

		eventToenableOn "UIShowFreeplayMenuButtons"
		eventToDisableOn "UIHideFreeplayMenuButtons"

		mins -1, -1
		size 1, 1
		text ""

		onaction enter "PlayUIAnim FreeplayTransitionToModeSelect"

		EventToExecuteActionOn "EscapePushedInMain" 
	}
	
	widget Button ESCToMainFromOptions
	{
		disabled
		hidden

		eventToenableOn "UIShowOptionsButtons"
		eventToDisableOn "UIHideOptionsButtons"

		mins -1, -1
		size 1, 1
		text ""

		onaction enter "event EscapePressedInOptionsScreen"

		EventToExecuteActionOn "EscapePushedInMain" 
	}
	
	widget Button ESCToMainFromPuzzle
	{
		disabled
		hidden

		eventToenableOn "UIShowPuzzleMenuButtons"
		eventToDisableOn "UIHidePuzzleMenuButtons"

		mins -1, -1
		size 1, 1
		text ""

		onaction enter "PlayUIAnim PuzzleTransitionToModeSelect"

		EventToExecuteActionOn "EscapePushedInMain" 
	}
	
	
//=========================== 		 ==========================	
//======================== MAIN MENU ==========================	
//=========================== 		 ==========================	

	

	widget Label MainMenuLabel
	{
		mins 200, 166
		size 400, 44

		text "#MainMenu"
		textAlignment "center"
		style "DisplayText05"
		
		hidden
		
		eventToHideOn "UIHideMainMenuButtons"
		eventToShowOn "UIShowMainMenuButtons"
	}	

	widget Button stonetop_buttons
	{
		mins 149, 245
		size 509, 267
		texture "data/gfx/ui/MainMenu/Title_tablet_main_menu"
		
		eventToHideOn "UIHideMainMenuButtons"
		eventToShowOn "UIShowMainMenuButtons"
	}
		
	widget Button Play
	{
		onaction enter "PlayUIAnim MainMenuTransitionToModeSelect"

		mins 238, 243
		size 128, 64

		textAlignment "center"
		text "#Play"
		style "Luxor2Style06"
		
		eventToHideOn "UIHideMainMenuButtons"
		eventToShowOn "UIShowMainMenuButtons"
	}

	widget Button Store
	{
		onaction enter "event RequestingStoreFromMenu; SetScreenOutAnim MainMenu Out_Right; SetScreenInAnim Store In_Right; gotoscreen Store"
		
		mins 515, 400
		size 110, 50

		textAlignment "center"
		textVerticalAlignment "top"
		text "#Store"
		style "Luxor2Style05"
		
		eventToHideOn "UIHideMainMenuButtons"
		eventToShowOn "UIShowMainMenuButtons"
	}

	widget Button TreasureRoom
	{
		onaction enter "SetScreenInAnim MainMenu In_Up; GotoScreenNoOuts TreasureRoom DoorTransition"
		
		mins 427, 252
		size 128, 38

		textAlignment "center"
		text "#TreasureRoom"
		style "Luxor2Style04"
		
		eventToHideOn "UIHideMainMenuButtons"
		eventToShowOn "UIShowMainMenuButtons"
	}

	widget Button Instructions
	{
		onaction enter "SetScreenInAnim MainMenu In_Up; event RequestingInstructionsFromMenu; GotoScreenNoOuts Instructions DoorTransition"

		mins 414, 305
		size 128, 70

		textAlignment "center"
		textVerticalAlignment "top"
		text "#Instructions"
		style "Luxor2Style04"

		eventToHideOn "UIHideMainMenuButtons"
		eventToShowOn "UIShowMainMenuButtons"
	}

	widget Button Options
	{
		onaction enter "PlayUIAnim MainMenuTransitionToOptions"

		mins 222, 322
		size 128, 80

		textAlignment "center"
		textVerticalAlignment "top"
		text "#Options"
		style "Luxor2Style04"
		
		eventToHideOn "UIHideMainMenuButtons"
		eventToShowOn "UIShowMainMenuButtons"
	}

	widget Button Quit
	{
		onaction enter "quit"
		
		mins 174, 434
		size 60, 70

		textAlignment "center"
		textVerticalAlignment "top"
		wordWrap
		text "#Quit"
		style "Luxor2Style04"
		
		eventToHideOn "UIHideMainMenuButtons"
		eventToShowOn "UIShowMainMenuButtons"
	}

	widget Button ProfileSelect
	{
		onaction enter "PushDialog SelectProfile"
		
		mins 293, 465
		size 190, 40

		text "#selectprofile"
		textAlignment "center"
		textVerticalAlignment "top"
		style "Luxor2Style04"
		
		eventToHideOn "UIHideMainMenuButtons"
		eventToShowOn "UIShowMainMenuButtons"
	}
		

//=========================== 		 ==========================	
//========================= MODE SELECT =======================
//=========================== 		 ==========================	
	
	widget Label CampaignSelectLabel
	{
		mins 200, 166
		size 400, 44

		text "#CampaignSelect"
		textAlignment "center"
		style "DisplayText05"
		
		hidden
		
		eventToShowOn "UIShowModeSelectButtons"
		eventToHideOn "UIHideModeSelectButtons"
	}

	widget Button TabletBackground
	{
		mins 149, 245
		size 509, 267
		texture "data/gfx/ui/MainMenu/Title_tablet_campaign_select"
		
		eventToShowOn "UIShowModeSelectButtons"
		eventToHideOn "UIHideModeSelectButtons"
	}
	
	widget Button othercampaigns
	{
		onaction enter "PlayUIAnim ModeSelectTransitionToFreeplay"
	
		mins 258, 308
		size 152, 30

		textVerticalAlignment "top"
		textAlignment "right"
		text "#FreePlay"
		style "Luxor2Style04"
				
		hidden
		
		eventToShowOn "UIShowModeSelectButtons"
		eventToHideOn "UIHideModeSelectButtons"
	}
	
	widget Button PuzzleCampaign
	{
		onaction enter "PlayUIAnim ModeSelectTransitionToPuzzle"

		mins 244, 400
		size 128, 30

		textVerticalAlignment "Top"
		textAlignment "center"
		text "#PuzzleCampaign"
		style "Luxor2Style04"
				
		hidden
		
		eventToShowOn "UIShowModeSelectButtons"
		eventToHideOn "UIHideModeSelectButtons"
	}

	widget Button MainMenu
	{
		onaction enter "PlayUIAnim ModeSelectTransitionToMainMenu"

		mins 182, 484
		size 202, 28

		textAlignment "left"
		text "#MainMenu"
		style "Luxor2Style04"
				
		hidden
		
		eventToShowOn "UIShowModeSelectButtons"
		eventToHideOn "UIHideModeSelectButtons"
	}
	
	widget Button NewGame
	{
		onaction enter "SetScreenOutAnim MainMenu Out_Left; SetScreenInAnim Pyramid In_Left; SetScreenInAnim ResumeOrContinueAdventure In_Left; gotoscreen Pyramid; pushDialog ResumeOrContinueAdventure; event SelectAdventureCampaign"

		mins 378, 258
		size 218, 30

		textAlignment "center"
		textVerticalAlignment "Top"
		text "#Adventure"
		style "Luxor2Style05"
		
		hidden
		
		eventToShowOn "UIShowModeSelectButtons"
		eventToHideOn "UIHideModeSelectButtons"
	}
	
//=========================== 		 ==========================	
//======================= FREEPLAY MENU =======================
//=========================== 		 ==========================	

	widget Label bkgforfreeplay
	{
		mins 149, 245
		size 509, 267
		
		texture "data/gfx/ui/MainMenu/Title_tablet_free_play"
		hidden
		
		eventToShowOn "UIShowFreeplayMenuButtons"
		eventToHideOn "UIHideFreeplayMenuButtons"
	}


    widget Label FreePlayMenuLabel
	{
		mins 200, 166
		size 400, 44

		text "#FPMenu"
		textAlignment "center"
		style "DisplayText05"
		
		hidden
		
		eventToShowOn "UIShowFreeplayMenuButtons"
		eventToHideOn "UIHideFreeplayMenuButtons"
	}
	
	 widget Label FreePlayModeLabel
	{
		mins 340, 256
		size 128, 30

		text "#SelectMode"
		textAlignment "center"
		textVerticalAlignment "top"
		style "DisplayText"
		
		hidden
		
		eventToShowOn "UIShowFreeplayMenuButtons"
		eventToHideOn "UIHideFreeplayMenuButtons"
	}

	widget Button ModeSelectLeftArrow
	{
		onaction enter "event OnLeftFreeplayModeArrowSelected"

		hidden
		
		mins 230, 284
		size 40, 40

		style "Luxor2Style14"

		eventToShowOn "UIShowFreeplayMenuButtons"
		eventToHideOn "UIHideFreeplayMenuButtons"
	}
	
	widget Label ModeSelectedLabel
	{
		hidden
		
		mins 280, 285
		size 240, 38

		textAlignment "center"
		style "Luxor2Style04"

		eventToShowOn "UIShowFreeplayMenuButtons"
		eventToHideOn "UIHideFreeplayMenuButtons"
		
		EventToPopulateFrom "PopulateFreeplayModeSelectedData"
	}
	
	widget Button ModeSelectRightArrow
	{
		onaction enter "event OnRightFreeplayModeArrowSelected"

		hidden
		
		mins 537, 284
		size 40, 40

		style "Luxor2Style13"

		eventToShowOn "UIShowFreeplayMenuButtons"
		eventToHideOn "UIHideFreeplayMenuButtons"
	}
	
	widget Button MapSelectLeftArrow
	{
		onaction enter "event OnLeftFreeplayArrowSelected"
		
		mins 185, 372
		size 40, 40
		style "Luxor2Style14"
		
		hidden
		
		eventToShowOn "UIShowFreeplayMenuButtons"
		eventToHideOn "UIHideFreeplayMenuButtons"
	}
	
	widget Button MapThumbDisplay01
	{
		onaction enter "event OnLeftFreeplayThumbnailSelected"
		onaction HoverOn "event showThumb_Rollover"
		onaction leftClick "event PlaySound ButtonClick"
		onaction hoverOff "event HideThumb_Rollover"		
		
		onaction gainfocus 	"event showThumb_Rollover; selectwidget MapThumbDisplay01" 
		onaction losefocus 	"event HideThumb_Rollover"

		disabled
		
		eventToEnableOn "HideLeftFreeplayThumbnailLock"
		eventToDisableOn "ShowLeftFreeplayThumbnailLock"
	
		mins 239, 338
		size 151, 108
		
		style "SoundOnly"
		
		EventToSetTextureFrom "PopulateLeftFreeplayThumbnailData"
		
		hidden
		
		eventToShowOn "UIShowFreeplayMenuButtons"
		eventToHideOn "UIHideFreeplayMenuButtons"
	}

	widget EffectEmitter ThumbRollover
	{
		mins 314, 392


		effectName 		"Thumb_rollover"				
		EventToStartEffectsOn 	"showThumb_Rollover"
		EventToStopEffectsOn 	"hideThumb_Rollover"
		
		eventToShowOn "UIShowFreeplayMenuButtons"
		eventToHideOn "UIHideFreeplayMenuButtons"

	}
	
	widget Label MapThumbLockDisplay01
	{
		hidden
		
		mins 239, 338
		size 151, 108
		texture "data/gfx/UI/thumb_locked"
		color ( 255,255,255,128 )
		text "LOCKED"
		textAlignment "center"
		style "HelpText"
		
		eventToShowOn "ShowLeftFreeplayThumbnailLock"
		eventToHideOn "HideLeftFreeplayThumbnailLock"
		
		eventToHideOn "UIHideFreeplayMenuButtons"
	}
	
	widget Button MapThumbTitle01
	{
		mins 239, 449
		size 151, 40
		text " "
		textAlignment "center"
		style "HelpText2"
		
		eventToPopulateFrom "PopulateLeftFreeplayThumbnailData"
		
		hidden
		
		eventToShowOn "UIShowFreeplayMenuButtons"
		eventToHideOn "UIHideFreeplayMenuButtons"
	}
	
	widget Button MapThumbDisplay02
	{
		onaction enter "event OnRightFreeplayThumbnailSelected"
		
		onaction HoverOn "event PlaySound ButtonHoverOn; event showThumb_Rollover2"
		onaction leftClick "event PlaySound ButtonClick"
		onaction hoverOff "event HideThumb_Rollover2"
		
		onaction gainfocus 	"event showThumb_Rollover2; selectwidget MapThumbDisplay02" 
		onaction losefocus 	"event HideThumb_Rollover2"
		
		disabled
		
		eventToEnableOn "HideRightFreeplayThumbnailLock"
		eventToDisableOn "ShowRightFreeplayThumbnailLock"
	
		mins 408, 338
		size 151, 108
		
		EventToSetTextureFrom "PopulateRightFreeplayThumbnailData"
		
		hidden
		
		eventToShowOn "UIShowFreeplayMenuButtons"
		eventToHideOn "UIHideFreeplayMenuButtons"
	}

	widget EffectEmitter ThumbRollover2
	{
		mins 484, 392


		effectName 		"Thumb_rollover"				
		EventToStartEffectsOn 	"showThumb_Rollover2"
		EventToStopEffectsOn 	"hideThumb_Rollover2"
		
		eventToShowOn "UIShowFreeplayMenuButtons"
		eventToHideOn "UIHideFreeplayMenuButtons"

	}
	
	widget Label MapThumbLockDisplay02
	{
		hidden
		
		mins 408, 338
		size 151, 108
		texture "data/gfx/UI/thumb_locked"
		color ( 255,255,255,128 )
		text "LOCKED"
		textAlignment "center"
		style "HelpText"
		
		eventToShowOn "ShowRightFreeplayThumbnailLock"
		eventToHideOn "HideRightFreeplayThumbnailLock"
		
		eventToHideOn "UIHideFreeplayMenuButtons"
	}
	
	widget Button MapThumbTitle02
	{
		mins 408, 449
		size 151, 40
		text " "
		textAlignment "center"
		style "HelpText2"
		
		eventToPopulateFrom "PopulateRightFreeplayThumbnailData"
		
		hidden
		
		eventToShowOn "UIShowFreeplayMenuButtons"
		eventToHideOn "UIHideFreeplayMenuButtons"
	}
	
	widget Button MapSelectRightArrow
	{
		onaction enter "event OnRightFreeplayArrowSelected"
		
		mins 575, 372
		size 40, 40
		style "Luxor2Style13"
		
		hidden
		
		eventToShowOn "UIShowFreeplayMenuButtons"
		eventToHideOn "UIHideFreeplayMenuButtons"
	}
	
	widget Button Back
	{
		onaction enter "PlayUIAnim FreeplayTransitionToModeSelect"

		mins 340, 480
		size 112, 38

		text "#Back"
		textAlignment "center"
		style "Luxor2Style04"

		hidden
		
		eventToShowOn "UIShowFreeplayMenuButtons"
		eventToHideOn "UIHideFreeplayMenuButtons"
	}
	
//=========================== 		 ==========================	
//======================= PUZZLE MENU =======================
//=========================== 		 ==========================	

	widget Label bkgforpuzzle
	{
		mins 149, 245
		size 509, 267
		
		texture "data/gfx/ui/MainMenu/Title_tablet_puzzle"
		hidden
		
		eventToShowOn "UIShowPuzzleMenuButtons"
		eventToHideOn "UIHidePuzzleMenuButtons"
	}
	
	widget Label PuzzleMenuLabel
	{
		mins 200, 166
		size 400, 44

		text "#PuzzleCampaignTitle"
		textAlignment "center"
		style "DisplayText05"
		
		hidden
		
		eventToShowOn "UIShowPuzzleMenuButtons"
		eventToHideOn "UIHidePuzzleMenuButtons"
	}
	
	widget Button MapSelectLeftArrow
	{
		onaction enter "event OnLeftPuzzleArrowSelected"
		
		mins 185, 372
		size 40, 40
		style "Luxor2Style14"
		
		hidden
		
		eventToShowOn "UIShowPuzzleMenuButtons"
		eventToHideOn "UIHidePuzzleMenuButtons"
	}
	
	widget Button MapThumbDisplay01
	{
		onaction enter "event OnLeftPuzzleThumbnailSelected"
		
		onaction HoverOn "event PlaySound ButtonHoverOn; event showThumb_Rollover3"
		onaction leftClick "event PlaySound ButtonClick"
		onaction hoverOff "event HideThumb_Rollover3"
		
		onaction gainfocus 	"event showThumb_Rollover3; selectwidget MapThumbDisplay01" 
		onaction losefocus 	"event HideThumb_Rollover3"
		
		disabled
		
		eventToEnableOn "HideLeftPuzzleThumbnailLock"
		eventToDisableOn "ShowLeftPuzzleThumbnailLock"
	
		mins 239, 338
		size 151, 108
		
		EventToSetTextureFrom "PopulateLeftPuzzleThumbnailData"
		
		hidden
		
		eventToShowOn "UIShowPuzzleMenuButtons"
		eventToHideOn "UIHidePuzzleMenuButtons"
	}

	widget EffectEmitter ThumbRollover3
	{
		mins 314, 392


		effectName 		"Thumb_rollover"				
		EventToStartEffectsOn 	"showThumb_Rollover3"
		EventToStopEffectsOn 	"hideThumb_Rollover3"
		
		eventToShowOn "UIShowPuzzleMenuButtons"
		eventToHideOn "UIHidePuzzleMenuButtons"

	}
	
	
	widget Label MapThumbLockDisplay01
	{
		hidden
		
		mins 239, 338
		size 151, 108
		texture "data/gfx/UI/thumb_locked"
		color ( 255,255,255,128 )
		text "LOCKED"
		textAlignment "center"
		style "HelpText"
		
		eventToShowOn "ShowLeftPuzzleThumbnailLock"
		eventToHideOn "HideLeftPuzzleThumbnailLock"
		
		eventToHideOn "UIHidePuzzleMenuButtons"
	}
	
	widget Button MapThumbTitle01
	{
		mins 239, 449
		size 151, 40
		text " "
		textAlignment "center"
		style "HelpText2"
		
		eventToPopulateFrom "PopulateLeftPuzzleThumbnailData"
		
		hidden
		
		eventToShowOn "UIShowPuzzleMenuButtons"
		eventToHideOn "UIHidePuzzleMenuButtons"
	}
	
	widget Button MapThumbDisplay02
	{
		onaction enter "event OnRightPuzzleThumbnailSelected"
		
		onaction HoverOn "event PlaySound ButtonHoverOn; event showThumb_Rollover4"
		onaction leftClick "event PlaySound ButtonClick"
		onaction hoverOff "event HideThumb_Rollover4"
		
		onaction gainfocus 	"event showThumb_Rollover4; selectwidget MapThumbDisplay02" 
		onaction losefocus 	"event HideThumb_Rollover4"
		
		disabled
		
		eventToEnableOn "HideRightPuzzleThumbnailLock"
		eventToDisableOn "ShowRightPuzzleThumbnailLock"
	
		mins 408, 338
		size 151, 108
		
		EventToSetTextureFrom "PopulateRightPuzzleThumbnailData"
		
		hidden
		
		eventToShowOn "UIShowPuzzleMenuButtons"
		eventToHideOn "UIHidePuzzleMenuButtons"
	}
	
	widget EffectEmitter ThumbRollover4
	{
		mins 484, 392


		effectName 		"Thumb_rollover"				
		EventToStartEffectsOn 	"showThumb_Rollover4"
		EventToStopEffectsOn 	"hideThumb_Rollover4"
		
		eventToShowOn "UIShowPuzzleMenuButtons"
		eventToHideOn "UIHidePuzzleMenuButtons"

	}

	widget Label MapThumbLockDisplay02
	{
		hidden
		
		mins 408, 338
		size 151, 108
		texture "data/gfx/UI/thumb_locked"
		color ( 255,255,255,128 )
		text "LOCKED"
		textAlignment "center"
		style "HelpText"
		
		eventToShowOn "ShowRightPuzzleThumbnailLock"
		eventToHideOn "HideRightPuzzleThumbnailLock"
		
		eventToHideOn "UIHidePuzzleMenuButtons"
	}
	
	widget Button MapThumbTitle02
	{
		mins 408, 449
		size 151, 40
		text " "
		textAlignment "center"
		style "HelpText2"
		
		eventToPopulateFrom "PopulateRightPuzzleThumbnailData"
		
		hidden
		
		eventToShowOn "UIShowPuzzleMenuButtons"
		eventToHideOn "UIHidePuzzleMenuButtons"
	}
		
	
	widget Button MapSelectRightArrow
	{
		onaction enter "event OnRightPuzzleArrowSelected"
		
		mins 575, 372
		size 40, 40
		style "Luxor2Style13"
		
		hidden
		
		eventToShowOn "UIShowPuzzleMenuButtons"
		eventToHideOn "UIHidePuzzleMenuButtons"
	}
	
	widget Button Back
	{
		onaction enter "PlayUIAnim PuzzleTransitionToModeSelect"

		mins 340, 480
		size 112, 38

		text "#Back"
		textAlignment "center"
		style "Luxor2Style04"

		hidden
		
		eventToShowOn "UIShowPuzzleMenuButtons"
		eventToHideOn "UIHidePuzzleMenuButtons"
	}
	
//=========================== 		 ==========================	
//========================== OPTIONS ==========================	
//=========================== 		 ==========================	


	widget Label OptionsLabel
	{
		mins 200, 166
		size 400, 44

		text "#Options"
		textAlignment "center"
		style "DisplayText05"
		
		hidden
		
		eventToShowOn "UIShowOptionsButtons"
		eventToHideOn "UIHideOptionsButtons"
	}	

	widget Label ResolutionTitle
	{
		text "#Resolution"
		textAlignment "center"
		mins 140, 238
		size 210, 44

		style "DisplayText"
		
		hidden
		
		eventToShowOn "UIShowOptionsButtons"
		eventToHideOn "UIHideOptionsButtons"
	}
	
	widget Button stonetop_options
	{
		mins 149, 245
		size 509, 267
		texture "data/gfx/ui/MainMenu/Title_tablet_options"
		
		eventToHideOn "UIHideOptionsButtons"
		eventToShowOn "UIShowOptionsButtons"
	}

	widget Label SoundEffectsVolumeTitle
	{
		text "#SFXVolume"
		mins 190, 250
		size 178, 32

		style "DisplayText"
		textAlignment "right"
		
		hidden
		
		eventToShowOn "UIShowOptionsButtons"
		eventToHideOn "UIHideOptionsButtons"
	}

	widget Slider SoundEffectsVolume
	{
		eventOnChange "ChangeSoundEffectsVolume"
		setValueEvent "SetSoundEffectsVolumeSlider"
		
		range 0 1
		
		text " "

		mins 420, 244
		size 168, 48
		
		style "OpenSlider"
		
		hidden
		
		eventToShowOn "UIShowOptionsButtons"
		eventToHideOn "UIHideOptionsButtons"
	}

	widget Label MusicVolumeTitle
	{
		text "#MusicVolume"
		mins 190, 294
		size 178, 32

		style "DisplayText"
		textAlignment "right"
		
		hidden
		
		eventToShowOn "UIShowOptionsButtons"
		eventToHideOn "UIHideOptionsButtons"
	}

	widget Slider MusicVolume
	{
		eventOnChange "ChangeMusicVolume"
		setValueEvent "SetMusicVolumeSlider"
		
		range 0 1

		mins 420, 288
		size 168, 48

		
		style "OpenSlider"

		text " "
		
		hidden
		
		eventToShowOn "UIShowOptionsButtons"
		eventToHideOn "UIHideOptionsButtons"
	}
	
	widget Label ResolutionTitle
	{
		text "#Resolution"
		mins 190, 338
		size 178, 32

		style "DisplayText"
		textAlignment "right"
		
		hidden
		
		eventToShowOn "UIShowOptionsButtons"
		eventToHideOn "UIHideOptionsButtons"
	}
	
	widget Button ResolutionDropdown
	{
		onaction enter "pushdialog ResolutionDropdown"
		
		mins 434, 345
		size 140, 20
		textVerticalAlignment "Center"	
		textAlignment "Center"

		
		EventToPopulateFrom "UISetResolutionText"
		
		style "Luxor2Style03"
		
		hidden

		eventToShowOn "UIShowOptionsButtons"
		eventToHideOn "UIHideOptionsButtons"
	}
	
	widget Button FullScreenRadio
	{
		onaction enter "event PickFullScreen; SelectWidget WindowedRadio"
		onaction hoverOn  "event ShowFullScreenCheckHover"
		onaction hoverOff  "event HideFullScreenCheckHover"
		eventToDisableOn "PickFullScreen"
		eventToEnableOn "PickWindowed"
		
		mins 377, 380
		size 255, 18

		style "RadioButton"
		text "#FullScreen"
		textAlignment "left"
		textVerticalAlignment "top"

		hidden
		
		eventToShowOn "UIShowOptionsButtons"
		eventToHideOn "UIHideOptionsButtons"
	}
		
	widget Button WindowedRadio
	{
		onaction enter "event PickWindowed; SelectWidget FullScreenRadio"
		onaction hoverOn  "event ShowWinScreenCheckHover"
		onaction hoverOff  "event HideWinScreenCheckHover"
		eventToDisableOn "PickWindowed"
		eventToEnableOn "PickFullScreen"

		disabled

		mins 377, 398
		size 255, 18

		style "RadioButton"
		text "#Windowed"
		textAlignment "left"
		textVerticalAlignment "top"

		hidden
		
		eventToShowOn "UIShowOptionsButtons"
		eventToHideOn "UIHideOptionsButtons"
	}

	widget Button HighDetailRadio
	{
		onaction enter "event PickHighDetail; SelectWidget LowDetailRadio"
		eventToDisableOn "PickHighDetail"
		eventToEnableOn "PickLowDetail"
		
		mins 377, 426
		size 255, 18

		style "RadioButton"
		text "#HighDetail"
		textAlignment "left"
		textVerticalAlignment "top"

		hidden
		
		eventToShowOn "UIShowOptionsButtons"
		eventToHideOn "UIHideOptionsButtons"
	}

	widget Button LowDetailRadio
	{
		onaction enter "event PickLowDetail; SelectWidget HighDetailRadio"
		eventToDisableOn "PickLowDetail"
		eventToEnableOn "PickHighDetail"

		disabled

		mins 377, 444
		size 255, 18

		style "RadioButton"
		text "#LowDetail"
		textAlignment "left"
		textVerticalAlignment "top"

		hidden
		
		eventToShowOn "UIShowOptionsButtons"
		eventToHideOn "UIHideOptionsButtons"
	}
		
	widget Button Credits
	{
		onaction enter "GotoScreenNoOuts Credits DoorTransition"

		mins 360, 486
		size 80, 24

		text "#Credits"
		textAlignment "center"
		textVerticalAlignment "top"
		style "Luxor2Style04"
		
		hidden
		
		eventToShowOn "UIShowOptionsButtons"
		eventToHideOn "UIHideOptionsButtons"
	}

	
	widget Button CancelOptions
	{
		onaction enter "event RevertOptions"

		mins 222, 486
		size 64, 24

		text "#Cancel"
		textAlignment "center"
		textVerticalAlignment "top"
		style "Luxor2Style04"
		
		hidden
		
		eventToShowOn "UIShowOptionsButtons"
		eventToHideOn "UIHideOptionsButtons"
		
		EventToExecuteActionOn "EscapePressedInOptionsScreen" 
	}
	
	widget Button ConfirmOptions
	{
		onaction enter "event ConfirmOptions"
		
		mins 520, 486
		size 64, 24

		text "#OK"
		textAlignment "center"
		textVerticalAlignment "top"
		style "Luxor2Style04"
		
		hidden

		eventToShowOn "UIShowOptionsButtons"
		eventToHideOn "UIHideOptionsButtons"
	}

	widget Button MainMenuCommand // this both confirm & cancel call to go back to the main menu 
	{
		mins -1, -1
		size 1, 1
		text " "
		
		hidden
		
		onaction enter "PlayUIAnim OptionsTransitionToMainMenu"
		
		EventToExecuteActionOn "UIReturnToMenuFromOptions" 
	}
	
	widget Button ReturnToGameCommand // this both confirm & cancel call to go back to playing 
	{
		mins -1, -1
		size 1, 1
		text " "
		
		hidden
		
		onaction enter "TransitionToSavedScreenStack DoorTransition"
		
		EventToExecuteActionOn "UIReturnToGameFromOptions" 
	}
	
//=========================== 		 ==========================	
//==================== FOREGROUND ELEMENTS ====================
//=========================== 		 ==========================	

		

	widget EffectEmitter StoneMiddle
	{
		mins 400, 509
		effectName "MainMenu_MiddleSmoke_01"

		StartOn
	}

	widget Button stonebottom
	{
		mins 0, 394
		size 800, 208
		texture "data/gfx/ui/MainMenu/Title_FG"
	}

	widget Label SelectedProfile
	{
		mins 220, 520
		size 364, 24
		EventToPopulateFrom "UIDisplaySelectedProfile"
		textAlignment "center"
		textVerticalAlignment "top"
		style "ProfileText"
	}
	
	widget Label PlayerRank
	{
		mins 220, 545
		size 364, 24
		EventToPopulateFrom "SetRankText"
		textAlignment "center"
		textVerticalAlignment "top"
		style "RankText"
	}


	widget EffectEmitter StoneDust
	{
		mins 400, 509
		effectName "MainMenu_Stone_Slam_01"

		EventToStartEffectsOn	"StoneHit"
		//EventToStopEffectsOn	"StoneStopMoving"
	}

	widget EffectEmitter StoneDustMoving
	{
		mins 400, 509
		effectName "MainMenu_Stone_Moving_01"

		EventToStartEffectsOn	"StoneMovingDown"
		EventToStopEffectsOn	"StoneStopMoving"
	}		


	

	
	widget Button LuxorLogoText
	{
		mins 205, 10
		size 392, 88
		texture "data/gfx/ui/MainMenu/logo_"
	}

	widget EffectEmitter LuxorLogoEffect
	{
		mins 0, 0
		effectName "MainMenu_LogoText_01"

		StartOn
	}

	widget EffectEmitter ForegroundEffects
	{
		mins 0, 0
		effectName "MainMenu_Foreground_01"

		StartOn
	}

	widget Button ContinueAdventure
	{
		onaction enter "event SelectAdventureCampaign;event ContinueAdventureCampaign"
		
		mins 579, 470
		size 221, 141
		
		texCoordsForMaxs 1, 1
		
		hidden
		hideIfDisabled
		wordWrap

		text "#ContinueAdventure"
		textAlignment "center"
		style "Luxor2Style04"

		texture "data/gfx/ui/MainMenu/continue_tab"
		
		eventToShowOn "ShowContinueGameButton"
		eventToHideOn "HideContinueGameButton"
		
		eventToEnableOn "UIShowMainMenuButtons"
		eventToDisableOn "UIHideMainMenuButtons"
	}
	


//=========================== animations

/*
	animation In
	{
		animHandoffTime 0

		init screen							position=relative (0,0)		
		init widget "Background"			position=relative (0,0)
		init widget "SelectedProfile"		position=relative (0,0)
		init widget "ProfileSelect"			position=relative (0,0)
		init widget "PlayerRank"			position=relative (0,0)
		init widget "StoneDust"				position=relative (0,0)
		init widget "StoneDustMoving"		position=relative (0,0)
	}
*/

	animation In
	{
		init screen									position=relative (0,265)
		init widget "background"					position=relative (0,-265)
		init widget "stonebottom"					position=relative (0,-265)
		init widget "PlayerRank"					position=relative (0,-265)
		init widget "SelectedProfile"				position=relative (0,-265)	
		init widget "StoneDust"						position=relative (0,-265)	
		init widget "StoneDustMoving"				position=relative (0,-265)	
		init widget "backgroundEffects"				position=relative (0,-265)
		//init widget "LuxorLogoBall"					position=relative (0,-265)
		//init widget "LuxorLogoBallEffect"			position=relative (0,-265)
		init widget "LuxorLogo_3"					position=relative (0,-265)
		init widget "LuxorLogoText"					position=relative (0,-265)
		init widget "LuxorLogoEffect"				position=relative (0,-265)
		init widget "foregroundEffects"				position=relative (0,-265)
		init widget "MainMenuLabel"		color=( 255, 255, 255, 0 )

		
		// init to just be "main menu"
		at 0 ms consoleCommand						"event UIShowMainMenuButtons"
		at 0 ms consoleCommand						"event UIHideModeSelectButtons"
		at 0 ms consoleCommand						"event UIHideFreeplayMenuButtons"
		at 0 ms consoleCommand						"event UIHideOptionsButtons"
		
		at 1000 ms colorWidget "MainMenuLabel"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 500 ms speed=cosine
		
		// move up
		at 0 ms consoleCommand						"event PlaySound DoorTransitionClose"
		at 0 ms moveScreen							from relative (0,265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "background"				from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "stonebottom"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "PlayerRank"				from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "SelectedProfile"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "StoneDust"				from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "StoneDustMoving"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "BackgroundEffects"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		//at 0 ms moveWidget "LuxorLogoBall"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		//at 0 ms moveWidget "LuxorLogoBallEffect"	from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "LuxorLogo_3"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "LuxorLogoText"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "LuxorLogoEffect"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "ForegroundEffects"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "StoneMiddle"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		
		at 100 ms consoleCommand					"event StoneMovingDown"
		at 267 ms consoleCommand					"event StoneStopMoving"
	}
	

	animation In_Left
	{
		init screen							position=relative (800,0)		
		
		at 0 ms moveScreen					from relative (800,0) to relative (0,0) over 1600 ms speed=Cosine
	}

	animation In_Right
	{
		init screen							position=relative (-800,0)		
		
		at 0 ms moveScreen					from relative (-800,0) to relative (0,0) over 1600 ms speed=Cosine
	}

	animation in_up
	{
		init screen									position=relative (0,265)
		init widget "background"					position=relative (0,-265)
		init widget "stonebottom"					position=relative (0,-265)
		init widget "PlayerRank"					position=relative (0,-265)
		init widget "SelectedProfile"				position=relative (0,-265)	
		init widget "StoneDust"						position=relative (0,-265)	
		init widget "StoneDustMoving"				position=relative (0,-265)	
		init widget "backgroundEffects"				position=relative (0,-265)
		//init widget "LuxorLogoBall"					position=relative (0,-265)
		//init widget "LuxorLogoBallEffect"			position=relative (0,-265)
		init widget "LuxorLogo_3"					position=relative (0,-265)
		init widget "LuxorLogoText"					position=relative (0,-265)
		init widget "LuxorLogoEffect"				position=relative (0,-265)
		init widget "foregroundEffects"				position=relative (0,-265)

		
		// init to just be "main menu"
		at 0 ms consoleCommand						"event UIShowMainMenuButtons"
		at 0 ms consoleCommand						"event UIHideModeSelectButtons"
		at 0 ms consoleCommand						"event UIHideFreeplayMenuButtons"
		at 0 ms consoleCommand						"event UIHideOptionsButtons"
		at 0 ms consoleCommand						"event UIHidePuzzleMenuButtons"
		
		// move up
		at 0 ms consoleCommand						"event PlaySound DoorTransitionClose"
		at 0 ms moveScreen							from relative (0,265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "background"				from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "stonebottom"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "PlayerRank"				from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "SelectedProfile"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "StoneDust"				from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "StoneDustMoving"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "BackgroundEffects"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		//at 0 ms moveWidget "LuxorLogoBall"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		//at 0 ms moveWidget "LuxorLogoBallEffect"	from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "LuxorLogo_3"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "LuxorLogoText"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "LuxorLogoEffect"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "ForegroundEffects"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "StoneMiddle"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		
		at 100 ms consoleCommand					"event StoneMovingDown"
		at 267 ms consoleCommand					"event StoneStopMoving"
	}
	
	animation in_up_freeplay // called when you go "back" from freeplay level
	{
		init screen									position=relative (0,265)
		init widget "background"					position=relative (0,-265)
		init widget "stonebottom"					position=relative (0,-265)
		init widget "PlayerRank"					position=relative (0,-265)
		init widget "SelectedProfile"				position=relative (0,-265)	
		init widget "StoneDust"						position=relative (0,-265)	
		init widget "StoneDustMoving"				position=relative (0,-265)	
		init widget "backgroundEffects"				position=relative (0,-265)
		//init widget "LuxorLogoBall"					position=relative (0,-265)
		//init widget "LuxorLogoBallEffect"			position=relative (0,-265)
		init widget "LuxorLogo_3"					position=relative (0,-265)
		init widget "LuxorLogoText"					position=relative (0,-265)
		init widget "LuxorLogoEffect"				position=relative (0,-265)
		init widget "foregroundEffects"				position=relative (0,-265)
		
		// reset to classic
		at 0 ms consoleCommand						"event UIShowFreeplayMenuButtons"
		at 0 ms consoleCommand						"event ResendFreeplaySelectionDataToUI"

		// init to just be "free play menu"
		at 0 ms consoleCommand						"event UIHideMainMenuButtons"
		at 0 ms consoleCommand						"event UIHideModeSelectButtons"
		at 0 ms consoleCommand						"event UIHideOptionsButtons"
		at 0 ms consoleCommand						"event UIHidePuzzleMenuButtons"
		
		// move up
		at 0 ms consoleCommand						"event PlaySound DoorTransitionClose"
		at 0 ms moveScreen							from relative (0,265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "background"				from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "stonebottom"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "PlayerRank"				from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "SelectedProfile"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "StoneDust"				from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "StoneDustMoving"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "BackgroundEffects"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		//at 0 ms moveWidget "LuxorLogoBall"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		//at 0 ms moveWidget "LuxorLogoBallEffect"	from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "LuxorLogo_3"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "LuxorLogoText"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "LuxorLogoEffect"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "ForegroundEffects"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "StoneMiddle"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		
		at 100 ms consoleCommand					"event StoneMovingDown"
		at 267 ms consoleCommand					"event StoneStopMoving"
	}
	
	animation in_up_options // called when you go to the options screen from playing
	{
		init screen									position=relative (0,265)
		init widget "background"					position=relative (0,-265)
		init widget "stonebottom"					position=relative (0,-265)
		init widget "PlayerRank"					position=relative (0,-265)
		init widget "SelectedProfile"				position=relative (0,-265)	
		init widget "StoneDust"						position=relative (0,-265)	
		init widget "StoneDustMoving"				position=relative (0,-265)	
		init widget "backgroundEffects"				position=relative (0,-265)
		//init widget "LuxorLogoBall"					position=relative (0,-265)
		//init widget "LuxorLogoBallEffect"			position=relative (0,-265)
		init widget "LuxorLogo_3"					position=relative (0,-265)
		init widget "LuxorLogoText"					position=relative (0,-265)
		init widget "LuxorLogoEffect"				position=relative (0,-265)
		init widget "foregroundEffects"				position=relative (0,-265)
		
		// init to just be "options menu"
		at 0 ms consoleCommand						"event UIHideMainMenuButtons"
		at 0 ms consoleCommand						"event UIHideModeSelectButtons"
		at 0 ms consoleCommand						"event UIHideFreeplayMenuButtons"
		at 0 ms consoleCommand						"event UIHidePuzzleMenuButtons"
		at 0 ms consoleCommand						"event UIShowOptionsButtons"
		
		// move up
		at 0 ms consoleCommand						"event PlaySound DoorTransitionClose"
		at 0 ms moveScreen							from relative (0,265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "background"				from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "stonebottom"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "PlayerRank"				from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "SelectedProfile"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "StoneDust"				from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "StoneDustMoving"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "BackgroundEffects"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		//at 0 ms moveWidget "LuxorLogoBall"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		//at 0 ms moveWidget "LuxorLogoBallEffect"	from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "LuxorLogo_3"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "LuxorLogoText"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "LuxorLogoEffect"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "ForegroundEffects"		from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		at 0 ms moveWidget "StoneMiddle"			from relative (0,-265) to relative (0,0) over 1267 ms speed=Cosine
		
		at 100 ms consoleCommand					"event StoneMovingDown"
		at 267 ms consoleCommand					"event StoneStopMoving"
	}
	
	animation in_up_options_from_credits // called when you go to the options screen from the credits (don't change the state of the options screen)
	{
		animHandoffTime 0

		init screen							position=relative (0,0)		
		init widget "Background"			position=relative (0,0)
		init widget "SelectedProfile"		position=relative (0,0)
		init widget "ProfileSelect"			position=relative (0,0)
		init widget "PlayerRank"			position=relative (0,0)
		init widget "StoneDust"				position=relative (0,0)
		init widget "StoneDustMoving"		position=relative (0,0)
	}

	animation MainMenuTransitionToModeSelect
	{
		#include "MainMenuTransitions\GoDown.txt"
		
		init widget "CampaignSelectLabel"		color=( 255, 255, 255, 0 )
		
		// do the transition ======PUT CHANGE EVENTS HERE======
		at 250 ms colorWidget "MainMenuLabel"	from ( 255,255,255,255 ) to ( 255,255,255,0 ) over 500 ms speed=cosine
		at 727 ms consoleCommand				"event UIHideMainMenuButtons"
		at 727 ms consoleCommand				"event UIShowModeSelectButtons"
		at 1000 ms colorWidget "CampaignSelectLabel"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 500 ms speed=cosine	
		
		#include "MainMenuTransitions\GoUp.txt"
	}
		
	animation MainMenuTransitionToOptions
	{
		#include "MainMenuTransitions\GoDown.txt"
		
		init widget "OptionsLabel"		color=( 255, 255, 255, 0 )
		
		// do the transition ======PUT CHANGE EVENTS HERE======
		at 250 ms colorWidget "MainMenuLabel"	from ( 255,255,255,255 ) to ( 255,255,255,0 ) over 500 ms speed=cosine
		at 727 ms consoleCommand				"event UIHideMainMenuButtons"
		at 727 ms consoleCommand				"event UIShowOptionsButtons"
		at 1000 ms colorWidget "OptionsLabel"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 500 ms speed=cosine
		
		#include "MainMenuTransitions\GoUp.txt"
	}
		
	animation OptionsTransitionToMainMenu
	{
		#include "MainMenuTransitions\GoDown.txt"
		
		init widget "MainMenuLabel"		color=( 255, 255, 255, 0 )
		
		// do the transition ======PUT CHANGE EVENTS HERE======
		at 250 ms colorWidget "OptionsLabel"	from ( 255,255,255,255 ) to ( 255,255,255,0 ) over 500 ms speed=cosine
		at 727 ms consoleCommand				"event UIShowMainMenuButtons"
		at 727 ms consoleCommand				"event UIHideOptionsButtons"
		at 1000 ms colorWidget "MainMenuLabel"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 500 ms speed=cosine
		
		#include "MainMenuTransitions\GoUp.txt"
	}
	
	animation ModeSelectTransitionToMainMenu
	{
		#include "MainMenuTransitions\GoDown.txt"
		
		init widget "MainMenuLabel"		color=( 255, 255, 255, 0 )
		
		// do the transition ======PUT CHANGE EVENTS HERE======
		at 250 ms colorWidget "CampaignSelectLabel"	from ( 255,255,255,255 ) to ( 255,255,255,0 ) over 500 ms speed=cosine	
		at 727 ms consoleCommand				"event UIHideModeSelectButtons"
		at 727 ms consoleCommand				"event UIShowMainMenuButtons"
		
		at 1000 ms colorWidget "MainMenuLabel"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 500 ms speed=cosine
		
		#include "MainMenuTransitions\GoUp.txt"
	}
	
	animation ModeSelectTransitionToFreeplay
	{
		#include "MainMenuTransitions\GoDown.txt"
		
		init widget "FreePlayMenuLabel"		color=( 255, 255, 255, 0 )
		
		// do the transition ======PUT CHANGE EVENTS HERE======
		at 250 ms colorWidget "CampaignSelectLabel"	from ( 255,255,255,255 ) to ( 255,255,255,0 ) over 500 ms speed=cosine	
		at 727 ms consoleCommand				"event UIHideModeSelectButtons"
		at 727 ms consoleCommand				"event UIShowFreeplayMenuButtons"
		at 727 ms consoleCommand				"event SelectFreeplayCampaign Classic"
		at 1000 ms colorWidget "FreePlayMenuLabel"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 500 ms speed=cosine	
		
		#include "MainMenuTransitions\GoUp.txt"
	}
	
	animation FreeplayTransitionToModeSelect
	{
		#include "MainMenuTransitions\GoDown.txt"
		
		init widget "CampaignSelectLabel"		color=( 255, 255, 255, 0 )
		
		// do the transition ======PUT CHANGE EVENTS HERE======
		at 250 ms colorWidget "FreePlayMenuLabel"	from ( 255,255,255,255 ) to ( 255,255,255,0 ) over 500 ms speed=cosine	
		at 727 ms consoleCommand				"event UIShowModeSelectButtons"
		at 727 ms consoleCommand				"event UIHideFreeplayMenuButtons"
		at 727 ms consoleCommand				"event UIDoneWithFreeplayMenu"
		at 1000 ms colorWidget "CampaignSelectLabel"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 500 ms speed=cosine	
		
		#include "MainMenuTransitions\GoUp.txt"
	}
	
	animation ModeSelectTransitionToPuzzle
	{
		#include "MainMenuTransitions\GoDown.txt"
		
		init widget "PuzzleMenuLabel"		color=( 255, 255, 255, 0 )
		
		// do the transition ======PUT CHANGE EVENTS HERE======
		at 250 ms colorWidget "CampaignSelectLabel"	from ( 255,255,255,255 ) to ( 255,255,255,0 ) over 500 ms speed=cosine	
		at 727 ms consoleCommand				"event UIHideModeSelectButtons"
		at 727 ms consoleCommand				"event UIShowPuzzleMenuButtons"
		at 727 ms consoleCommand				"event SelectPuzzleCampaign"
		at 1000 ms colorWidget "PuzzleMenuLabel"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 500 ms speed=cosine	
		
		#include "MainMenuTransitions\GoUp.txt"
	}
	
	animation PuzzleTransitionToModeSelect
	{
		#include "MainMenuTransitions\GoDown.txt"
		
		init widget "CampaignSelectLabel"		color=( 255, 255, 255, 0 )
		
		// do the transition ======PUT CHANGE EVENTS HERE======
		at 250 ms colorWidget "PuzzleMenuLabel"	from ( 255,255,255,255 ) to ( 255,255,255,0 ) over 500 ms speed=cosine	
		at 727 ms consoleCommand				"event UIShowModeSelectButtons"
		at 727 ms consoleCommand				"event UIHidePuzzleMenuButtons"
		at 1000 ms colorWidget "CampaignSelectLabel"	from ( 255,255,255,0 ) to ( 255,255,255,255 ) over 500 ms speed=cosine	
		
		#include "MainMenuTransitions\GoUp.txt"
	}

	animation Out_Right
	{
		animHandoffTime 0

		init screen			position=relative (0,0)		
		
		at 0 ms moveScreen			from relative (0,0) to relative (800,0) over 1600 ms speed=Cosine
	}

	animation Out_Left
	{
		animHandoffTime 0

		init screen			position=relative (0,0)		
		
		at 0 ms moveScreen			from relative (0,0) to relative (-800,0) over 1600 ms speed=Cosine
	}

	animation Out
	{
		animHandoffTime 0

		init screen			position=relative (0,0)
	}

	

}



