				<?php if($_GET['c']!='game'){ ?>
                <tr>
                	<td style="text-align:center; background:url(images/shadow.png) 0 0 repeat-x; height:200px; vertical-align:top;">
                    	<div id="gamelist"></div>
                    	<?php foreach($gamelist[$lang] as $gldata){ ?>
                        <li class="downloadlist" onclick="<?php echo $gldata['link']; ?>">
                        	<table cellpadding="0" cellspacing="0" border="0" align="center">
                            	<tr>
                                	<td><img src="<?php echo $gldata['img']; ?>" class="gameimg"/></td>
                                </tr>
                                <tr>
                                	<td class="dtitle<?php if($_GET['game']==$gldata['id']){ echo '-selected'; } ?>"><?php echo $gldata['name']; ?></td>
                                </tr>
                            </table>
                        </li>
                    	<?php } ?>
                    </td>
                </tr>
                <?php }elseif($_GET['c']=='game' && $_GET['list']==''){ ?>
                <tr>
                	<td>
                    	<table cellpadding="0" cellspacing="0" border="0" align="center" class="container">
                            <tr>
                            	<td class="content-header">
                    				<div><img src="images/blue-arrow.png"/><font> <?php echo $gamelist[$lang][$_GET['game']]['name']; ?></font></div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                	<td style="text-align:center; height:500px; vertical-align:top;">
                    	<?php if($_GET['game']){ ?>
                        <?php foreach($gamelist[$lang][$_GET['game']]['game'] as $ggdata){ ?>
                        <li class="gamelist" onclick="<?php echo $ggdata['link']; ?>">
                        	<table cellpadding="0" cellspacing="0" border="0" align="center">
                            	<tr>
                                	<td><img src="<?php echo $ggdata['img']; ?>"/></td>
                                </tr>
                                <!--tr>
                                	<td class="dtitle"><?php echo ucfirst($ggdata['name']); ?></td>
                                </tr-->
                            </table>
                        </li>
                        <?php } ?>
                        <?php } ?>
                    </td>
                </tr>
                <?php }elseif($_GET['c']=='game' && $_GET['list']!=''){ ?>
                <tr>
                	<td>
                    	<table cellpadding="0" cellspacing="0" border="0" align="center" class="container">
                            <tr>
                            	<td class="content-header">
                    				<div><img src="images/blue-arrow.png"/><font> <?php echo $gamelist[$lang][$_GET['game']]['name']; ?> : <?php echo $gamelist[$lang][$_GET['game']]['game'][$_GET['list']]['name']; ?></font></div>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <style>
li.gamelist-list{
	display: inline-block;
	margin: 10px;
	min-width:180px;
	max-width:180px;
	cursor:pointer;
	vertical-align:top;
}





.gamelist-list .dtitle{
	color:#FFFFFF;
}

/* if not MG */
.gamelist-list .dimage{
	width: 180px;
}

/* if is MG */
.gamelist-list .dimage_div{
	width:150px;
	height:136px;
	overflow: hidden;
	margin: 0 auto;
	border: 1px solid rgba(0,0,0,.01);
}
.gamelist-list .dimage_div:hover{
	border:solid 1px #F90;
}
				</style>
                <tr>
                	<td style="text-align:center; height:500px; vertical-align:top;">
                    	<?php if($_GET['list']){ ?>
                        <?php foreach($gamelist[$lang][$_GET['game']]['game'][$_GET['list']]['list'] as $ggdata){ ?>
                        <li class="gamelist-list" onclick="<?php echo $ggdata['link']; ?>">
                        	<table cellpadding="0" cellspacing="0" border="0" align="center">
                            	<tr>
                                	<td><div class="dimage_div"><img class="dimage" src="<?php echo $ggdata['img']; ?>"/></div></td>
                                </tr>
                                <tr>
                                	<td class="dtitle"><?php echo ucfirst($ggdata['name']); if($ggdata['name']=='LeoCity PT Game 1')echo ' test test test test'; ?></td>
                                </tr>
                            </table>
                        </li>
                        <li class="gamelist-list" onclick="<?php echo $ggdata['link']; ?>">
                        	<table cellpadding="0" cellspacing="0" border="0" align="center">
                            	<tr>
                                	<td><div class="dimage_div"><img class="dimage" src="<?php echo $ggdata['img']; ?>"/></div></td>
                                </tr>
                                <tr>
                                	<td class="dtitle"><?php echo ucfirst($ggdata['name']); if($ggdata['name']=='LeoCity PT Game 1')echo ' test test test test'; ?></td>
                                </tr>
                            </table>
                        </li>
                        <?php } ?>
                        <?php } ?>
                    </td>
                </tr>
                <?php } ?>