<?php  /* STEP 1: LOAD RECORDS - Copy this PHP code block to the TOP of your page BEFORE anything else. */  require_once "/home/adwcom/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($categoryRecords, $selectedCategory) = getCategories(array(    'tableName'   => 'menu',    'selectedCategoryNum' => '1',         // defaults to getNumberFromEndOfUrl()    'categoryFormat'      => 'showall',  // showall, onelevel, twolevel    'useSeoUrls' => false,  ));?><!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=UTF-8" /><title><?php echo $homepageRecord['metatitle'] ?></title>  <meta name="Description" content="<?php echo $homepageRecord['metadescription'] ?>" /> <link href="styles.css" rel="stylesheet" type="text/css"><script type='text/javascript' src='quickmenu.js'></script><script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script></head><body><div id="background-top"></div><div id="maincontainer"><div id="header"><a href="index.html"><img src="images/topbar.jpg" width="966" height="155" border="0" /></a></div><!--end header--><div id="nav"><ul id="qm0" class="qmmc">  <?php foreach ($categoryRecords as $categoryRecord): ?>  <?php if ($categoryRecord['url']) { $categoryRecord['_link'] = $categoryRecord['url']; } ?>     <?php if ($categoryRecord['depth'] == 0 && $categoryRecord['name'] != 'HOME'): ?>     <!-- <li><span class="qmdivider qmdividery" ></span></li>-->    <?php endif ?>    <?php echo $categoryRecord['_listItemStart'] ?>      <a href="<?php echo $categoryRecord['_link'] ?>"><?php echo $categoryRecord['name'] ?></a>    <?php echo $categoryRecord['_listItemEnd'] ?>  <?php endforeach; ?>  </ul><!-- Create Menu Settings: (Menu ID, Is Vertical, Show Timer, Hide Timer, On Click ('all', 'main' or 'lev2'), Right to Left, Horizontal Subs, Flush Left, Flush Top) --><script type="text/javascript">qm_create(0,false,0,500,false,false,false,false,false);</script></div><!--end div nav--><div id="content-wrapper"><div id="flash">  <script type="text/javascript">AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','940','height','336','src','sedona_jeep_tour_flash','quality','high','wmode','transparent','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','sedona_jeep_tour_flash' ); //end AC code</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="940" height="336">    <param name="movie" value="sedona_jeep_tour_flash.swf" />    <param name="quality" value="high" />    <param name="wmode" value="transparent">    <embed src="sedona_jeep_tour_flash.swf" quality="high" wmode="transparent" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="940" height="336"></embed>  </object></noscript></div><!--end flash--><div id="body_top"><?php echo $homepageRecord['pagetitle'] ?></div><!--end body_top--><div id="content"><div id="content_left">  <span class="content_left_heading"><?php echo $homepageRecord['specials_title1'] ?></span><br />   <?php echo $homepageRecord['specials_subtitle1'] ?>  <p><?php echo $homepageRecord['specials_content1'] ?></p>        <div id="dashes"></div>       <p><span class="content_left_heading"><?php echo $homepageRecord['specials_title2'] ?></span><br />   <?php echo $homepageRecord['specials_subtitle2'] ?><p>  <p><?php echo $homepageRecord['specials_content2'] ?></p></div><!--end content_left--><div id="content_right">  <?php echo $homepageRecord['content'] ?><?php if (!$homepageRecord): ?>   No record found!<br/><br/><?php endif ?></div>  <!--end content_right--><div id="clear"></div></div><!--end content--><div id="body_bottom"><img src="images/home_page_bottom_BG.jpg" width="940" height="90" border="0" usemap="#Map2" /></div><!--end body_bottom--><div id="body_real_sedona"><div id="body_real_sedona_left"><script type="text/javascript" src="http://207.58.137.58/swfobject.js"></script> <div id="player"></div> <script type="text/javascript">var so = new SWFObject('/player.swf','mpl','320','240','9');so.addParam('allowscriptaccess','always');so.addParam('allowfullscreen','true');so.addParam('flashvars','&file=http://207.58.137.58/DayInTheWest1.flv&controlbar=none');so.write('player');</script></div><div id="body_real_sedona_right"><?php echo $homepageRecord['video_text'] ?></div><div id="clear"></div></div><!--end body_real_sedona--></div><!--end content-wrapper--><div id="footer-top"><img src="images/footer-top.gif" width="960" height="109" border="0" usemap="#Map" /></div><div id="footer-bottom"><div id="footer-left"><?php foreach ($categoryRecords as $record): ?>      {<a href="<?php echo $record['_link'] ?>"><?php echo $record['name'] ?></a> }    <?php endforeach; ?></div><div id="footer-right">All contents ©<?php echo date('Y'); ?> A Day in the West<br />  All Rights Reserved</div>    </div><div id="clear"></div></div><!--end footer-wrapper--></div><!--end maincontainer--><map name="Map" id="Map"><area shape="rect" coords="12,9,606,103" href="newsletter.html" /><area shape="rect" coords="702,4,959,105" href="reservations.html" /></map><map name="Map2" id="Map2">  <area shape="rect" coords="378,4,523,47" href="jeep_tours.html" /></map></body></html>