<title>{name} -  <?php echo $setting[sitename]; ?></title>
	<meta name="description" content="{name}" />
	<meta name="keywords" content="{name}" />
		<!-- Main -->
			<div id="main">
				<div id="main-bot">
					<div id="content">
						<div class="block">
							<div class="block-bot">
								<div id="newspost">
									<div class="cnt">
										<div class="head">
											<div class="head-cnt">
											</div>
											</div>
											</br>
											<div id="full">
											<img src="thumbnail.php?src={logo}&h=200&w=400&q=100&zc=0"><br/><br/>
												{description}
											</div><br/>
									</div>
						</div>
						</br>
					</div>
					</div>
						</br>

					
											<div class="block">
							<div class="block-bot">
								<div id="newspost">
									<div class="cnt">
										<div class="head">
											<div class="head-cnt">
												<h3><center>Developed Games</center></h3>
											</div>
										</div>
										<div id="full">
											<?php
											$queryc  = "SELECT * FROM ".$pre."games WHERE developer = '{name}' ORDER BY name";
											$resultc = mysql_query($queryc);
											while($rowc = mysql_fetch_array($resultc))
											{
												$gplatform = mysql_fetch_array(mysql_query("SELECT name FROM ".$pre."systems WHERE id = '".$rowc[system]."'"));
											?>
											<ul><?php echo "<a href='".$gamepart1.$rowc[id].fthrough($rowc[name], "").$gamepart2."'>".stripslashes($rowc[name])."</a> - ".stripslashes($gplatform[name]).""; ?><br></ul>
											<?php
											}
											?>
										</div>
										</div>
									</div>
								</div>
							</div>
							
						<div class="block">
							<div class="block-bot">
								<div id="newspost">
									<div class="cnt">
										<div class="head">
											<div class="head-cnt">
												<h3><center>Published Games</center></h3>
											</div>
										</div>
										<div id="full">
											<?php
											$queryb  = "SELECT * FROM ".$pre."games WHERE publisher = '{name}' ORDER BY name";
											$resultb = mysql_query($queryb);
											while($rowb = mysql_fetch_array($resultb))
											{
											$gplatform = mysql_fetch_array(mysql_query("SELECT name FROM ".$pre."systems WHERE id = '".$rowb[system]."'"));
											?>
											<ul><?php echo "<a href='".$gamepart1.$rowb[id].fthrough($rowb[name], "").$gamepart2."'>".stripslashes($rowb[name])."</a> - ".stripslashes($gplatform[name]).""; ?><br></ul>
											<?php
											}
											?>
																					<div class="cl">&nbsp;</div>
											</div>
										</div>
									</div>
								</div>
							</div>
							
						<div class="block">
							<div class="block-bot">
								<div id="newspost">
									<div class="cnt">
										<div class="head">
											<div class="head-cnt">
												<h3><center>Updates</center></h3>
											</div>
										</div>
										<div id="full">
											<?php
											$querya  = mysql_query("SELECT id2 FROM ".$pre."fielddata WHERE name = 'company' AND data = '".$_GET['pr_id']."' AND cat = 'content'");
											while($rowa = mysql_fetch_assoc($querya))
											{
											$rowd = mysql_fetch_row(mysql_query("SELECT id,name FROM ".$pre."content WHERE id = '".$rowa["id2"]."' AND ver = '0' ORDER BY date"));
											?>
											<ul><?php echo "<a href='".$part1.$rowd[0].fthrough($rowd[1], "").$part2."'>".stripslashes($rowd[1])."</a>"; ?><br></ul>
											<?php
											}
											?>
											</div>
										</div>
									</div>
								</div>
							</div>
						</div>
			<!--Sidebar-->
					<div id="sidebar">
						<!-- Search -->
						<div id="search" class="block">
							<div class="block-bot">
								<div class="block-cnt">
									<form action="index.php?load=search" method="post">
										<div class="cl">&nbsp;</div>
										<div class="fieldplace">
											<input type="text" class="field" value="Search" title="Search" />
										</div>
										<input type="submit" class="button" value="GO" />
										<div class="cl">&nbsp;</div>
									</form>
								</div>
							</div>
						</div>
						<!-- / Search -->
						<!-- Sign In -->
						<div id="sign" class="block">
							<div class="block-bot">
								<div class="block-cnt">
									<div class="cl">&nbsp;</div>
									<?php 
									if ($useridn == "") {
									?>
									<a href="login.html" class="button button-left">sign in</a>
									<a href="register.html" class="button button-right">create account</a>
									<div class="cl">&nbsp;</div>
									<p class="center"><a href="forgotpw.php">Forgot Password?</a></p>
									<?php 
									} else {
									echo welcome();
									}
									?>
								</div>
							</div>
						</div>
						<!-- / Sign In -->
						<div class="block">
							<div class="block-bot">
								<div class="head">
									<div class="head-cnt">
										<h3>{name}</h3>
									</div>
								</div>
								<div class="image-articles articles">
									<div class="cl">&nbsp;</div>
									<div class="article">
										<div class="cl">&nbsp;</div>
									<p><b>Website: </b> <a href="{site}">{site}</a></p>
									<p><b>Country: </b> {country}</p>
									<p><b>Phone: </b> {phone}</p>
									<p><b>Address: </b> {address}</p>
										<div class="cl">&nbsp;</div>
									</div>
									<div class="cl">&nbsp;</div>
								</div>
							</div>
						</div>
					</div>
					<!-- / Sidebar -->
					<div class="cl">&nbsp;</div>
									</div>
								</div>