<?php header('Content-type: text/html; charset=utf-8'); ?><?php  /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */  // load viewer library  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';  $dirsToCheck = array('/home/hummingb/public_html/','','../','../../','../../../');  foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}  if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }  // load records  list($main_pagesRecords, $main_pagesMetaData) = getRecords(array(    'tableName'   => 'main_pages',    'where'       => whereRecordNumberInUrl(1),    'limit'       => '1',    ));  $main_pagesRecord = @$main_pagesRecords[0]; // get first record    // load records  list($main_adsRecords, $main_adsMetaData) = getRecords(array(    'tableName'   => 'main_ads',    'allowSearch' => '0',    'limit'       => '1',  ));  $main_adsRecord = @$main_adsRecords[0]; // get first record     // load records  list($footerRecords, $footerMetaData) = getRecords(array(    'tableName'   => 'footer',    'allowSearch' => '0',    'limit'       => '1',  ));  $footerRecord = @$footerRecords[0]; // get first record    // load records  list($main_bannerRecords, $main_bannerMetaData) = getRecords(array(    'tableName'   => 'main_banner',    'allowSearch' => '0',    'limit'       => '1',  ));  $main_bannerRecord = @$main_bannerRecords[0]; // get first record    list($allPages, $selectedPage) = getCategories(array(     'tableName'            => 'main_pages',     'categoryFormat'    => 'onelevel', // showall, onelevel, twolevel, breadcrumb   ));  // show error message if no matching record is found  if (!$main_pagesRecord) { dieWith404("Record not found!"); }?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  <title><?php echo $main_pagesRecord['metatitle'] ?></title>  <meta name="description" content="<?php echo $main_pagesRecord['metadescription'] ?>">   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">  <link href="styles-main.css" rel="stylesheet" type="text/css">  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.js" type="text/javascript"></script>  <script src="menu.js" type="text/javascript"></script>  <link rel="stylesheet" href="slideshow-css/style.css" />  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>  <script type="text/javascript" src="jquery.aw-showcase.js"></script>  <script type="text/javascript">    $(document).ready(function()  {    $("#showcase").awShowcase(    {      content_width:			  800,      content_height:			  257,      fit_to_parent:			  false,      auto:					        true,      interval:				      5000,      continuous:				    false,      loading:				      false,      tooltip_width:			  200,      tooltip_icon_width:		32,      tooltip_icon_height:	32,      tooltip_offsetx:		  18,      tooltip_offsety:		  0,      arrows:					      false,      buttons:				      false,      btn_numbers:			    false,      keybord_keys:			    false,      mousetrace:				    false, /* Trace x and y coordinates for the mouse */      pauseonover:			    false,      stoponclick:			    false,      transition:				    'fade', /* hslide/vslide/fade */      transition_delay:		  0,      transition_speed:		  1000,      show_caption:			    'onload', /* onload/onhover/show */      thumbnails:				    false,      thumbnails_position:	'outside-last', /* outside-last/outside-first/inside-last/inside-first */      thumbnails_direction:	'vertical', /* vertical/horizontal */      thumbnails_slidex:		1, /* 0 = auto / 1 = slide one thumbnail / 2 = slide two thumbnails / etc. */      dynamic_height:			  true, /* For dynamic height to work in webkit you need to set the width and height of images in the source. Usually works to only set the dimension of the first slide in the showcase. */      speed_change:			    true, /* Set to true to prevent users from swithing more then one slide at once. */      viewline:				      false, /* If set to true content_width, thumbnails, transition and dynamic_height will be disabled. As for dynamic height you need to set the width and height of images in the source. */      custom_function:		  null /* Define a custom function that runs on content change */    });  });    </script>  <!-- dd menu -->  <script type="text/javascript">  <!--  var timeout     = 500;  var closetimer	= 0;  var ddmenuitem  = 0;    // open hidden layer  function mopen(id)  {	    // cancel close timer    mcancelclosetime();      // close old layer    if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';      // get new layer and show it    ddmenuitem = document.getElementById(id);    ddmenuitem.style.visibility = 'visible';    }  // close showed layer  function mclose()  {    if(ddmenuitem) ddmenuitem.style.visibility = 'hidden';  }    // go close timer  function mclosetime()  {    closetimer = window.setTimeout(mclose, timeout);  }    // cancel close timer  function mcancelclosetime()  {    if(closetimer)    {      window.clearTimeout(closetimer);      closetimer = null;    }  }    // close layer when click-out  document.onclick = mclose;   // -->  </script></head><body>  <div id="maincontainer">      <div id="header">      <img src="images/header.jpg" width="800" height="100" />    </div>    <!--end header-->      <div id="headerpic">        <div id="showcase" class="showcase">          <!-- Each child div in #showcase represents a slide -->        <?php foreach ($main_bannerRecord['banner_upload'] as $upload): ?>          <div class="showcase-slide">            <!-- Put the slide content in a div with the class .showcase-content. -->            <div class="showcase-content">                  <?php if ($upload['isImage']): ?>                <img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" border="0" ALIGN="middle" />                <br/>              <?php endif ?>            </div>          </div>        <?php endforeach ?>        <!-- end slide -->        </div>          </div>    <!--end headepicr-->      <div id="nav">        <!-- category menu -->       <ul id="sddm">         <?php foreach ($allPages as $page): ?>           <?php echo $page['_listItemStart'] ?>           <?php if ($page['_isSelected']): ?>             <a href="<?php echo $page['_link'] ?>"><?php echo $page['name'] ?></a>          <?php else: ?>             <li>              <a href="<?php echo $page['_link'] ?>"onmouseover="mopen('<?php echo $page['name'] ?>')" onmouseout="mclosetime()">                <?php echo $page['name'] ?>              </a>            </li>          <?php endif; ?>           <?php echo $page['_listItemEnd'] ?>         <?php endforeach; ?>         </ul>         <!-- /category menu -->        <!--<ul id="sddm">          <li><a href="#">Home</a></li>          <li><a href="#">News</a></li>                    <li><a href="#"               onmouseover="mopen('m1')"               onmouseout="mclosetime()">Hummingbirds 101</a>              <div id="m1"                   onmouseover="mcancelclosetime()"                   onmouseout="mclosetime()">                  <a href="#">Attracting and feeding</a>                  <a href="#">Injured hummer</a>                  <a href="#">Predators</a>                  <a href="#">Albino/leucistic</a>                  <a href="#">Look-alikes</a>             </div>          </li>                    <li><a href="#">Endangered</a></li>          <li><a href="#">Newsletters</a></li>          <li><a href="#">Free Stuff</a></li>          <li><a href="#"               onmouseover="mopen('m2')"               onmouseout="mclosetime()">Sponsors</a>              <div id="m2"                   onmouseover="mcancelclosetime()"                   onmouseout="mclosetime()">                      <a href="#">Shopping</a>                      <a href="#">Sponsoring</a>              </div>          </li>          <li><a href="#"               onmouseover="mopen('m3')"               onmouseout="mclosetime()">About us</a>               <div id="m3"                   onmouseover="mcancelclosetime()"                   onmouseout="mclosetime()">                  <a href="#">About Sedona</a>             </div>          </li>          <li><a href="#">Contact</a></li>            </ul>      <div style="clear:both"></div>-->        </div>    <!--end nav-->      <div id="content">        <div id="content-left">        <h1><?php echo $main_pagesRecord['headline'] ?></h1>        <h2><?php echo $main_pagesRecord['subhead'] ?></h2>        <p><?php echo $main_pagesRecord['content'] ?></p>      </div>            <div id="content-right">        <p>          <a href="festival.php?Join-Hummingbird-Society-10"><img src="images/donate-festival.png" width="165" height="44" border="0" /></a>        </p>        <p>          <a href="http://www.facebook.com/pages/The-Hummingbird-Society/314577351597" target="_blank"><img src="images/fb.png" width="165" height="44" border="0" /></a>        </p>        <p align="center">           <?php shuffle($main_adsRecord['festival-ads']); ?>           <?php foreach ($main_adsRecord['festival-ads'] as $upload): ?>            <?php if ($upload['hasThumbnail']): ?>              <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" />              <br/>            <?php elseif ($upload['isImage']): ?>              <a href="<?php echo $upload['info1']; ?>" target="_blank"><img src="<?php echo $upload['urlPath'] ?>" alt="" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" border="0" /></a>              <br/>            <?php else: ?>              <a href="<?php echo $upload['urlPath'] ?>">Download <?php echo $upload['filename'] ?></a>              <br/>            <?php endif ?>          <?php endforeach ?>        </p>        <p><img src="images/pic1.jpg" alt="" width="180" height="144" /></p>        <p><img src="images/pic2.jpg" alt="" width="182" height="144" /></p>      </div>            <div id="clear"></div>    </div><!--end content-->        <div id="footer">    <!--<p align="center"><a href="festival.php?Home-1">HOME</a> | <a href="festival.php?Sedona-2">SEDONA</a> | <a href="festival.php?Festival-Gala-8">FESTIVAL GALA</a> | <a href="festival.php?Festival-Presentations-7">FESTIVAL PRESENTATIONS</a> | <a href="festival.php?Festival-Presentations-9">FESTIVAL ACTIVITIES</a><br />          <a href="festival.php?Sedona-Business-Supporters-6">SEDONA BUSINESS SUPPORTERS</a> | <a href="festival.php?Deals-5">DEALS</a> | <a href="festival.php?Tickets-4">TICKETS</a> | <a href="festival.php?Maps-3">MAPS</a> | <a href="festival.php?Maps-11">MEDIA</a></p>-->      <?php include("footer.php"); ?>    </div><!--end footer-->    </div><!--end maincontainer-->    <p align="center">    <a href="http://www.fp2marketing.com" target="_blank"><img src="http://www.fp2marketing.com/logo_fp2_link2.jpg" alt="FP2 Marketing and Website Design" border="0"></a>  </p>    <div align="center" class="photocredit">    Top Cathedral Rock photo by: <a href="http://www.andrewholman.com" target="_blank">Andrew Holman Photography</a>    <br />    (hummingbird) Randall Blackwood    <br />    <br />  </div></body></html>