<?
session_start();
session_register("affiliate");
if($ptr != ""){
	$affiliate = $ptr;
}

include('_db.connection.php');
$homepage = "true";
include('_public.setup.php');
?>

	<table cellpadding="0" cellspacing="0" width="780" border="0">
		<?php include("i.header.php"); ?>
		<tr>
			<td>
				<table cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td valign="top">
							<!--
							**************************
							**** BEGIN BODY TABLE ****
							**************************
							-->
							<table cellpadding="0" cellspacing="0">
								<?php include("i.login.header.php"); ?>
								<tr>
									<td colspan="2" align="center">
										<!--
										**************************
										*** BEGIN BODY CONTENT ***
										**************************
										-->
										<table width="94%">
											<tr>
												<td>
													<table width="100%" border="0">
														<tr>
															<td valign="top" colspan="2" class="hptext"><font style="font-size: 12;">
															<?
															$content_result = mysql_query("SELECT * FROM copy WHERE copy_id = 3", $db);
															$content = mysql_fetch_object($content_result);
															echo $content->copy;
															?>
															</td>
														</tr>
														<tr><td colspan="2">&nbsp;</td></tr>
														<tr>
															<td width="100%">
																<table width="100%">
																	<tr>
																		<td><img src="./images/IndexBullet.gif"></td>
																		<td class="hptext">Upload Unlimited Images</td>
																	</tr>
																	<tr>
																		<td><img src="./images/IndexBullet.gif"></td>
																		<td class="hptext">Share Images With Anyone, Anywhere</td>
																	</tr>
																	<tr>
																		<td><img src="./images/IndexBullet.gif"></td>
																		<td class="hptext">Get Gigabytes of Monthly Bandwidth*</td>
																	</tr>
																	<tr>
																		<td><img src="./images/IndexBullet.gif"></td>
																		<td class="hptext">Reliable Hosting For Auctions & Websites</td>
																	</tr>
																	<tr>
																		<td><img src="./images/IndexBullet.gif"></td>
																		<td class="hptext">Create Image <a href="pf.php?fid=42" target="_new" class="indexlink">Portfolios</a>*</td>
																	</tr>
																	<tr>
																		<td><img src="./images/IndexBullet.gif"></td>
																		<td class="hptext">Create Image <a href="#" onclick="window.open('ss.window.php?fid=42&pmode=build&sid=<? echo $setup->title; ?>', 'image_win', ['HEIGHT=262', 'WIDTH=302', 'dependent']);" class="indexlink">Slideshows</a>*</td>
																	</tr>
																	<tr>
																		<td><img src="./images/IndexBullet.gif"></td>
																		<td class="hptext">Create <a href="ag.php?fid=42&mid=50" target="_new" class="indexlink">Auction Image Galleries</a></td>
																	</tr>
																	<tr>
																		<td><img src="./images/IndexBullet.gif"></td>
																		<td class="hptext">Create <a href="spin.php?fid=65" target="_new" class="indexlink">360° Spins</a></td>
																	</tr>
																</table>															
															</td>
															<td valign="middle" align="right"><img src="./images/Collage.jpg"></td>
														</tr>
														<tr><td colspan="2">&nbsp;</td></tr>
													</table>
												</td>
											</tr>
											<?
												$news_result = mysql_query("SELECT * FROM news order by date desc", $db);
												$rows = mysql_num_rows($news_result);
												
												if($rows > 0){
											?>
											<tr>
												<td>
													<table cellpadding="0" cellspacing="0" width="100%">
														<tr>
															<td><img src="./images/site.news.gif"></td>
														</tr>
														<tr>
															<td>
																<table width="100%" class="index_news">
																	<?
																		while($news = mysql_fetch_object($news_result)){
																		$posted = substr($news->date, 4, 2) . "/" . substr($news->date, 6, 2) . "/" . substr($news->date, 0, 4);
																	?>
																	<tr class="newstitle">
																		<td><font face="verdana" class="hptext" style="font-size: 10;"><b><? echo $news->title; ?></b></td>
																		<td align="right"><font face="verdana" class="hptext" style="font-size: 10;"><? echo $posted; ?></td>
																	</tr>
																	<tr><td colspan="2"><font style="font-size: 2">&nbsp;</td></tr>
																	<tr>
																		<td colspan="2"><font face="verdana" class="hptext" style="font-size: 10;"><? echo $news->article; ?></td>
																	</tr>
																	<tr><td colspan="2"><font size="1">&nbsp;</td></tr>
																	<?
																		}
																	?>
																</table>
															</td>
														</tr>
													</table>
												</td>
											</tr>
											<?
												}
											?>
											<tr>
												<td><font face="verdana" size="1" color="#333333">*Only in select plans</td>
											</tr>
										</table>
										<!--
										**************************
										**** END BODY CONTENT ****
										**************************
										-->
									</td>
								</tr>
							</table>
							<!--
							**************************
							***** END BODY TABLE *****
							**************************
							-->
						</td>
						<td valign="top"bgcolor="#295670"><img src="./images/IndexDropShadow.gif"></td>
						<td valign="top" bgcolor="#083C58">
							<?php
								if($access == "true"){
									include("i.member.rn.php");
								}
								else{
									include("i.rn.plans.php");
								}	
							?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td background="./images/Footer.gif"><img src="./images/Footer.gif" border="0"></td>
		</tr>
		<tr>
			<td>
				<?php include("i.footer.php"); ?>
			</td>
		</tr>
	</table>

<?
mysql_close($db);
print($close);
?>