<panels_bldg>
	<alehouse _class="UIPanel" x="273" y="40" width="400" height="420" modal="false">
		<elements>
			<topframe _extends="/controldefs/npc_frame">
			</topframe>

			<bottomframe _extends="/controldefs/choice_frame">
			</bottomframe>

			<alehousename _extends="/controldefs/label">
				<x>240</x>
				<y>-5</y>
				<text>The Alehouse</text>
			</alehousename>

			<portrait _extends="/controldefs/npc_portrait">
				<bitmap bitmap="assets/graphics/characters/portrait-govdoor.jpg"/>
			</portrait>

			<dialogue _extends="/controldefs/npctext">
				<text>So good to see you again!</text>
				<x>155</x>
				<y>35</y>
				<wrapwidth>240</wrapwidth>
			</dialogue>

			<taskbutton _extends="/controldefs/choicetext">
				<text>Task</text>
				<x>195</x>
				<y>265</y>
				<width>340</width>
				<onlclick>alehouse_task</onlclick>
			</taskbutton>
			<bartenderbutton _extends="/controldefs/choicetext">
				<text>Talk to the bartender</text>
				<tooltip>Get general info from the locals</tooltip>
				<x>200</x>
				<y>296</y>
				<width>220</width>
				<onlclick>alehouse_talk_bartender</onlclick>
			</bartenderbutton>
			<buyroundbutton _extends="/controldefs/choicetext">
				<text>Buy a Round of Drinks</text>
				<tooltip>Make friends and get inside tips</tooltip>
				<x>200</x>
				<y>323</y>
				<width>220</width>
				<onlclick>alehouse_buyround</onlclick>
			</buyroundbutton>
			<traderbutton _extends="/controldefs/choicetext">
				<text>Talk to Trader Joe</text>
				<x>200</x>
				<y>350</y>
				<width>220</width>
				<onlclick>trader_enter</onlclick>
			</traderbutton>
			<exitbutton _extends="/controldefs/choicetext">
				<text>Leave</text>
				<x>200</x>
				<y>382</y>
				<width>60</width>
				<onlclick>alehouse_leave</onlclick>
			</exitbutton>
		</elements>
	</alehouse>

	<bank _class="UIPanel" x="273" y="40" width="400" height="420" modal="false">
       	<elements>
			<topframe _extends="/controldefs/npc_frame">
			</topframe>

			<bottomframe _extends="/controldefs/choice_frame">
			</bottomframe>

			<portrait _extends="/controldefs/npc_portrait">
				<bitmap bitmap="assets/graphics/characters/portrait-govdoor.jpg"/>
			</portrait>
						
			<bankname _extends="/controldefs/label">
				<x>240</x>
				<y>0</y>
				<text>Merchant's Bank</text>
			</bankname>
			<dialogue _extends="/controldefs/npctext">
				<text>Bank dialogue here</text>
				<x>155</x>
				<y>35</y>
				<wrapwidth>240</wrapwidth>
			</dialogue>
			<interesttext _extends="/controldefs/smalltext">
				<x>155</x>
				<y>130</y>
				<text>Interest:</text>
			</interesttext>
			<interest _extends="/controldefs/quantity">
				<x>360</x>
				<y>130</y>
				<text>1.50%</text>
			</interest>
			<cashtext _extends="/controldefs/cash_credit">
				<x>220</x>
				<y>150</y>
				<text>Cash:</text>
			</cashtext>
			<balancetext _extends="/controldefs/cash_credit">
				<x>360</x>
				<y>150</y>
				<text>Bank:</text>
			</balancetext>
			<cash _extends="/controldefs/cash_hotcredit">
				<x>220</x>
				<y>175</y>
				<onlclick>x</onlclick>
			</cash>
			<bank _extends="/controldefs/cash_hotcredit">
				<x>360</x>
				<y>175</y>
				<onlclick>x</onlclick>
			</bank>
			<deposit_amount _extends="/controldefs/enternumber">
				<onenterkey>bank_deposit</onenterkey>
				<tooltip>Roll wheel or type in an amount</tooltip>
				<x>40</x>
				<y>305</y>
			</deposit_amount>
			<deposit_max _extends="/controldefs/maxbutton">
				<x>155</x>
				<y>305</y>
				<tooltip>Maximum amount you can deposit</tooltip>
				<onlclick>bank_depositmax</onlclick>
			</deposit_max>
			<withdraw_amount _extends="/controldefs/enternumber">
				<onenterkey>bank_withdraw</onenterkey>
				<tooltip>Roll wheel or type in an amount</tooltip>
				<x>230</x>
				<y>305</y>
			</withdraw_amount>
			<withdraw_max _extends="/controldefs/maxbutton">
				<x>345</x>
				<y>305</y>
				<tooltip>Maximum amount you can withdraw</tooltip>
				<onlclick>bank_withdrawmax</onlclick>
			</withdraw_max>
			<deposit _extends="/controldefs/choicetext">
				<x>100</x>
				<y>335</y>
				<width>88</width>
				<text>Deposit</text>
				<onlclick>bank_deposit</onlclick>
			</deposit>
			<withdraw _extends="/controldefs/choicetext">
				<x>290</x>
				<y>335</y>
				<width>88</width>
				<text>Withdraw</text>
				<onlclick>bank_withdraw</onlclick>
			</withdraw>
			<ok _extends="/controldefs/choicetext">
				<x>200</x>
				<y>380</y>
				<text>Leave</text>
				<onlclick>bank_leave</onlclick>
			</ok>

			<taskbutton _extends="/controldefs/choicetext">
				<text>Task</text>
				<x>195</x>
				<y>265</y>
				<width>340</width>
				<onlclick>bank_task</onlclick>
			</taskbutton>
		</elements>
	</bank>
	
	<governor _class="UIPanel" x="273" y="40" width="400" height="420" modal="false">
       	<elements>
			<topframe _extends="/controldefs/npc_frame">
			</topframe>

			<bottomframe _extends="/controldefs/choice_frame">
			</bottomframe>

			<portrait _extends="/controldefs/npc_portrait">
				<bitmap>
					<bitmap>assets/graphics/characters/portrait-govdoor.jpg</bitmap>
					<alphamap>assets/graphics/characters/portrait-govdoor-alpha.png</alphamap>
				</bitmap>
			</portrait>
						
			<governorname _extends="/controldefs/label">
				<x>240</x>
				<y>0</y>
				<text>The Governator</text>
			</governorname>
			<dialogue _extends="/controldefs/npctext">
				<text>Governor dialogue here</text>
				<x>155</x>
				<y>35</y>
				<wrapwidth>240</wrapwidth>
			</dialogue>
			<task _extends="/controldefs/smalltext">
				<text>Task:</text>
				<x>140</x>
				<y>130</y>
			</task>
			<taskdescription _class="UIText">
				<font>ramsey_emp</font>
				<text>Find the Gem of Puppydogs</text>
				<x>140</x>
				<y>145</y>
			</taskdescription>
			<reward _extends="/controldefs/smalltext">
				<text>Reward:</text>
				<x>140</x>
				<y>170</y>
			</reward>
			<rewarddescription _class="UIText">
				<font>ramsey_emp</font>
				<text>8 Cows</text>
				<x>140</x>
				<y>185</y>
			</rewarddescription>
			<taskbutton _extends="/controldefs/choicetext">
				<text>A Fan-Tailed Blue-Speckled Cockatoo</text>
				<x>195</x>
				<y>270</y>
				<width>340</width>
				<onlclick>governor_task</onlclick>
			</taskbutton>
			<takejob _extends="/controldefs/choicetext">
				<text>Accept This Task</text>
				<x>195</x>
				<y>305</y>
				<width>280</width>
				<onlclick>governor_accept_task</onlclick>
			</takejob>
			<ok _extends="/controldefs/choicetext">
				<x>200</x>
				<y>375</y>
				<text>Leave</text>
				<onlclick>governor_leave</onlclick>
			</ok>
		</elements>
	</governor>

	<marketplace _class="UIPanel" x="213" y="40" width="520" height="420" modal="false">
       	<elements>
       		<frame _extends="/controldefs/popupframe">
				<x>0</x>
				<y>-25</y>
				<width>520</width>
				<height>460</height>
				<halign>left</halign>
				<valign>top</valign>
       		</frame>

			<marketplacename _extends="/controldefs/label">
				<x>260</x>
				<y>-20</y>
				<text>The Marketplace</text>
			</marketplacename>
			<headername _extends="/controldefs/smalltext">
				<x>40</x>
				<y>20</y>
				<text>Item</text>
			</headername>
			<headerprice _extends="/controldefs/quantity">
				<x>195</x>
				<y>20</y>
				<text>Price</text>
			</headerprice>
			<headerowned _extends="/controldefs/quantity">
				<x>270</x>
				<y>20</y>
				<text>Owned</text>
			</headerowned>
			<gridline_m _class="UIBitmap">
				<x>10</x>
				<y>30</y>
				<bitmap>
					<bitmap>assets/graphics/ui/marketplace-grid-bg.png</bitmap>
					<alphamap>assets/graphics/ui/marketplace-grid-bg-alpha.png</alphamap>
				</bitmap>
			</gridline_m>
			<icon0 _class="UIBitmap">
				<x>15</x>
				<y>40</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon0>
			<name0 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>45</y>
				<text>Arms</text>
			</name0>
			<price0 _extends="/controldefs/quantity">
				<x>195</x>
				<y>45</y>
				<text>50</text>
			</price0>
			<owned0 _extends="/controldefs/quantity">
				<x>270</x>
				<y>45</y>
				<text>0</text>
			</owned0>
			<decrease0 _extends="controldefs/dec_button">
				<x>295</x>
				<y>40</y> 
				<tooltip>Click and hold to decrease</tooltip>
				<onlclick>dec_market(0)</onlclick>
			</decrease0>
			<box0 _extends="/controldefs/entersmallnumber">
				<x>351</x>
				<y>40</y> 
				<tooltip>Type in a number or roll wheel to change</tooltip>
			</box0>
			<increase0 _extends="controldefs/inc_button">
				<x>419</x>
				<y>40</y> 
				<tooltip>Click and hold to increase</tooltip>
				<onlclick>inc_market(0)</onlclick>
			</increase0>
			<max0 _extends="/controldefs/maxbutton">
				<x>460</x>
				<y>40</y>
				<tooltip>The maximum you can afford or store</tooltip>
				<onlclick>market_max(0)</onlclick>
			</max0>
			
			<icon1 _class="UIBitmap">
				<x>15</x>
				<y>65</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon1>
			<name1 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>70</y>
				<text>Arms</text>
			</name1>
			<price1 _extends="/controldefs/quantity">
				<x>195</x>
				<y>70</y>
				<text>50</text>
			</price1>
			<owned1 _extends="/controldefs/quantity">
				<x>270</x>
				<y>70</y>
				<text>0</text>
			</owned1>
			<decrease1 _extends="controldefs/dec_button">
				<x>295</x>
				<y>65</y> 
				<tooltip>Click and hold to decrease</tooltip>
				<onlclick>dec_market(1)</onlclick>
			</decrease1>
			<box1 _extends="/controldefs/entersmallnumber">
				<x>351</x>
				<y>65</y> 
				<tooltip>Type in a number or roll wheel to change</tooltip>
			</box1>
			<increase1 _extends="controldefs/inc_button">
				<x>419</x>
				<y>65</y> 
				<tooltip>Click and hold to increase</tooltip>
				<onlclick>inc_market(1)</onlclick>
			</increase1>
			<max1 _extends="/controldefs/maxbutton">
				<x>460</x>
				<y>65</y>
				<tooltip>The maximum you can afford or store</tooltip>
				<onlclick>market_max(1)</onlclick>
			</max1>

			<icon2 _class="UIBitmap">
				<x>15</x>
				<y>90</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon2>
			<name2 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>95</y>
				<text>Arms</text>
			</name2>
			<price2 _extends="/controldefs/quantity">
				<x>195</x>
				<y>95</y>
				<text>50</text>
			</price2>
			<owned2 _extends="/controldefs/quantity">
				<x>270</x>
				<y>95</y>
				<text>0</text>
			</owned2>
			<decrease2 _extends="controldefs/dec_button">
				<x>295</x>
				<y>90</y> 
				<tooltip>Click and hold to decrease</tooltip>
				<onlclick>dec_market(2)</onlclick>
			</decrease2>
			<box2 _extends="/controldefs/entersmallnumber">
				<x>351</x>
				<y>90</y> 
				<tooltip>Type in a number or roll wheel to change</tooltip>
			</box2>
			<increase2 _extends="controldefs/inc_button">
				<x>419</x>
				<y>90</y> 
				<tooltip>Click and hold to increase</tooltip>
				<onlclick>inc_market(2)</onlclick>
			</increase2>
			<max2 _extends="/controldefs/maxbutton">
				<x>460</x>
				<y>90</y> 
				<tooltip>The maximum you can afford or store</tooltip>
				<onlclick>market_max(2)</onlclick>
			</max2>

			<icon3 _class="UIBitmap">
				<x>15</x>
				<y>115</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon3>
			<name3 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>120</y>
				<text>Arms</text>
			</name3>
			<price3 _extends="/controldefs/quantity">
				<x>195</x>
				<y>120</y>
				<text>50</text>
			</price3>
			<owned3 _extends="/controldefs/quantity">
				<x>270</x>
				<y>120</y>
				<text>0</text>
			</owned3>
			<decrease3 _extends="controldefs/dec_button">
				<x>295</x>
				<y>115</y> 
				<tooltip>Click and hold to decrease</tooltip>
				<onlclick>dec_market(3)</onlclick>
			</decrease3>
			<box3 _extends="/controldefs/entersmallnumber">
				<x>351</x>
				<y>115</y> 
				<tooltip>Type in a number or roll wheel to change</tooltip>
			</box3>
			<increase3 _extends="controldefs/inc_button">
				<x>419</x>
				<y>115</y> 
				<tooltip>Click and hold to increase</tooltip>
				<onlclick>inc_market(3)</onlclick>
			</increase3>
			<max3 _extends="/controldefs/maxbutton">
				<x>460</x>
				<y>115</y>
				<tooltip>The maximum you can afford or store</tooltip>
				<onlclick>market_max(3)</onlclick>
			</max3>

			<icon4 _class="UIBitmap">
				<x>15</x>
				<y>140</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon4>
			<name4 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>145</y>
				<text>Arms</text>
			</name4>
			<price4 _extends="/controldefs/quantity">
				<x>195</x>
				<y>145</y>
				<text>50</text>
			</price4>
			<owned4 _extends="/controldefs/quantity">
				<x>270</x>
				<y>145</y>
				<text>0</text>
			</owned4>
			<decrease4 _extends="controldefs/dec_button">
				<x>295</x>
				<y>140</y> 
				<tooltip>Click and hold to decrease</tooltip>
				<onlclick>dec_market(4)</onlclick>
			</decrease4>
			<box4 _extends="/controldefs/entersmallnumber">
				<x>351</x>
				<y>140</y> 
				<tooltip>Type in a number or roll wheel to change</tooltip>
			</box4>
			<increase4 _extends="controldefs/inc_button">
				<x>419</x>
				<y>140</y> 
				<tooltip>Click and hold to increase</tooltip>
				<onlclick>inc_market(4)</onlclick>
			</increase4>
			<max4 _extends="/controldefs/maxbutton">
				<x>460</x>
				<y>140</y>
				<tooltip>The maximum you can afford or store</tooltip>
				<onlclick>market_max(4)</onlclick>
			</max4>

			<icon5 _class="UIBitmap">
				<x>15</x>
				<y>165</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon5>
			<name5 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>170</y>
				<text>Arms</text>
			</name5>
			<price5 _extends="/controldefs/quantity">
				<x>195</x>
				<y>170</y>
				<text>50</text>
			</price5>
			<owned5 _extends="/controldefs/quantity">
				<x>270</x>
				<y>170</y>
				<text>0</text>
			</owned5>
			<decrease5 _extends="controldefs/dec_button">
				<x>295</x>
				<y>165</y> 
				<tooltip>Click and hold to decrease</tooltip>
				<onlclick>dec_market(5)</onlclick>
			</decrease5>
			<box5 _extends="/controldefs/entersmallnumber">
				<x>351</x>
				<y>165</y> 
				<tooltip>Type in a number or roll wheel to change</tooltip>
			</box5>
			<increase5 _extends="controldefs/inc_button">
				<x>419</x>
				<y>165</y> 
				<tooltip>Click and hold to increase</tooltip>
				<onlclick>inc_market(5)</onlclick>
			</increase5>
			<max5 _extends="/controldefs/maxbutton">
				<x>460</x>
				<y>165</y>
				<tooltip>The maximum you can afford or store</tooltip>
				<onlclick>market_max(5)</onlclick>
			</max5>

			<icon6 _class="UIBitmap">
				<x>15</x>
				<y>190</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon6>
			<name6 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>195</y>
				<text>Arms</text>
			</name6>
			<price6 _extends="/controldefs/quantity">
				<x>195</x>
				<y>195</y>
				<text>50</text>
			</price6>
			<owned6 _extends="/controldefs/quantity">
				<x>270</x>
				<y>195</y>
				<text>0</text>
			</owned6>
			<decrease6 _extends="controldefs/dec_button">
				<x>295</x>
				<y>190</y> 
				<tooltip>Click and hold to decrease</tooltip>
				<onlclick>dec_market(6)</onlclick>
			</decrease6>
			<box6 _extends="/controldefs/entersmallnumber">
				<x>351</x>
				<y>190</y> 
				<tooltip>Type in a number or roll wheel to change</tooltip>
			</box6>
			<increase6 _extends="controldefs/inc_button">
				<x>419</x>
				<y>190</y> 
				<tooltip>Click and hold to increase</tooltip>
				<onlclick>inc_market(6)</onlclick>
			</increase6>
			<max6 _extends="/controldefs/maxbutton">
				<x>460</x>
				<y>190</y>
				<tooltip>The maximum you can afford or store</tooltip>
				<onlclick>market_max(6)</onlclick>
			</max6>

			<icon7 _class="UIBitmap">
				<x>15</x>
				<y>215</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon7>
			<name7 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>220</y>
				<text>Arms</text>
			</name7>
			<price7 _extends="/controldefs/quantity">
				<x>195</x>
				<y>220</y>
				<text>50</text>
			</price7>
			<owned7 _extends="/controldefs/quantity">
				<x>270</x>
				<y>220</y>
				<text>0</text>
			</owned7>
			<decrease7 _extends="controldefs/dec_button">
				<x>295</x>
				<y>215</y> 
				<tooltip>Click and hold to decrease</tooltip>
				<onlclick>dec_market(7)</onlclick>
			</decrease7>
			<box7 _extends="/controldefs/entersmallnumber">
				<x>351</x>
				<y>215</y> 
				<tooltip>Type in a number or roll wheel to change</tooltip>
			</box7>
			<increase7 _extends="controldefs/inc_button">
				<x>419</x>
				<y>215</y> 
				<tooltip>Click and hold to increase</tooltip>
				<onlclick>inc_market(7)</onlclick>
			</increase7>
			<max7 _extends="/controldefs/maxbutton">
				<x>460</x>
				<y>215</y>
				<tooltip>The maximum you can afford or store</tooltip>
				<onlclick>market_max(7)</onlclick>
			</max7>

			<icon8 _class="UIBitmap">
				<x>15</x>
				<y>240</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon8>
			<name8 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>245</y>
				<text>Arms</text>
			</name8>
			<price8 _extends="/controldefs/quantity">
				<x>195</x>
				<y>245</y>
				<text>50</text>
			</price8>
			<owned8 _extends="/controldefs/quantity">
				<x>270</x>
				<y>245</y>
				<text>0</text>
			</owned8>
			<decrease8 _extends="controldefs/dec_button">
				<x>295</x>
				<y>240</y> 
				<tooltip>Click and hold to decrease</tooltip>
				<onlclick>dec_market(8)</onlclick>
			</decrease8>
			<box8 _extends="/controldefs/entersmallnumber">
				<x>351</x>
				<y>240</y> 
				<tooltip>Type in a number or roll wheel to change</tooltip>
			</box8>
			<increase8 _extends="controldefs/inc_button">
				<x>419</x>
				<y>240</y> 
				<tooltip>Click and hold to increase</tooltip>
				<onlclick>inc_market(8)</onlclick>
			</increase8>
			<max8 _extends="/controldefs/maxbutton">
				<x>460</x>
				<y>240</y>
				<tooltip>The maximum you can afford or store</tooltip>
				<onlclick>market_max(8)</onlclick>
			</max8>

			<icon9 _class="UIBitmap">
				<x>15</x>
				<y>265</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon9>
			<name9 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>270</y>
				<text>Arms</text>
			</name9>
			<price9 _extends="/controldefs/quantity">
				<x>195</x>
				<y>270</y>
				<text>50</text>
			</price9>
			<owned9 _extends="/controldefs/quantity">
				<x>270</x>
				<y>270</y>
				<text>0</text>
			</owned9>
			<decrease9 _extends="controldefs/dec_button">
				<x>295</x>
				<y>265</y> 
				<tooltip>Click and hold to decrease</tooltip>
				<onlclick>dec_market(9)</onlclick>
			</decrease9>
			<box9 _extends="/controldefs/entersmallnumber">
				<x>351</x>
				<y>265</y> 
				<tooltip>Type in a number or roll wheel to change</tooltip>
			</box9>
			<increase9 _extends="controldefs/inc_button">
				<x>419</x>
				<y>265</y>
				<tooltip>Click and hold to increase</tooltip>
				<onlclick>inc_market(9)</onlclick>
			</increase9>
			<max9 _extends="/controldefs/maxbutton">
				<x>460</x>
				<y>265</y>
				<tooltip>The maximum you can afford or store</tooltip>
				<onlclick>market_max(9)</onlclick>
			</max9> 
			<taskbutton _extends="/controldefs/choicetext">
				<text>Task</text>
				<x>200</x>
				<y>292</y>
				<width>340</width>
				<onlclick>marketplace_task</onlclick>
			</taskbutton>
			<shiptab _class="UIBitmapButton">
				<x>12</x>
				<y>318</y>
				<halign>left</halign>
				<valign>top</valign>
				<onlclick>market_ship</onlclick>
				<bitmap bitmap="assets/graphics/ui/cargodest-off.jpg"
						alphamap="assets/graphics/ui/cargodest-offhover-alpha.png"/>
				<hotbitmap bitmap="assets/graphics/ui/cargodest-hover.jpg"
						alphamap="assets/graphics/ui/cargodest-offhover-alpha.png"/>
				<disabledbitmap bitmap="assets/graphics/ui/cargodest.jpg"
						alphamap="assets/graphics/ui/cargodest-alpha.png"/>
			</shiptab>
			<ship _class="UIBitmapButton">
				<x>40</x>
				<y>320</y>
				<halign>center</halign>
				<valign>top</valign>
				<onlclick>market_ship</onlclick> 
				<tooltip>Click to buy and sell Ship's Cargo</tooltip>
				<bitmap bitmap="assets/graphics/map/ship-galleon-white.jpg"
						alphamap="assets/graphics/map/ship-galleon-white.png"/>
			</ship>
			<cargotext _extends="/controldefs/basictext">
				<x>70</x>
				<y>325</y>
				<text>Cargo: 11/40</text>
			</cargotext>
			<cargobar _extends="/controldefs/progress">
				<x>70</x>
				<y>345</y>
				<width>120</width>
			</cargobar>
			<warehousetab _class="UIBitmapButton">
				<x>12</x>
				<y>369</y>
				<halign>left</halign>
				<valign>top</valign>
				<onlclick>market_warehouse</onlclick>
				<bitmap bitmap="assets/graphics/ui/cargodest-off.jpg"
						alphamap="assets/graphics/ui/cargodest-offhover-alpha.png"/>
				<hotbitmap bitmap="assets/graphics/ui/cargodest-hover.jpg"
						alphamap="assets/graphics/ui/cargodest-offhover-alpha.png"/>
				<disabledbitmap bitmap="assets/graphics/ui/cargodest.jpg"
						alphamap="assets/graphics/ui/cargodest-alpha.png"/>
			</warehousetab>
			<warehouseicon _class="UIBitmapButton">
				<x>40</x>
				<y>373</y>
				<halign>center</halign>
				<valign>top</valign> 
				<tooltip>Click to buy and sell Warehouse inventory</tooltip>
				<onlclick>market_warehouse</onlclick>
                <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>70</x>
				<y>375</y>
				<text>Inventory: 11/40</text>
			</inventorytext>
			<inventorybar _extends="/controldefs/progress">
				<x>70</x>
				<y>395</y>
				<width>120</width>
			</inventorybar>
			<marketbuy _extends="/controldefs/choicetext">
				<text>Buy</text>
				<x>280</x>
				<y>320</y>
				<width>60</width>
				<onlclick>marketplace_buy</onlclick>
			</marketbuy>
			<marketsell _extends="/controldefs/choicetext">
				<text>Sell</text>
				<x>280</x>
				<y>350</y>
				<width>60</width>
				<onlclick>marketplace_sell</onlclick>
			</marketsell>
			<buybutton _extends="/controldefs/choicetext">
				<text>Buy</text>
				<x>440</x>
				<y>320</y>
				<width>60</width>
				<onlclick>buy</onlclick>
			</buybutton>
			<buybutton_ship _extends="/controldefs/choicetext">
				<text>Buy for Ship</text>
				<x>400</x>
				<y>320</y>
				<width>140</width>
				<tooltip>Cargo will go to your Ship</tooltip>
				<onlclick>buy_forship</onlclick>
			</buybutton_ship>
			<buybutton_warehouse _extends="/controldefs/choicetext">
				<text>Buy for Warehouse</text>
				<x>400</x>
				<y>320</y>
				<width>140</width>
				<tooltip>Cargo will go to your Warehouse</tooltip>
				<onlclick>buy_forwarehouse</onlclick>
			</buybutton_warehouse>
			<sellbutton _extends="/controldefs/choicetext">
				<text>Sell</text>
				<x>440</x>
				<y>320</y>
				<width>60</width>
				<onlclick>sell</onlclick>
			</sellbutton>
			<sellbutton_ship _extends="/controldefs/choicetext">
				<text>Sell from Ship</text>
				<x>400</x>
				<y>320</y>
				<width>140</width>
				<tooltip>Sell items from your Ship's cargo</tooltip>
				<onlclick>sell_fromship</onlclick>
			</sellbutton_ship>
			<sellbutton_warehouse _extends="/controldefs/choicetext">
				<text>Sell from Warehouse</text>
				<x>400</x>
				<y>320</y>
				<width>140</width>
				<tooltip>Sell items from your Warehouse inventory</tooltip>
				<onlclick>sell_fromwarehouse</onlclick>
			</sellbutton_warehouse>
			<sellallbutton _extends="/controldefs/choicetext">
				<text>Sell All</text>
				<x>440</x>
				<y>350</y>
				<width>60</width>
				<onlclick>sellall</onlclick>
			</sellallbutton>
			<sellallbutton_ship _extends="/controldefs/choicetext">
				<text>Sell All Ship's Cargo</text>
				<x>400</x>
				<y>350</y>
				<width>140</width>
				<onlclick>sellall_fromship</onlclick>
			</sellallbutton_ship>
			<sellallbutton_warehouse _extends="/controldefs/choicetext">
				<text>Sell All Warehouse</text>
				<x>400</x>
				<y>350</y>
				<width>140</width>
				<onlclick>sellall_fromwarehouse</onlclick>
			</sellallbutton_warehouse>
			<marketback _extends="/controldefs/choicetext">
				<text>Back</text>
				<x>440</x>
				<y>380</y>
				<width>60</width>
				<onlclick>marketplace_back</onlclick>
			</marketback>
			<ok _extends="/controldefs/choicetext">
				<x>280</x>
				<y>380</y>
				<text>Leave</text>
				<width>60</width>
				<onlclick>marketplace_leave</onlclick>
			</ok>
		</elements>
	</marketplace>



	<moneylender _class="UIPanel" x="273" y="40" width="400" height="420" modal="false">
       	<elements>
			<topframe _extends="/controldefs/npc_frame">
			</topframe>

			<bottomframe _extends="/controldefs/choice_frame">
			</bottomframe>

			<portrait _extends="/controldefs/npc_portrait">
				<bitmap bitmap="assets/graphics/characters/portrait-govdoor.jpg"/>
			</portrait>
						
			<lendername _extends="/controldefs/label">
				<x>240</x>
				<y>0</y>
				<text>Big Wong the Moneylender</text>
			</lendername>
			<dialogue _extends="/controldefs/npctext">
				<text>Moneylender dialogue here</text>
				<x>155</x>
				<y>35</y>
				<wrapwidth>240</wrapwidth>
			</dialogue>
			<interesttext _extends="/controldefs/smalltext">
				<x>155</x>
				<y>130</y>
				<text>Interest:</text>
			</interesttext>
			<interest _extends="/controldefs/quantity">
				<x>360</x>
				<y>130</y>
				<text>1.50%</text>
			</interest>
			<cashtext _extends="/controldefs/cash_credit">
				<x>220</x>
				<y>150</y>
				<text>Cash:</text>
			</cashtext>
			<debttext _extends="/controldefs/cash_credit">
				<x>360</x>
				<y>150</y>
				<text>Debt:</text>
			</debttext>
			<cash _extends="/controldefs/cash_hotcredit">
				<x>220</x>
				<y>175</y>
				<onlclick>x</onlclick>
			</cash>
			<debt _extends="/controldefs/cash_hotcredit">
				<x>360</x>
				<y>175</y>
				<onlclick>x</onlclick>
			</debt>
			<repay_box _extends="/controldefs/enternumber">
				<onenterkey>moneylender_repay</onenterkey> 
				<tooltip>Roll wheel or type in an amount</tooltip>
				<x>40</x>
				<y>305</y>
			</repay_box>
			<repay_max _extends="/controldefs/maxbutton">
				<x>155</x>
				<y>305</y> 
				<tooltip>Pay the maximum you can afford or owe</tooltip>
				<onlclick>moneylender_repaymax</onlclick>
			</repay_max>
			<borrow_box _extends="/controldefs/enternumber">
				<onenterkey>moneylender_borrow</onenterkey> 
				<tooltip>Roll wheel or type in an amount</tooltip>
				<x>233</x>
				<y>305</y>
			</borrow_box>
			<borrow_max _extends="/controldefs/maxbutton">
				<x>345</x>
				<y>305</y> 
				<tooltip>Borrow two times your cash on hand</tooltip>
				<onlclick>moneylender_borrowmax</onlclick>
			</borrow_max>
			<repay _extends="/controldefs/choicetext">
				<x>100</x>
				<y>335</y>
				<width>88</width>
				<text>Repay</text>
				<onlclick>moneylender_repay</onlclick>
			</repay>
			<borrow _extends="/controldefs/choicetext">
				<x>290</x>
				<y>335</y>
				<width>88</width>
				<text>Borrow</text>
				<onlclick>moneylender_borrow</onlclick>
			</borrow>
			
			<ok _extends="/controldefs/choicetext">
				<x>200</x>
				<y>380</y>
				<text>Leave</text>
				<onlclick>moneylender_leave</onlclick>
			</ok>
			<taskbutton _extends="/controldefs/choicetext">
				<text>Task</text>
				<x>195</x>
				<y>265</y>
				<width>340</width>
				<onlclick>moneylender_task</onlclick>
			</taskbutton>
		</elements>
	</moneylender>

	<shipyard_repair _class="UIPanel" x="273" y="40" width="400" height="420" modal="false">
       	<elements>
			<topframe _extends="/controldefs/npc_frame">
			</topframe>

			<bottomframe _extends="/controldefs/choice_frame">
			</bottomframe>

			<shippic _class="UIBitmap">
				<x>70</x>
				<y>35</y>
				<halign>center</halign>
				<valign>top</valign>
				<bitmap bitmap="assets/graphics/map/ship-galleon-white.jpg"
						alphamap="assets/graphics/map/ship-galleon-white.png"/>
			</shippic>

			<shipname _extends="/controldefs/label">
				<x>200</x>
				<y>0</y>
				<text>Excelsior</text>
			</shipname>

			<hulltext _extends="/controldefs/basictext">
				<x>150</x>
				<y>50</y>
				<text>Hull Strength:</text>
			</hulltext>
			
			<shiphull _extends="/controldefs/basictext">
				<x>300</x>
				<y>50</y>
				<text>69 / 69</text>
			</shiphull>

			<hullbar _extends="/controldefs/progress">
				<x>150</x>
				<y>80</y>
				<width>200</width>
			</hullbar>

			<repairpoints _class="UIText">
				<font>ramsey</font>
				<halign>center</halign>
				<x>95</x>
				<y>271</y>
				<text>0</text>
			</repairpoints>
			<decrepair _extends="/controldefs/dec_button">
				<x>35</x>
				<y>270</y>
				<tooltip>Hold button to rapidly decrease</tooltip>
				<hold firsttime="0.5" nexttime="0.1"/>
				<onlclick>shipyard_dec_repair</onlclick>
			</decrepair>
			<increpair _extends="/controldefs/inc_button">
				<x>120</x>
				<y>270</y> 
				<tooltip>Hold button to rapidly increase</tooltip>
				<hold firsttime="0.5" nexttime="0.1"/>
				<onlclick>shipyard_inc_repair</onlclick>
			</increpair>
			<repairfiller _extends="/controldefs/basictext">
				<x>185</x>
				<y>271</y>
				<text>points:</text>
			</repairfiller>
			<repairprice _extends="/controldefs/basictext">
				<halign>center</halign>
				<x>295</x>
				<y>271</y>
				<text>500 Gold</text>
			</repairprice>

			<repair _extends="/controldefs/choicetext">
				<x>200</x>
				<y>300</y>
				<text>Repair</text>
				<onlclick>shipyard_dorepair</onlclick>
			</repair>
			<repairall _extends="/controldefs/choicetext">
				<x>200</x>
				<y>330</y>
				<text>Repair All</text>
				<onlclick>shipyard_repairall</onlclick>
			</repairall>
			<back _extends="/controldefs/choicetext">
				<x>200</x>
				<y>375</y>
				<text>Back</text>
				<onlclick>hidepanel(shipyard_repair);shipyard_endrepair;showpanel(shipyard)</onlclick>
			</back>
		</elements>
	</shipyard_repair>
	
	<shipyard_arms _class="UIPanel" x="218" y="40" width="400" height="420" modal="false">
       	<elements>
			
			<topframe _extends="/controldefs/ammo1_frame">
			</topframe>

			<bottomframe _extends="/controldefs/ammo2_frame">
			</bottomframe>
			
			<shipname _extends="/controldefs/label">
				<x>250</x>
				<y>6</y>
				<text>Guns and Ammunition</text>
			</shipname>

			<headername _extends="/controldefs/smalltext">
				<x>40</x>
				<y>214</y>
				<text>Item</text>
			</headername>
			<headerpurchase _extends="/controldefs/quantity">
				<x>190</x>
				<y>214</y>
				<text>Purchase</text>
			</headerpurchase>
			
			<headerprice _extends="/controldefs/quantity">
				<x>240</x>
				<y>214</y>
				<text>Sell</text>
			</headerprice>
			
			<headerowned _extends="/controldefs/quantity">
				<x>310</x>
				<y>214</y>
				<text>Own</text>
			</headerowned>

			<shippic _class="UIBitmap">
				<x>40</x>
				<y>360</y>
				<halign>center</halign>
				<valign>top</valign>
				<bitmap bitmap="assets/graphics/map/ship-galleon-white.jpg"
						alphamap="assets/graphics/map/ship-galleon-white.png"/>
			</shippic>

			<cargobar _extends="/controldefs/progress">
				<x>74</x>
				<y>380</y>
				<width>100</width>
			</cargobar>
			
			<cargotext _extends="/controldefs/basictext">
				<x>74</x>
				<y>360</y>
				<text>Cargo: 0/50</text>
			</cargotext>

			<icontop1 _class="UIBitmap">
				<x>15</x>
				<y>40</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icontop1>

			<icontop2 _class="UIBitmap">
				<x>15</x>
				<y>70</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icontop2>
			
			<icontop3 _class="UIBitmap">
				<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>
			</icontop3>

			<icontop4 _class="UIBitmap">
				<x>15</x>
				<y>130</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icontop4>
			
			<topname1 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>40</y>
				<text>Cannons</text>
			</topname1>

			<description1 _extends="/controldefs/smalltext">
				<x>150</x>
				<y>40</y>
				<text>Take up five cargo space. Unlimited ammo.</text>
			</description1>

			<description1b _extends="/controldefs/smalltext">
				<x>350</x>
				<y>40</y>
				<text>Unlimited Ammo</text>
			</description1b>

			<topname2 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>70</y>
				<text>Chains</text>
			</topname2>

			<description2 _extends="/controldefs/smalltext">
				<x>150</x>
				<y>70</y>
				<text>Heavy damage to one ship. Limited ammo.</text>
			</description2>

			<description2b _extends="/controldefs/smalltext">
				<x>350</x>
				<y>70</y>
				<text>Limited Ammo</text>
			</description2b>

			<topname3 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>100</y>
				<text>Firepots</text>
			</topname3>

			<description3 _extends="/controldefs/smalltext">
				<x>150</x>
				<y>100</y>
				<text>Heavy damage to all ships. Limited ammo.</text>
			</description3>

			<description3b _extends="/controldefs/smalltext">
				<x>350</x>
				<y>100</y>
				<text>Limited Ammo</text>
			</description3b>

			<topname4 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>130</y>
				<text>Tiki Bomb</text>
			</topname4>

			<description4 _extends="/controldefs/smalltext">
				<x>150</x>
				<y>130</y>
				<text>Instantly destroy to all ships. Limited ammo.</text>
			</description4>

			<description4b _extends="/controldefs/smalltext">
				<x>350</x>
				<y>130</y>
				<text>Limited Ammo</text>
			</description4b>

			<sell _extends="/controldefs/choicetext">
				<x>345</x>
				<y>370</y>
				<text>Sell</text>
				<onlclick>shipyard_arms_sell</onlclick>
			</sell>
			<buy _extends="/controldefs/choicetext">
				<x>240</x>
				<y>370</y>
				<text>Buy</text>
				<onlclick>shipyard_arms_buy</onlclick>
			</buy>
			<back _extends="/controldefs/choicetext">
				<x>450</x>
				<y>370</y>
				<text>Back</text>
				<onlclick>hidepanel(shipyard_arms);showpanel(shipyard)</onlclick>
			</back>
			
			
			<icon1 _class="UIBitmap">
				<x>15</x>
				<y>239</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon1>
			<name1 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>239</y>
				<text>Cannons</text>
			</name1>
			
			<sellprice1 _extends="/controldefs/quantity">
				<x>240</x>
				<y>239</y>
				<text>3000</text>
			</sellprice1>
			
			<purchaseprice1 _extends="/controldefs/quantity">
				<x>170</x>
				<y>239</y>
				<text>6000</text>
			</purchaseprice1>
			
			<owned1 _extends="/controldefs/quantity">
				<x>300</x>
				<y>239</y>
				<text>0</text>
			</owned1>
			<decrease1 _extends="controldefs/dec_button">
				<x>320</x>
				<y>239</y>
				<tooltip>Hold button to rapidly decrease</tooltip>
				<onlclick>shipyard_arms_dec(1)</onlclick>
			</decrease1>
			<box1 _extends="/controldefs/entersmallnumber">
				<x>386</x>
				<y>239</y>
				<tooltip>Type in quantity or roll mouse wheel</tooltip>
			</box1>
			<increase1 _extends="controldefs/inc_button">
				<x>465</x>
				<y>239</y>
				<tooltip>Hold button to rapidly increase</tooltip>
				<onlclick>shipyard_arms_inc(1)</onlclick>
			</increase1>

			<icon2 _class="UIBitmap">
				<x>15</x>
				<y>266</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon2>
			<name2 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>266</y>
				<text>Chains</text>
			</name2>
			
			<sellprice2 _extends="/controldefs/quantity">
				<x>240</x>
				<y>266</y>
				<text>3000</text>
			</sellprice2>
			
			<purchaseprice2 _extends="/controldefs/quantity">
				<x>170</x>
				<y>266</y>
				<text>6000</text>
			</purchaseprice2>
			
			<owned2 _extends="/controldefs/quantity">
				<x>300</x>
				<y>266</y>
				<text>0</text>
			</owned2>
			<decrease2 _extends="controldefs/dec_button">
				<x>320</x>
				<y>266</y>               
				<tooltip>Hold button to rapidly decrease</tooltip>
				<onlclick>shipyard_arms_dec(2)</onlclick>
			</decrease2>
			<box2 _extends="/controldefs/entersmallnumber">
				<x>386</x>
				<y>266</y>   
				<tooltip>Type in quantity or roll mouse wheel</tooltip>
			</box2>
			<increase2 _extends="controldefs/inc_button">
				<x>465</x>
				<y>266</y>              
				<tooltip>Hold button to rapidly increase</tooltip>
				<onlclick>shipyard_arms_inc(2)</onlclick>
			</increase2>

			<icon3 _class="UIBitmap">
				<x>15</x>
				<y>293</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon3>
			<name3 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>293</y>
				<text>Firepots</text>
			</name3>
			
			<sellprice3 _extends="/controldefs/quantity">
				<x>240</x>
				<y>293</y>
				<text>3000</text>
			</sellprice3>
			
			<purchaseprice3 _extends="/controldefs/quantity">
				<x>170</x>
				<y>293</y>
				<text>6000</text>
			</purchaseprice3>
			
			<owned3 _extends="/controldefs/quantity">
				<x>300</x>
				<y>293</y>
				<text>0</text>
			</owned3>
			<decrease3 _extends="controldefs/dec_button">
				<x>320</x>
				<y>293</y>   
				<tooltip>Hold button to rapidly decrease</tooltip>
				<onlclick>shipyard_arms_dec(3)</onlclick>
			</decrease3>
			<box3 _extends="/controldefs/entersmallnumber">
				<x>386</x>
				<y>293</y>  
				<tooltip>Type in quantity or roll mouse wheel</tooltip>
			</box3>
			<increase3 _extends="controldefs/inc_button">
				<x>465</x>
				<y>293</y>         
				<tooltip>Hold button to rapidly increase</tooltip>
				<onlclick>shipyard_arms_inc(3)</onlclick>
			</increase3>
		
			<icon4 _class="UIBitmap">
				<x>15</x>
				<y>320</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon4>
			<name4 _extends="/controldefs/smalltext">
				<x>40</x>
				<y>320</y>
				<text>Tiki Bomb</text>
			</name4>
			
			<sellprice4 _extends="/controldefs/quantity">
				<x>240</x>
				<y>320</y>
				<text>3000</text>
			</sellprice4>
			
			<purchaseprice4 _extends="/controldefs/quantity">
				<x>170</x>
				<y>320</y>
				<text>6000</text>
			</purchaseprice4>
			
			<owned4 _extends="/controldefs/quantity">
				<x>300</x>
				<y>320</y>
				<text>0</text>
			</owned4>
			<decrease4 _extends="controldefs/dec_button">
				<x>320</x>
				<y>320</y>   
				<tooltip>Hold button to rapidly decrease</tooltip>
				<onlclick>shipyard_arms_dec(4)</onlclick>
			</decrease4>
			<box4 _extends="/controldefs/entersmallnumber">
				<x>386</x>
				<y>320</y>  
				<tooltip>Type in quantity or roll mouse wheel</tooltip>
			</box4>
			<increase4 _extends="controldefs/inc_button">
				<x>465</x>
				<y>320</y>   
				<tooltip>Hold button to rapidly increase</tooltip>
				<onlclick>shipyard_arms_inc(4)</onlclick>
			</increase4>
		
		</elements>
	</shipyard_arms>

	<shipyard _class="UIPanel" x="273" y="40" width="400" height="420" modal="false">
       	<elements>
			<topframe _extends="/controldefs/npc_frame">
			</topframe>

			<bottomframe _extends="/controldefs/choice_frame">
			</bottomframe>

			<portrait _extends="/controldefs/npc_portrait">
				<bitmap bitmap="assets/graphics/characters/portrait-govdoor.jpg"/>
			</portrait>
						
			<shipyardname _extends="/controldefs/label">
				<x>240</x>
				<y>0</y>
				<text>The Shipwright</text>
			</shipyardname>
			<dialogue _extends="/controldefs/npctext">
				<text>Shipwright dialogue here</text>
				<x>155</x>
				<y>35</y>
				<wrapwidth>240</wrapwidth>
			</dialogue>
			<taskbutton _extends="/controldefs/choicetext">
				<text>Task</text>
				<x>195</x>
				<y>265</y>
				<width>340</width>
				<onlclick>shipyard_task</onlclick>
			</taskbutton>
			<repairbutton _extends="/controldefs/choicetext">
				<text>Repair Ship</text>
				<x>200</x>
				<y>292</y>
				<width>220</width>
				<onlclick>shipyard_repair</onlclick>
			</repairbutton>
			<buybutton _extends="/controldefs/choicetext">
				<text>Buy Ship</text>
				<x>200</x>
				<y>319</y>
				<width>220</width>
				<onlclick>shipyard_shop</onlclick>
			</buybutton>
			<armsbutton _extends="/controldefs/choicetext">
				<text>Guns and Ammunition</text>
				<x>200</x>
				<y>346</y>
				<width>220</width>
				<onlclick>shipyard_arms</onlclick>
			</armsbutton>
			<ok _extends="/controldefs/choicetext">
				<x>200</x>
				<y>380</y>
				<text>Leave</text>
				<onlclick>shipyard_leave</onlclick>
			</ok>
		</elements>
	</shipyard>

	<shipyard_buy _class="UIPanel" x="273" y="40" width="400" height="420" modal="false">
       	<elements>
			<topframe _extends="/controldefs/npc_frame_buyship">
			</topframe>

			<bottomframe _extends="/controldefs/choice_frame">
			</bottomframe>

			<shippic _class="UIBitmap">
				<x>40</x>
				<y>35</y>
				<halign>center</halign>
				<valign>top</valign>
				<bitmap bitmap="assets/graphics/map/ship-galleon-white.jpg"
						alphamap="assets/graphics/map/ship-galleon-white.png"/>
			</shippic>

			<shipname _extends="/controldefs/label">
				<x>200</x>
				<y>0</y>
				<text>Excelsior</text>
			</shipname>
			
			<typelabel _extends="/controldefs/smalltext">
				<x>165</x>
				<y>40</y>
				<text>Type:</text>
			</typelabel>

			<shiptype _extends="/controldefs/smalltext">
				<x>315</x>
				<y>40</y>
				<text>Sloop</text>
			</shiptype>

			<hulllabel _extends="/controldefs/smalltext">
				<x>165</x>
				<y>60</y>
				<text>Hull Strength:</text>
			</hulllabel>

			<shiphull _extends="/controldefs/smalltext">
				<x>315</x>
				<y>60</y>
				<text>35</text>
			</shiphull>

			<gunlabel _extends="/controldefs/smalltext">
				<x>165</x>
				<y>80</y>
				<text>Max Guns:</text>
			</gunlabel>

			<shipguns _extends="/controldefs/smalltext">
				<x>315</x>
				<y>80</y>
				<text>21</text>
			</shipguns>

			<speedlabel _extends="/controldefs/smalltext">
				<x>165</x>
				<y>100</y>
				<text>Attack Speed:</text>
			</speedlabel>

			<shipspeed _extends="/controldefs/smalltext">
				<x>315</x>
				<y>100</y>
				<text>100</text>
			</shipspeed>

			<cargolabel _extends="/controldefs/smalltext">
				<x>165</x>
				<y>120</y>
				<text>Cargo Space:</text>
			</cargolabel>

			<cargospace _extends="/controldefs/smalltext">
				<x>315</x>
				<y>120</y>
				<text>500</text>
			</cargospace>

                        <includeslabel _extends="/controldefs/smalltext">
				<x>165</x>
				<y>140</y>
				<text>Special Ability:</text>
			</includeslabel>

			<shipincludes _extends="/controldefs/smalltext">
				<x>315</x>
				<y>140</y>
				<text>Strong Bad</text>
			</shipincludes>


			<pricelabel _extends="/controldefs/smalltext">
				<x>165</x>
				<y>160</y>
				<text>Price:</text>
			</pricelabel>
			
			<shipprice _extends="/controldefs/smalltext">
				<x>310</x>
				<y>160</y>
				<text>Eight Cows</text>
			</shipprice>

			<buy _extends="/controldefs/choicetext">
				<x>200</x>
				<y>310</y>
				<text>Buy This Ship</text>
				<onlclick>showpanel(confirmship)</onlclick>
			</buy>

			<back _extends="/controldefs/choicetext">
				<x>200</x>
				<y>360</y>
				<text>Don't Buy</text>
				<onlclick>hidepanel(shipyard_buy);showpanel(shipyard)</onlclick>
			</back>
       	</elements>
    </shipyard_buy>

	<trader _class="UIPanel" x="273" y="40" width="400" height="420" modal="false">
		<elements>
			<topframe _extends="/controldefs/npc_large_frame">
			</topframe>
			<bottomframe _extends="/controldefs/choice_large_frame">
			</bottomframe>
			<tradername _extends="/controldefs/label">
				<x>250</x>
				<y>0</y>
				<text>Trader Joe</text>
			</tradername>
			<portrait _extends="/controldefs/trader_portrait">
				<bitmap bitmap="assets/graphics/characters/portrait-govdoor.jpg"/>
			</portrait>
			<dialogue _extends="/controldefs/npctext">
				<text>Welcome to Trader Joe's</text>
				<x>120</x>
				<y>36</y>
				<wrapwidth>300</wrapwidth>
			</dialogue>

			<taskbutton _extends="/controldefs/choicetext">
				<text>Task</text>
				<x>195</x>
				<y>273</y>
				<width>340</width>
				<onlclick>trader_task</onlclick>
			</taskbutton>
			<buybutton _extends="/controldefs/choicetext">
				<text>Buy Items</text>
				<x>200</x>
				<y>304</y>
				<width>100</width>
				<onlclick>trader_buy;hidepanel(trader);showpanel(trader_buy)</onlclick>
			</buybutton>
			<sellbutton _extends="/controldefs/choicetext">
				<text>Sell</text>
				<x>200</x>
				<y>335</y>
				<width>100</width>
				<onlclick>trader_sell;hidepanel(trader);showpanel(trader_sell)</onlclick>
			</sellbutton>
			<exitbutton _extends="/controldefs/choicetext">
				<text>Leave</text>
				<x>200</x>
				<y>380</y>
				<width>100</width>
				<onlclick>trader_leave</onlclick>
			</exitbutton>
		</elements>
	</trader>
	<trader_buy _class="UIPanel" x="273" y="40" width="400" height="420" modal="false">
		<elements>
			<topframe _extends="/controldefs/npc_large_frame">
			</topframe>
			<bottomframe _extends="/controldefs/choice_large_frame">
			</bottomframe>
			<tradername _extends="/controldefs/label">
				<x>250</x>
				<y>0</y>
				<text>Trader Joe</text>
			</tradername>
			<portrait _extends="/controldefs/trader_portrait">
				<bitmap bitmap="assets/graphics/characters/portrait-govdoor.jpg"/>
			</portrait>
			<dialogue _extends="/controldefs/npctext">
				<text>A Compy 386. Purchased from an honest man. Good as used and slightly shotgunned!</text>
				<x>110</x>
				<y>36</y>
				<wrapwidth>310</wrapwidth>
			</dialogue>

			<headername _extends="/controldefs/smalltext">
				<x>0</x>
				<y>262</y>
				<text>Item</text>
			</headername>

			<headername _extends="/controldefs/smalltext">
				<x>170</x>
				<y>262</y>
				<text>Price</text>
			</headername>

			<icon1 _class="UIBitmap">
				<x>-25</x>
				<y>287</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon1>
			<name1 _extends="/controldefs/smalltext">
				<x>-5</x>
				<y>287</y>
				<text>Strong Bad's Computer</text>
			</name1>

			<price1 _extends="/controldefs/smalltext">
				<x>170</x>
				<y>287</y>
				<text>10,000,000</text>
			</price1>

			
			<buybutton1 _extends="/controldefs/choicetext">
				<text>Buy</text>
				<x>380</x>
				<y>280</y>
				<width>25</width>
				<onlclick>trader_buyitem(0)</onlclick>
			</buybutton1>

			
			<infobutton1 _extends="/controldefs/choicetext">
				<text>Info</text>
				<x>285</x>
				<y>280</y>
				<width>25</width>
				<tooltip>Click to learn about this item</tooltip>
				<onlclick>trader_buyinfo(0)</onlclick>
			</infobutton1>


			<icon2 _class="UIBitmap">
				<x>-25</x>
				<y>317</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon2>
			<name2 _extends="/controldefs/smalltext">
				<x>-5</x>
				<y>317</y>
				<text>Homestar's Left Leg</text>
			</name2>

			<price2 _extends="/controldefs/smalltext">
				<x>170</x>
				<y>317</y>
				<text>10,000,000</text>
			</price2>

			
			<buybutton2 _extends="/controldefs/choicetext">
				<text>Buy</text>
				<x>380</x>
				<y>310</y>
				<width>25</width>
				<onlclick>trader_buyitem(1)</onlclick>
			</buybutton2>

			
			<infobutton2 _extends="/controldefs/choicetext">
				<text>Info</text>
				<x>285</x>
				<y>310</y>
				<width>25</width>
				<tooltip>Click to learn about this item</tooltip>
				<onlclick>trader_buyinfo(1)</onlclick>
			</infobutton2>


			<icon3 _class="UIBitmap">
				<x>-25</x>
				<y>347</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon3>
			<name3 _extends="/controldefs/smalltext">
				<x>-5</x>
				<y>347</y>
				<text>The Batmobile</text>
			</name3>

			<price3 _extends="/controldefs/smalltext">
				<x>170</x>
				<y>347</y>
				<text>10,000,000</text>
			</price3>

			
			<buybutton3 _extends="/controldefs/choicetext">
				<text>Buy</text>
				<x>380</x>
				<y>340</y>
				<width>25</width>
				<onlclick>trader_buyitem(2)</onlclick>
			</buybutton3>

			
			<infobutton3 _extends="/controldefs/choicetext">
				<text>Info</text>
				<x>285</x>
				<y>340</y>
				<width>25</width>
				<tooltip>Click to learn about this item</tooltip>
				<onlclick>trader_buyinfo(2)</onlclick>
			</infobutton3>


			<exitbutton _extends="/controldefs/choicetext">
				<text>Back</text>
				<x>200</x>
				<y>380</y>
				<width>100</width>
				<onlclick>hidepanel(trader_buy);showpanel(trader)</onlclick>
			</exitbutton>
		</elements>
	</trader_buy>	
	<trader_sell _class="UIPanel" x="273" y="40" width="400" height="420" modal="false">
		<elements>
			<topframe _extends="/controldefs/npc_large_frame">
			</topframe>
			<bottomframe _extends="/controldefs/choice_large_frame">
			</bottomframe>
			<tradername _extends="/controldefs/label">
				<x>250</x>
				<y>0</y>
				<text>Trader Joe</text>
			</tradername>
			<portrait _extends="/controldefs/trader_portrait">
				<bitmap bitmap="assets/graphics/characters/portrait-govdoor.jpg"/>
			</portrait>
			<dialogue _extends="/controldefs/npctext">
				<text>Welcome my friend. What would you like to sell?</text>
				<x>110</x>
				<y>36</y>
				<wrapwidth>310</wrapwidth>
			</dialogue>

			<headername _extends="/controldefs/smalltext">
				<x>0</x>
				<y>262</y>
				<text>Item</text>
			</headername>

			<headername _extends="/controldefs/smalltext">
				<x>150</x>
				<y>262</y>
				<text>Value</text>
			</headername>

			<icon1 _class="UIBitmap">
				<x>-25</x>
				<y>287</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon1>
			<name1 _extends="/controldefs/smalltext">
				<x>-5</x>
				<y>287</y>
				<text>Strong Bad's Computer</text>
			</name1>

			<price1 _extends="/controldefs/smalltext">
				<x>150</x>
				<y>287</y>
				<text>10,000,000</text>
			</price1>
			
			<sellbutton1 _extends="/controldefs/choicetext">
				<text>Sell</text>
				<x>345</x>
				<y>280</y>
				<width>25</width>
				<onlclick>trader_sellitem(0)</onlclick>
			</sellbutton1>

                        <infobutton1 _extends="/controldefs/choicetext">
				<text>Info</text>
				<x>260</x>
				<y>280</y>
				<width>25</width>
				<onlclick>trader_infoitem(0)</onlclick>
			</infobutton1>

			<icon2 _class="UIBitmap">
				<x>-25</x>
				<y>317</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon2>
			<name2 _extends="/controldefs/smalltext">
				<x>-5</x>
				<y>317</y>
				<text>Homestar's Left Leg</text>
			</name2>

			<price2 _extends="/controldefs/smalltext">
				<x>150</x>
				<y>317</y>
				<text>10,000,000</text>
			</price2>

			<sellbutton2 _extends="/controldefs/choicetext">
				<text>Sell</text>
				<x>345</x>
				<y>310</y>
				<width>25</width>
				<onlclick>trader_sellitem(1)</onlclick>
			</sellbutton2>

                        <infobutton2 _extends="/controldefs/choicetext">
				<text>Info</text>
				<x>260</x>
				<y>310</y>
				<width>25</width>
				<onlclick>trader_infoitem(1)</onlclick>
			</infobutton2>


			<icon3 _class="UIBitmap">
				<x>-25</x>
				<y>347</y>
				<bitmap>
					<bitmap>assets/graphics/items/icon-arms-20.jpg</bitmap>
					<alphamap>assets/graphics/items/icon-arms-20-alpha.png</alphamap>
				</bitmap>
			</icon3>
			<name3 _extends="/controldefs/smalltext">
				<x>-5</x>
				<y>347</y>
				<text>The Batmobile</text>
			</name3>

			<price3 _extends="/controldefs/smalltext">
				<x>150</x>
				<y>347</y>
				<text>10,000,000</text>
			</price3>

			<sellbutton3 _extends="/controldefs/choicetext">
				<text>Sell</text>
				<x>345</x>
				<y>340</y>
				<width>25</width>
				<onlclick>trader_sellitem(2)</onlclick>
			</sellbutton3>

                        <infobutton3 _extends="/controldefs/choicetext">
				<text>Info</text>
				<x>260</x>
				<y>340</y>
				<width>25</width>
				<onlclick>trader_infoitem(2)</onlclick>
			</infobutton3>

			<exitbutton _extends="/controldefs/choicetext">
				<text>Back</text>
				<x>200</x>
				<y>380</y>
				<width>100</width>
				<onlclick>hidepanel(trader_sell);showpanel(trader)</onlclick>
			</exitbutton>

			<uparrowbutton _class="UIBitmapButton">
				<x>390</x>
				<y>275</y>
				<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>
				<selectsound>select</selectsound>
				<hotsound>highlight</hotsound>
				<onlclick>trader_sell_up</onlclick>
			</uparrowbutton>

			<downarrowbutton _class="UIBitmapButton">
				<x>390</x>
				<y>330</y>
				<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>
				<selectsound>select</selectsound>
				<hotsound>highlight</hotsound>
				<onlclick>trader_sell_down</onlclick>
			</downarrowbutton>

		</elements>
	</trader_sell>
	<warehouse _class="UIPanel" x="160" y="0" width="640" height="460" modal="false">
       	<elements>
			<frame _extends="/controldefs/popupframe">
				<x>6</x>
				<y>16</y>
				<halign>left</halign>
				<width>627</width>
				<height>443</height>
			</frame>

			<warehousename _extends="/controldefs/label">
				<x>320</x>
				<y>20</y>
				<text>Warehouse</text>
			</warehousename>
			<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>
			<headerunit _extends="/controldefs/quantity">
				<x>270</x>
				<y>55</y>
				<text>Unit Cost</text>
			</headerunit>
			<headerprice _extends="/controldefs/quantity">
				<x>345</x>
				<y>55</y>
				<text>Market</text>
			</headerprice>
			<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>warehouse_describe(0)</onhot>
			</icon0>
			<name0 _class="UITextButton">
				<font>ramsey_small</font>
				<x>40</x>
				<y>75</y>
				<text>Arms</text>
				<onhot>warehouse_describe(0)</onhot>
			</name0>
			<owned0 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>75</y>
				<text>0</text>
				<onhot>warehouse_describe(0)</onhot>
			</owned0>
			<unitprice0 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>75</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>warehouse_describe(0)</onhot>
			</unitprice0>
			<marketprice0 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>75</y>
				<text>50</text>
				<tooltip>Current local market value</tooltip>
				<onhot>warehouse_describe(0)</onhot>
			</marketprice0>
			<decrease0 _extends="controldefs/dec_button">
				<x>375</x>
				<y>75</y>   
				<tooltip>Hold button to rapidly decrease</tooltip>
				<onlclick>warehouse_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 button to rapidly increase</tooltip>
				<onlclick>warehouse_increase(0)</onlclick>
			</increase0>
			<max0 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>75</y>    
				<tooltip>Maximum your ship can hold</tooltip>
				<onlclick>warehouse_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>warehouse_describe(1)</onhot>
			</icon1>
			<name1 _class="UITextButton">
				<font>ramsey_small</font>
				<x>40</x>
				<y>100</y>
				<text>Arms</text>
				<onhot>warehouse_describe(1)</onhot>
			</name1>
			<owned1 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>100</y>
				<text>0</text>
				<onhot>warehouse_describe(0)</onhot>
			</owned1>
			<unitprice1 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>100</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>warehouse_describe(1)</onhot>
			</unitprice1>
			<marketprice1 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>100</y>
				<text>50</text>
				<tooltip>Current local market value</tooltip>
				<onhot>warehouse_describe(1)</onhot>
			</marketprice1>
			<decrease1 _extends="controldefs/dec_button">
				<x>375</x>
				<y>100</y>   
				<tooltip>Hold button to rapidly decrease</tooltip>
				<onlclick>warehouse_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 button to rapidly increase</tooltip>
				<onlclick>warehouse_increase(1)</onlclick>
			</increase1>
			<max1 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>100</y>    
				<tooltip>Maximum your ship can hold</tooltip>
				<onlclick>warehouse_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>warehouse_describe(2)</onhot>
			</icon2>
			<name2 _class="UITextButton">
				<font>ramsey_small</font>
				<x>40</x>
				<y>125</y>
				<text>Arms</text>
				<onhot>warehouse_describe(2)</onhot>
			</name2>
			<owned2 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>125</y>
				<text>0</text>
				<onhot>warehouse_describe(2)</onhot>
			</owned2>
			<unitprice2 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>125</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>warehouse_describe(2)</onhot>
			</unitprice2>
			<marketprice2 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>125</y>
				<text>50</text>
				<tooltip>Current local market value</tooltip>
				<onhot>warehouse_describe(2)</onhot>
			</marketprice2>
			<decrease2 _extends="controldefs/dec_button">
				<x>375</x>
				<y>125</y>   
				<tooltip>Hold button to rapidly decrease</tooltip>
				<onlclick>warehouse_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 button to rapidly increase</tooltip>
				<onlclick>warehouse_increase(2)</onlclick>
			</increase2>
			<max2 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>125</y>    
				<tooltip>Maximum your ship can hold</tooltip>
				<onlclick>warehouse_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>warehouse_describe(3)</onhot>
			</icon3>
			<name3 _class="UITextButton">
				<font>ramsey_small</font>
				<x>40</x>
				<y>150</y>
				<text>Arms</text>
				<onhot>warehouse_describe(3)</onhot>
			</name3>
			<owned3 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>150</y>
				<text>0</text>
				<onhot>warehouse_describe(3)</onhot>
			</owned3>
			<unitprice3 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>150</y>
				<text>125</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>warehouse_describe(3)</onhot>
			</unitprice3>
			<marketprice3 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>150</y>
				<text>50</text>
				<tooltip>Current local market value</tooltip>
				<onhot>warehouse_describe(3)</onhot>
			</marketprice3>
			<decrease3 _extends="controldefs/dec_button">
				<x>375</x>
				<y>150</y>   
				<tooltip>Hold button to rapidly decrease</tooltip>
				<onlclick>warehouse_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 button to rapidly increase</tooltip>
				<onlclick>warehouse_increase(3)</onlclick>
			</increase3>
			<max3 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>150</y>    
				<tooltip>Maximum your ship can hold</tooltip>
				<onlclick>warehouse_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>warehouse_describe(4)</onhot>
			</icon4>
			<name4 _class="UITextButton">
				<font>ramsey_small</font>
				<x>40</x>
				<y>175</y>
				<text>Arms</text>
				<onhot>warehouse_describe(4)</onhot>
			</name4>
			<owned4 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>175</y>
				<text>0</text>
				<onhot>warehouse_describe(4)</onhot>
			</owned4>
			<unitprice4 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>175</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>warehouse_describe(4)</onhot>
			</unitprice4>
			<marketprice4 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>175</y>
				<text>50</text>
				<tooltip>Current local market value</tooltip>
				<onhot>warehouse_describe(4)</onhot>
			</marketprice4>
			<decrease4 _extends="controldefs/dec_button">
				<x>375</x>
				<y>175</y>  
				<tooltip>Hold button to rapidly decrease</tooltip>
				<onlclick>warehouse_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 button to rapidly increase</tooltip>
				<onlclick>warehouse_increase(4)</onlclick>
			</increase4>
			<max4 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>175</y>    
				<tooltip>Maximum your ship can hold</tooltip>
				<onlclick>warehouse_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>warehouse_describe(5)</onhot>
			</icon5>
			<name5 _class="UITextButton">
				<font>ramsey_small</font>
				<x>40</x>
				<y>200</y>
				<text>Arms</text>
				<onhot>warehouse_describe(5)</onhot>
			</name5>
			<owned5 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>200</y>
				<text>0</text>
				<onhot>warehouse_describe(5)</onhot>
			</owned5>
			<unitprice5 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>200</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>warehouse_describe(5)</onhot>
			</unitprice5>
			<marketprice5 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>200</y>
				<text>50</text>
				<tooltip>Current local market value</tooltip>
				<onhot>warehouse_describe(5)</onhot>
			</marketprice5>
			<decrease5 _extends="controldefs/dec_button">
				<x>375</x>
				<y>200</y>   
				<tooltip>Hold button to rapidly decrease</tooltip>
				<onlclick>warehouse_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 button to rapidly increase</tooltip>
				<onlclick>warehouse_increase(5)</onlclick>
			</increase5>
			<max5 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>200</y>   
				<tooltip>Maximum your ship can hold</tooltip>
				<onlclick>warehouse_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>warehouse_describe(6)</onhot>
			</icon6>
			<name6 _class="UITextButton">
				<font>ramsey_small</font>
				<x>40</x>
				<y>225</y>
				<text>Arms</text>
				<onhot>warehouse_describe(6)</onhot>
			</name6>
			<owned6 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>225</y>
				<text>0</text>
				<onhot>warehouse_describe(6)</onhot>
			</owned6>
			<unitprice6 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>225</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>warehouse_describe(6)</onhot>
			</unitprice6>
			<marketprice6 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>225</y>
				<text>50</text>
				<tooltip>Current local market value</tooltip>
				<onhot>warehouse_describe(6)</onhot>
			</marketprice6>
			<decrease6 _extends="controldefs/dec_button">
				<x>375</x>
				<y>225</y>   
				<tooltip>Hold button to rapidly decrease</tooltip>
				<onlclick>warehouse_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 button to rapidly increase</tooltip>
				<onlclick>warehouse_increase(6)</onlclick>
			</increase6>
			<max6 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>225</y>   
				<tooltip>Maximum your ship can hold</tooltip>
				<onlclick>warehouse_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>warehouse_describe(7)</onhot>
			</icon7>
			<name7 _class="UITextButton">
				<font>ramsey_small</font>
				<x>40</x>
				<y>250</y>
				<text>Arms</text>
				<onhot>warehouse_describe(7)</onhot>
			</name7>
			<owned7 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>250</y>
				<text>0</text>
				<onhot>warehouse_describe(7)</onhot>
			</owned7>
			<unitprice7 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>250</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>warehouse_describe(7)</onhot>
			</unitprice7>
			<marketprice7 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>250</y>
				<text>50</text>
				<tooltip>Current local market value</tooltip>
				<onhot>warehouse_describe(7)</onhot>
			</marketprice7>
			<decrease7 _extends="controldefs/dec_button">
				<x>375</x>
				<y>250</y>   
				<tooltip>Hold button to rapidly decrease</tooltip>
				<onlclick>warehouse_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 button to rapidly increase</tooltip>
				<onlclick>warehouse_increase(7)</onlclick>
			</increase7>
			<max7 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>250</y>   
				<tooltip>Maximum your ship can hold</tooltip>
				<onlclick>warehouse_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>warehouse_describe(8)</onhot>
			</icon8>
			<name8 _class="UITextButton">
				<font>ramsey_small</font>
				<x>40</x>
				<y>275</y>
				<text>Arms</text>
				<onhot>warehouse_describe(8)</onhot>
			</name8>
			<owned8 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>275</y>
				<text>0</text>
				<onhot>warehouse_describe(8)</onhot>
			</owned8>
			<unitprice8 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>275</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>warehouse_describe(8)</onhot>
			</unitprice8>
			<marketprice8 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>275</y>
				<text>50</text>
				<tooltip>Current local market value</tooltip>
				<onhot>warehouse_describe(8)</onhot>
			</marketprice8>
			<decrease8 _extends="controldefs/dec_button">
				<x>375</x>
				<y>275</y>   
				<tooltip>Hold button to rapidly decrease</tooltip>
				<onlclick>warehouse_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 button to rapidly increase</tooltip>
				<onlclick>warehouse_increase(8)</onlclick>
			</increase8>
			<max8 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>275</y>   
				<tooltip>Maximum your ship can hold</tooltip>
				<onlclick>warehouse_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>warehouse_describe(9)</onhot>
			</icon9>
			<name9 _class="UITextButton">
				<font>ramsey_small</font>
				<x>40</x>
				<y>300</y>
				<text>Arms</text>
				<onhot>warehouse_describe(9)</onhot>
			</name9>
			<owned9 _extends="/controldefs/cargotext">
				<x>200</x>
				<y>300</y>
				<text>0</text>
				<onhot>warehouse_describe(9)</onhot>
			</owned9> 
			<unitprice9 _extends="/controldefs/cargotext">
				<x>270</x>
				<y>300</y>
				<text>0</text>
				<tooltip>Average price you've paid</tooltip>
				<onhot>warehouse_describe(9)</onhot>
			</unitprice9>
			<marketprice9 _extends="/controldefs/cargotext">
				<x>345</x>
				<y>300</y>
				<text>50</text>
				<tooltip>Current local market value</tooltip>
				<onhot>warehouse_describe(9)</onhot>
			</marketprice9>
			<decrease9 _extends="controldefs/dec_button">
				<x>375</x>
				<y>300</y>   
				<tooltip>Hold button to rapidly decrease</tooltip>
				<onlclick>warehouse_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 button to rapidly increase</tooltip>
				<onlclick>warehouse_increase(9)</onlclick>
			</increase9>
			<max9 _extends="/controldefs/maxbutton">
				<x>560</x>
				<y>300</y>
				<tooltip>Maximum your ship can hold</tooltip>
				<onlclick>warehouse_max(9)</onlclick>
			</max9>
			<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>
			<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>
			<rentbutton _extends="/controldefs/choicetext">
				<text>See Contract</text>
				<x>520</x>
				<y>330</y>
				<width>120</width>
				<onlclick>warehouse_to_warehousepurchase</onlclick>
			</rentbutton>
			<movebutton _extends="/controldefs/choicetext">
				<text>Transfer</text>
				<x>520</x>
				<y>358</y>
				<width>120</width>
				<onlclick>warehouse_begintransfer</onlclick>
			</movebutton>
			<viewshipbutton _extends="/controldefs/choicetext">
				<text>View Ship's Cargo</text>
				<x>520</x>
				<y>386</y>
				<width>120</width>
				<onlclick>warehouse_to_cargoscreen</onlclick>
			</viewshipbutton>
			<ok _extends="/controldefs/choicetext">
				<x>520</x>
				<y>414</y>
				<text>Leave</text>
				<width>120</width>
				<onlclick>warehouse_leave</onlclick>
			</ok>
			<confirmtransfer _extends="/controldefs/choicetext">
				<text>Move to Ship</text>
				<x>520</x>
				<y>330</y>
				<width>120</width>
				<onlclick>warehouse_confirmtransfer</onlclick>
			</confirmtransfer>
			<backbutton _extends="/controldefs/choicetext">
				<text>Back</text>
				<x>520</x>
				<y>414</y>
				<width>120</width>
				<onlclick>warehouse_endtransfer</onlclick>
			</backbutton>
		</elements>
	</warehouse>
	<warehousepurchase _class="UIPanel" x="218" y="40" width="400" height="420" modal="false">
		<elements>
			<topframe _extends="/controldefs/rent1_frame">
			</topframe>

			<bottomframe _extends="/controldefs/rent2_frame">
			</bottomframe>

			<warehousetitle _extends="/controldefs/label">
				<x>250</x>
				<y>-3</y>
				<text>The Amazing Warehouse Name!</text>
			</warehousetitle>

			<spaceheader _extends="/controldefs/basictext">
				<x>100</x>
				<y>44</y>
				<text>Your space:</text>
			</spaceheader>
			
			<yourspace _extends="/controldefs/basictext">
				<x>290</x>
				<y>44</y>
				<text>250 Cargo</text>
			</yourspace>

			<nextspaceheader _extends="/controldefs/basictext">
				<x>100</x>
				<y>104</y>
				<text>Can Upgrade to:</text>
			</nextspaceheader>

			<nextspace _extends="/controldefs/basictext">
				<x>290</x>
				<y>104</y>
				<text>1,000 Cargo</text>
			</nextspace>
						
			<costheader _extends="/controldefs/basictext">
				<x>100</x>
				<y>144</y>
				<text>Upgrade Price:</text>
			</costheader>

			<nextcost _extends="/controldefs/basictext">
				<x>290</x>
				<y>144</y>
				<text>6,150,000 Gold</text>
			</nextcost>

			<warehouseicon _class="UIBitmapButton">
				<x>100</x>
				<y>345</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>
			<upgradebutton _extends="/controldefs/choicetext">
				<x>250</x>
				<y>260</y>
				<text>Upgrade your Warehouse</text>
				<width>200</width>
				<onlclick>warehouse_buy</onlclick>
			</upgradebutton>
			<gotoware _extends="/controldefs/choicetext">
				<x>250</x>
				<y>290</y>
				<text>Visit Warehouse</text>
				<width>200</width>
				<onlclick>warehousepurhcase_to_warehouse</onlclick>
			</gotoware>
			<back _extends="/controldefs/choicetext">
				<x>250</x>
				<y>345</y>
				<text>Leave</text>
				<onlclick>warehousepurchase_leave</onlclick>
			</back>
		</elements>
	</warehousepurchase>
	<warehousenoaccess _class="UIPanel" x="273" y="40" width="400" height="420" modal="false">
       	<elements>
			<topframe _extends="/controldefs/npc_frame">
			</topframe>

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

			<warehouse _extends="/controldefs/label">
				<x>240</x>
				<y>0</y>
				<text>Warehouse</text>
			</warehouse>
			<noaccess _extends="/controldefs/npctext">
				<text>This warehouse is not available for purchase.</text>
				<x>155</x>
				<y>35</y>
				<wrapwidth>240</wrapwidth>
			</noaccess>
			<ok _extends="/controldefs/choicetext">
				<x>200</x>
				<y>175</y>
				<text>Leave</text>
				<onlclick>warehouse_noaccess_leave</onlclick>
			</ok>
		</elements>
  </warehousenoaccess>
  <confirmship _class="UIPanel" x="0" y="0" width="800" height="600" modal="true">
		<elements>
			<frame _extends="/controldefs/popupframe">
				<x>474</x>
				<y>295</y>
				<halign>center</halign>
				<width>400</width>
				<height>170</height>
			</frame>
			<message _extends="/controldefs/centertext">
				<x>475</x>
				<y>320</y>
				<text>Are you sure you want to trade in your current ship and its Special Ability and buy this new one?</text>
				<wrapwidth>300</wrapwidth>
			</message>
			<yes _extends="/controldefs/choicetext">
				<text>Yarrgh!</text>
				<x>400</x>
				<y>400</y>
				<width>60</width>  
				<tooltip>yes</tooltip>
				<onlclick>hidepanel(confirmship);shipyard_purchase</onlclick>
			</yes>
			<no _extends="/controldefs/choicetext">
				<text>Narrgh!</text>
				<x>550</x>
				<y>400</y>
				<width>60</width>  
				<tooltip>no</tooltip>
				<onlclick>hidepanel(confirmship)</onlclick>
			</no>
		</elements>
</confirmship>
</panels_bldg>
