<panels>

	<mainmenu _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<frame _extends="/controldefs/popupframe">
				<x>400</x>
				<y>270</y>
				<halign>center</halign>
				<width>300</width>
				<height>300</height>
			</frame>
			<newgamebutton _extends="/controldefs/choicetext">
				<text>Story Mode</text>
				<tooltip>Explore a new world</tooltip>
				<x>400</x>
				<y>280</y>
				<width>200</width>
				<onlclick>hidepanel(mainmenu);hidelogo;freetrade(off);showpanel(choosecharacter)</onlclick>
			</newgamebutton>
			<freetradebutton _extends="/controldefs/choicetext">
				<text>Free Trade Mode</text>
				<tooltip>Focus on trade and profit</tooltip>
				<x>400</x>
				<y>310</y>
				<width>200</width>
				<onlclick>hidepanel(mainmenu);hidelogo;freetrade(on);showpanel(choosecharacter)</onlclick>
			</freetradebutton>
                        <continuebutton _extends="/controldefs/choicetext">
				<text>Continue</text>
				<tooltip>Resume your most recent game</tooltip>
				<x>400</x>
				<y>340</y>
				<width>200</width>
				<onlclick>hidepanel(mainmenu);loadautosave</onlclick>
			</continuebutton>
                        <loadgamebutton _extends="/controldefs/choicetext">
				<text>Load Game</text>
				<tooltip>Restore a saved game</tooltip>
				<x>400</x>
				<y>370</y>
				<width>200</width>
				<onlclick>hidepanel(mainmenu);showpanel(loadgame)</onlclick>
			</loadgamebutton>
			<optionsbutton _extends="/controldefs/choicetext">
				<text>Options</text>
				<tooltip>Configure Tradewinds 2</tooltip>
				<x>400</x>
				<y>400</y>
				<width>200</width>
				<onlclick>hidepanel(mainmenu);refresh_options;showpanel(options)</onlclick>
			</optionsbutton>
			<helpbutton _extends="/controldefs/choicetext">
				<text>Help</text>
				<tooltip>How to play</tooltip>
				<x>400</x>
				<y>430</y>
				<width>200</width>
				<onlclick>gethelp</onlclick>
			</helpbutton>
			<creditsbutton _extends="/controldefs/choicetext">
				<text>Credits</text>
				<tooltip>Meet the Makers</tooltip>
				<x>400</x>
				<y>460</y>
				<width>200</width>
				<onlclick>hidepanel(mainmenu);showpanel(credits)</onlclick>
			</creditsbutton>
			<hidebutton _extends="/controldefs/choicetext">
				<text>Hide this Menu</text>
				<tooltip>View the scenery</tooltip>
				<x>400</x>
				<y>490</y>
				<width>200</width>
				<onlclick>hidepanel(mainmenu);showpanel(restore)</onlclick>
			</hidebutton>
                        <quitbutton _extends="/controldefs/choicetext">
				<text>Exit to Windows</text>
				<tooltip>Chicken out</tooltip>
				<x>400</x>
				<y>520</y>
				<width>200</width>
				<onlclick>hidepanel(mainmenu);showpanel(confirmquit)</onlclick>
			</quitbutton>
		</elements>
	</mainmenu>
	<restore _class="UIPanel" x="0" y="0" width="800" height="600">
        <elements>
        <showbutton _extends="/controldefs/choicetext">
				<text>Restore Main Menu</text>
				<tooltip>Back to Main Menu</tooltip>
				<x>660</x>
				<y>560</y>
				<width>200</width>
				<onlclick>hidepanel(restore);showpanel(mainmenu)</onlclick>
	</showbutton>
	</elements>
        </restore>
	<confirmquit _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<frame _extends="/controldefs/popupframe">
				<x>400</x>
				<y>300</y>
				<halign>center</halign>
				<width>300</width>
				<height>145</height>
			</frame>
			<message _extends="/controldefs/centertext">
				<x>400</x>
				<y>330</y>
				<text>Exit to Windows?</text>
			</message>
			<yes _extends="/controldefs/choicetext">
				<text>Yarrgh!</text>
				<tooltip>Yes</tooltip>
				<x>323</x>
				<y>385</y>
				<width>60</width>
				<onlclick>hidepanel(confirmquit);quit</onlclick>
			</yes>
			<no _extends="/controldefs/choicetext">
				<text>Narrgh!</text>
				<tooltip>No</tooltip>
				<x>472</x>
				<y>385</y>
				<width>60</width>
				<onlclick>hidepanel(confirmquit);showpanel(mainmenu)</onlclick>
			</no>
		</elements>
	</confirmquit>

	<confirmsave _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<frame _extends="/controldefs/popupframe">
				<x>400</x>
				<y>300</y>
				<halign>center</halign>
				<width>500</width>
				<height>145</height>
			</frame>
			<message _extends="/controldefs/centertext">
				<x>400</x>
				<y>320</y>
				<text>Are you sure you wish to save over this game?</text>
			</message>
			<overwritefile _extends="/controldefs/centertext">
				<x>400</x>
				<y>350</y>
				<text>Save description goes here.</text>
			</overwritefile>
			<yes _extends="/controldefs/choicetext">
				<text>Aye!</text>
				<tooltip>Yes</tooltip>
				<x>323</x>
				<y>385</y>
				<width>60</width>
				<tooltip>Deletes your old save file and replaces with new one</tooltip>
				<onlclick>hidepanel(confirmsave);saveoverwrite_ok;showpanel(ingamemenu)</onlclick>
			</yes>
			<no _extends="/controldefs/choicetext">
				<text>Nay!</text>
				<tooltip>No</tooltip>
				<x>472</x>
				<y>385</y>
				<width>60</width>  
				<tooltip>Return to Save menu</tooltip>
				<onlclick>hidepanel(confirmsave);saveoverwrite_cancel;showpanel(savegame)</onlclick>
			</no>
		</elements>
	</confirmsave>

	<credits _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<frame _extends="/controldefs/popupframe">
				<x>385</x>
				<y>235</y>
				<halign>center</halign>
				<width>580</width>
				<height>355</height>
			</frame>
			<title _extends="/controldefs/label">
				<text>CREDITS</text>
				<x>390</x>
				<y>242</y>
			</title>
			<credit1 _extends="/controldefs/basictext">
				<text>Game Design and Programming</text>
				<x>120</x>
				<y>275</y>
			</credit1>
			<credit2 _extends="/controldefs/basictext">
				<text>Andy Megowan</text>
				<x>160</x>
				<y>295</y>
			</credit2>
			<credit3 _extends="/controldefs/basictext">
				<text>Addtional Programming</text>
				<x>130</x>
				<y>330</y>
			</credit3>
			<credit4 _extends="/controldefs/basictext">
				<text>Clint Levijoki</text>
				<x>165</x>
				<y>350</y>
			</credit4>
			<credit5 _extends="/controldefs/basictext">
				<text>Additional Game Design</text>
				<x>135</x>
				<y>380</y>
			</credit5>
			<credit6 _extends="/controldefs/basictext">
				<text>Andrew Lum</text>
				<x>160</x>
				<y>400</y>
			</credit6>
			<credit7 _extends="/controldefs/basictext">
				<text>Art Director</text>
				<x>160</x>
				<y>435</y>
			</credit7>
			<credit8 _extends="/controldefs/basictext">
				<text>Israel Evans</text>
				<x>160</x>
				<y>455</y>
			</credit8>
                        <credit9 _extends="/controldefs/basictext">
				<text>Artists</text>
				<x>165</x>
				<y>485</y>
			</credit9>
                        <credit9a _extends="/controldefs/basictext">
				<text>Israel Evans</text>
				<x>160</x>
				<y>505</y>
			</credit9a>
                        <credit9b _extends="/controldefs/basictext">
				<text>Fil Worobey</text>
				<x>160</x>
				<y>525</y>
			</credit9b>
                        <credit10 _extends="/controldefs/basictext">
				<text>Darren Ohail</text>
				<x>160</x>
				<y>545</y>
			</credit10>
			<credit12 _extends="/controldefs/basictext">
				<text>Sound and Music</text>
				<x>450</x>
				<y>275</y>
			</credit12>
			<credit13 _extends="/controldefs/basictext">
				<text>Daniel Bernstein</text>
				<x>450</x>
				<y>295</y>
			</credit13>
                        <credit14 _extends="/controldefs/basictext">
				<text>Writing</text>
				<x>450</x>
				<y>330</y>
			</credit14>
			<credit15 _extends="/controldefs/basictext">
				<text>Dana Hanna</text>
				<x>450</x>
				<y>350</y>
			</credit15>
			<credit16 _extends="/controldefs/basictext">
				<text>Matthaeus Szumanski</text>
				<x>450</x>
				<y>370</y>
			</credit16>
			<credit17 _extends="/controldefs/basictext">
				<text>Scripting and Layout</text>
				<x>455</x>
				<y>405</y>
			</credit17>
			<credit18 _extends="/controldefs/basictext">
				<text>Andrew Lum</text>
				<x>455</x>
				<y>425</y>
			</credit18>
			<credit19 _extends="/controldefs/basictext">
				<text>Brian Lynch</text>
				<x>455</x>
				<y>445</y>
			</credit19>
			<credit20 _extends="/controldefs/basictext">
				<text>Quality Assurance</text>
				<x>455</x>
				<y>480</y>
			</credit20>
			<credit21 _extends="/controldefs/basictext">
				<text>Andrew Lum</text>
				<x>455</x>
				<y>500</y>
			</credit21>
			<credit22 _extends="/controldefs/basictext">
				<text>Brian Lynch</text>
				<x>455</x>
				<y>520</y>
			</credit22>
			<credit23 _extends="/controldefs/basictext">
				<text>Game Instinct</text>
				<x>455</x>
				<y>540</y>
			</credit23>
			<back _extends="/controldefs/choicetext">
				<text>Back</text>
				<x>380</x>
				<y>540</y>
				<onlclick>hidepanel(credits);showpanel(mainmenu)</onlclick>
			</back>
		</elements>
	</credits>

	<choosecharacter _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<title _extends="/controldefs/label">
				<text>Select your CHARACTER</text>
				<x>400</x>
				<y>0</y>
			</title>

			<portrait_1 _class="UIBitmapButton">
				<bitmap>
					<bitmap>assets/graphics/characters/portrait-govdoor.jpg</bitmap>
				</bitmap>
				<halign>center</halign>
				<valign>center</valign>
				<x>80</x>
				<y>125</y>
				<cooltime>0.5</cooltime>
				<onhot>describe(1)</onhot>
				<oncold>describe(0)</oncold>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onlclick>hidepanel(choosecharacter);newgame(1)</onlclick>
			</portrait_1>

			<portrait_2 _class="UIBitmapButton">
				<bitmap>
					<bitmap>assets/graphics/characters/portrait-govdoor.jpg</bitmap>
				</bitmap>
				<halign>center</halign>
				<valign>center</valign>
				<x>293</x>
				<y>125</y>
				<cooltime>0.5</cooltime>
				<onhot>describe(2)</onhot>
				<oncold>describe(0)</oncold>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onlclick>hidepanel(choosecharacter);newgame(2)</onlclick>
			</portrait_2>

			<portrait_3 _class="UIBitmapButton">
				<bitmap>
					<bitmap>assets/graphics/characters/portrait-govdoor.jpg</bitmap>
				</bitmap>
				<halign>center</halign>
				<valign>center</valign>
				<x>507</x>
				<y>125</y>
				<cooltime>0.5</cooltime>
				<onhot>describe(3)</onhot>
				<oncold>describe(0)</oncold>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onlclick>hidepanel(choosecharacter);newgame(3)</onlclick>
			</portrait_3>

			<portrait_4 _class="UIBitmapButton">
				<bitmap>
					<bitmap>assets/graphics/characters/portrait-govdoor.jpg</bitmap>
				</bitmap>
				<halign>center</halign>
				<valign>center</valign>
				<x>720</x>
				<y>125</y>
				<cooltime>0.5</cooltime>
				<onhot>describe(4)</onhot>
				<oncold>describe(0)</oncold>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onlclick>hidepanel(choosecharacter);newgame(4)</onlclick>
			</portrait_4>  

			<portrait_5 _class="UIBitmapButton">
				<bitmap>
					<bitmap>assets/graphics/characters/portrait-govdoor.jpg</bitmap>
				</bitmap>
				<halign>center</halign>
				<valign>center</valign>
				<x>720</x>
				<y>340</y>
				<cooltime>0.5</cooltime>
				<onhot>describe(5)</onhot>
				<oncold>describe(0)</oncold>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onlclick>hidepanel(choosecharacter);newgame(5)</onlclick>
			</portrait_5>

			<frame _extends="/controldefs/popupframe">
				<x>395</x>
				<y>225</y>
				<halign>center</halign>
				<width>460</width>
				<height>365</height>
			</frame>

			<description _extends="/controldefs/basictext">
				<text>Move your mouse over each portrait to learn more about the character.  Click on a portrait to select that character.</text>
				<x>180</x>
				<y>235</y>
				<wrapwidth>430</wrapwidth>
			</description>

			<portrait_6 _class="UIBitmapButton">
				<bitmap>
					<bitmap>assets/graphics/characters/portrait-govdoor.jpg</bitmap>
				</bitmap>
				<halign>center</halign>
				<valign>center</valign>
				<x>80</x>
				<y>340</y>
				<cooltime>0.5</cooltime>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onhot>describe(6)</onhot>
				<oncold>describe(0)</oncold>
				<onlclick>hidepanel(choosecharacter);begincustomcharacter;showpanel(dialacharacter)</onlclick>
			</portrait_6>

			<back _extends="/controldefs/choicetext">
				<text>Back</text>
				<x>400</x>
				<y>550</y> 
				<tooltip>Back to Main Menu</tooltip>
				<onlclick>hidepanel(choosecharacter);showlogo;showpanel(mainmenu)</onlclick>
			</back>
		</elements>
	</choosecharacter>

	<dialacharacter _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<title _extends="/controldefs/label">
				<text>Create Your Character</text>
				<x>400</x>
				<y>10</y>
			</title>
			<frame _extends="/controldefs/popupframe">
				<x>400</x>
				<y>75</y>
				<halign>center</halign>
				<width>550</width>
				<height>350</height>
			</frame>
			<name _extends="/controldefs/label">
				<text>Gossamer</text>
				<halign>center</halign>
				<valign>center</valign>
				<x>250</x>
				<y>110</y>
			</name>
			<portrait _class="UIBitmap">
				<bitmap>
					<bitmap>assets/graphics/characters/portrait-govdoor.jpg</bitmap>
				</bitmap>
				<halign>center</halign>
				<valign>center</valign>
				<x>250</x>
				<y>225</y>
			</portrait>
			<namebutton _extends="/controldefs/choicetext">
				<text>Change Name</text>
				<tooltip>Click to change your character's name</tooltip>
				<valign>center</valign>
				<x>480</x>
				<y>110</y>
				<width>200</width>
				<onlclick>namechange</onlclick>
			</namebutton>
			<gender _extends="/controldefs/choicetext">
				<text>Gender</text>
				<tooltip>Click to change your character's sex</tooltip>
				<x>430</x>
				<y>165</y>
				<width>100</width>
				<onlclick>sexchange</onlclick>
			</gender>
			<gendertext _extends="/controldefs/basictext">
				<x>580</x>
				<y>170</y> 
				<halign>center</halign>
				<text>Male</text>
			</gendertext>
			<class _extends="/controldefs/choicetext">
				<text>Class</text>
				<tooltip>Click to change your character's class</tooltip>
				<x>430</x>
				<y>205</y>
				<width>100</width>
				<onlclick>classchange</onlclick>
			</class>
			<classtext _extends="/controldefs/basictext">
				<x>580</x>
				<y>210</y>
				<halign>center</halign>
				<text>Upper Pirate</text>
			</classtext>
			<race _extends="/controldefs/choicetext">
				<text>Ethnicity</text>
				<tooltip>Click to change your character's race</tooltip>
				<x>430</x>
				<y>245</y>
				<width>100</width>
				<onlclick>racechange</onlclick>
			</race>
			<racetext _extends="/controldefs/basictext">
				<x>580</x>
				<y>250</y> 
				<halign>center</halign>
				<text>Black</text>
			</racetext>
			<regenerate _extends="/controldefs/choicetext">
				<text>New Portrait</text>
				<tooltip>Click as often as you like to generate a new portrait</tooltip>
				<x>480</x>
				<y>285</y>
				<width>200</width>
				<onlclick>regenerate</onlclick>
			</regenerate>
			<unlocktext _extends="/controldefs/basictext">
				<text>Beat the game to unlock 'Create a Character' !!</text>
				<x>260</x>
				<y>330</y>
			</unlocktext>
                        <back _extends="/controldefs/choicetext">
				<text>Back</text>
				<tooltip>Return to Character Select Screen</tooltip>
				<x>260</x>
				<y>375</y>
				<width>100</width>
				<onlclick>hidepanel(dialacharacter);showpanel(choosecharacter)</onlclick>
			</back>
                        <accept _extends="/controldefs/choicetext">
				<text>Accept New Character</text>
				<tooltip>Click if you like your character</tooltip>
				<x>490</x>
				<y>375</y>
				<width>200</width>
				<onlclick>hidepanel(dialacharacter);acceptcustomcharacter</onlclick>
			</accept>
		</elements>
	</dialacharacter>

	<loadgame _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<title _extends="/controldefs/label">
				<text>Load Game</text>
				<x>400</x>
				<y>15</y>
			</title>
			<frame _extends="/controldefs/popupframe">
				<x>150</x>
				<y>215</y>
				<width>500</width>
				<height>350</height>
			</frame>
			<slot0 _extends="/controldefs/choicetext">
				<text>user:saveslot0</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>226</y>
				<width>420</width>
				<onlclick>loadgame(0)</onlclick>
			</slot0>
			<slot1 _extends="/controldefs/choicetext">
				<text>user:saveslot1</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>257</y>
				<width>420</width>
				<onlclick>loadgame(1)</onlclick>
			</slot1>
			<slot2 _extends="/controldefs/choicetext">
				<text>user:saveslot2</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>288</y>
				<width>420</width>
				<onlclick>loadgame(2)</onlclick>
			</slot2>
			<slot3 _extends="/controldefs/choicetext">
				<text>user:saveslot3</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>319</y>
				<width>420</width>
				<onlclick>loadgame(3)</onlclick>
			</slot3>
			<slot4 _extends="/controldefs/choicetext">
				<text>user:saveslot4</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>350</y>
				<width>420</width>
				<onlclick>loadgame(4)</onlclick>
			</slot4>
			<slot5 _extends="/controldefs/choicetext">
				<text>user:saveslot5</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>381</y>
				<width>420</width>
				<onlclick>loadgame(5)</onlclick>
			</slot5>
			<slot6 _extends="/controldefs/choicetext">
				<text>user:saveslot6</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>412</y>
				<width>420</width>
				<onlclick>loadgame(6)</onlclick>
			</slot6>
			<slot7 _extends="/controldefs/choicetext">
				<text>user:saveslot7</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>443</y>
				<width>420</width>
				<onlclick>loadgame(7)</onlclick>
			</slot7>
			<slot8 _extends="/controldefs/choicetext">
				<text>user:saveslot8</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>474</y>
				<width>420</width>
				<onlclick>loadgame(8)</onlclick>
			</slot8>

			<back _extends="/controldefs/choicetext">
				<text>Back</text>
				<tooltip>Go back to the Main Menu</tooltip>
				<x>400</x>
				<y>510</y>
				<width>100</width>
				<onlclick>hidepanel(loadgame);showpanel(mainmenu)</onlclick>
			</back>
		</elements>
	</loadgame>

	<savegame _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<title _extends="/controldefs/label">
				<text>Save Game</text>
				<x>400</x>
				<y>15</y>
			</title>
			<frame _extends="/controldefs/popupframe">
				<x>150</x>
				<y>215</y>
				<width>500</width>
				<height>350</height>
			</frame>
			<slot0 _extends="/controldefs/choicetext">
				<text>user:saveslot0</text>
				<tooltip>Save the game here</tooltip>
				<x>400</x>
				<y>226</y>
				<width>420</width>
				<onlclick>savegame(0)</onlclick>
			</slot0>
			<slot1 _extends="/controldefs/choicetext">
				<text>user:saveslot1</text>
				<tooltip>Save the game here</tooltip>
				<x>400</x>
				<y>257</y>
				<width>420</width>
				<onlclick>savegame(1)</onlclick>
			</slot1>
			<slot2 _extends="/controldefs/choicetext">
				<text>user:saveslot2</text>
				<tooltip>Save the game here</tooltip>
				<x>400</x>
				<y>288</y>
				<width>420</width>
				<onlclick>savegame(2)</onlclick>
			</slot2>
			<slot3 _extends="/controldefs/choicetext">
				<text>user:saveslot3</text>
				<tooltip>Save the game here</tooltip>
				<x>400</x>
				<y>319</y>
				<width>420</width>
				<onlclick>savegame(3)</onlclick>
			</slot3>
			<slot4 _extends="/controldefs/choicetext">
				<text>user:saveslot4</text>
				<tooltip>Save the game here</tooltip>
				<x>400</x>
				<y>350</y>
				<width>420</width>
				<onlclick>savegame(4)</onlclick>
			</slot4>
			<slot5 _extends="/controldefs/choicetext">
				<text>user:saveslot5</text>
				<tooltip>Save the game here</tooltip>
				<x>400</x>
				<y>381</y>
				<width>420</width>
				<onlclick>savegame(5)</onlclick>
			</slot5>
			<slot6 _extends="/controldefs/choicetext">
				<text>user:saveslot6</text>
				<tooltip>Save the game here</tooltip>
				<x>400</x>
				<y>412</y>
				<width>420</width>
				<onlclick>savegame(6)</onlclick>
			</slot6>
			<slot7 _extends="/controldefs/choicetext">
				<text>user:saveslot7</text>
				<tooltip>Save the game here</tooltip>
				<x>400</x>
				<y>443</y>
				<width>420</width>
				<onlclick>savegame(7)</onlclick>
			</slot7>
			<slot8 _extends="/controldefs/choicetext">
				<text>user:saveslot8</text>
				<tooltip>Save the game here</tooltip>
				<x>400</x>
				<y>474</y>
				<width>420</width>
				<onlclick>savegame(8)</onlclick>
			</slot8>

			<back _extends="/controldefs/choicetext">
				<text>Back</text>
				<tooltip>Back to the Game Menu</tooltip>
				<x>400</x>
				<y>514</y>
				<width>100</width>
				<onlclick>hidepanel(savegame);showpanel(ingamemenu)</onlclick>
			</back>

		</elements>
	</savegame>
	

	<begingame _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<portrait _class="UIBitmap">
				<halign>center</halign>
				<valign>center</valign>
				<x>400</x>
				<y>130</y>
				<bitmap bitmap="assets/graphics/characters/portrait-laroche.jpg"/>
			</portrait>
			<name _extends="/controldefs/label">
				<text>Turbo the Snail</text>
				<x>400</x>
				<y>240</y>
				<width>200</width>
			</name>
			<frame _extends="/controldefs/popupframe">
				<x>400</x>
				<y>290</y>
				<halign>center</halign>
				<width>600</width>
				<height>260</height>
			</frame>
			<intro _extends="/controldefs/basictext">
				<text>Move your mouse over each portrait to learn more about the character.  Click on a portrait to select that character.</text>
				<x>124</x>
				<y>312</y>
				<wrapwidth>561</wrapwidth>
			</intro>

			<begin _extends="/controldefs/choicetext">
				<text>BEGIN</text>
				<x>400</x>
				<y>500</y>
				<onlclick>hidepanel(begingame);begingame</onlclick>
			</begin>
		</elements>
	</begingame>

	<options _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<title _extends="/controldefs/label">
				<text>Options</text>
				<x>400</x>
				<y>15</y>
			</title>
			<frame _extends="/controldefs/popupframe">
				<x>400</x>
				<y>220</y>
				<halign>center</halign>
				<width>350</width>
				<height>330</height>
			</frame>
			<soundlabel _extends="/controldefs/centertext">
				<text>Sound FX Volume</text>
				<x>400</x>
				<y>285</y>
			</soundlabel>
			<soundslider _extends="/controldefs/settingslider">
				<x>400</x>
				<y>305</y>
				<tooltip>Adjusts the volume</tooltip>
			</soundslider>
			<decsound _extends="/controldefs/dec_button">
				<tooltip>Quieter</tooltip>
				<x>257</x>
				<y>300</y>
				<onlclick>dec_sfx</onlclick>
			</decsound>
			<incsound _extends="/controldefs/inc_button">
				<tooltip>Louder</tooltip>
				<x>507</x>
				<y>300</y>
				<onlclick>inc_sfx</onlclick>
			</incsound>
			<musiclabel _extends="/controldefs/centertext">
				<text>Music Volume</text>
				<x>400</x>
				<y>240</y>
			</musiclabel>
			<musicslider _extends="/controldefs/settingslider">
				<x>400</x>
				<y>260</y>
				<tooltip>Adjusts the volume</tooltip>
			</musicslider>
			<decmusic _extends="/controldefs/dec_button">
				<tooltip>Quieter</tooltip>
				<x>257</x>
				<y>255</y>
				<onlclick>dec_music</onlclick>
			</decmusic>
			<incmusic _extends="/controldefs/inc_button">
				<tooltip>Louder</tooltip>
				<x>507</x>
				<y>255</y>
				<onlclick>inc_music</onlclick>
			</incmusic>
			<fullscreenbutton _extends="/controldefs/toggle">
				<text>Switch to FULL SCREEN</text>
				<text>Switch to WINDOWED</text>
				<x>400</x>
				<y>355</y>
				<width>250</width>
				<tooltip>Click to switch</tooltip>
				<onlclick>togglefullscreen</onlclick>
			</fullscreenbutton>
			<graphicdetail _extends="/controldefs/toggle">
				<tooltip>Change Performance Settings</tooltip>
				<text>Graphic Detail: Low</text>
				<text>Graphic Detail: High</text>
				<width>250</width>
				<x>400</x>
				<y>385</y>
				<onlclick>setgraphicdetail</onlclick>
			</graphicdetail>
			<sailspeed _extends="/controldefs/toggle">
				<tooltip>Adjust how time passes on the World Map</tooltip>
				<text>Sailing Speed: Slow</text>
				<text>Sailing Speed: Normal</text>
				<text>Sailing Speed: Fast</text>
				<width>250</width>
				<x>400</x>
				<y>415</y>
				<onlclick>setsailspeed</onlclick>
			</sailspeed>
			<textspeed _extends="/controldefs/toggle">
				<tooltip>Adjust the speed dialogue will appear</tooltip>
				<text>Dialogue Speed: Slow</text>
				<text>Dialogue Speed: Normal</text>
				<text>Dialogue Speed: Fast</text>
				<width>250</width>
				<x>400</x>
				<y>445</y>
				<onlclick>settextspeed</onlclick>
			</textspeed>
			<tutorialtoggle _extends="/controldefs/toggle">
				<tooltip>Get helpful tips in the game</tooltip>
				<text>Tutorial: OFF</text>
				<text>Tutorial: ON</text>
				<width>250</width>
				<x>400</x>
				<y>475</y>
				<onlclick>toggletutorial</onlclick>
			</tutorialtoggle>
			<debugtoggle _extends="/controldefs/toggle">
				<tooltip>Fix the Game!</tooltip>
				<text>Debug Log: OFF</text>
				<text>Debug Log: ON</text>
				<text>Dialogue Speed: Fast</text>
				<width>250</width>
				<x>400</x>
				<y>515</y>
				<onlclick>toggledebug</onlclick>
			</debugtoggle>
			<back _extends="/controldefs/choicetext">
				<text>Back</text>
				<tooltip>Main Menu</tooltip>
				<x>400</x>
				<y>505</y>
				<width>100</width>
				<onlclick>hidepanel(options);showpanel(mainmenu)</onlclick>
			</back>
		</elements>
	</options>

	<ingamemenu _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<frame _extends="/controldefs/popupframe">
				<x>400</x>
				<y>300</y>
				<halign>center</halign>
				<width>300</width>
				<height>180</height>
			</frame>
			<resumebutton _extends="/controldefs/choicetext">
				<text>Resume</text>
				<tooltip>Continue playing</tooltip>
				<x>400</x>
				<y>310</y>
				<width>200</width>
				<onlclick>hidepanel(ingamemenu);resume</onlclick>
			</resumebutton>
			<savegamebutton _extends="/controldefs/choicetext">
				<text>Save Game</text>
				<x>400</x>
				<y>340</y>
				<width>200</width>
				<tooltip>Save your progress</tooltip>
				<onlclick>hidepanel(ingamemenu);onsavegame;showpanel(savegame)</onlclick>
			</savegamebutton>
			<loadgamebutton _extends="/controldefs/choicetext">
				<text>Load Game</text>
				<x>400</x>
				<y>370</y>
				<width>200</width>
				<tooltip>Restore an older game</tooltip>
				<onlclick>hidepanel(ingamemenu);onloadgame;showpanel(loadgameingame)</onlclick>
			</loadgamebutton>
			<optionsbutton _extends="/controldefs/choicetext">
				<text>Options</text>
				<tooltip>Configure Tradewinds 2</tooltip>
				<x>400</x>
				<y>400</y>
				<width>200</width>
				<onlclick>hidepanel(ingamemenu);refresh_options;showpanel(ingameoptions)</onlclick>
			</optionsbutton>
			<endbutton _extends="/controldefs/choicetext">
				<text>Quit to Main Menu</text>
				<tooltip>Quit and return to the Main Menu</tooltip>
				<x>400</x>
				<y>430</y>
				<width>200</width>
				<onlclick>hidepanel(ingamemenu);showpanel(confirmabort)</onlclick>
			</endbutton>
		</elements>
	</ingamemenu>
               

	<loadgameingame _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<title _extends="/controldefs/label">
				<text>Load Game</text>
				<x>400</x>
				<y>15</y>
			</title>
			<frame _extends="/controldefs/popupframe">
				<x>150</x>
				<y>215</y>
				<width>500</width>
				<height>350</height>
			</frame>
			<slot0 _extends="/controldefs/choicetext">
				<text>user:saveslot0</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>226</y>
				<width>420</width>
				<onlclick>loadgame(0)</onlclick>
			</slot0>
			<slot1 _extends="/controldefs/choicetext">
				<text>user:saveslot1</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>257</y>
				<width>420</width>
				<onlclick>loadgame(1)</onlclick>
			</slot1>
			<slot2 _extends="/controldefs/choicetext">
				<text>user:saveslot2</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>288</y>
				<width>420</width>
				<onlclick>loadgame(2)</onlclick>
			</slot2>
			<slot3 _extends="/controldefs/choicetext">
				<text>user:saveslot3</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>319</y>
				<width>420</width>
				<onlclick>loadgame(3)</onlclick>
			</slot3>
			<slot4 _extends="/controldefs/choicetext">
				<text>user:saveslot4</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>350</y>
				<width>420</width>
				<onlclick>loadgame(4)</onlclick>
			</slot4>
			<slot5 _extends="/controldefs/choicetext">
				<text>user:saveslot5</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>381</y>
				<width>420</width>
				<onlclick>loadgame(5)</onlclick>
			</slot5>
			<slot6 _extends="/controldefs/choicetext">
				<text>user:saveslot6</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>412</y>
				<width>420</width>
				<onlclick>loadgame(6)</onlclick>
			</slot6>
			<slot7 _extends="/controldefs/choicetext">
				<text>user:saveslot7</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>443</y>
				<width>420</width>
				<onlclick>loadgame(7)</onlclick>
			</slot7>
			<slot8 _extends="/controldefs/choicetext">
				<text>user:saveslot8</text>
				<tooltip>Restore this game</tooltip>
				<x>400</x>
				<y>474</y>
				<width>420</width>
				<onlclick>loadgame(8)</onlclick>
			</slot8>

			<back _extends="/controldefs/choicetext">
				<text>Back</text>
				<tooltip>Go back to the Main Menu</tooltip>
				<x>400</x>
				<y>510</y>
				<width>100</width>
				<onlclick>hidepanel(loadgameingame);showpanel(ingamemenu)</onlclick>
			</back>
		</elements>
	</loadgameingame>

	<ingameoptions _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<title _extends="/controldefs/label">
				<text>Options</text>
				<x>400</x>
				<y>15</y>
			</title>
			<frame _extends="/controldefs/popupframe">
				<x>400</x>
				<y>220</y>
				<halign>center</halign>
				<width>350</width>
				<height>330</height>
			</frame>
			<soundlabel _extends="/controldefs/centertext">
				<text>Sound FX Volume</text>
				<x>400</x>
				<y>285</y>
			</soundlabel>
			<soundslider _extends="/controldefs/settingslider">
				<x>400</x>
				<y>305</y>
				<tooltip>Adjusts the volume</tooltip>
			</soundslider>
			<decsound _extends="/controldefs/dec_button">
				<tooltip>Quieter</tooltip>
				<x>257</x>
				<y>300</y>
				<onlclick>dec_sfx</onlclick>
			</decsound>
			<incsound _extends="/controldefs/inc_button">
				<tooltip>Louder</tooltip>
				<x>507</x>
				<y>300</y>
				<onlclick>inc_sfx</onlclick>
			</incsound>
			<musiclabel _extends="/controldefs/centertext">
				<text>Music Volume</text>
				<x>400</x>
				<y>240</y>
			</musiclabel>
			<musicslider _extends="/controldefs/settingslider">
				<x>400</x>
				<y>260</y>
				<tooltip>Adjusts the volume</tooltip>
			</musicslider>
			<decmusic _extends="/controldefs/dec_button">
				<tooltip>Quieter</tooltip>
				<x>257</x>
				<y>255</y>
				<onlclick>dec_music</onlclick>
			</decmusic>
			<incmusic _extends="/controldefs/inc_button">
				<tooltip>Louder</tooltip>
				<x>507</x>
				<y>255</y>
				<onlclick>inc_music</onlclick>
			</incmusic>
			<fullscreenbutton _extends="/controldefs/toggle">
				<text>Switch to FULL SCREEN</text>
				<text>Switch to WINDOWED</text>
				<x>400</x>
				<y>325</y>
				<width>250</width>
				<tooltip>Click to switch</tooltip>
				<onlclick>togglefullscreen</onlclick>
			</fullscreenbutton>
                        <graphicdetail _extends="/controldefs/toggle">
				<tooltip>Change Performance Settings</tooltip>
				<text>Graphic Detail: Low</text>
				<text>Graphic Detail: High</text>
				<width>250</width>
				<x>400</x>
				<y>355</y>
				<onlclick>setgraphicdetail</onlclick>
			</graphicdetail>
			<sailspeed _extends="/controldefs/toggle">
				<tooltip>Adjust how time passes on the World Map</tooltip>
				<text>Sailing Speed: Slow</text>
				<text>Sailing Speed: Normal</text>
				<text>Sailing Speed: Fast</text>
				<width>250</width>
				<x>400</x>
				<y>385</y>
				<onlclick>setsailspeed</onlclick>
			</sailspeed>
			<textspeed _extends="/controldefs/toggle">
				<tooltip>Adjust the speed dialogue will appear</tooltip>
				<text>Dialogue Speed: Slow</text>
				<text>Dialogue Speed: Normal</text>
				<text>Dialogue Speed: Fast</text>
				<width>250</width>
				<x>400</x>
				<y>415</y>
				<onlclick>settextspeed</onlclick>
			</textspeed>
			<tutorialtoggle _extends="/controldefs/toggle">
				<tooltip>Get helpful tips in the game</tooltip>
				<text>Tutorial: OFF</text>
				<text>Tutorial: ON</text>
				<width>250</width>
				<x>400</x>
				<y>445</y>
				<onlclick>toggletutorial</onlclick>
			</tutorialtoggle>
			<debugtoggle _extends="/controldefs/toggle">
				<tooltip>Fix the Game!</tooltip>
				<text>Debug Log: OFF</text>
				<text>Debug Log: ON</text>
				<text>Dialogue Speed: Fast</text>
				<width>250</width>
				<x>400</x>
				<y>515</y>
				<onlclick>ingametoggledebug</onlclick>
			</debugtoggle>
			<helpbutton _extends="/controldefs/choicetext">
				<text>Help</text>
				<tooltip>How to play</tooltip>
				<x>400</x>
				<y>475</y>
				<width>250</width>
				<onlclick>gethelp</onlclick>
			</helpbutton>
			<back _extends="/controldefs/choicetext">
				<text>Back</text>
				<tooltip>Main Menu</tooltip>
				<x>400</x>
				<y>505</y>
				<width>100</width>
				<onlclick>hidepanel(ingameoptions);showpanel(ingamemenu)</onlclick>
			</back>
		</elements>
	</ingameoptions>

	<confirmabort _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<frame _extends="/controldefs/popupframe">
				<x>400</x>
				<y>300</y>
				<halign>center</halign>
				<width>300</width>
				<height>145</height>
			</frame>
			<message _extends="/controldefs/centertext">
				<x>400</x>
				<y>320</y>
				<text>Quittin' so soon?</text>
			</message>
			<yes _extends="/controldefs/choicetext">
				<text>Aye.</text>
				<tooltip>Back to Main Menu</tooltip>
				<x>320</x>
				<y>385</y>
				<width>60</width>
				<onlclick>hidepanel(confirmabort);abortgame</onlclick>
			</yes>
			<no _extends="/controldefs/choicetext">
				<text>Never!!</text>
				<tooltip>Return to Game</tooltip>
				<x>477</x>
				<y>385</y>
				<width>60</width>
				<onlclick>hidepanel(confirmabort);showpanel(ingamemenu)</onlclick>
			</no>
		</elements>
	</confirmabort>

	<setsail _class="UIPanel" x="578" y="452" width="222" height="127">
		<elements>
			<shipfragment _class="UIBitmap">
				<halign>left</halign>
				<valign>top</valign>
				<x>0</x>
				<y>0</y>
				<bitmap>
					<bitmap>assets/graphics/hud/shipbit.jpg</bitmap>
					<alphamap>assets/graphics/hud/shipbit-alpha.png</alphamap>
				</bitmap>
			</shipfragment>
			<sailbutton _class="UIBitmapButton">
				<bitmap bitmap="assets/graphics/hud/button-setsail.jpg"/>
				<hotbitmap bitmap="assets/graphics/hud/button-setsail-hot.jpg"/>
				<disabledbitmap bitmap="assets/graphics/hud/button-setsail-off.jpg"/>
				<x>87</x>
				<y>69</y>
				<cooltime>0.5</cooltime>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onlclick>setsail</onlclick>
			</sailbutton>
		</elements>
	</setsail>
	
	<returntoport _class="UIPanel" x="578" y="452" width="222" height="127">
		<elements>
			<shipfragment _class="UIBitmap">
				<halign>left</halign>
				<valign>top</valign>
				<x>0</x>
				<y>0</y>
				<bitmap>
					<bitmap>assets/graphics/hud/shipbit.jpg</bitmap>
					<alphamap>assets/graphics/hud/shipbit-alpha.png</alphamap>
				</bitmap>
			</shipfragment>
			<returnbutton _class="UIBitmapButton">
				<bitmap bitmap="assets/graphics/hud/button-return.jpg"/>
				<hotbitmap bitmap="assets/graphics/hud/button-return-hot.jpg"/>
				<disabledbitmap bitmap="assets/graphics/hud/button-return-off.jpg"/>
				<x>87</x>
				<y>69</y>
				<cooltime>0.5</cooltime>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onlclick>backtoport</onlclick>
			</returnbutton>
		</elements>
	</returntoport>

	<mapstorm _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<frame _class="UIShadow">
				<x>175</x>
				<y>265</y>
				<width>400</width>
				<height>100</height>
				<alpha>130</alpha>
			</frame>
			<icon _class="UIBitmap">
				<x>185</x>
				<y>290</y>
				<bitmap>
					<bitmap>assets/graphics/map/lost_icon.jpg</bitmap>
					<alphamap>assets/graphics/map/lost_icon_alpha.png</alphamap>
				</bitmap>
			</icon>
			<text _extends="/controldefs/tuttext">
				<x>250</x>
				<y>270</y>
				<text>text</text>
				<wrapwidth>320</wrapwidth>
			</text>
			<okbutton _extends="/controldefs/choicetext">
				<text>Continue</text>
				<x>365</x>
				<y>336</y>
				<width>100</width>
				<onlclick>map_ok</onlclick>
			</okbutton>
		</elements>
	</mapstorm>

	<mapreveal _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<frame _class="UIShadow">
				<x>175</x>
				<y>255</y>
				<width>425</width>
				<height>140</height>
				<alpha>130</alpha>
			</frame>
			<icon _class="UIBitmap">
				<x>180</x>
				<y>260</y>
				<bitmap>
					<bitmap>assets/graphics/specialitems/icon-map-128.jpg</bitmap>
					<alphamap>assets/graphics/specialitems/icon-map-128-alpha.png</alphamap>
				</bitmap>
			</icon>
			<text _extends="/controldefs/tuttext">
				<x>308</x>
				<y>275</y>
				<text>text</text>
				<wrapwidth>290</wrapwidth>
			</text>
			<okbutton _extends="/controldefs/choicetext">
				<text>Continue</text>
				<x>365</x>
				<y>345</y>
				<width>100</width>
				<onlclick>map_ok</onlclick>
			</okbutton>
		</elements>
	</mapreveal>

	<logbar _class="UIPanel" x="0" y="460" width="664" height="140">
		<elements>
			<background _class="UIBitmap">
				<bitmap>
					<bitmap>assets/graphics/hud/logbar.jpg</bitmap>
					<alphamap>assets/graphics/hud/logbar-alpha.png</alphamap>
				</bitmap>
				<x>0</x>
				<y>0</y>
				<halign>left</halign>
				<width>664</width>
				<height>140</height>
			</background>
			<date _extends="/controldefs/smalltext">
				<x>16</x>
				<y>28</y>
				<text>February 32, 1650</text>
			</date>
			<line1 _extends="/controldefs/smalltext">
				<x>16</x>
				<y>57</y>
				<text>LINE 1</text>
			</line1>
			<line2 _extends="/controldefs/smalltext">
				<x>16</x>
				<y>73</y>
				<text>LINE 2</text>
			</line2>
			<line3 _extends="/controldefs/smalltext">
				<x>16</x>
				<y>89</y>
				<text>LINE 3</text>
			</line3>
			<line4 _extends="/controldefs/smalltext">
				<x>16</x>
				<y>105</y>
				<text>LINE 4</text>
			</line4>
			<line5 _extends="/controldefs/smalltext">
				<x>16</x>
				<y>121</y>
				<text>LINE 5</text>
			</line5>
			<uparrow _class="UIBitmapButton">
				<x>549</x>
				<y>58</y>
				<hold firsttime="0.5" nexttime="0.1"/>
				<bitmap>
					<bitmap>assets/graphics/hud/logscroll-up.jpg</bitmap>
					<alphamap>assets/graphics/hud/logscroll-up-alpha.png</alphamap>
				</bitmap>
				<hotbitmap>
					<bitmap>assets/graphics/hud/logscroll-up-hot.jpg</bitmap>
					<alphamap>assets/graphics/hud/logscroll-up-hot-alpha.png</alphamap>
				</hotbitmap>
				<hotsound>highlight</hotsound>
				<selectsound>select</selectsound> 
				<tooltip>Older entries</tooltip>
				<onlclick>logPreviousLine</onlclick>
			</uparrow>
			<downarrow _class="UIBitmapButton">
				<x>549</x>
				<y>97</y>
				<hold firsttime="0.5" nexttime="0.1"/>
				<bitmap>
					<bitmap>assets/graphics/hud/logscroll-down.jpg</bitmap>
					<alphamap>assets/graphics/hud/logscroll-down-alpha.png</alphamap>
				</bitmap>
				<hotbitmap>
					<bitmap>assets/graphics/hud/logscroll-down-hot.jpg</bitmap>
					<alphamap>assets/graphics/hud/logscroll-down-hot-alpha.png</alphamap>
				</hotbitmap>
				<hotsound>highlight</hotsound>
				<selectsound>select</selectsound> 
				<tooltip>Newer entries</tooltip>
				<onlclick>logNextLine</onlclick>
			</downarrow>
		</elements>
	</logbar>

	<taskscreen _class="UIPanel" x="160" y="0" width="640" height="460">
		<elements>
			<frame _extends="/controldefs/popupframe">
				<x>6</x>
				<y>16</y>
				<halign>left</halign>
				<width>627</width>
				<height>443</height>
			</frame>
			<title _extends="/controldefs/label">
				<text>TASKS</text>
				<x>320</x>
				<y>20</y>
				<width>50</width>
			</title>
			<scrollup _class="UIBitmapButton">
				<x>560</x>
				<y>50</y>
				<hold firsttime="0.5" nexttime="0.1"/>
				<bitmap>
					<bitmap>assets/graphics/ui/logscreen-scroll-up.jpg</bitmap>
					<alphamap>assets/graphics/ui/logscreen-scroll-alpha.png</alphamap>
				</bitmap>
				<hotbitmap>
					<bitmap>assets/graphics/ui/logscreen-scroll-up-hot.jpg</bitmap>
					<alphamap>assets/graphics/ui/logscreen-scroll-hot-alpha.png</alphamap>
				</hotbitmap>
				<hotsound>highlight</hotsound>
				<selectsound>select</selectsound>  
				<tooltip>View older tasks</tooltip>
				<onlclick>taskscreen_scrollup</onlclick>
			</scrollup>
			<scrolldown _class="UIBitmapButton">
				<x>560</x>
				<y>360</y>
				<hold firsttime="0.5" nexttime="0.1"/>
				<bitmap>
					<bitmap>assets/graphics/ui/logscreen-scroll-down.jpg</bitmap>
					<alphamap>assets/graphics/ui/logscreen-scroll-alpha.png</alphamap>
				</bitmap>
				<hotbitmap>
					<bitmap>assets/graphics/ui/logscreen-scroll-down-hot.jpg</bitmap>
					<alphamap>assets/graphics/ui/logscreen-scroll-hot-alpha.png</alphamap>
				</hotbitmap>
				<hotsound>highlight</hotsound>
				<selectsound>select</selectsound> 
				<tooltip>View newer tasks</tooltip>
				<onlclick>taskscreen_scrolldown</onlclick>
			</scrolldown>
			<close _extends="/controldefs/choicetext">
				<text>Close</text>
				<x>320</x>
				<y>415</y>
				<width>80</width>
				<onlclick>taskscreen_toggle</onlclick>
			</close>
		</elements>
	</taskscreen>

	<logscreen _class="UIPanel" x="160" y="0" width="640" height="460">
		<elements>
			<frame _extends="/controldefs/popupframe">
				<x>6</x>
				<y>16</y>
				<halign>left</halign>
				<width>627</width>
				<height>443</height>
			</frame>
			<title _extends="/controldefs/label">
				<text>CAPTAIN'S LOG</text>
				<x>320</x>
				<y>20</y>
				<width>140</width>
			</title>
			<firstdate _class="UIText">
				<x>20</x>
				<y>30</y>
				<font>ramsey</font>
				<halign>left</halign>
				<valign>top</valign>
				<text>x</text>
			</firstdate>
			<lastdate _class="UIText">
				<x>590</x>
				<y>30</y>
				<font>ramsey</font>
				<halign>right</halign>
				<valign>top</valign>
				<text>x</text>
			</lastdate>
			<pageup _class="UIBitmapButton">
				<x>560</x>
				<y>50</y>
				<hold firsttime="0.5" nexttime="0.1"/>
				<bitmap>
					<bitmap>assets/graphics/ui/logscreen-scroll-up.jpg</bitmap>
					<alphamap>assets/graphics/ui/logscreen-scroll-alpha.png</alphamap>
				</bitmap>
				<hotbitmap>
					<bitmap>assets/graphics/ui/logscreen-scroll-up-hot.jpg</bitmap>
					<alphamap>assets/graphics/ui/logscreen-scroll-hot-alpha.png</alphamap>
				</hotbitmap>
				<hotsound>highlight</hotsound>
				<selectsound>select</selectsound> 
				<tooltip>View earlier entries</tooltip>
				<onlclick>logscreen_pageup</onlclick>
			</pageup>
			<pagedown _class="UIBitmapButton">
				<x>560</x>
				<y>360</y>
				<hold firsttime="0.5" nexttime="0.1"/>
				<bitmap>
					<bitmap>assets/graphics/ui/logscreen-scroll-down.jpg</bitmap>
					<alphamap>assets/graphics/ui/logscreen-scroll-alpha.png</alphamap>
				</bitmap>
				<hotbitmap>
					<bitmap>assets/graphics/ui/logscreen-scroll-down-hot.jpg</bitmap>
					<alphamap>assets/graphics/ui/logscreen-scroll-hot-alpha.png</alphamap>
				</hotbitmap>
				<hotsound>highlight</hotsound>
				<selectsound>select</selectsound> 
				<tooltip>View newer entries</tooltip>
				<onlclick>logscreen_pagedown</onlclick>
			</pagedown>
			<close _extends="/controldefs/choicetext">
				<text>Close</text>
				<x>320</x>
				<y>415</y>
				<width>80</width>
				<onlclick>logscreen_toggle</onlclick>
			</close>
		</elements>
	</logscreen>

	<itemscreen _class="UIPanel" x="160" y="0" width="640" height="460">
		<elements>
			<frame _extends="/controldefs/popupframe">
				<x>6</x>
				<y>16</y>
				<halign>left</halign>
				<width>627</width>
				<height>443</height>
			</frame>
			<title _extends="/controldefs/label">
				<text>ITEMS</text>
				<x>320</x>
				<y>20</y>
				<width>100</width>
			</title>
			<scrollup _class="UIBitmapButton">
				<x>315</x>
				<y>60</y>
				<hold firsttime="0.5" nexttime="0.1"/>
				<bitmap>
					<bitmap>assets/graphics/ui/logscreen-scroll-up.jpg</bitmap>
					<alphamap>assets/graphics/ui/logscreen-scroll-alpha.png</alphamap>
				</bitmap>
				<hotbitmap>
					<bitmap>assets/graphics/ui/logscreen-scroll-up-hot.jpg</bitmap>
					<alphamap>assets/graphics/ui/logscreen-scroll-hot-alpha.png</alphamap>
				</hotbitmap>
				<hotsound>highlight</hotsound>
				<selectsound>select</selectsound>
				<onlclick>itemscreen_scrollup</onlclick>
			</scrollup>
			<scrolldown _class="UIBitmapButton">
				<x>315</x>
				<y>360</y>
				<hold firsttime="0.5" nexttime="0.1"/>
				<bitmap>
					<bitmap>assets/graphics/ui/logscreen-scroll-down.jpg</bitmap>
					<alphamap>assets/graphics/ui/logscreen-scroll-alpha.png</alphamap>
				</bitmap>
				<hotbitmap>
					<bitmap>assets/graphics/ui/logscreen-scroll-down-hot.jpg</bitmap>
					<alphamap>assets/graphics/ui/logscreen-scroll-hot-alpha.png</alphamap>
				</hotbitmap>
				<hotsound>highlight</hotsound>
				<selectsound>select</selectsound>
				<onlclick>itemscreen_scrolldown</onlclick>
			</scrolldown>
			<itemname _class="UIText">
				<x>480</x>
				<y>50</y>
				<halign>center</halign>
				<font>ramsey</font>
				<text>name</text>
			</itemname>
			<bigicon _class="UIBitmap">
				<x>480</x>
				<y>140</y>
				<halign>center</halign>
				<valign>center</valign>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</bigicon>
			<description _class="UIText">
				<x>365</x>
				<y>223</y>
				<font>ramsey_small</font>
				<wrapwidth>250</wrapwidth>
				<text>description</text>
			</description>
			<expiretext _class="UIText">
				<x>365</x>
				<y>310</y>
				<font>ramsey_small</font>
				<wrapwidth>250</wrapwidth>
				<text>This contract is expired.  Would you like to renew it?</text>
			</expiretext>
			<renew _extends="/controldefs/choicetext">
				<text>Renew</text>
				<x>480</x>
				<y>360</y>
				<width>100</width>
				<onlclick>item_renew</onlclick>
			</renew>
			<release _extends="/controldefs/choicetext">
				<text>Release</text>
				<x>480</x>
				<y>390</y>
				<width>100</width>
				<onlclick>showpanel(confirmrelease)</onlclick>
			</release>
                        <close _extends="/controldefs/choicetext">
				<text>Close</text>
				<x>320</x>
				<y>415</y>
				<width>45</width>
				<onlclick>itemscreen_toggle</onlclick>
			</close>
		</elements>
	</itemscreen>
        <confirmrelease _class="UIPanel" x="0" y="0" width="800" height="600" modal="true">
		<elements>
			<frame _extends="/controldefs/popupframe">
				<x>660</x>
				<y>260</y>
				<halign>center</halign>
				<width>260</width>
				<height>200</height>
			</frame>
			<message _extends="/controldefs/centertext">
				<x>665</x>
				<y>320</y>
				<text>Are you sure you want to end this contract?</text>
				<wrapwidth>200</wrapwidth>
			</message>
			<yes _extends="/controldefs/choicetext">
				<text>Yes</text>
				<x>610</x>
				<y>400</y>
				<width>30</width>
				<tooltip>yes</tooltip>
				<onlclick>hidepanel(confirmrelease);item_release</onlclick>
			</yes>
			<no _extends="/controldefs/choicetext">
				<text>No</text>
				<x>710</x>
				<y>400</y>
				<width>30</width>
				<tooltip>no</tooltip>
				<onlclick>hidepanel(confirmrelease)</onlclick>
			</no>
		</elements>
        </confirmrelease>

	<shipscreen _class="UIPanel" x="160" y="0" width="640" height="460">
		<elements>
			<frame _extends="/controldefs/popupframe">
				<x>6</x>
				<y>16</y>
				<halign>left</halign>
				<width>627</width>
				<height>443</height>
			</frame>
			<shipname _extends="/controldefs/label">
				<text>SHIP and CARGO</text>
				<x>320</x>
				<y>20</y>
				<width>150</width>
			</shipname>
			<portrait _class="UIBitmap">
				<x>320</x>
				<y>50</y>
				<halign>center</halign>
				<bitmap>
					<bitmap>assets/graphics/ships/sloop-far-normal-01.jpg</bitmap>
					<alphamap>assets/graphics/ships/sloop-far-normal-01-alpha.png</alphamap>
				</bitmap>
			</portrait>
			<shiptype _extends="/controldefs/centertext">
				<x>470</x>
				<y>100</y>
				<text>Yodaddy</text>
			</shiptype>
			<hulltext _extends="/controldefs/basictext">
				<x>40</x>
				<y>180</y>
				<text>Hull Strength:</text>
			</hulltext>
			<hullstats _extends="/controldefs/basictext">
				<x>280</x>
				<y>180</y>
				<text>20/20</text>
			</hullstats>
			<hullbar _extends="/controldefs/progress">
				<x>420</x>
				<y>185</y>
				<width>100</width>
			</hullbar>
			<cargotext _extends="/controldefs/basictext">
				<x>40</x>
				<y>205</y>
				<text>Cargo Capacity:</text>
			</cargotext>
			<cargostats _extends="/controldefs/basictext">
				<x>280</x>
				<y>205</y>
				<text>90/120</text>
			</cargostats>
			<cargobar _extends="/controldefs/progress">
				<x>420</x>
				<y>210</y>
				<width>100</width>
			</cargobar>
			<guntext _extends="/controldefs/basictext">
				<x>40</x>
				<y>230</y>
				<text>Cannons:</text>
			</guntext>
			<gunstats _extends="/controldefs/basictext">
				<x>280</x>
				<y>230</y>
				<text>15 (25 max)</text>
			</gunstats>
			<speedtext _extends="/controldefs/basictext">
				<x>40</x>
				<y>255</y>
				<text>Attack Speed:</text>
			</speedtext>
			<speedstats _extends="/controldefs/basictext">
				<x>280</x>
				<y>255</y>
				<text>69</text>
			</speedstats>
			<itemtext _extends="/controldefs/basictext">
				<x>40</x>
				<y>280</y>
				<text>Special Ability:</text>
			</itemtext>
			<itemname _extends="/controldefs/basictext">
				<x>280</x>
				<y>280</y>
				<text>None</text>
			</itemname>
			<warningtext _class="UIText">
				<font>ramsey_emp</font>
				<x>30</x>
				<y>100</y>
				<wrapwidth>200</wrapwidth>
				<text>Your ship is overloaded!</text>
			</warningtext>
			<ammotext _class="UIText">
				<font>ramsey_large</font>
				<x>50</x>
				<y>325</y>
				<text>Ammunition</text>
			</ammotext>
			<ammoqtytext _class="UIText">
				<font>ramsey_large</font>
				<x>250</x>
				<y>325</y>
				<halign>right</halign>
				<text>Qty</text>
			</ammoqtytext>
			<ammo1icon _class="UIBitmapButton">
				<x>20</x>
				<y>345</y>
				<bitmap bitmap="assets/graphics/items/icon-arms-20.jpg"/>
				<hotbitmap bitmap="assets/graphics/items/icon-arms-20.jpg"/>
				<onhot>describe_ammo(0)</onhot>
			</ammo1icon>
			<ammo2icon _class="UIBitmapButton">
				<x>20</x>
				<y>370</y>
				<bitmap bitmap="assets/graphics/items/icon-arms-20.jpg"/>
				<hotbitmap bitmap="assets/graphics/items/icon-arms-20.jpg"/>
				<onhot>describe_ammo(1)</onhot>
			</ammo2icon>
			<ammo3icon _class="UIBitmapButton">
				<x>20</x>
				<y>395</y>
				<bitmap bitmap="assets/graphics/items/icon-arms-20.jpg"/>
				<hotbitmap bitmap="assets/graphics/items/icon-arms-20.jpg"/>
				<onhot>describe_ammo(2)</onhot>
			</ammo3icon>
			<ammo1name _class="UITextButton">
				<x>50</x>
				<y>350</y>
				<hotsound>highlight</hotsound>
				<font>ramsey</font>
				<hifont>ramsey_hot</hifont>
				<text>Lions</text>
				<onhot>describe_ammo(0)</onhot>
			</ammo1name>
			<ammo2name _class="UITextButton">
				<x>50</x>
				<y>375</y>
				<hotsound>highlight</hotsound>
				<font>ramsey</font>
				<hifont>ramsey_hot</hifont>
				<text>Tigers</text>
				<onhot>describe_ammo(1)</onhot>
			</ammo2name>
			<ammo3name _class="UITextButton">
				<x>50</x>
				<y>400</y>
				<hotsound>highlight</hotsound>
				<font>ramsey</font>
				<hifont>ramsey_hot</hifont>
				<text>Bears</text>
				<onhot>describe_ammo(2)</onhot>
			</ammo3name>
			<ammo1qty _class="UITextButton">
				<halign>right</halign>
				<x>250</x>
				<y>350</y>
				<hotsound>highlight</hotsound>
				<font>ramsey</font>
				<hifont>ramsey_hot</hifont>
				<text>1</text>
				<onhot>describe_ammo(0)</onhot>
			</ammo1qty>
			<ammo2qty _class="UITextButton">
				<halign>right</halign>
				<x>250</x>
				<y>375</y>
				<hotsound>highlight</hotsound>
				<font>ramsey</font>
				<hifont>ramsey_hot</hifont>
				<text>2</text>
				<onhot>describe_ammo(1)</onhot>
			</ammo2qty>
			<ammo3qty _class="UITextButton">
				<halign>right</halign>
				<x>250</x>
				<y>400</y>
				<hotsound>highlight</hotsound>
				<font>ramsey</font>
				<hifont>ramsey_hot</hifont>
				<text>3</text>
				<onhot>describe_ammo(2)</onhot>
			</ammo3qty>

			<ammoname _class="UIText">
				<x>450</x>
				<y>315</y>
				<text>Name</text>
				<font>ramsey_large</font>
			</ammoname>
			<ammobigicon _class="UIBitmap">
				<halign>center</halign>
				<x>490</x>
				<y>345</y>
				<bitmap bitmap="assets/graphics/items/icon-arms-128.jpg"/>
			</ammobigicon>
			<ammodescription _class="UIText">
				<x>400</x>
				<y>385</y>
				<font>ramsey_small</font>
				<wrapwidth>200</wrapwidth>
				<text>Ammo description here</text>
			</ammodescription>
						
			<close _extends="/controldefs/choicetext">
				<text>Close</text>
				<x>320</x>
				<y>415</y>
				<width>80</width>
				<onlclick>shipscreen_toggle</onlclick>
			</close>
		</elements>
	</shipscreen>

	<cargoscreen _class="UIPanel" x="160" y="0" width="640" height="460">
		<elements>
			<frame _extends="/controldefs/popupframe">
				<x>6</x>
				<y>16</y>
				<halign>left</halign>
				<width>627</width>
				<height>443</height>
			</frame>
			<title _extends="/controldefs/label">
				<text>Ship's CARGO</text>
				<x>320</x>
				<y>20</y>
				<width>150</width>
			</title>
			<headername _extends="/controldefs/smalltext">
				<x>40</x>
				<y>55</y>
				<text>Item</text>
			</headername>
			<headerowned _extends="/controldefs/quantity">
				<x>200</x>
				<y>55</y>
				<text>Quantity</text>
			</headerowned>
			<headervalue _extends="/controldefs/quantity">
				<x>345</x>
				<y>55</y>
				<text>Market</text>
			</headervalue>
			<headerunit _extends="/controldefs/quantity">
				<x>270</x>
				<y>55</y>
				<text>Unit Cost</text>
				<tooltip>Average price you've paid</tooltip>
			</headerunit>
			<gridline _class="UIBitmap">
				<x>15</x>
				<y>65</y>
				<bitmap>
					<bitmap>assets/graphics/ui/cargo-grid-bg.png</bitmap>
					<alphamap>assets/graphics/ui/cargo-grid-bg-alpha.png</alphamap>
				</bitmap>
			</gridline>
			<icon0 _class="UIBitmapButton">
				<x>15</x>
				<y>75</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
				<onhot>cargoscreen_describe(0)</onhot>
			</icon0>
			<name0 _class="UITextButton">
				<font>ramsey</font>
				<hifont>ramsey_hot</hifont>
				<x>40</x>
				<y>75</y>
				<text>Arms</text>
				<onhot>cargoscreen_describe(0)</onhot>
			</name0>
			<quantity0 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>75</y>
				<text>0</text>
				<onhot>cargoscreen_describe(0)</onhot>
			</quantity0>
			<value0 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>75</y>
				<text>0</text>
				<tooltip>Current local market value</tooltip>
				<onhot>cargoscreen_describe(0)</onhot>
			</value0>
			<unitprice0 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>75</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>cargoscreen_describe(0)</onhot>
			</unitprice0>

			<decrease0 _extends="controldefs/dec_button">
				<x>375</x>
				<y>75</y>
				<tooltip>Hold to decrease rapidly</tooltip>
				<onlclick>cargoscreen_decrease(0)</onlclick>
			</decrease0>
			<box0 _extends="/controldefs/entersmallnumber">
				<x>435</x>
				<y>75</y>   
				<tooltip>Roll wheel or type in an amount</tooltip>
			</box0>
			<increase0 _extends="controldefs/inc_button">
				<x>507</x>
				<y>75</y>   
				<tooltip>Hold to increase rapidly</tooltip>
				<onlclick>cargoscreen_increase(0)</onlclick>
			</increase0>
			<max0 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>75</y>   
				<tooltip>Maximum your Warehouse can hold</tooltip>
				<onlclick>cargoscreen_max(0)</onlclick>
			</max0>

			<icon1 _class="UIBitmapButton">
				<x>15</x>
				<y>100</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
				<onhot>cargoscreen_describe(1)</onhot>
			</icon1>
			<name1 _class="UITextButton">
				<font>ramsey</font>
				<hifont>ramsey_hot</hifont>
				<x>40</x>
				<y>100</y>
				<text>Arms</text>
				<onhot>cargoscreen_describe(1)</onhot>
			</name1>
			<quantity1 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>100</y>
				<text>0</text>
				<onhot>cargoscreen_describe(1)</onhot>
			</quantity1>
			<value1 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>100</y>
				<text>0</text>
				<tooltip>Current local market value</tooltip>
				<onhot>cargoscreen_describe(0)</onhot>
			</value1>
			<unitprice1 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>100</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>cargoscreen_describe(1)</onhot>
			</unitprice1>
			<decrease1 _extends="controldefs/dec_button">
				<x>375</x>
				<y>100</y>   
				<tooltip>Hold to decrease rapidly</tooltip>
				<onlclick>cargoscreen_decrease(1)</onlclick>
			</decrease1>
			<box1 _extends="/controldefs/entersmallnumber">
				<x>435</x>
				<y>100</y>   
				<tooltip>Roll wheel or type in an amount</tooltip>
			</box1>
			<increase1 _extends="controldefs/inc_button">
				<x>507</x>
				<y>100</y>   
				<tooltip>Hold to increase rapidly</tooltip>
				<onlclick>cargoscreen_increase(1)</onlclick>
			</increase1>
			<max1 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>100</y>   
				<tooltip>Maximum your Warehouse can hold</tooltip>
				<onlclick>cargoscreen_max(1)</onlclick>
			</max1>

			<icon2 _class="UIBitmapButton">
				<x>15</x>
				<y>125</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
				<onhot>cargoscreen_describe(2)</onhot>
			</icon2>
			<name2 _class="UITextButton">
				<font>ramsey</font>
				<hifont>ramsey_hot</hifont>
				<x>40</x>
				<y>125</y>
				<text>Arms</text>
				<onhot>cargoscreen_describe(2)</onhot>
			</name2>
			<quantity2 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>125</y>
				<text>0</text>
				<onhot>cargoscreen_describe(2)</onhot>
			</quantity2>
			<value2 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>125</y>
				<text>0</text> 
				<tooltip>Current local market value</tooltip>
				<onhot>cargoscreen_describe(2)</onhot>
			</value2>
			<unitprice2 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>125</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>cargoscreen_describe(2)</onhot>
			</unitprice2>
			<decrease2 _extends="controldefs/dec_button">
				<x>375</x>
				<y>125</y>   
				<tooltip>Hold to decrease rapidly</tooltip>
				<onlclick>cargoscreen_decrease(2)</onlclick>
			</decrease2>
			<box2 _extends="/controldefs/entersmallnumber">
				<x>435</x>
				<y>125</y>    
				<tooltip>Roll wheel or type in an amount</tooltip>
			</box2>
			<increase2 _extends="controldefs/inc_button">
				<x>507</x>
				<y>125</y>  
				<tooltip>Hold to increase rapidly</tooltip>
				<onlclick>cargoscreen_increase(2)</onlclick>
			</increase2>
			<max2 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>125</y>  
				<tooltip>Maximum your Warehouse can hold</tooltip>
				<onlclick>cargoscreen_max(2)</onlclick>
			</max2>

			<icon3 _class="UIBitmapButton">
				<x>15</x>
				<y>150</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
				<onhot>cargoscreen_describe(3)</onhot>
			</icon3>
			<name3 _class="UITextButton">
				<font>ramsey</font>
				<hifont>ramsey_hot</hifont>
				<x>40</x>
				<y>150</y>
				<text>Arms</text>
				<onhot>cargoscreen_describe(3)</onhot>
			</name3>
			<quantity3 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>150</y>
				<text>0</text>
				<onhot>cargoscreen_describe(3)</onhot>
			</quantity3>
			<value3 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>150</y>
				<text>0</text> 
				<tooltip>Current local market value</tooltip>
				<onhot>cargoscreen_describe(3)</onhot>
			</value3>
			<unitprice3 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>150</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>cargoscreen_describe(3)</onhot>
			</unitprice3>
			<decrease3 _extends="controldefs/dec_button">
				<x>375</x>
				<y>150</y>    
				<tooltip>Hold to decrease rapidly</tooltip>
				<onlclick>cargoscreen_decrease(3)</onlclick>
			</decrease3>
			<box3 _extends="/controldefs/entersmallnumber">
				<x>435</x>
				<y>150</y>   
				<tooltip>Roll wheel or type in an amount</tooltip>
			</box3>
			<increase3 _extends="controldefs/inc_button">
				<x>507</x>
				<y>150</y>   
				<tooltip>Hold to increase rapidly</tooltip>
				<onlclick>cargoscreen_increase(3)</onlclick>
			</increase3>
			<max3 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>150</y>   
				<tooltip>Maximum your Warehouse can hold</tooltip>
				<onlclick>cargoscreen_max(3)</onlclick>
			</max3>

			<icon4 _class="UIBitmapButton">
				<x>15</x>
				<y>175</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
				<onhot>cargoscreen_describe(4)</onhot>
			</icon4>
			<name4 _class="UITextButton">
				<font>ramsey</font>
				<hifont>ramsey_hot</hifont>
				<x>40</x>
				<y>175</y>
				<text>Arms</text>
				<onhot>cargoscreen_describe(4)</onhot>
			</name4>
			<quantity4 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>175</y>
				<text>0</text>
				<onhot>cargoscreen_describe(4)</onhot>
			</quantity4>
			<value4 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>175</y>
				<text>0</text>  
				<tooltip>Current local market value</tooltip>
				<onhot>cargoscreen_describe(4)</onhot>
			</value4>
			<unitprice4 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>175</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>cargoscreen_describe(4)</onhot>
			</unitprice4>
			<decrease4 _extends="controldefs/dec_button">
				<x>375</x>
				<y>175</y>    
				<tooltip>Hold to decrease rapidly</tooltip>
				<onlclick>cargoscreen_decrease(4)</onlclick>
			</decrease4>
			<box4 _extends="/controldefs/entersmallnumber">
				<x>435</x>
				<y>175</y>   
				<tooltip>Roll wheel or type in an amount</tooltip>
			</box4>
			<increase4 _extends="controldefs/inc_button">
				<x>507</x>
				<y>175</y>   
				<tooltip>Hold to increase rapidly</tooltip>
				<onlclick>cargoscreen_increase(4)</onlclick>
			</increase4>
			<max4 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>175</y>   
				<tooltip>Maximum your Warehouse can hold</tooltip>
				<onlclick>cargoscreen_max(4)</onlclick>
			</max4>

			<icon5 _class="UIBitmapButton">
				<x>15</x>
				<y>200</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
				<onhot>cargoscreen_describe(5)</onhot>
			</icon5>
			<name5 _class="UITextButton">
				<font>ramsey</font>
				<hifont>ramsey_hot</hifont>
				<x>40</x>
				<y>200</y>
				<text>Arms</text>
				<onhot>cargoscreen_describe(5)</onhot>
			</name5>
			<quantity5 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>200</y>
				<text>0</text>
				<onhot>cargoscreen_describe(5)</onhot>
			</quantity5>
			<value5 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>200</y>
				<text>0</text> 
				<tooltip>Current local market value</tooltip>
				<onhot>cargoscreen_describe(5)</onhot>
			</value5>
			<unitprice5 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>200</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>cargoscreen_describe(5)</onhot>
			</unitprice5>
			<decrease5 _extends="controldefs/dec_button">
				<x>375</x>
				<y>200</y>   
				<tooltip>Hold to decrease rapidly</tooltip>
				<onlclick>cargoscreen_decrease(5)</onlclick>
			</decrease5>
			<box5 _extends="/controldefs/entersmallnumber">
				<x>435</x>
				<y>200</y>   
				<tooltip>Roll wheel or type in an amount</tooltip>
			</box5>
			<increase5 _extends="controldefs/inc_button">
				<x>507</x>
				<y>200</y>   
				<tooltip>Hold to increase rapidly</tooltip>
				<onlclick>cargoscreen_increase(5)</onlclick>
			</increase5>
			<max5 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>200</y>   
				<tooltip>Maximum your Warehouse can hold</tooltip>
				<onlclick>cargoscreen_max(5)</onlclick>
			</max5>

			<icon6 _class="UIBitmapButton">
				<x>15</x>
				<y>225</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
				<onhot>cargoscreen_describe(6)</onhot>
			</icon6>
			<name6 _class="UITextButton">
				<font>ramsey</font>
				<hifont>ramsey_hot</hifont>
				<x>40</x>
				<y>225</y>
				<text>Arms</text>
				<onhot>cargoscreen_describe(6)</onhot>
			</name6>
			<quantity6 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>225</y>
				<text>0</text>
				<onhot>cargoscreen_describe(6)</onhot>
			</quantity6>
			<value6 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>225</y>
				<text>0</text>
				<tooltip>Current local market value</tooltip>
				<onhot>cargoscreen_describe(6)</onhot>
			</value6>
			<unitprice6 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>225</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>cargoscreen_describe(6)</onhot>
			</unitprice6>
			<decrease6 _extends="controldefs/dec_button">
				<x>375</x>
				<y>225</y>   
				<tooltip>Hold to decrease rapidly</tooltip>
				<onlclick>cargoscreen_decrease(6)</onlclick>
			</decrease6>
			<box6 _extends="/controldefs/entersmallnumber">
				<x>435</x>
				<y>225</y>   
				<tooltip>Roll wheel or type in an amount</tooltip>
			</box6>
			<increase6 _extends="controldefs/inc_button">
				<x>507</x>
				<y>225</y>   
				<tooltip>Hold to increase rapidly</tooltip>
				<onlclick>cargoscreen_increase(6)</onlclick>
			</increase6>
			<max6 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>225</y>   
				<tooltip>Maximum your Warehouse can hold</tooltip>
				<onlclick>cargoscreen_max(6)</onlclick>
			</max6>

			<icon7 _class="UIBitmapButton">
				<x>15</x>
				<y>250</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
				<onhot>cargoscreen_describe(7)</onhot>
			</icon7>
			<name7 _class="UITextButton">
				<font>ramsey</font>
				<hifont>ramsey_hot</hifont>
				<x>40</x>
				<y>250</y>
				<text>Arms</text>
				<onhot>cargoscreen_describe(7)</onhot>
			</name7>
			<quantity7 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>250</y>
				<text>0</text>
				<onhot>cargoscreen_describe(7)</onhot>
			</quantity7>
			<value7 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>250</y>
				<text>0</text>  
				<tooltip>Current local market value</tooltip>
				<onhot>cargoscreen_describe(7)</onhot>
			</value7>
			<unitprice7 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>250</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>cargoscreen_describe(7)</onhot>
			</unitprice7>
			<decrease7 _extends="controldefs/dec_button">
				<x>375</x>
				<y>250</y>   
				<tooltip>Hold to decrease rapidly</tooltip>
				<onlclick>cargoscreen_decrease(7)</onlclick>
			</decrease7>
			<box7 _extends="/controldefs/entersmallnumber">
				<x>435</x>
				<y>250</y>   
				<tooltip>Roll wheel or type in an amount</tooltip>
			</box7>
			<increase7 _extends="controldefs/inc_button">
				<x>507</x>
				<y>250</y>   
				<tooltip>Hold to increase rapidly</tooltip>
				<onlclick>cargoscreen_increase(7)</onlclick>
			</increase7>
			<max7 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>250</y>   
				<tooltip>Maximum your Warehouse can hold</tooltip>
				<onlclick>cargoscreen_max(7)</onlclick>
			</max7>

			<icon8 _class="UIBitmapButton">
				<x>15</x>
				<y>275</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
				<onhot>cargoscreen_describe(8)</onhot>
			</icon8>
			<name8 _class="UITextButton">
				<font>ramsey</font>
				<hifont>ramsey_hot</hifont>
				<x>40</x>
				<y>275</y>
				<text>Arms</text>
				<onhot>cargoscreen_describe(8)</onhot>
			</name8>
			<quantity8 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>275</y>
				<text>0</text>
				<onhot>cargoscreen_describe(8)</onhot>
			</quantity8>
			<value8 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>275</y>
				<text>0</text>  
				<tooltip>Current local market value</tooltip>
				<onhot>cargoscreen_describe(8)</onhot>
			</value8>
			<unitprice8 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>275</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>cargoscreen_describe(8)</onhot>
			</unitprice8>
			<decrease8 _extends="controldefs/dec_button">
				<x>375</x>
				<y>275</y>   
				<tooltip>Hold to decrease rapidly</tooltip>
				<onlclick>cargoscreen_decrease(8)</onlclick>
			</decrease8>
			<box8 _extends="/controldefs/entersmallnumber">
				<x>435</x>
				<y>275</y>   
				<tooltip>Roll wheel or type in an amount</tooltip>
			</box8>
			<increase8 _extends="controldefs/inc_button">
				<x>507</x>
				<y>275</y>   
				<tooltip>Hold to increase rapidly</tooltip>
				<onlclick>cargoscreen_increase(8)</onlclick>
			</increase8>
			<max8 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>275</y>    
				<tooltip>Maximum your Warehouse can hold</tooltip>
				<onlclick>cargoscreen_max(8)</onlclick>
			</max8>

			<icon9 _class="UIBitmapButton">
				<x>15</x>
				<y>300</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
				<onhot>cargoscreen_describe(9)</onhot>
			</icon9>
			<name9 _class="UITextButton">
				<font>ramsey</font>
				<hifont>ramsey_hot</hifont>
				<x>40</x>
				<y>300</y>
				<text>Arms</text>
				<onhot>cargoscreen_describe(9)</onhot>
			</name9>
			<quantity9 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>300</y>
				<text>0</text>
				<onhot>cargoscreen_describe(9)</onhot>
			</quantity9>
			<value9 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>300</y>
				<text>0</text>     
				<tooltip>Current local market value</tooltip>
				<onhot>cargoscreen_describe(9)</onhot>
			</value9>
			<unitprice9 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>300</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>cargoscreen_describe(9)</onhot>
			</unitprice9>
			<decrease9 _extends="controldefs/dec_button">
				<x>375</x>
				<y>300</y>   
				<tooltip>Hold to decrease rapidly</tooltip>
				<onlclick>cargoscreen_decrease(9)</onlclick>
			</decrease9>
			<box9 _extends="/controldefs/entersmallnumber">
				<x>435</x>
				<y>300</y>   
				<tooltip>Roll wheel or type in an amount</tooltip>
			</box9>
			<increase9 _extends="controldefs/inc_button">
				<x>507</x>
				<y>300</y>   
				<tooltip>Hold to increase rapidly</tooltip>
				<onlclick>cargoscreen_increase(9)</onlclick>
			</increase9>
			<max9 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>300</y>   
				<tooltip>Maximum your Warehouse can hold</tooltip>
				<onlclick>cargoscreen_max(9)</onlclick>
			</max9>

			<bigicon _class="UIBitmap">
				<x>500</x>
				<y>120</y>
				<halign>center</halign>
				<valign>center</valign>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</bigicon>
			<description _class="UIText">
				<x>410</x>
				<y>185</y>
				<font>ramsey_small</font>
				<wrapwidth>200</wrapwidth>
				<text>description</text>
			</description>
			<gridline2 _class="UIBitmap">
				<x>15</x>
				<y>345</y>
				<bitmap>
					<bitmap>assets/graphics/ui/cargo-summary-bg.png</bitmap>
					<alphamap>assets/graphics/ui/cargo-summary-bg-alpha.png</alphamap>
				</bitmap>
			</gridline2> 
			<gridline3 _class="UIBitmap">
				<x>182</x>
				<y>345</y>
				<bitmap>
					<bitmap>assets/graphics/ui/cargo-summary-bg.png</bitmap>
					<alphamap>assets/graphics/ui/cargo-summary-bg-alpha.png</alphamap>
				</bitmap>
			</gridline3>
			<shiptext _extends="/controldefs/basictext">
				<x>85</x>
				<y>350</y>
				<text>Ship</text>
			</shiptext>
			<warehousetext _extends="/controldefs/basictext">
				<x>220</x>
				<y>350</y>
				<text>Warehouse</text>
			</warehousetext>
			<ship _class="UIBitmap">
				<x>42</x>
				<y>375</y>
				<halign>center</halign>
				<valign>top</valign>
				<bitmap bitmap="assets/graphics/map/ship-galleon-white.jpg"
						alphamap="assets/graphics/map/ship-galleon-white.png"/>
			</ship>
			<cargotext _extends="/controldefs/basictext">
				<x>35</x>
				<y>410</y>
				<text>Cargo: 9,999/9,999</text>
			</cargotext>
			<cargobar _extends="/controldefs/progress">
				<x>70</x>
				<y>390</y>
				<width>100</width>
			</cargobar>
			<warehouseicon _class="UIBitmap">
				<x>206</x>
				<y>375</y>
				<halign>center</halign>
				<valign>top</valign>
				<bitmap bitmap="assets/graphics/ports/buildings/warehouse-00-red-tiny.png"
						alphamap="assets/graphics/ports/buildings/warehouse-00-red-tiny-alpha.png"/>
			</warehouseicon>
			<inventorytext _extends="/controldefs/basictext">
				<x>195</x>
				<y>412</y>
				<text>Inv. : 10,000/10,000</text>
			</inventorytext>
			<inventorybar _extends="/controldefs/progress">
				<x>235</x>
				<y>390</y>
				<width>100</width>
			</inventorybar>
			<movebutton _extends="/controldefs/choicetext">
				<text>Transfer</text>
				<x>520</x>
				<y>340</y>
				<width>120</width>
				<onlclick>cargoscreen_transfer</onlclick>
			</movebutton>
			<viewwarehouse _extends="/controldefs/choicetext">
				<text>View Warehouse</text>
				<x>520</x>
				<y>370</y>
				<width>120</width>
				<onlclick>cargoscreen_to_warehouse</onlclick>
			</viewwarehouse>
			<close _extends="/controldefs/choicetext">
				<text>Leave</text>
				<x>520</x>
				<y>400</y>
				<width>120</width>
				<onlclick>cargoscreen_toggle</onlclick>
			</close>
			<confirmtransfer _extends="/controldefs/choicetext">
				<text>Move to Warehouse</text>
				<x>520</x>
				<y>370</y>
				<width>120</width>
				<onlclick>cargoscreen_confirmtransfer</onlclick>
			</confirmtransfer>
			<endtransfer _extends="/controldefs/choicetext">
				<text>Back</text>
				<x>520</x>
				<y>400</y>
				<width>120</width>
				<onlclick>cargoscreen_endtransfer</onlclick>
			</endtransfer>
		</elements>
	</cargoscreen>

	<port _class="UIPanel" x="160" y="0" width="640" height="460">
		<elements>
			<portname _extends="/controldefs/townlabel">
				<x>320</x>
				<y>10</y>
				<text>Port</text>
			</portname>
			<building _extends="/controldefs/buildinglabel">
				<x>320</x>
				<y>200</y>
				<text>Building</text>
			</building>
			<icon _class="UIBitmap">
				<x>10</x>
				<y>10</y>
				<halign>right</halign>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon>
		</elements>
	</port>

	<sidebar _class="UIPanel" x="0" y="0" width="160" height="600">
		<elements>
			<background _class="UIBitmap">
				<bitmap>
					<bitmap>assets/graphics/hud/sidebar.jpg</bitmap>
					<alphamap>assets/graphics/hud/sidebar-alpha.png</alphamap>
				</bitmap>
				<x>0</x>
				<y>0</y>
				<halign>left</halign>
				<width>160</width>
				<height>600</height>
			</background>
			<portraitbg _class="UIBitmap">
				<bitmap>
					<bitmap>assets/graphics/characters/portrait-empty.jpg</bitmap>
					<alphamap>assets/graphics/characters/portrait-alpha.png</alphamap>
				</bitmap>
				<x>80</x>
				<y>21</y>
				<halign>center</halign>
				<width>158</width>
				<height>171</height>
			</portraitbg>
			<portrait _class="UIBitmap">
				<bitmap>
					<bitmap>assets/graphics/characters/portrait-empty.jpg</bitmap>
					<alphamap>assets/graphics/characters/portrait-alpha.png</alphamap>
				</bitmap>
				<x>0</x>
				<y>21</y>
				<width>158</width>
				<height>171</height>
			</portrait>
			<name _extends="/controldefs/label">
				<text>Gossamer</text>
				<x>80</x>
				<y>8</y>
			</name>
			<sidebarpaperbg _class="UIBitmap">
				<bitmap>
					<bitmap>assets/graphics/hud/sidebar-paper.jpg</bitmap>
					<alphamap>assets/graphics/hud/sidebar-paper-alpha.png</alphamap>
				</bitmap>
				<x>3</x>
				<y>189</y>
				<width>151</width>
				<height>244</height>
			</sidebarpaperbg>
			<finances_bitmap _class="UIBitmap">
				<bitmap>
					<bitmap>assets/graphics/hud/finances.jpg</bitmap>
				</bitmap>
				<x>8</x>
				<y>204</y>
				<width>133</width>
				<height>67</height>
			</finances_bitmap>
			<finances_cash _extends="/controldefs/cash_hotcredit">
				<tooltip>Your Cash</tooltip>
				<x>137</x>
				<y>204</y>
				<text>0</text>
				<onlclick>x</onlclick>
			</finances_cash>
			<finances_bank _extends="/controldefs/cash_hotcredit">
				<tooltip>Bank Balance</tooltip>
				<x>137</x>
				<y>229</y>
				<text>0</text>
				<onlclick>x</onlclick>
			</finances_bank>
			<finances_debt _extends="/controldefs/cash_hotdebt">
				<tooltip>Your Debt</tooltip>
				<x>137</x>
				<y>253</y>
				<text>0</text>
				<onlclick>x</onlclick>
			</finances_debt>
			<menubutton _class="UIBitmapButton">
				<bitmap bitmap="assets/graphics/hud/buttons-menu.jpg"/>
				<hotbitmap bitmap="assets/graphics/hud/buttons-menu-hot.jpg"/>
				<valign>top</valign> 
				<tooltip>Save Progress and Change Options</tooltip>
				<x>16</x>
				<y>440</y>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onlclick>ingame_menu</onlclick>
			</menubutton>
			<tasksbutton _class="UIBitmapButton">
				<bitmap bitmap="assets/graphics/hud/buttons-tasks.jpg"/>
				<hotbitmap bitmap="assets/graphics/hud/buttons-tasks-hot.jpg"/>
				<valign>top</valign>
				<tooltip>View your tasks</tooltip>
				<x>16</x>
				<y>276</y>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onlclick>taskscreen_toggle</onlclick>
			</tasksbutton>
			<logbutton _class="UIBitmapButton">
				<bitmap bitmap="assets/graphics/hud/buttons-log.jpg"/>
				<hotbitmap bitmap="assets/graphics/hud/buttons-log-hot.jpg"/>
				<tooltip>Ship's Log</tooltip>
				<valign>top</valign>
				<x>16</x>
				<y>302</y>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onlclick>logscreen_toggle</onlclick>
			</logbutton>
			<itemsbutton _class="UIBitmapButton">
				<bitmap bitmap="assets/graphics/hud/buttons-items.jpg"/>
				<hotbitmap bitmap="assets/graphics/hud/buttons-items-hot.jpg"/>
				<tooltip>People and Items</tooltip>
				<valign>top</valign>
				<x>16</x>
				<y>328</y>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onlclick>itemscreen_toggle</onlclick>
			</itemsbutton>
			<cargobutton _class="UIBitmapButton">
				<bitmap bitmap="assets/graphics/hud/buttons-cargo.jpg"/>
				<hotbitmap bitmap="assets/graphics/hud/buttons-cargo-hot.jpg"/>
				<valign>top</valign>
				<tooltip>Ship's Cargo</tooltip>
				<x>16</x>
				<y>354</y>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onlclick>cargoscreen_toggle</onlclick>
			</cargobutton>
			<shipbutton _class="UIBitmapButton">
				<bitmap bitmap="assets/graphics/hud/buttons-ship.jpg"/>
				<hotbitmap bitmap="assets/graphics/hud/buttons-ship-hot.jpg"/>
				<valign>top</valign>
				<tooltip>Ship Specs</tooltip>
				<x>16</x>
				<y>381</y>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onlclick>shipscreen_toggle</onlclick>
			</shipbutton>

		</elements>
	</sidebar>

	<victory _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<frame _extends="/controldefs/popupframe">
				<x>400</x>
				<y>10</y>
				<halign>center</halign>
				<width>400</width>
				<height>165</height>
			</frame>
			<name _extends="/controldefs/label">
				<text>Victory!</text>
				<x>400</x>
				<y>15</y>
			</name>
                        <text _extends="/controldefs/basictext">
				<text>Your crew has been victorious this day!  You recover 10,000 Gold from the wreckage of your fallen enemies.</text>
				<x>225</x>
				<y>50</y>
				<wrapwidth>365</wrapwidth>
			</text>

			<begin _extends="/controldefs/choicetext">
				<text>OK!</text>
				<x>400</x>
				<y>130</y>
				<onlclick>hidepanel(victory);victory_ok</onlclick>
			</begin>
		</elements>
	</victory>

	<defeat _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<frame _extends="/controldefs/popupframe">
				<x>400</x>
				<y>10</y>
				<halign>center</halign>
				<width>400</width>
				<height>205</height>
			</frame>
			<name _extends="/controldefs/label">
				<text>Defeat!</text>
				<x>400</x>
				<y>20</y>
			</name>
                        <text _extends="/controldefs/basictext">
				<text>Your glorious ship now lies beneath the waves and your reign has ended.  You survive for 2 years and 2 months and amass 100,000 Gold. Final ranking: Beggar.</text>
				<x>230</x>
				<y>55</y>
				<wrapwidth>340</wrapwidth>
			</text>
			<begin _extends="/controldefs/choicetext">
				<text>Game Over</text>
				<x>450</x>
				<y>170</y>
				<onlclick>hidepanel(defeat);defeat_ok</onlclick>
			</begin>
			<restore _extends="/controldefs/choicetext">
				<text>Try again</text>
				<x>300</x>
				<y>170</y>
				<onlclick>hidepanel(defeat);loadautosave</onlclick>
			</restore>
		</elements>
	</defeat>

	<combatpaused _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<frame _extends="/controldefs/popupframe">
				<x>400</x>
				<y>10</y>
				<halign>center</halign>
				<width>400</width>
				<height>200</height>
			</frame>

			<name _extends="/controldefs/label">
				<text>Paused!</text>
				<x>400</x>
				<y>25</y>
			</name>

            <text _extends="/controldefs/basictext">
				<text>Combat is paused.</text>
				<x>230</x>
				<y>60</y>
				<wrapwidth>340</wrapwidth>
			</text>

			<begin _extends="/controldefs/choicetext">
				<text>OK</text>
				<x>400</x>
				<y>165</y>
				<onlclick>hidepanel(combatpaused);resume_combat</onlclick>
			</begin>
		</elements>
	</combatpaused>

	<combat _class="UIPanel" x="0" y="0" width="800" height="600">
		<elements>
			<fleebackground _class="UIBitmap">
				<halign>left</halign>
				<valign>top</valign>
				<x>578</x>
				<y>452</y>
				<bitmap>
					<bitmap>assets/graphics/hud/shipbit.jpg</bitmap>
					<alphamap>assets/graphics/hud/shipbit-alpha.png</alphamap>
				</bitmap>
			</fleebackground>
			<fleebutton _class="UIBitmapButton">
				<bitmap bitmap="assets/graphics/hud/button-flee.jpg"/>
				<hotbitmap bitmap="assets/graphics/hud/button-flee-hot.jpg"/>
				<disabledbitmap bitmap="assets/graphics/hud/button-flee-off.jpg"/>
				<x>665</x>
				<y>521</y>
				<cooltime>0.5</cooltime>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onlclick>combat_flee</onlclick>
			</fleebutton>
			<ammobutton1 _class="UIBitmapButton">
				<bitmap>
					<bitmap>assets/graphics/combat/button-firepot.jpg</bitmap>
					<alphamap>assets/graphics/combat/button-firepot-alpha.png</alphamap>
				</bitmap>
				<hotbitmap>
					<bitmap>assets/graphics/combat/button-firepot-hot.jpg</bitmap>
					<alphamap>assets/graphics/combat/button-firepot-hot-alpha.png</alphamap>
				</hotbitmap>
				<disabledbitmap>
					<bitmap>assets/graphics/combat/button-firepot-off.jpg</bitmap>
					<alphamap>assets/graphics/combat/button-firepot-off-alpha.png</alphamap>
				</disabledbitmap>
				<x>372</x>
				<y>420</y>
				<halign>center</halign>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onlclick>combat_ammo1</onlclick>
			</ammobutton1>
			<ammotext1 _class="UIText">
				<halign>center</halign>
				<x>394</x>
				<y>465</y>
				<font>ramsey_small</font>
				<text>0</text>
			</ammotext1>
			<ammobutton2 _class="UIBitmapButton">
				<bitmap>
					<bitmap>assets/graphics/combat/button-chainshot.jpg</bitmap>
					<alphamap>assets/graphics/combat/button-chainshot-alpha.png</alphamap>
				</bitmap>
				<hotbitmap>
					<bitmap>assets/graphics/combat/button-chainshot-hot.jpg</bitmap>
					<alphamap>assets/graphics/combat/button-chainshot-hot-alpha.png</alphamap>
				</hotbitmap>
				<disabledbitmap>
					<bitmap>assets/graphics/combat/button-chainshot-off.jpg</bitmap>
					<alphamap>assets/graphics/combat/button-chainshot-off-alpha.png</alphamap>
				</disabledbitmap>
				<x>500</x>
				<y>430</y>
				<halign>center</halign>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onlclick>combat_ammo2</onlclick>
			</ammobutton2>
			<ammotext2 _class="UIText">
				<halign>center</halign>
				<x>500</x>
				<y>410</y>
				<font>ramsey_small</font>
				<text>0</text>
			</ammotext2>
			<ammobutton3 _class="UIBitmapButton">
				<bitmap>
					<bitmap>assets/graphics/combat/button-tikibomb.jpg</bitmap>
					<alphamap>assets/graphics/combat/button-tikibomb-alpha.png</alphamap>
				</bitmap>
				<hotbitmap>
					<bitmap>assets/graphics/combat/button-tikibomb-hot.jpg</bitmap>
					<alphamap>assets/graphics/combat/button-tikibomb-hot-alpha.png</alphamap>
				</hotbitmap>
				<disabledbitmap>
					<bitmap>assets/graphics/combat/button-tikibomb-off.jpg</bitmap>
					<alphamap>assets/graphics/combat/button-tikibomb-off-alpha.png</alphamap>
				</disabledbitmap>
				<x>700</x>
				<y>430</y>
				<halign>center</halign>
				<clicksound>select</clicksound>
				<hotsound>highlight</hotsound>
				<onlclick>combat_ammo3</onlclick>
			</ammobutton3>
			<ammotext3 _class="UIText">
				<halign>center</halign>
				<x>700</x>
				<y>410</y>
				<font>ramsey_small</font>
				<text>0</text>
			</ammotext3>
		</elements>
	</combat>

	<precombat _class="UIPanel" x="0" y="0" width="800" height="200">
		<elements>
			<frame _extends="/controldefs/popupframe">
				<x>400</x>
				<y>20</y>
				<width>400</width>
				<height>140</height>
				<halign>center</halign>
				<valign>top</valign>
			</frame>
			<text _extends="/controldefs/basictext">
				<halign>center</halign>
				<x>406</x>
				<y>60</y>
				<wrapwidth>350</wrapwidth>
				<text>Click on a target to begin combat.  Your ship will automatically fire on the selected enemy.</text>
			</text>
		</elements>
	</precombat>

	<npccombat _class="UIPanel" x="0" y="0" width="800" height="400">
		<elements>
			<topframe _extends="/controldefs/popupframe">
				<x>400</x>
				<y>5</y>
				<width>450</width>
				<height>220</height>
				<halign>center</halign>
				<valign>top</valign>
			</topframe>
			<npcname _extends="/controldefs/label">
				<x>450</x>
				<y>11</y>
				<text>Frederick Florian Bloom</text>
			</npcname>
			<portrait _extends="/controldefs/npccombat_portrait">
				<bitmap>
					<bitmap>assets/graphics/characters/portrait-empty.jpg</bitmap>
					<alphamap>assets/graphics/characters/portrait-alpha.png</alphamap>
				</bitmap>
			</portrait>

			<dialogue _extends="/controldefs/npctext">
				<text>Gort Klaatu Barada Nikto</text>
				<x>350</x>
				<y>45</y>
				<wrapwidth>250</wrapwidth>
			</dialogue>

			<okbutton _extends="/controldefs/choicetext">
				<text>Fight!</text>
				<x>400</x>
				<y>185</y>
				<width>70</width>
				<onlclick>hidepanel(npccombat);combat_npc_ok</onlclick>
			</okbutton>
		</elements>
	</npccombat>

	<talk _class="UIPanel" x="273" y="40" width="400" height="420" modal="false">
		<elements>
			<topframe _extends="/controldefs/popupframe">
				<x>-20</x>
				<y>-15</y>
				<width>440</width>
				<height>335</height>
				<halign>left</halign>
				<valign>top</valign>
			</topframe>

			<npcname _extends="/controldefs/label">
				<x>230</x>
				<y>-10</y>
				<text>Frederick Florian Bloom</text>
			</npcname>
			
			<portrait _extends="/controldefs/npc_portrait">
				<bitmap>
					<bitmap>assets/graphics/characters/portrait-empty.jpg</bitmap>
					<alphamap>assets/graphics/characters/portrait-alpha.png</alphamap>
				</bitmap>
			</portrait>

			<dialogue _extends="/controldefs/npctext">
				<text>Gort Klaatu Barada Nikto</text>
				<x>150</x>
				<y>30</y>
				<wrapwidth>235</wrapwidth>
			</dialogue>

			<dialogue2 _extends="/controldefs/npctext">
				<text>Gort Klaatu Barada Nikto</text>
				<x>20</x>
				<y>0</y>
				<wrapwidth>325</wrapwidth>
			</dialogue2>

			<okbutton _extends="/controldefs/choicetext">
				<text>OK</text>
				<x>200</x>
				<y>275</y>
				<width>270</width>
				<onlclick>hidepanel(talk);task_message_ok</onlclick>
			</okbutton>
		</elements>
	</talk>

	<larochecombat _class="UIPanel" x="0" y="0" width="800" height="400">
	<elements>
			<topframe _extends="/controldefs/popupframe">
				<x>400</x>
				<y>5</y>
				<width>450</width>
				<height>250</height>
				<halign>center</halign>
				<valign>top</valign>
			</topframe>
			<npcname _extends="/controldefs/label">
				<x>450</x>
				<y>11</y>
				<text>Captain Sebastian La Roche</text>
			</npcname>
			<portrait _extends="/controldefs/npccombat_portrait">
				<bitmap>
					<bitmap>assets/graphics/characters/portrait-laroche.jpg</bitmap>
					<alphamap>assets/graphics/characters/portrait-alpha.png</alphamap>
				</bitmap>
			</portrait>

			<dialogue _extends="/controldefs/npctext">
				<text>Surrender your cargo or face my wrath!</text>
				<x>350</x>
				<y>45</y>
				<wrapwidth>250</wrapwidth>
			</dialogue>
			<okbutton _extends="/controldefs/choicetext">
				<text>Surrender Cargo</text>
				<x>300</x>
				<y>200</y>
				<width>140</width>
				<onlclick>hidepanel(npccombat);combat_npc_ok</onlclick>
			</okbutton>
			<okbutton _extends="/controldefs/choicetext">
				<text>Fight!</text>
				<x>500</x>
				<y>200</y>
				<width>140</width>
				<onlclick>hidepanel(larochecombat);combat_laroche_ok</onlclick>
			</okbutton>
		</elements>
</larochecombat>

	<verdugobattle _class="UIPanel" x="0" y="0" width="800" height="400">
	<elements>
			<topframe _extends="/controldefs/popupframe">
				<x>400</x>
				<y>5</y>
				<width>450</width>
				<height>220</height>
				<halign>center</halign>
				<valign>top</valign>
			</topframe>
			<npcname _extends="/controldefs/label">
				<x>450</x>
				<y>11</y>
				<text>Captain Ignacio Verdugo</text>
			</npcname>
			<portrait _extends="/controldefs/npccombat_portrait">
				<bitmap>
					<bitmap>assets/graphics/characters/portrait-verdugo.jpg</bitmap>
					<alphamap>assets/graphics/characters/portrait-alpha.png</alphamap>
				</bitmap>
			</portrait>

			<dialogue _extends="/controldefs/npctext">
				<text>Hello. My name is Ignacio Verdugo. You killed my father. Prepare to Die!</text>
				<x>350</x>
				<y>45</y>
				<wrapwidth>250</wrapwidth>
			</dialogue>

			<okbutton _extends="/controldefs/choicetext">
				<text>Fight!</text>
				<x>400</x>
				<y>185</y>
				<width>70</width>
				<onlclick>hidepanel(verdugobattle);combat_verdugo_ok</onlclick>
			</okbutton>
		</elements>
	</verdugobattle>
	<contraband _class="UIPanel" x="273" y="40" width="400" height="420" modal="true">
		<elements>
			<topframe _extends="/controldefs/popupframe">
				<x>-20</x>
				<y>-15</y>
				<width>440</width>
				<height>335</height>
				<halign>left</halign>
				<valign>top</valign>
			</topframe>

			<npcname _extends="/controldefs/label">
				<x>240</x>
				<y>0</y>
				<width>200</width>
				<text>The Governor's Assistant</text>
			</npcname>

			<portrait _extends="/controldefs/npc_portrait">
				<bitmap>
					<bitmap>assets/graphics/characters/portrait-empty.jpg</bitmap>
					<alphamap>assets/graphics/characters/portrait-alpha.png</alphamap>
				</bitmap>
			</portrait>

			<dialogue _extends="/controldefs/npctext">
				<text>Your goods have been seized.</text>
				<x>150</x>
				<y>37</y>
				<wrapwidth>235</wrapwidth>
			</dialogue>
			<okbutton _extends="/controldefs/choicetext">
				<text>Ok.</text>
				<x>200</x>
				<y>265</y>
				<onlclick>hidepanel(contraband);unfreezeport</onlclick>
			</okbutton>
		</elements>
	</contraband>
	<cantsailcargo _class="UIPanel" x="273" y="40" width="400" height="420" modal="true">
		<elements>
			<topframe _extends="/controldefs/popupframe">
				<x>-20</x>
				<y>150</y>
				<width>350</width>
				<height>200</height>
				<halign>left</halign>
				<valign>top</valign>
			</topframe>
			<cargo _class="UIBitmap">
				<bitmap>
					<bitmap>assets/graphics/specialitems/icon-crate-128.jpg</bitmap>
                                        <alphamap>assets/graphics/specialitems/icon-crate-128-alpha.png</alphamap>
                                </bitmap>
				<halign>center</halign>
				<valign>center</valign>
				<x>265</x>
				<y>273</y>
			</cargo>
			<npcname _extends="/controldefs/label">
				<x>150</x>
				<y>155</y>
				<width>200</width>
				<text>Unable to Sail.</text>
			</npcname>
			<dialogue _extends="/controldefs/npctext">
				<text>You cannot sail because your ship is overloaded. Sell some cargo or transfer it to a warehouse.</text>
				<x>50</x>
				<y>185</y>
				<wrapwidth>235</wrapwidth>
			</dialogue>
			<okbutton _extends="/controldefs/choicetext">
				<text>OK</text>
				<x>150</x>
				<y>305</y>
				<width>50</width>
				<onlclick>hidepanel(cantsailcargo);unfreezeport</onlclick>
			</okbutton>
			<helpbutton _extends="/controldefs/choicetext">
				<text>Help</text>
				<x>40</x>
				<y>305</y>
				<width>50</width>
				<onlclick>hidepanel(cantsailcargo);unfreezeport;showhelp(cantsail_tut)</onlclick>
			</helpbutton>

		</elements>
</cantsailcargo>


<cantsailitem _class="UIPanel" x="273" y="40" width="400" height="420" modal="true">
		<elements>
			<topframe _extends="/controldefs/popupframe">
				<x>-20</x>
				<y>150</y>
				<width>350</width>
				<height>220</height>
				<halign>left</halign>
				<valign>top</valign>
			</topframe>
			<item _class="UIBitmap">
				<bitmap>
					<bitmap>assets/graphics/specialitems/icon-passengerfemale-128.jpg</bitmap>
                                        <alphamap>assets/graphics/specialitems/icon-passengerfemale-128-alpha.png</alphamap>
                                </bitmap>
				<halign>center</halign>
				<valign>center</valign>
				<x>265</x>
				<y>283</y>
			</item>
			<npcname _extends="/controldefs/label">
				<x>150</x>
				<y>155</y>
				<width>200</width>
				<text>Unable to Sail.</text>
			</npcname>
			<dialogue _extends="/controldefs/npctext">
				<text>You cannot sail because an item or contract is expiring. Check the items screen for more information.</text>
				<x>50</x>
				<y>185</y>
				<wrapwidth>235</wrapwidth>
			</dialogue>
			<okbutton _extends="/controldefs/choicetext">
				<text>OK</text>
				<x>150</x>
				<y>315</y>
				<width>50</width>
				<onlclick>hidepanel(cantsailitem);unfreezeport</onlclick>
			</okbutton>
			<helpbutton _extends="/controldefs/choicetext">
				<text>Help</text>
				<x>40</x>
				<y>315</y>
				<width>50</width>
				<onlclick>hidepanel(cantsailitem);unfreezeport;showhelp(cantsail_tut)</onlclick>
			</helpbutton>

		</elements>
</cantsailitem>
</panels>
