<div id="CommonList">
	<div class="CommonListBox">
		<ul class="CommonListNav">
			<li class="CommonListNavHover" id="StartHdmiAudio">Start HDMI Audio</li>
			<li class="CommonListNavHover" id="StopHdmiAudio">Stop HDMI Audio</li>
			<li class="CommonListNavHover" id="CommonListSetting">Setting</li>
			<li class="CommonListNavHover" id="SendReceiveRS232">Send/Receive RS232</li>
			<li class="CommonListNavHover" id="SendReceiveIR">Send/Receive IR</li>
			<li class="CommonListNavHover" id="ResetFactory">Reset Device to Factory Default</li>
			<li class="CommonListNavHover" id="Reboot">Reboot</li>
			<li class="CommonListNavHover">
				<span>Add to Groups</span>
				<div class="selectIco"></div>
			</li>
			<li class="CommonListNavLast CommonListNavHover" id="PinToThisPosition">Pin to this Position</li>
			<span class="VideoDisplayPosition1 PingToThisPosition" style="bottom:5px;" id="PingToPosition"></span>
		</ul>
		<script type="text/javascript">
			if (!$('#encodersGroup li:eq(0)').hasClass('listHover')) {
				$('.CommonListNav li:eq(6) span').html('Remove from Group');
			}else{
				$('.CommonListNav li:eq(6) span').html('Add to Groups');
			}
		</script>
	</div>	 
	<div class="GroupsList" style="top:147px;">
		<ul class="GroupsListNav">			
			<?php 
				if($GLOBALS['codertype']=='1'){
					$_datalistnumExp = $GLOBALS['datalistnum'];
					$_databaselistdataExp = $GLOBALS['databaselistdata'];
				}
				elseif ($GLOBALS['codertype']=='2'){
					$_datalistnumExp = $GLOBALS['datalistnumtx'];
					$_databaselistdataExp = $GLOBALS['databaselistdatatx'];
				}
				for($a=0;$a<$_datalistnumExp;$a++){
					$row=mysqli_fetch_assoc($_databaselistdataExp);
					echo "<li class='GenlockScalingListNavHover'>".$row['name']."<span style='display:none;'>".$row['id']."</span></li>";
				}						 	
			?>			
		</ul>
	</div>	
	<script type="text/javascript" src="js/hdmi_audio/SettingListEventTx.js"></script>
</div>