<!-- fdes2100d.lay -->

<mamelayout version="2">

<!-- define elements -->

	<element name="fdes2100d">
		<image file="Board.png" />
	</element>

	<element name="piece" defstate="0">
		<image file="WP.png" state="1"/>
		<image file="WKN.png" state="2"/>
		<image file="WB.png" state="3"/>
		<image file="WR.png" state="4"/>
		<image file="WQ.png" state="5"/>
		<image file="WK.png" state="6"/>
		<image file="BP.png" state="7"/>
		<image file="BKN.png" state="8"/>
		<image file="BB.png" state="9"/>
		<image file="BR.png" state="10"/>
		<image file="BQ.png" state="11"/>
		<image file="BK.png" state="12"/>
		<image file="WP_SEL.png" state="13"/>
		<image file="WKN_SEL.png" state="14"/>
		<image file="WB_SEL.png" state="15"/>
		<image file="WR_SEL.png" state="16"/>
		<image file="WQ_SEL.png" state="17"/>
		<image file="WK_SEL.png" state="18"/>
		<image file="BP_SEL.png" state="19"/>
		<image file="BKN_SEL.png" state="20"/>
		<image file="BB_SEL.png" state="21"/>
		<image file="BR_SEL.png" state="22"/>
		<image file="BQ_SEL.png" state="23"/>
		<image file="BK_SEL.png" state="24"/>
	</element>

<!-- our digit element is bright-on-dark, this means the lcd panel is the wrong colour here -->

	<element name="digit" defstate="0">
		<led7seg><color red="1.0" green="1.0" blue="1.0" /></led7seg>
	</element>
	<element name="ldot" defstate="0">
		<rect state="1"><color red="1.0" green="1.0" blue="1.0" /></rect>
		<rect state="0"><color red="0.1" green="0.1" blue="0.1" /></rect>
	</element>

	<element name="led" defstate="0">
		<image file="RED_SEL.png" state="1"/>
		<image file="RED.png" state="0"/>
	</element>

	<element name="screen" defstate="0">
		<image file="screen.png" state="0"/>
	</element>

	<element name="button" defstate="1">
		<image file="BT_SEL.png" state="1"/>
		<image file="BT.png" state="0"/>
	</element>

	<element name="bbut" defstate="0">
		<image file="BBT_SEL.png" state="1"/>
		<image file="BBT.png" state="0"/>
	</element>

	<element name="hl" defstate="0">
<!--
		<text string=" ">
			<bounds x="0.0" y="0.0" width="1.0" height="1.0" />
			<color red="0.0" green="0.0" blue="0.0" />
		</text>
		<disk state="1">
			<bounds x="0.12" y="0.12" width="0.76" height="0.76" />
			<color red="1.0" green="1.0" blue="1.0" />
		</disk>
-->
	</element>


<!-- sb ui -->

	<element name="blackb"><rect><color red="0" green="0" blue="0" /></rect></element>
	<element name="cblack"><rect><color red="0.41" green="0.4" blue="0.39" /></rect></element>
	<element name="cwhite"><rect><color red="0.81" green="0.8" blue="0.79" /></rect></element>

	<element name="hlub" defstate="0">
		<rect state="1"><color red="0" green="0" blue="0" /></rect>
	</element>

	<element name="text_uit1"><text string="S.BOARD"><color red="0.81" green="0.8" blue="0.79" /></text></element>
	<element name="text_uit2"><text string="INTERFACE"><color red="0.81" green="0.8" blue="0.79" /></text></element>
	<element name="text_uib1"><text string="BOARD:"><color red="0.81" green="0.8" blue="0.79" /></text></element>
	<element name="text_uib2">
		<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
		<text string="RESET"><color red="0.01" green="0.01" blue="0.01" /></text>
	</element>
	<element name="text_uib3">
		<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
		<text string="CLEAR"><color red="0.01" green="0.01" blue="0.01" /></text>
	</element>
	<element name="text_uis1"><text string="SPAWN:"><color red="0.81" green="0.8" blue="0.79" /></text></element>
	<element name="text_uih1"><text string="HAND:"><color red="0.81" green="0.8" blue="0.79" /></text></element>
	<element name="text_uih2">
		<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
		<text string="REMOVE"><color red="0.01" green="0.01" blue="0.01" /></text>
	</element>
	<element name="text_uiu1"><text string="UNDO:"><color red="0.81" green="0.8" blue="0.79" /></text></element>
	<element name="text_uiu2a">
		<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
		<text string=" &lt;&lt;"><color red="0.01" green="0.01" blue="0.01" /></text>
	</element>
	<element name="text_uiu2b">
		<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
		<text string=" &lt;  "><color red="0.01" green="0.01" blue="0.01" /></text>
	</element>
	<element name="text_uiu2c">
		<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
		<text string="   &gt;"><color red="0.01" green="0.01" blue="0.01" /></text>
	</element>
	<element name="text_uiu2d">
		<rect><color red="0.81" green="0.8" blue="0.79" /></rect>
		<text string=" &gt;&gt;"><color red="0.01" green="0.01" blue="0.01" /></text>
	</element>
	<element name="text_uiu3a" defstate="0">
		<simplecounter maxstate="999" digits="1" align="2">
			<color red="0.81" green="0.8" blue="0.79" />
		</simplecounter>
	</element>
	<element name="text_uiu3b"><text string="/"><color red="0.81" green="0.8" blue="0.79" /></text></element>
	<element name="text_uiu3c" defstate="0">
		<simplecounter maxstate="999" digits="1" align="1">
			<color red="0.81" green="0.8" blue="0.79" />
		</simplecounter>
	</element>

	<group name="sb_ui">
		<bounds x="0" y="0" width="10" height="80" />
		<bezel element="cblack"><bounds x="0" y="7" width="10" height="1" /></bezel>
		<bezel element="text_uit1"><bounds x="0" y="2" width="10" height="2" /></bezel>
		<bezel element="text_uit2"><bounds x="0" y="4" width="10" height="2" /></bezel>

		<!-- board -->
		<bezel element="text_uib1"><bounds x="0" y="9" width="10" height="2" /></bezel>
		<bezel element="cwhite"><bounds x="1" y="11.5" width="8" height="2.5" /></bezel>
		<bezel element="cwhite"><bounds x="1" y="15" width="8" height="2.5" /></bezel>

		<bezel element="text_uib2"><bounds x="1.5" y="11.75" width="7" height="2" /></bezel>
		<bezel element="text_uib3"><bounds x="1.5" y="15.25" width="7" height="2" /></bezel>

		<bezel element="hlub" inputtag="board:UI" inputmask="0x200"><bounds x="1" y="11.5" width="8" height="2.5" /><color alpha="0.25" /></bezel>
		<bezel element="hlub" inputtag="board:UI" inputmask="0x100"><bounds x="1" y="15" width="8" height="2.5" /><color alpha="0.25" /></bezel>

		<!-- spawn -->
		<bezel element="text_uis1"><bounds x="0" y="20.5" width="10" height="2" /></bezel>
		<bezel element="cwhite"><bounds x="1" y="23" width="8" height="12" /></bezel>
		<bezel element="cwhite"><bounds x="1" y="36" width="8" height="12" /></bezel>

		<bezel name="piece_ui1" element="piece"><bounds x="1" y="23" width="4" height="4" /></bezel>
		<bezel name="piece_ui2" element="piece"><bounds x="1" y="27" width="4" height="4" /></bezel>
		<bezel name="piece_ui3" element="piece"><bounds x="1" y="31" width="4" height="4" /></bezel>
		<bezel name="piece_ui4" element="piece"><bounds x="5" y="23" width="4" height="4" /></bezel>
		<bezel name="piece_ui5" element="piece"><bounds x="5" y="27" width="4" height="4" /></bezel>
		<bezel name="piece_ui6" element="piece"><bounds x="5" y="31" width="4" height="4" /></bezel>
		<bezel name="piece_ui7" element="piece"><bounds x="1" y="36" width="4" height="4" /></bezel>
		<bezel name="piece_ui8" element="piece"><bounds x="1" y="40" width="4" height="4" /></bezel>
		<bezel name="piece_ui9" element="piece"><bounds x="1" y="44" width="4" height="4" /></bezel>
		<bezel name="piece_ui10" element="piece"><bounds x="5" y="36" width="4" height="4" /></bezel>
		<bezel name="piece_ui11" element="piece"><bounds x="5" y="40" width="4" height="4" /></bezel>
		<bezel name="piece_ui12" element="piece"><bounds x="5" y="44" width="4" height="4" /></bezel>

		<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0001"><bounds x="1" y="23" width="4" height="4" /><color alpha="0.25" /></bezel>
		<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0002"><bounds x="1" y="27" width="4" height="4" /><color alpha="0.25" /></bezel>
		<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0004"><bounds x="1" y="31" width="4" height="4" /><color alpha="0.25" /></bezel>
		<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0008"><bounds x="5" y="23" width="4" height="4" /><color alpha="0.25" /></bezel>
		<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0010"><bounds x="5" y="27" width="4" height="4" /><color alpha="0.25" /></bezel>
		<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0020"><bounds x="5" y="31" width="4" height="4" /><color alpha="0.25" /></bezel>
		<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0040"><bounds x="1" y="36" width="4" height="4" /><color alpha="0.25" /></bezel>
		<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0080"><bounds x="1" y="40" width="4" height="4" /><color alpha="0.25" /></bezel>
		<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0100"><bounds x="1" y="44" width="4" height="4" /><color alpha="0.25" /></bezel>
		<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0200"><bounds x="5" y="36" width="4" height="4" /><color alpha="0.25" /></bezel>
		<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0400"><bounds x="5" y="40" width="4" height="4" /><color alpha="0.25" /></bezel>
		<bezel element="hlub" inputtag="board:SPAWN" inputmask="0x0800"><bounds x="5" y="44" width="4" height="4" /><color alpha="0.25" /></bezel>

		<!-- hand -->
		<bezel element="text_uih1"><bounds x="0" y="51" width="10" height="2" /></bezel>
		<bezel element="cblack"><bounds x="1" y="53.5" width="8" height="6" /></bezel>
		<bezel name="piece_ui0" element="piece"><bounds x="2" y="53.5" width="6" height="6" /></bezel>

		<bezel element="cwhite"><bounds x="1" y="60.5" width="8" height="2.5" /></bezel>
		<bezel element="text_uih2"><bounds x="1.5" y="60.75" width="7" height="2" /></bezel>
		<bezel element="hlub" inputtag="board:UI" inputmask="0x08"><bounds x="1" y="60.5" width="8" height="2.5" /><color alpha="0.25" /></bezel>

		<!-- undo -->
		<bezel element="text_uiu1"><bounds x="0" y="66" width="10" height="2" /></bezel>
		<bezel element="cwhite"><bounds x="1" y="68.5" width="1.7" height="6" /></bezel>
		<bezel element="cwhite"><bounds x="3.1" y="68.5" width="1.7" height="6" /></bezel>
		<bezel element="cwhite"><bounds x="5.2" y="68.5" width="1.7" height="6" /></bezel>
		<bezel element="cwhite"><bounds x="7.3" y="68.5" width="1.7" height="6" /></bezel>
		<bezel element="text_uiu2a"><bounds x="1" y="69.5" width="1.7" height="4" /></bezel>
		<bezel element="text_uiu2b"><bounds x="3.1" y="69.5" width="1.7" height="4" /></bezel>
		<bezel element="text_uiu2c"><bounds x="5.2" y="69.5" width="1.7" height="4" /></bezel>
		<bezel element="text_uiu2d"><bounds x="7.3" y="69.5" width="1.7" height="4" /></bezel>

		<bezel element="hlub" inputtag="board:UI" inputmask="0x10"><bounds x="1" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></bezel>
		<bezel element="hlub" inputtag="board:UI" inputmask="0x20"><bounds x="3.1" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></bezel>
		<bezel element="hlub" inputtag="board:UI" inputmask="0x40"><bounds x="5.2" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></bezel>
		<bezel element="hlub" inputtag="board:UI" inputmask="0x80"><bounds x="7.3" y="68.5" width="1.7" height="6" /><color alpha="0.25" /></bezel>

		<bezel name="count_ui0" element="text_uiu3a"><bounds x="0" y="75" width="4" height="2" /></bezel>
		<bezel name="count_ui1" element="text_uiu3c"><bounds x="6" y="75" width="4" height="2" /></bezel>
		<bezel element="text_uiu3b"><bounds x="4" y="75" width="2" height="2" /></bezel>
	</group>


<!-- build screen -->

	<view name="External Layout">
		<bezel element="fdes2100d">
		<bounds left="0" right="1800" top="0" bottom="1273" />
			<bounds x="0" y="0" width="1800" height="1273" />
		</bezel>

		<bezel element="cblack"><bounds x="0" y="0" width="109" height="790" /></bezel>
		<bezel element="blackb"><bounds x="0" y="0" width="99" height="780" /></bezel>
		<group ref="sb_ui"><bounds x="0" y="0" width="100" height="800" /></group>

<!-- chessboard leds -->

		<bezel name="0.7" element="led"><bounds x="440" y="199" width="23" height="23" /></bezel>
		<bezel name="0.6" element="led"><bounds x="432" y="282" width="23" height="23" /></bezel>
		<bezel name="0.5" element="led"><bounds x="424" y="366" width="23" height="23" /></bezel>
		<bezel name="0.4" element="led"><bounds x="414" y="455" width="23" height="23" /></bezel>
		<bezel name="0.3" element="led"><bounds x="406" y="547" width="23" height="23" /></bezel>
		<bezel name="0.2" element="led"><bounds x="398" y="640" width="23" height="23" /></bezel>
		<bezel name="0.1" element="led"><bounds x="390" y="740" width="23" height="23" /></bezel>
		<bezel name="0.0" element="led"><bounds x="379" y="841" width="23" height="23" /></bezel>

		<bezel name="1.0" element="led"><bounds x="449" y="908" width="24" height="24" /></bezel>
		<bezel name="1.1" element="led"><bounds x="575" y="908" width="24" height="24" /></bezel>
		<bezel name="1.2" element="led"><bounds x="700" y="908" width="24" height="24" /></bezel>
		<bezel name="1.3" element="led"><bounds x="822" y="908" width="24" height="24" /></bezel>
		<bezel name="1.4" element="led"><bounds x="949" y="908" width="24" height="24" /></bezel>
		<bezel name="1.5" element="led"><bounds x="1071" y="908" width="24" height="24" /></bezel>
		<bezel name="1.6" element="led"><bounds x="1196" y="908" width="24" height="24" /></bezel>
		<bezel name="1.7" element="led"><bounds x="1320" y="908" width="24" height="24" /></bezel>

<!-- Pieces -->
		<bezel name="piece_a8" element="piece"><bounds x="436" y="68" width="175" height="182" /></bezel>
		<bezel name="piece_b8" element="piece"><bounds x="544" y="68" width="175" height="182" /></bezel>
		<bezel name="piece_c8" element="piece"><bounds x="650" y="68" width="175" height="182" /></bezel>
		<bezel name="piece_d8" element="piece"><bounds x="760" y="68" width="175" height="182" /></bezel>
		<bezel name="piece_e8" element="piece"><bounds x="868" y="68" width="175" height="182" /></bezel>
		<bezel name="piece_f8" element="piece"><bounds x="976" y="68" width="175" height="182" /></bezel>
		<bezel name="piece_g8" element="piece"><bounds x="1084" y="68" width="175" height="182" /></bezel>
		<bezel name="piece_h8" element="piece"><bounds x="1192" y="68" width="175" height="182" /></bezel>

		<bezel name="piece_a7" element="piece"><bounds x="426" y="146" width="180" height="186" /></bezel>
		<bezel name="piece_b7" element="piece"><bounds x="536" y="146" width="180" height="186" /></bezel>
		<bezel name="piece_c7" element="piece"><bounds x="646" y="146" width="180" height="186" /></bezel>
		<bezel name="piece_d7" element="piece"><bounds x="756" y="146" width="180" height="186" /></bezel>
		<bezel name="piece_e7" element="piece"><bounds x="866" y="146" width="180" height="186" /></bezel>
		<bezel name="piece_f7" element="piece"><bounds x="976" y="146" width="180" height="186" /></bezel>
		<bezel name="piece_g7" element="piece"><bounds x="1086" y="146" width="180" height="186" /></bezel>
		<bezel name="piece_h7" element="piece"><bounds x="1196" y="146" width="180" height="186" /></bezel>

		<bezel name="piece_a6" element="piece"><bounds x="416" y="228" width="185" height="190" /></bezel>
		<bezel name="piece_b6" element="piece"><bounds x="528" y="228" width="185" height="190" /></bezel>
		<bezel name="piece_c6" element="piece"><bounds x="642" y="228" width="185" height="190" /></bezel>
		<bezel name="piece_d6" element="piece"><bounds x="753" y="228" width="185" height="190" /></bezel>
		<bezel name="piece_e6" element="piece"><bounds x="864" y="228" width="185" height="190" /></bezel>
		<bezel name="piece_f6" element="piece"><bounds x="977" y="228" width="185" height="190" /></bezel>
		<bezel name="piece_g6" element="piece"><bounds x="1089" y="228" width="185" height="190" /></bezel>
		<bezel name="piece_h6" element="piece"><bounds x="1200" y="228" width="185" height="190" /></bezel>

		<bezel name="piece_a5" element="piece"><bounds x="406" y="313" width="190" height="194" /></bezel>
		<bezel name="piece_b5" element="piece"><bounds x="522" y="313" width="190" height="194" /></bezel>
		<bezel name="piece_c5" element="piece"><bounds x="638" y="313" width="190" height="194" /></bezel>
		<bezel name="piece_d5" element="piece"><bounds x="750" y="313" width="190" height="194" /></bezel>
		<bezel name="piece_e5" element="piece"><bounds x="862" y="313" width="190" height="194" /></bezel>
		<bezel name="piece_f5" element="piece"><bounds x="977" y="313" width="190" height="194" /></bezel>
		<bezel name="piece_g5" element="piece"><bounds x="1092" y="313" width="190" height="194" /></bezel>
		<bezel name="piece_h5" element="piece"><bounds x="1206" y="313" width="190" height="194" /></bezel>

		<bezel name="piece_a4" element="piece"><bounds x="397" y="402" width="195" height="198" /></bezel>
		<bezel name="piece_b4" element="piece"><bounds x="513" y="402" width="195" height="198" /></bezel>
		<bezel name="piece_c4" element="piece"><bounds x="630" y="402" width="195" height="198" /></bezel>
		<bezel name="piece_d4" element="piece"><bounds x="746" y="402" width="195" height="198" /></bezel>
		<bezel name="piece_e4" element="piece"><bounds x="860" y="402" width="195" height="198" /></bezel>
		<bezel name="piece_f4" element="piece"><bounds x="978" y="402" width="195" height="198" /></bezel>
		<bezel name="piece_g4" element="piece"><bounds x="1095" y="402" width="195" height="198" /></bezel>
		<bezel name="piece_h4" element="piece"><bounds x="1210" y="402" width="195" height="198" /></bezel>

		<bezel name="piece_a3" element="piece"><bounds x="386" y="491" width="200" height="202" /></bezel>
		<bezel name="piece_b3" element="piece"><bounds x="504" y="491" width="200" height="202" /></bezel>
		<bezel name="piece_c3" element="piece"><bounds x="626" y="491" width="200" height="202" /></bezel>
		<bezel name="piece_d3" element="piece"><bounds x="743" y="491" width="200" height="202" /></bezel>
		<bezel name="piece_e3" element="piece"><bounds x="860" y="491" width="200" height="202" /></bezel>
		<bezel name="piece_f3" element="piece"><bounds x="979" y="491" width="200" height="202" /></bezel>
		<bezel name="piece_g3" element="piece"><bounds x="1099" y="491" width="200" height="202" /></bezel>
		<bezel name="piece_h3" element="piece"><bounds x="1215" y="491" width="200" height="202" /></bezel>

		<bezel name="piece_a2" element="piece"><bounds x="376" y="590" width="205" height="206" /></bezel>
		<bezel name="piece_b2" element="piece"><bounds x="498" y="590" width="205" height="206" /></bezel>
		<bezel name="piece_c2" element="piece"><bounds x="618" y="590" width="205" height="206" /></bezel>
		<bezel name="piece_d2" element="piece"><bounds x="740" y="590" width="205" height="206" /></bezel>
		<bezel name="piece_e2" element="piece"><bounds x="858" y="590" width="205" height="206" /></bezel>
		<bezel name="piece_f2" element="piece"><bounds x="980" y="590" width="205" height="206" /></bezel>
		<bezel name="piece_g2" element="piece"><bounds x="1101" y="590" width="205" height="206" /></bezel>
		<bezel name="piece_h2" element="piece"><bounds x="1220" y="590" width="205" height="206" /></bezel>

		<bezel name="piece_a1" element="piece"><bounds x="366" y="692" width="210" height="210" /></bezel>
		<bezel name="piece_b1" element="piece"><bounds x="490" y="692" width="210" height="210" /></bezel>
		<bezel name="piece_c1" element="piece"><bounds x="614" y="692" width="210" height="210" /></bezel>
		<bezel name="piece_d1" element="piece"><bounds x="735" y="692" width="210" height="210" /></bezel>
		<bezel name="piece_e1" element="piece"><bounds x="858" y="692" width="210" height="210" /></bezel>
		<bezel name="piece_f1" element="piece"><bounds x="980" y="692" width="210" height="210" /></bezel>
		<bezel name="piece_g1" element="piece"><bounds x="1104" y="692" width="210" height="210" /></bezel>
		<bezel name="piece_h1" element="piece"><bounds x="1226" y="692" width="210" height="210" /></bezel>

<!-- chessboard sensors -->

		<bezel element="hl" inputtag="board:RANK.8" inputmask="0x01"><bounds x="468" y="171" width="110" height="80" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.8" inputmask="0x02"><bounds x="575" y="171" width="110" height="80" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.8" inputmask="0x04"><bounds x="683" y="171" width="110" height="80" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.8" inputmask="0x08"><bounds x="793" y="171" width="110" height="80" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.8" inputmask="0x10"><bounds x="901" y="171" width="110" height="80" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.8" inputmask="0x20"><bounds x="1008" y="171" width="110" height="80" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.8" inputmask="0x40"><bounds x="1115" y="171" width="110" height="80" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.8" inputmask="0x80"><bounds x="1226" y="171" width="110" height="80" /><color alpha="0.2" /></bezel>

		<bezel element="hl" inputtag="board:RANK.7" inputmask="0x01"><bounds x="461" y="253" width="110" height="83" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.7" inputmask="0x02"><bounds x="567" y="253" width="110" height="83" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.7" inputmask="0x04"><bounds x="680" y="253" width="110" height="83" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.7" inputmask="0x08"><bounds x="790" y="253" width="110" height="83" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.7" inputmask="0x10"><bounds x="900" y="253" width="110" height="83" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.7" inputmask="0x20"><bounds x="1010" y="253" width="110" height="83" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.7" inputmask="0x40"><bounds x="1122" y="253" width="110" height="83" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.7" inputmask="0x80"><bounds x="1232" y="253" width="110" height="83" /><color alpha="0.4" /></bezel>

		<bezel element="hl" inputtag="board:RANK.6" inputmask="0x01"><bounds x="448" y="336" width="112" height="86" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.6" inputmask="0x02"><bounds x="563" y="336" width="112" height="86" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.6" inputmask="0x04"><bounds x="675" y="336" width="112" height="86" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.6" inputmask="0x08"><bounds x="788" y="336" width="112" height="86" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.6" inputmask="0x10"><bounds x="898" y="336" width="112" height="86" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.6" inputmask="0x20"><bounds x="1013" y="336" width="112" height="86" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.6" inputmask="0x40"><bounds x="1124" y="336" width="112" height="86" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.6" inputmask="0x80"><bounds x="1238" y="336" width="112" height="86" /><color alpha="0.2" /></bezel>

		<bezel element="hl" inputtag="board:RANK.5" inputmask="0x01"><bounds x="442" y="423" width="114" height="89" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.5" inputmask="0x02"><bounds x="556" y="423" width="114" height="89" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.5" inputmask="0x04"><bounds x="673" y="423" width="114" height="89" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.5" inputmask="0x08"><bounds x="787" y="423" width="114" height="89" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.5" inputmask="0x10"><bounds x="900" y="423" width="114" height="89" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.5" inputmask="0x20"><bounds x="1015" y="423" width="114" height="89" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.5" inputmask="0x40"><bounds x="1129" y="423" width="114" height="89" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.5" inputmask="0x80"><bounds x="1244" y="423" width="114" height="89" /><color alpha="0.4" /></bezel>

		<bezel element="hl" inputtag="board:RANK.4" inputmask="0x01"><bounds x="433" y="513" width="116" height="92" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.4" inputmask="0x02"><bounds x="551" y="513" width="116" height="92" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.4" inputmask="0x04"><bounds x="667" y="513" width="116" height="92" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.4" inputmask="0x08"><bounds x="785" y="513" width="116" height="92" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.4" inputmask="0x10"><bounds x="898" y="513" width="116" height="92" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.4" inputmask="0x20"><bounds x="1018" y="513" width="116" height="92" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.4" inputmask="0x40"><bounds x="1132" y="513" width="116" height="92" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.4" inputmask="0x80"><bounds x="1250" y="513" width="116" height="92" /><color alpha="0.2" /></bezel>

		<bezel element="hl" inputtag="board:RANK.3" inputmask="0x01"><bounds x="424" y="605" width="118" height="95" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.3" inputmask="0x02"><bounds x="544" y="605" width="118" height="95" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.3" inputmask="0x04"><bounds x="664" y="605" width="118" height="95" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.3" inputmask="0x08"><bounds x="783" y="605" width="118" height="95" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.3" inputmask="0x10"><bounds x="901" y="605" width="118" height="95" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.3" inputmask="0x20"><bounds x="1017" y="605" width="118" height="95" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.3" inputmask="0x40"><bounds x="1138" y="605" width="118" height="95" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.3" inputmask="0x80"><bounds x="1256" y="605" width="118" height="95" /><color alpha="0.4" /></bezel>

		<bezel element="hl" inputtag="board:RANK.2" inputmask="0x01"><bounds x="416" y="701" width="120" height="98" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.2" inputmask="0x02"><bounds x="538" y="701" width="120" height="98" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.2" inputmask="0x04"><bounds x="659" y="701" width="120" height="98" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.2" inputmask="0x08"><bounds x="782" y="701" width="120" height="98" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.2" inputmask="0x10"><bounds x="900" y="701" width="120" height="98" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.2" inputmask="0x20"><bounds x="1021" y="701" width="120" height="98" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.2" inputmask="0x40"><bounds x="1142" y="701" width="120" height="98" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.2" inputmask="0x80"><bounds x="1264" y="701" width="120" height="98" /><color alpha="0.2" /></bezel>

		<bezel element="hl" inputtag="board:RANK.1" inputmask="0x01"><bounds x="405" y="802" width="122" height="102" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.1" inputmask="0x02"><bounds x="530" y="802" width="122" height="102" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.1" inputmask="0x04"><bounds x="655" y="802" width="122" height="102" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.1" inputmask="0x08"><bounds x="775" y="802" width="122" height="102" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.1" inputmask="0x10"><bounds x="900" y="802" width="122" height="102" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.1" inputmask="0x20"><bounds x="1022" y="802" width="122" height="102" /><color alpha="0.4" /></bezel>
		<bezel element="hl" inputtag="board:RANK.1" inputmask="0x40"><bounds x="1146" y="802" width="122" height="102" /><color alpha="0.2" /></bezel>
		<bezel element="hl" inputtag="board:RANK.1" inputmask="0x80"><bounds x="1270" y="802" width="122" height="102" /><color alpha="0.4" /></bezel>

<!-- bottom side -->

		<bezel element="button" inputtag="IN.0" inputmask="0x40"><bounds x="472" y="969" width="34" height="28" /></bezel>
		<bezel element="button" inputtag="IN.0" inputmask="0x20"><bounds x="584" y="969" width="34" height="28" /></bezel>
		<bezel element="button" inputtag="IN.0" inputmask="0x10"><bounds x="696" y="969" width="34" height="28" /></bezel>
		<bezel element="button" inputtag="IN.0" inputmask="0x08"><bounds x="1077" y="969" width="34" height="28" /></bezel>
		<bezel element="button" inputtag="IN.0" inputmask="0x04"><bounds x="1188" y="969" width="34" height="28" /></bezel>
		<bezel element="button" inputtag="IN.0" inputmask="0x02"><bounds x="1300" y="969" width="34" height="28" /></bezel>

		<bezel element="bbut" inputtag="IN.0" inputmask="0x80"><bounds x="322" y="956" width="110" height="56" /></bezel>
		<bezel element="bbut" inputtag="IN.0" inputmask="0x01"><bounds x="1372" y="956" width="110" height="56" /></bezel>

		<bezel name="1.8" element="led"><bounds x="397" y="987" width="28" height="28" /></bezel>

<!-- lcd panel -->

		<bezel name="digit2" element="digit"><bounds x="800" y="960" width="35" height="46" /></bezel>
		<bezel name="digit3" element="digit"><bounds x="854" y="960" width="35" height="46" /></bezel>
		<bezel name="digit4" element="digit"><bounds x="914" y="960" width="35" height="46" /></bezel>
		<bezel name="digit5" element="digit"><bounds x="968" y="960" width="35" height="46" /></bezel>

		<bezel name="2.7" element="ldot"><bounds x="836" y="1003" width="5.4" height="5.4" /></bezel>
		<bezel name="3.7" element="ldot"><bounds x="887" y="1003" width="5.4" height="5.4" /></bezel>
		<bezel name="4.7" element="ldot"><bounds x="947" y="1003" width="5.4" height="5.4" /></bezel>

		<bezel name="5.7" element="ldot"><bounds x="900" y="973" width="5.4" height="5.4" /></bezel>
		<bezel name="5.7" element="ldot"><bounds x="898" y="988" width="5.4" height="5.4" /></bezel>
		
		<bezel element="screen"><bounds x="0" y="0" width="1800" height="1273" /></bezel>

	</view>
</mamelayout>

<!--

- Artwork type: Boardgame
- Artwork by Volodymyr
- Modifications for MAME by hap
- Lay file by hap

-->
