<?php
  /* STEP 1: LOAD RECORDS - Copy this PHP code block to the TOP of your page BEFORE anything else. */
  require_once "/home/satoacom/public_html/cmsAdmin/lib/viewer_functions.php";

  list($homepageRecords, $homepageMetaData) = getRecords(array(
    'tableName'   => 'homepage',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $homepageRecord = @$homepageRecords[0]; // get first record

  list($banner_ad_sideRecords, $banner_ad_sideMetaData) = getRecords(array(
    'tableName'   => 'banner_ad_side',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $banner_ad_sideRecord = @$banner_ad_sideRecords[0]; // get first record

  list($banner_ad_topRecords, $banner_ad_topMetaData) = getRecords(array(
    'tableName'   => 'banner_ad_top',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $banner_ad_topRecord = @$banner_ad_topRecords[0]; // get first record

  list($blogRecords, $blogMetaData) = getRecords(array(
    'tableName'   => 'blog',
  ));

  list($sponsors_logosRecords, $sponsors_logosMetaData) = getRecords(array(
    'tableName'   => 'sponsors_logos',
  ));

  list($committee_biographiesRecords, $committee_biographiesMetaData) = getRecords(array(
    'tableName'   => 'committee_biographies',
  ));

  list($what_is_satoaRecords, $what_is_satoaMetaData) = getRecords(array(
    'tableName'   => 'what_is_satoa',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $what_is_satoaRecord = @$what_is_satoaRecords[0]; // get first record

  list($destinations_saRecords, $destinations_saMetaData) = getRecords(array(
    'tableName'   => 'destinations_sa',
	'orderBy'     => 'region DESC, title'
  ));

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1" />
<TITLE>Destinations</TITLE>
<LINK HREF="styles2010.css" REL="stylesheet" TYPE="text/css" />
<SCRIPT TYPE="text/JavaScript">
<!--

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</SCRIPT>
<script language="JavaScript">
<!--
// ==============================================
// Copyright 2003 by jsCode.com
// Source: jsCode.com
// Author: etLux
// Free for all; but please leave in the header.
// ==============================================

// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array. Rememeber
// to increment the theImages[x] index!

theImages[0] = 'images-headings/heading-image-01.jpg' 
theImages[1] = 'images-headings/heading-image-02.jpg' 
theImages[2] = 'images-headings/heading-image-03.jpg' 
theImages[3] = 'images-headings/heading-image-04.jpg' 
theImages[4] = 'images-headings/heading-image-05.jpg'
theImages[5] = 'images-headings/heading-image-06.jpg' 
theImages[6] = 'images-headings/heading-image-07.jpg' 
theImages[7] = 'images-headings/heading-image-08.jpg' 
theImages[8] = 'images-headings/heading-image-09.jpg' 
theImages[9] = 'images-headings/heading-image-10.jpg' 
theImages[10] = 'images-headings/heading-image-35.jpg'
theImages[11] = 'images-headings/heading-image-12.jpg' 
theImages[12] = 'images-headings/heading-image-13.jpg' 
theImages[13] = 'images-headings/heading-image-14.jpg' 
theImages[14] = 'images-headings/heading-image-15.jpg' 
theImages[15] = 'images-headings/heading-image-16.jpg' 
theImages[16] = 'images-headings/heading-image-17.jpg' 
theImages[17] = 'images-headings/heading-image-18.jpg' 
theImages[18] = 'images-headings/heading-image-19.jpg' 
theImages[19] = 'images-headings/heading-image-20.jpg' 
theImages[20] = 'images-headings/heading-image-21.jpg' 
theImages[21] = 'images-headings/heading-image-22.jpg' 
theImages[22] = 'images-headings/heading-image-23.jpg' 
theImages[23] = 'images-headings/heading-image-34.jpg' 
theImages[24] = 'images-headings/heading-image-25.jpg' 
theImages[25] = 'images-headings/heading-image-26.jpg' 
theImages[26] = 'images-headings/heading-image-27.jpg' 
theImages[27] = 'images-headings/heading-image-28.jpg' 
theImages[28] = 'images-headings/heading-image-29.jpg' 
theImages[29] = 'images-headings/heading-image-30.jpg' 
theImages[30] = 'images-headings/heading-image-31.jpg' 
theImages[31] = 'images-headings/heading-image-32.jpg' 
theImages[32] = 'images-headings/heading-image-33.jpg' 

// ======================================
// do not change anything below this line
// ======================================

var j = 0
var p = theImages.length;

var preBuffer = new Array()
for (i = 0; i < p; i++){
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}

var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}

//-->
</script>

<SCRIPT TYPE="text/JavaScript">
<!--

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</SCRIPT>
<STYLE TYPE="text/css">
<!--
#Heading {
	position:absolute;
	width:800;
	height:45px;
	z-index:1;
	left: 197px;
	top: 415px;
	visibility: visible;
	overflow: hidden;
}
.style2 {font-size: 619px}
-->
</STYLE>
 </HEAD>

<BODY onLoad="MM_preloadImages('images-nav/home-over.gif','images-nav/what-is.gif','images-nav/destinations.gif','images-nav/members.gif','images-nav/news.gif','images-nav/press.gif','images-nav/contact.gif')">
<TABLE BORDER="0" ALIGN="CENTER" CELLPADDING="0" CELLSPACING="0">
  <TR>
    <TD CLASS="tdOuterCell"><TABLE WIDTH="990" BORDER="0" CELLSPACING="0" CELLPADDING="0">
      
      <TR>
        <TD CLASS="tdMastheadOuter"><TABLE WIDTH="990" BORDER="0" CELLPADDING="0" CELLSPACING="0" ID="Masthead">
          
          <TR>
            <TD ROWSPAN="3"><IMG SRC="images-2010/single-pixel.gif" WIDTH="20" HEIGHT="80" /></TD>
            <TD ROWSPAN="3"><A HREF="index.php"></A></TD>
            <TD CLASS="tdRight"><!-- #BeginLibraryItem "/Library/Networks.lbi" -->
<link href="styles.css" rel="stylesheet" type="text/css" />
<link href="styles2010.css" rel="stylesheet" type="text/css" />
<table width="200" border="0" align="right" cellpadding="0" cellspacing="0" id="Networks">
              
              <tr>
                <td colspan="15" nowrap="nowrap"><img src="images-2010/single-pixel.gif" width="100" height="7" /></td>
                </tr>
              <tr>
                <td nowrap="nowrap"><p class="pNetworks"><a href="contact-jobs.php">Tourism Jobs</a></p></td>
                <td nowrap="nowrap"><img src="images-2010/divider-networks.gif" width="15" height="13" class="imgPadTop" /></td>
                <td nowrap="nowrap"><p class="pNetworks"><a href="sponsorship.php">Sponsorship Opportunities</a></p></td>
                <td nowrap="nowrap"><img src="images-2010/divider-networks.gif" width="15" height="13" class="imgPadTop" /></td>
                <td nowrap="nowrap"><a href="contact.php"><img src="images-2010/icon-news.gif" width="15" height="16" border="0" /></a></td>
                <td nowrap="nowrap"><img src="images-2010/single-pixel.gif" width="5" height="10" /></td>
                <td nowrap="nowrap"><p class="pNetworksBold"><strong><a href="contact.php">Newsletter</a></strong></p></td>
                <td nowrap="nowrap"><img src="images-2010/divider-networks.gif" width="15" height="13" class="imgPadTop" /></td>
                <td nowrap="nowrap"><a href="blogHeadlines.php"><img src="images-2010/icon-blog.gif" width="18" height="18" border="0" class="imgPadBase" /></a></td>
                <td nowrap="nowrap"><img src="images-2010/single-pixel.gif" width="5" height="10" /></td>
                <td nowrap="nowrap"><p class="pNetworksBold"><strong><a href="blogHeadlines.php">Blog</a></strong></p></td>
                <td nowrap="nowrap"><img src="images-2010/divider-networks.gif" width="15" height="13" class="imgPadTop" /></td>
                <td nowrap="nowrap"><a href="http://www.facebook.com/pages/SATOA/260528366915?ref=search&amp;sid=750382164.1893866318..1" target="_blank"><img src="images-2010/logo-facebook.gif" width="62" height="14" border="0" class="imgPadTop" /></a></td>
                <td nowrap="nowrap"><img src="images-2010/divider-networks.gif" width="15" height="13" class="imgPadTop" /></td>
                <td nowrap="nowrap"><a href="http://twitter.com/SATOA" target="_blank"><img src="images-2010/logo-twitter.gif" width="62" height="13" border="0" class="imgPadTop" /></a></td>
              </tr>
            </table><!-- #EndLibraryItem --></TD>
            <TD><IMG SRC="images-2010/single-pixel.gif" WIDTH="1" HEIGHT="42" /></TD>
            <TD ROWSPAN="3"><IMG SRC="images-2010/single-pixel.gif" WIDTH="14" HEIGHT="100" /></TD>
          </TR>
          <TR>
            <TD CLASS="tdRight"><IMG SRC="images-2010/masthead-tagline.gif" alt="Promoting travel to Southern Africa &amp; Indian Ocean" WIDTH="514" HEIGHT="21" CLASS="imgTagline"></TD>
            <TD><IMG SRC="images-2010/single-pixel.gif" WIDTH="1" HEIGHT="68" /></TD>
          </TR>
          
          <TR>
            <TD CLASS="tdRight"><DIV ALIGN="RIGHT">
              <table id="Global Navigation" width="780" height="28" border="0" cellpadding="0" cellspacing="0">
                <tr>
                  <td><a href="index.php" onmouseover="MM_swapImage('home','','images-nav/home-over.gif',1)" onmouseout="MM_swapImgRestore()"> <img src="images-nav/home-over.gif" alt="" name="home" width="61" height="28" border="0" id="home" /></a></td>
                  <td><a href="destinations.php" onmouseover="MM_swapImage('destinations','','images-nav/destinations.gif',1)" onmouseout="MM_swapImgRestore()"> <img src="images-nav/destinations.gif" alt="" name="destinations" width="107" height="28" border="0" id="destinations" /></a></td>
                  <td><a href="whatIs.php" onmouseover="MM_swapImage('what_is','','images-nav/what-is.gif',1)" onmouseout="MM_swapImgRestore()"> <img src="images-nav/what-is-over.gif" alt="" name="what_is" width="132" height="28" border="0" id="what_is" /></a></td>
                  <td><a href="members.php" onmouseover="MM_swapImage('members','','images-nav/members.gif',1)" onmouseout="MM_swapImgRestore()"> <img src="images-nav/members-over.gif" alt="" name="members" width="115" height="28" border="0" id="members" /></a></td>
                  <td><a href="newsHeadlines.php" onmouseover="MM_swapImage('news','','images-nav/news.gif',1)" onmouseout="MM_swapImgRestore()"> <img src="images-nav/news-over.gif" alt="" name="news" width="124" height="28" border="0" id="news" /></a></td>
                  <td><a href="pressList.php" onmouseover="MM_swapImage('press','','images-nav/press.gif',1)" onmouseout="MM_swapImgRestore()"> <img src="images-nav/press-over.gif" alt="" name="press" width="117" height="28" border="0" id="press" /></a></td>
                  <td><a href="contact.php" onmouseover="MM_swapImage('contact','','images-nav/contact.gif',1)" onmouseout="MM_swapImgRestore()"> <img src="images-nav/contact-over.gif" alt="" name="contact" width="124" height="28" border="0" id="contact" /></a></td>
                </tr>
              </table>
            </DIV></TD>
            <TD><IMG SRC="images-2010/single-pixel.gif" WIDTH="1" HEIGHT="28" /></TD>
            </TR>
        </TABLE></TD>
      </TR>
      <TR>
        <TD><TABLE WIDTH="990" BORDER="0" CELLPADDING="0" CELLSPACING="0" ID="Main Content">
          <TR>
            <TD class="tdGreyCell"><img src="images-2010/single-pixel.gif" width="20" height="20" /></TD>
            <TD class="tdGreyCell">&nbsp;</TD>
            <TD COLSPAN="7" class="tdGreyCell">&nbsp;</TD>
            <TD class="tdGreyCell">&nbsp;</TD>
            <TD class="tdGreyCell">&nbsp;</TD>
          </TR>
          <TR>
            <TD class="tdGreyCell"><IMG SRC="images-2010/single-pixel.gif" WIDTH="20" HEIGHT="10" /></TD>
            <td class="tdGreyCell"><img src="images-2010/corner-top-left.gif" width="10" height="10" /></td>
            <TD COLSPAN="7"><IMG SRC="images-2010/corner.gif" WIDTH="930" HEIGHT="10" /></TD>
            <td class="tdGreyCell"><img src="images-2010/corner-top-right.gif" width="10" height="10" /></td>
            <TD class="tdGreyCell"><IMG SRC="images-2010/single-pixel.gif" WIDTH="20" HEIGHT="10" /></TD>
          </TR>
          <TR>
            <TD ROWSPAN="8" class="tdGreyCell">&nbsp;</TD>
            <TD ROWSPAN="8" CLASS="tdWhite"><IMG SRC="images-2010/single-pixel.gif" WIDTH="10" HEIGHT="10" /></TD>
            <TD COLSPAN="7"><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" ID="Main Content">
  <TR>
    <TD CLASS="tdBannerAdvertising">
      <!-- STEP 2a: Display Uploads for field 'content' (Paste this anywhere inside STEP2 to display uploads) -->
        <!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 -->
        <?php foreach ($banner_ad_topRecord['content'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <a href="<?php echo $banner_ad_topRecord['title'] ?>" target="_top"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" border="0" alt="" /></a>

          <?php elseif ($upload['isImage']): ?>
            <a href="<?php echo $banner_ad_topRecord['title'] ?>" target="_top"><img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" border="0" alt="" /></a>

          <?php else: ?><?php endif ?>
        <?php endforeach ?>
      <!-- STEP2a: /Display Uploads --></TD>
  </TR>
</TABLE></TD>
            <TD ROWSPAN="8" CLASS="tdWhite"><IMG SRC="images-2010/single-pixel.gif" WIDTH="10" HEIGHT="10" /></TD>
            <TD ROWSPAN="8" class="tdGreyCell">&nbsp;</TD>
          </TR>
          
          <TR>
            <TD CLASS="tdWhite"><IMG SRC="images-2010/single-pixel.gif" WIDTH="248" HEIGHT="10" /></TD>
            <TD CLASS="tdWhite"><IMG SRC="images-2010/single-pixel.gif" WIDTH="15" HEIGHT="10" /></TD>
            <TD CLASS="tdWhite"><IMG SRC="images-2010/single-pixel.gif" WIDTH="248" HEIGHT="10" /></TD>
            <TD CLASS="tdWhite"><IMG SRC="images-2010/single-pixel.gif" WIDTH="15" HEIGHT="10" /></TD>
            <TD CLASS="tdWhite"><IMG SRC="images-2010/single-pixel.gif" WIDTH="248" HEIGHT="10" /></TD>
            <TD CLASS="tdWhite"><IMG SRC="images-2010/single-pixel.gif" WIDTH="16" HEIGHT="10" /></TD>
            <TD CLASS="tdWhite"><IMG SRC="images-2010/single-pixel.gif" WIDTH="140" HEIGHT="10" /></TD>
            </TR>
          <TR>
            <TD colspan="7" CLASS="tdHeadingCell"><script language="JavaScript">
<!--
showImage();
//-->
</script>
  <DIV ID="Heading">
    <H1>Destinations</H1>
  </DIV></TD>
          </TR>
          <TR>
            <TD colspan="5" CLASS="tdWhite"><table width="774" border="0" cellpadding="0" cellspacing="0" id="Main Content">
              <tr>
                <td class="tdWhite"><img src="images-2010/single-pixel.gif" width="140" height="10" /></td>
                <td class="tdWhite"><img src="images-2010/single-pixel.gif" width="15" height="10" /></td>
                <td class="tdWhite"><img src="images-2010/single-pixel.gif" width="619" height="10" /></td>
                </tr>
              
              
              <tr>
                <td rowspan="2" class="tdWhite"><!-- #BeginLibraryItem "/Library/Subnav Destinations.lbi" --><p class="pSubnavHeading">In this section: </p>
                        <p><a href="destinations.php">Choose a Destination</a></p>
                        <p><a href="destinations-why.php">Why Visit?</a></p>
                        <p><a href="destinations-map.php">Map of Member Countries </a></p>
                        <p><a href="members.php">Plan Your Trip  </a></p>
<!-- #EndLibraryItem --><p class="pSubnavHeading">&nbsp;</p>                      </td>
                <td rowspan="2" class="tdWhite">&nbsp;</td>
                <td class="tdWhite"><?php $lastRegion = ''; ?> 
<?php foreach($destinations_saRecords as $record): ?> 
  <?php if ($record['region'] != $lastRegion): ?> 
    <?php $lastRegion = $record['region'] ?>     <?php $count = 0 ?> 
    <h2><?php echo htmlspecialchars($record['region']) ?></h2> 
  <?php endif ?> 
  <table width="10%" border="0" cellspacing="0" cellpadding="0"> 
            <tr> 
              <?php foreach ($destinations_saRecords as $record): ?>
 
              <td>

<table width="302" border="0" cellpadding="0" cellspacing="0" id="Flag">
                    
                    <tr>
                      <td>      <!-- STEP 2a: Display Uploads for field 'flag' (Paste this anywhere inside STEP2 to display uploads) -->
        <!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 -->
        <?php foreach ($record['flag'] as $upload): ?>
          <?php if ($upload['hasThumbnail']): ?>
            <a href="<?php echo $record['_link'] ?>"><img src="<?php echo $upload['thumbUrlPath'] ?>" alt="" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" border="0" /></a>

          <?php elseif ($upload['isImage']): ?>
            <a href="<?php echo $record['_link'] ?>"><img src="<?php echo $upload['thumbUrlPath'] ?>" alt="" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" border="0" /></a>

          <?php else: ?><?php endif ?>
        <?php endforeach ?>
      <!-- STEP2a: /Display Uploads --></td>
                      <td class="tdCountryNameCell"><p><a href="<?php echo $record['_link'] ?>"><strong> <?php echo $record['title'] ?> &raquo;</strong></a></p></td>
                      <td rowspan="2"><img src="images-2010/single-pixel.gif" width="15" height="10" /></td>
                    </tr>
                    <tr>
                      <td><img src="images-2010/single-pixel.gif" width="65" height="10" /></td>
                      <td><img src="images-2010/single-pixel.gif" width="222" height="10" /></td>
                      </tr>
                              </table></td> 
              <?php $maxCols=2; if (@++$count % $maxCols == 0): ?> 
            </tr> 
            <tr> 
              <?php endif ?> 
              <?php endforeach; ?> 
            </tr> 
          </table> 
<?php endforeach ?></h2></td>
              </tr>
            </table></TD>
            <TD rowspan="4" CLASS="tdWhite">&nbsp;</TD>
            <TD rowspan="4" CLASS="tdWhite"><table width="140" border="0" cellpadding="0" cellspacing="0" id="Main Content">
              <tr>
                <td><img src="images-2010/single-pixel.gif" width="140" height="10" /></td>
              </tr>
              <tr>
                <td class="tdSkyscraperAdvertising">
				
				<div align="center">
                    <?php foreach ($banner_ad_sideRecord['content'] as $upload): ?>
                    <?php if ($upload['hasThumbnail']): ?>
                    <a href="<?php echo $banner_ad_sideRecord['title'] ?>" target="_top"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" border="0" alt="" /></a>
                    <?php elseif ($upload['isImage']): ?>
                    <a href="<?php echo $banner_ad_sideRecord['title'] ?>" target="_top"><img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" border="0" alt="" /></a>
                    <?php else: ?>
                    <?php endif ?>
                    <?php endforeach ?>
                  </div>				  </td>
              </tr>
            </table></TD>
          </TR>
          
          
          <TR>
            <TD colspan="5" CLASS="tdHorizontalRule">&nbsp;</TD>
            </TR>
          <TR>
            <td colspan="5" class="tdWhite"><h4>Our Sponsors</h4></td>
            </TR>
          <TR>
            <td colspan="5" class="tdWhite"><table border="0" cellpadding="0" cellspacing="0" id="Sponsors">
                <tr>
                  <td><!-- STEP2: Display Records (Paste this where you want your records to be listed) -->
                      <?php foreach ($sponsors_logosRecords as $record): ?>
                      <!-- STEP 2a: Display Uploads for field 'uploads' (Paste this anywhere inside STEP2 to display uploads) -->
                      <!-- Upload Fields: num, createdTime, tableName, fieldName, recordNum, preSaveTempId, filePath, filename, extension, thumbFilePath, isImage, hasThumbnail, urlPath, width, height, thumbUrlPath, thumbWidth, thumbHeight, info1, info2, info3, info4, info5 -->
                      <?php foreach ($record['uploads'] as $upload): ?>
                      <?php if ($upload['hasThumbnail']): ?>
                      <a href="<?php echo $record['title'] ?>" target="_blank"><img src="<?php echo $upload['thumbUrlPath'] ?>" alt="" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" border="0" class="imgSponsors" /></a>
                      <?php elseif ($upload['isImage']): ?>
                      <a href="<?php echo $record['title'] ?>" target="_blank"><img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" border="0" class="imgSponsors" /></a>
                      <?php else: ?>
                      <?php endif ?>
                      <?php endforeach ?>
                      <!-- STEP2a: /Display Uploads -->
                      <?php endforeach; ?>
                      <?php if (!$sponsors_logosRecords): ?>
                      <?php endif ?>
                      <!-- /STEP2: Display Records --></td>
                </tr>
                <tr>
                  <td><img src="images-2010/single-pixel.gif" width="30" height="8" /></td>
                </tr>
            </table></td>
            </TR>
          
          
          <TR>
            <TD colspan="7" CLASS="tdWhite"><!-- #BeginLibraryItem "/Library/Footer.lbi" -->
<link href="styles2010.css" rel="stylesheet" type="text/css" />
<table width="930" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><img src="images-2010/single-pixel.gif" width="465" height="1" /></td>
                <td><img src="images-2010/single-pixel.gif" width="465" height="1" /></td>
              </tr>
              <tr>
                <td colspan="2" class="tdHorizontalRuleThinner"><img src="images-2010/single-pixel.gif" width="465" height="11" /></td>
              </tr>
              <tr>
                <td><p class="pFooter">&copy; SATOA
                  <script>
<!--
var year=new Date();
year=year.getYear();
if (year<1900) year+=1900;
document.write(year);
//-->
                    </script>
  &nbsp;   |&nbsp; <a href="privacy.php">Privacy policy &raquo;</a></p></td>
                <td><p align="right" class="pFooter">Website: <a href="http://www.commonsensedesign.net" target="_blank">Common Sense Design</a></p></td>
              </tr>
            </table>
<!-- #EndLibraryItem --></TD>
          </TR>
          
          
          <TR>
            <TD class="tdGreyCell"><IMG SRC="images-2010/single-pixel.gif" WIDTH="20" HEIGHT="10" /></TD>
            <td class="tdGreyCell"><img src="images-2010/corner-base-left.gif" width="10" height="10" /></td>
            <TD COLSPAN="7"><IMG SRC="images-2010/corner.gif" WIDTH="930" HEIGHT="10" /></TD>
            <td class="tdGreyCell"><img src="images-2010/corner-base-right.gif" width="10" height="10" /></td>
            <TD class="tdGreyCell"><IMG SRC="images-2010/single-pixel.gif" WIDTH="20" HEIGHT="10" /></TD>
          </TR>
        </TABLE>    
        <?php if (!$homepageRecord): ?><?php endif ?>
<!-- /STEP2: Display Records --></TD>
      </TR>
      <TR>
        <TD class="tdGreyCell">&nbsp;</TD>
      </TR>
      
    </TABLE></TD>
  </TR>
</TABLE>
</BODY>
</HTML>
