<config>
<static>
	
	<UI.CPanels>
		<panels_bldg>
			
			<alehouse _class="UI.CPanel" 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">
						<link>portrait-govdoor</link>
					</portrait>
		
					<dialogue _extends="/controldefs/npctext">
						<text>So good to see you again!</text>
						<x>155</x>
						<y>35</y>
						<wrapwidth>240</wrapwidth>
					</dialogue>
		
					<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>240</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>240</width>
						<onlclick>alehouse_buyround</onlclick>
					</buyroundbutton>
					<traderbutton _extends="/controldefs/choicetext">
						<text>Talk to Trader Joe</text>
						<x>200</x>
						<y>350</y>
						<width>240</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="UI.CPanel" 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">
						<link>portrait-govdoor</link>
					</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>
		
				</elements>
			</bank>

			<task_accept _class="UI.CPanel" x="273" y="40" width="400" height="420" modal="false">
				<elements>

					<frame _extends="/controldefs/popupframe">
						<x>-35</x>
						<y>-20</y>
						<width>450</width>
						<height>385</height>
						<halign>left</halign>
						<valign>top</valign>
					</frame>
					
					<portrait _extends="/controldefs/npc_portrait">
						<link>portrait-govdoor</link>
					</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>

					<download_dialogue _extends="/controldefs/npctext">
						<text>Governor dialogue here</text>
						<x>155</x>
						<y>205</y>
						<wrapwidth>240</wrapwidth>
					</download_dialogue>

					<get _extends="/controldefs/choicetext">
						<text>Heavens no! Where?</text>
						<x>195</x>
						<y>275</y>
						<width>280</width>
						<onlclick>task_get_click</onlclick>
					</get>					

					<download _extends="/controldefs/choicetext">
						<text>Download</text>
						<x>195</x>
						<y>275</y>
						<width>280</width>
						<onlclick>download_full_game</onlclick>
					</download>					
					
					<back _extends="/controldefs/choicetext">
						<text>Back</text>
						<x>195</x>
						<y>305</y>
						<width>280</width>
						<onlclick>showpanel(governor);hidepanel(task_accept)</onlclick>
					</back>					

				</elements>
			</task_accept>
			
			<governor _class="UI.CPanel" 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">
						<link>portrait-govdoor</link>
					</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="UI.CText">
						<font>ramsey_emp</font>
						<text>Rescue Sir Stephen the Silent</text>
						<x>140</x>
						<y>145</y>
					</taskdescription>
					<reward _extends="/controldefs/smalltext">
						<text>Reward:</text>
						<x>140</x>
						<y>170</y>
					</reward>
					<rewarddescription _class="UI.CText">
						<font>ramsey_emp</font>
						<text>500 Gold</text>
						<x>140</x>
						<y>185</y>
					</rewarddescription>
					<takejob _extends="/controldefs/choicetext">
						<text>Accept This Task</text>
						<x>195</x>
						<y>305</y>
						<width>280</width>
						<onlclick>hidepanel(governor);showpanel(task_accept)</onlclick>
					</takejob>					
					<ok _extends="/controldefs/choicetext">
						<x>200</x>
						<y>375</y>
						<text>Leave</text>
						<onlclick>governor_leave</onlclick>
					</ok>
				</elements>
			</governor>
		
			<marketplace _class="UI.CPanel" 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="UI.CBitmap">
						<x>10</x>
						<y>30</y>
						<link>marketplace-grid-bg</link>
					</gridline_m>
					<icon0 _class="UI.CBitmap">
						<x>15</x>
						<y>40</y>
						<link>icon-arms-20</link>
					</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="UI.CBitmap">
						<x>15</x>
						<y>65</y>
						<link>icon-arms-20</link>
					</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="UI.CBitmap">
						<x>15</x>
						<y>90</y>
						<link>icon-arms-20</link>
					</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="UI.CBitmap">
						<x>15</x>
						<y>115</y>
						<link>icon-arms-20</link>
					</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="UI.CBitmap">
						<x>15</x>
						<y>140</y>
						<link>icon-arms-20</link>
					</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="UI.CBitmap">
						<x>15</x>
						<y>165</y>
						<link>icon-arms-20</link>
					</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="UI.CBitmap">
						<x>15</x>
						<y>190</y>
						<link>icon-arms-20</link>
					</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="UI.CBitmap">
						<x>15</x>
						<y>215</y>
						<link>icon-arms-20</link>
					</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="UI.CBitmap">
						<x>15</x>
						<y>240</y>
						<link>icon-arms-20</link>
					</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>

					<nocargo _extends="/controldefs/smalltext">
						<x>40</x>
						<y>95</y>
						<text>&lt;You not have cargo&gt;</text>
					</nocargo>
					<shiptab _class="UI.CBitmapButton">
						<x>12</x>
						<y>318</y>
						<halign>left</halign>
						<valign>top</valign>
						<onlclick>market_ship</onlclick>
						<link>cargodest</link>
					</shiptab>
					<ship _class="UI.CBitmapButton">
						<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>
						<link>ship-galleon-white_normal</link>
					</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>
					<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>
					<sellbutton _extends="/controldefs/choicetext">
						<text>Sell</text>
						<x>400</x>
						<y>320</y>
						<width>60</width>
						<onlclick>sell</onlclick>
					</sellbutton>
					<sellbutton_ship _extends="/controldefs/choicetext">
						<text>Sell from Ship</text>
						<x>390</x>
						<y>320</y>
						<width>234</width>
						<tooltip>Sell items from your Ship's cargo</tooltip>
						<onlclick>sell_fromship</onlclick>
					</sellbutton_ship>
					<sellallbutton _extends="/controldefs/choicetext">
						<text>Sell All</text>
						<x>440</x>
						<y>350</y>
						<width>160</width>
						<onlclick>sellall</onlclick>
					</sellallbutton>
					<sellallbutton_ship _extends="/controldefs/choicetext">
						<text>Sell All Ship's Cargo</text>
						<x>390</x>
						<y>350</y>
						<width>234</width>
						<onlclick>sellall_fromship</onlclick>
					</sellallbutton_ship>
					<marketback _extends="/controldefs/choicetext">
						<text>Back</text>
						<x>450</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="UI.CPanel" 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">
						<link>portrait-govdoor</link>
					</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>
				</elements>
			</moneylender>
		
			<shipyard_repair _class="UI.CPanel" 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="UI.CBitmap">
						<x>70</x>
						<y>35</y>
						<halign>center</halign>
						<valign>top</valign>
						<link>ship-galleon-white_normal</link>
					</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="UI.CText">
						<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="UI.CPanel" 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="UI.CBitmap">
						<x>40</x>
						<y>360</y>
						<halign>center</halign>
						<valign>top</valign>
						<link>ship-galleon-white_normal</link>
					</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="UI.CBitmap">
						<x>15</x>
						<y>40</y>
						<link>icon-arms-20</link>
					</icontop1>
		
					<icontop2 _class="UI.CBitmap">
						<x>15</x>
						<y>70</y>
						<link>icon-arms-20</link>
					</icontop2>
					
					<icontop3 _class="UI.CBitmap">
						<x>15</x>
						<y>100</y>
						<link>icon-arms-20</link>
					</icontop3>
		
					<icontop4 _class="UI.CBitmap">
						<x>15</x>
						<y>130</y>
						<link>icon-arms-20</link>
					</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="UI.CBitmap">
						<x>15</x>
						<y>239</y>
						<link>icon-arms-20</link>
					</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="UI.CBitmap">
						<x>15</x>
						<y>266</y>
						<link>icon-arms-20</link>
					</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="UI.CBitmap">
						<x>15</x>
						<y>293</y>
						<link>icon-arms-20</link>
					</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="UI.CBitmap">
						<x>15</x>
						<y>320</y>
						<link>icon-arms-20</link>
					</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="UI.CPanel" 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">
						<link>portrait-govdoor</link>
					</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>
					<repairbutton _extends="/controldefs/choicetext">
						<text>Repair Ship</text>
						<x>200</x>
						<y>292</y>
						<width>250</width>
						<onlclick>shipyard_repair</onlclick>
					</repairbutton>
					<buybutton _extends="/controldefs/choicetext">
						<text>Buy Ship</text>
						<x>200</x>
						<y>319</y>
						<width>250</width>
						<onlclick>shipyard_shop</onlclick>
					</buybutton>
					<armsbutton _extends="/controldefs/choicetext">
						<text>Guns and Ammunition</text>
						<x>200</x>
						<y>346</y>
						<width>250</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="UI.CPanel" 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="UI.CBitmap">
						<x>40</x>
						<y>35</y>
						<halign>center</halign>
						<valign>top</valign>
						<link>ship-galleon-white_normal</link>
					</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>315</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="UI.CPanel" 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">
						<link>portrait-govdoor</link>
					</portrait>
					<dialogue _extends="/controldefs/npctext">
						<text>Welcome to Trader Joe's</text>
						<x>120</x>
						<y>36</y>
						<wrapwidth>300</wrapwidth>
					</dialogue>
		
					<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="UI.CPanel" 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">
						<link>portrait-govdoor</link>
					</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="UI.CBitmap">
						<x>-25</x>
						<y>287</y>
						<link>icon-arms-20</link>
					</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="UI.CBitmap">
						<x>-25</x>
						<y>317</y>
						<link>icon-arms-20</link>
					</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="UI.CBitmap">
						<x>-25</x>
						<y>347</y>
						<link>icon-arms-20</link>
					</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="UI.CPanel" 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">
						<link>portrait-govdoor</link>
					</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>
		
					<headername1 _extends="/controldefs/smalltext">
						<x>150</x>
						<y>262</y>
						<text>Value</text>
					</headername1>
		
					<icon1 _class="UI.CBitmap">
						<x>-25</x>
						<y>287</y>
						<link>icon-arms-20</link>
					</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="UI.CBitmap">
						<x>-25</x>
						<y>317</y>
						<link>icon-arms-20</link>
					</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="UI.CBitmap">
						<x>-25</x>
						<y>347</y>
						<link>icon-arms-20</link>
					</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="UI.CBitmapButton">
						<x>390</x>
						<y>275</y>
						<link>logscreen-scroll-up</link>
						<selectsound>select</selectsound>
						<hotsound>highlight</hotsound>
						<onlclick>trader_sell_up</onlclick>
					</uparrowbutton>
		
					<downarrowbutton _class="UI.CBitmapButton">
						<x>390</x>
						<y>330</y>
						<link>logscreen-scroll-down</link>
						<selectsound>select</selectsound>
						<hotsound>highlight</hotsound>
						<onlclick>trader_sell_down</onlclick>
					</downarrowbutton>
		
				</elements>
			</trader_sell>

		  <confirmship _class="UI.CPanel" 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>
	</UI.CPanels>
</static>
</config>