<html>
<head>
<title>The Ultimate Van</title>
<style>
html,body {margin:0px;width:100%}
form {margin:0px}
body {background-color:#0c0f16;background-image:url('images/siteBG.jpg');background-repeat:repeat-x;}
td {font-family:Arial;font-size:10pt}
.topHeaderTbl td {padding-left:30px;vertical-align:middle;}
.topHeaderTbl td a {color:yellow;font-weight:bold;text-decoration:none}
.topHeaderTbl td a:hover {color:white}
</style>
<style>
.boxTitleTD {background-image:url('images/boxBG.jpg');background-repeat:no-repeat;vertical-align:top;width:290px;height:42px;vertical-align:top;padding:8px 10px}
.boxTD {background-color:#141922;vertical-align:top;width:290px;height:70px;color:#cccccc;padding:10px 10px;border:1px solid #273143;border-top:0px}
</style>
<script>
function openMap()
{
window.open('map.php','map','width=690,height=550,toolbar=0,resizable=0');
}
</script>
</head>
<body>
<center>
<table cellspacing="0" cellpadding="0" class="mainTbl">
<tr>
<td style="padding-left:100px;padding-top:10px;">
<table cellspacing="0" cellpadding="0" style="width:100%;height:39px;background-image:url('images/topBannerBackground.jpg');background-repeat:no-repeat">
<tr>
<td>
<table cellspacing="0" cellpadding="0" class="topHeaderTbl">
<tr>
<td style="padding-left:30px;vertical-align:middle;color:#496487;font-weight:bold">
<a href="index.php" <?= (basename($_SERVER["REQUEST_URI"]) == 'index.php' ? 'style="color:white"' : '') ?>>Home</a>
</td>
<td style="padding-left:30px;vertical-align:middle;color:#496487;font-weight:bold">
<a href="register.php" <?= (basename($_SERVER["REQUEST_URI"]) == 'register.php' ? 'style="color:white"' : '') ?>>Register</a>
</td>
<td style="padding-left:30px;vertical-align:middle;color:#496487;font-weight:bold">
<a href="offers.php" <?= (basename($_SERVER["REQUEST_URI"]) == 'offers.php' ? 'style="color:white"' : '') ?>>About the Caravan</a>
</td>
<td style="padding-left:30px;vertical-align:middle;color:#496487;font-weight:bold">
<a href="map.php" <?= (basename($_SERVER["REQUEST_URI"]) == 'map.php' ? 'style="color:white"' : '') ?>>Locations</a>
</td>
<td style="padding-left:30px;vertical-align:middle;color:#496487;font-weight:bold">
<a href="rules.php" <?= (basename($_SERVER["REQUEST_URI"]) == 'rules.php' ? 'style="color:white"' : '') ?>>Contest Rules</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td style="height:350px;padding-left:95px">
<?php
if(basename($_SERVER["REQUEST_URI"]) == 'register.php')
{
?>
<img src="images/bannerRegister.png" border="0">
<?php
} else if(basename($_SERVER["REQUEST_URI"]) == 'map.php'){
?>
<br><br>
<table cellpadding="0" cellspacing="0">
<tr>
<?php
$i = 0;
foreach($dealerInfo as $dealer)
{
$i++;
?>
<td style="padding-right:40px;padding-bottom:40px;color:white">
<b><a href="http://<?= $dealer['website'] ?>" style="color:#3BB9FF"><?= $dealer['name'] ?></b></a>
<br>
<?= $dealer['address'] ?>
</td>
<?php
if($i%4 == 0) echo '</tr><tr>';
}
?>
</tr>
</table>
<?php
} else if(basename($_SERVER["REQUEST_URI"]) == 'offers.php'){
?>
<iframe style="width:995px;height:600px" src="http://www.dodge.ca/en/vehicle_home.php?np=GrandCaravan&mc=CAR_SE_VAL"></iframe>
<?php
} else {
?>
<a href="register.php"><img src="images/banner.png" border="0"></a>
<?php
}
?>
</td>
</tr>
</table>