<?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('/services4/webpages/util/z/m/zmcooky1.myutilitydomain.com/bighornmountainlodges.com/public/','','../','../../','../../../');  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($photos01Records, $photos01MetaData) = getRecords(array(    'tableName'   => 'photos01',    'where'       => '', // load first record	'perPage'     => '6',  ));  $photos01Record = @$photos01Records[0]; // get first record  // show error message if no matching record is found  if (!$photos01Record) {    header("HTTP/1.0 404 Not Found");    print "Record not found!";    exit;  } //Get prev/next links using the photo num   list($prevRecord, $nextRecord, $firstRecord, $lastRecord) = getPrevAndNextRecords(array(     'tableName' => 'photos01',     'recordNum' => $photos01Record['num'],     'orderBy'   => 'createdDate'  ));  ?><?php include "include_header_pre.php"; ?><title>Lodges of the Bighorns, Lodging, Cabins, Skiing and Outfitters, Bighorn Mountains Wyoming</title><meta name="Description" content="Lodging Bighorn Mountains of Wyoming, Cabins, Lodges, Skiing, Hunting, Greybull WY, Tensleep WY" /><meta name="Keywords" content="Lodging Bighorn Mountains of Wyoming, Cabins, Lodges, Skiing, Hunting, Greybull WY, Tensleep WY" /><?php include "include_header_post.php"; ?></td>  </tr>  <tr>    <td align="left" valign="top" background="images/bkg-text02dk.jpg"><table width="980" border="0" cellspacing="0" cellpadding="0">      <tr>        <td width="683" align="center">&nbsp;</td>        <td width="5">&nbsp;</td>        </tr>      <tr>        <td align="left" bgcolor="#272728"><table width="967" border="0" cellspacing="0" cellpadding="0">          <tr>            <td width="23" height="30" align="left" valign="middle"><img src="images/title-arrow.png" width="13" height="28" /></td>            <td width="638" align="left" valign="middle"><h1><a href="photos-lodging-bighorns-cabins.php">PHOTO GALLERY</a> &gt; <?php echo htmlencode($photos01Record['title']) ?></h1></td>            <td width="306" align="right" valign="middle" class="sdbarCaption">                <!-- show previous and next links -->Previous Record: <a href="<?php echo (@$prevRecord['_link'])? $prevRecord['_link'] : '?' ; ?>">Previous</a><br>                Next Record: <a href="<?php echo @$nextRecord['_link']; ?>" >Next</a>                 First Record: <a href="<?php echo (@$firstRecord['_link'])? $firstRecord['_link'] : '?' ; ?>" >First</a>                 Last Record: <a href="<?php echo @$lastRecord['_link'] ?>">Last</a>           </td>          </tr>                            </table></td>        <td bgcolor="#272728">&nbsp;</td>        </tr>      <tr>        <td align="center">&nbsp;</td>        <td>&nbsp;</td>        </tr>      <tr>        <td align="center" valign="top"><table width="960" border="0" cellspacing="0" cellpadding="0">          <tr>            <td align="center" valign="top">            <table width="310" border="0" cellpadding="0" cellspacing="0" >              <tr>                                <?php foreach ($photos01Record['images'] as $index => $upload): ?>                <td align="center" valign="top"><!--interior box begins-->                    <table width="310" cellpadding="0" cellspacing="2">                      <tr>                        <td align="center" valign="top" class="content"><table width="100" border="0" cellpadding="0" cellspacing="0" id="frame">                          <tr>                            <td align="center" valign="middle">                            <a href="<?php echo $upload['urlPath'] ?>" rel="lightbox[uploads]" title="<?php echo $upload['info1'] ?>  www.lodgesofthebighorns.com"><img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" border="1" alt="<?php echo $upload['info2'] ?>" /></a>                            </td>                          </tr>                        </table>                        </td>                      </tr>                                            <tr>                        <td align="center"><img src="images/1pixel.gif" width="1" height="8" /></td>                      </tr>                      <tr>                        <td align="center"><span class="photoCaption"><?php echo $upload['info1'] ?></span></td>                      </tr>                      <tr>                        <td align="center">&nbsp;</td>                      </tr>                      <tr>                        <td align="center" class="sdbarCaption"><?php if (!$photos01Records): ?>                          No photos were found!                          <?php endif ?>                        </td>                      </tr>                    </table>                  <!--interior box ends-->                </td>                <?php $maxCols=3; if (@++$count % $maxCols == 0): ?>              </tr>              <tr>                <?php endif; ?>                <?php endforeach ?>              </tr>            </table>            </td>          </tr>        </table></td>        <td>&nbsp;</td>      </tr>      <tr>        <td height="35" align="center" valign="bottom" class="photoTitle">                <!-- show previous and next links -->Previous Record: <a href="<?php echo (@$prevRecord['_link'])? $prevRecord['_link'] : '?' ; ?>">Previous</a><br>                Next Record: <a href="<?php echo @$nextRecord['_link']; ?>" >Next</a>                 First Record: <a href="<?php echo (@$firstRecord['_link'])? $firstRecord['_link'] : '?' ; ?>" >First</a>                 Last Record: <a href="<?php echo @$lastRecord['_link'] ?>">Last</a>       </td>        <td>&nbsp;</td>      </tr>      <tr>        <td align="center" valign="top">&nbsp;</td>        <td>&nbsp;</td>      </tr>          </table></td>  </tr>  <tr>    <td align="left" valign="top"><?php include "include_footer.php"; ?>