<?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('/services7/webpages/util/w/a/wapiti.site.aplus.net/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 record from 'lodge_pages'  list($lodge_pagesRecords, $lodge_pagesMetaData) = getRecords(array(    'tableName'   => 'lodge_pages',    'where'       => '', // load first record    'loadUploads' => true,    'allowSearch' => false,    'limit'       => '1',  ));  $lodge_pagesRecord = @$lodge_pagesRecords[0]; // get first record  if (!$lodge_pagesRecord) { dieWith404("Record not found!"); } // show error message if no record found?><?php include "include_header-lodges.php"; ?>        <table width="950"  border="0" cellpadding="0" cellspacing="0">                    <tr>            <td align="center" valign="top" class="content"><table width="915" border="0" cellspacing="0" cellpadding="0">        <tr>          <td align="left" valign="top" bgcolor="#FEFEEC"><table width="915" border="0" cellspacing="0" cellpadding="0">              <tr>                <td width="487" align="left" valign="top"><table width="463" border="0" cellspacing="0" cellpadding="0">                    <tr>                      <td width="40" align="left" valign="top"><img src="images/1pixel.gif" width="40" height="20"></td>                      <td width="423" align="left" valign="top"><img src="images/1pixel.gif" width="289" height="10"></td>                      </tr>                    <tr>                      <td align="left" valign="top">&nbsp;</td>                      <td align="center" valign="middle">        <?php foreach ($lodge_pagesRecord['logo'] as $index => $upload): ?>          <img src="http://www.yellowstone-lodging.com/cmsAdmin/<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="<?php echo htmlencode($upload['info3']) ?>" />        <?php endforeach ?>                      </td>                      </tr>                    <tr>                      <td align="left" valign="top">&nbsp;</td>                      <td align="center" valign="middle">&nbsp;</td>                      </tr>                </table></td>                <td width="428" align="left" valign="top"><table width="427" border="0" cellspacing="0" cellpadding="0">                    <tr>                      <td align="left" valign="top"><table width="426" border="0" cellspacing="0" cellpadding="0">                          <tr>                            <td width="21" align="left" valign="top"><img src="images/seclodge-nav-tab-left.png" width="23" height="33" /></td>                            <td width="163" align="left" valign="top"><a href="#" onClick="recordOutboundLink(this, 'Outbound Links', 'TEMPLATE.com');return false;" target="_blank" onMouseOver="MM_swapImage('website','','images/sec_nav01web_on.png',1)" onMouseOut="MM_swapImgRestore()"><img src="images/sec_nav01web.png" alt="Visit our Website" name="website" width="163" height="33" border="0"></a></td>                            <td width="198" align="left" valign="top"><a href="photos.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('photos','','images/sec_nav02photos_on.png',1)"><img src="images/sec_nav02photos.png" alt="Photos & Panoramas" name="photos" width="198" height="33" border="0"></a></td>                            <td width="44" align="left" valign="top"><img src="images/seclodge-nav-tab-right.png" width="42" height="33" /></td>                          </tr>                      </table></td>                    </tr>                    <tr>                      <td align="left" valign="top"><table width="391" border="0" cellpadding="0" cellspacing="0" class="content01bold">                          <tr>                            <td width="18" align="center" valign="middle"><img src="images/arrow_blue_sml.png" width="4" height="6"></td>                            <td width="342" align="left" valign="middle" class="content01"><a href="<?php echo htmlencode($lodge_pagesRecord['website']) ?>" target="_blank"><?php echo htmlencode($lodge_pagesRecord['website']) ?></a></td>                          </tr>                          <tr>                            <td align="center" valign="middle">&nbsp;</td>                            <td align="left" valign="middle"><img src="images/sec_divline.png" width="342" height="5" vspace="5"></td>                          </tr>                          <tr>                            <td align="center" valign="middle">&nbsp;</td>                            <td align="left" valign="middle"><?php echo htmlencode($lodge_pagesRecord['address']) ?></td>                          </tr>                          <tr>                            <td align="center" valign="middle">&nbsp;</td>                            <td align="left" valign="middle"><img src="images/sec_divline.png" width="342" height="5" vspace="5"></td>                          </tr>                          <tr>                            <td align="center" valign="middle">&nbsp;</td>                            <td align="left" valign="middle"><a href="mailto:<?php echo htmlencode($lodge_pagesRecord['email']) ?>?Subject=EAST YELLOWSTONE LODGES INQUIRY" onClick="recordOutboundLink(this, 'EMAIL Links', 'trailshopinn.com');return false;"><?php echo htmlencode($lodge_pagesRecord['email']) ?></a></td>                          </tr>                          <tr>                            <td align="center" valign="middle">&nbsp;</td>                            <td align="left" valign="middle"><img src="images/sec_divline.png" width="342" height="5" vspace="5"></td>                          </tr>                          <tr>                            <td align="center" valign="middle">&nbsp;</td>                            <td align="left" valign="middle" class="content01"><a href="tel:<?php echo htmlencode($lodge_pagesRecord['phone']) ?>"><?php echo htmlencode($lodge_pagesRecord['phone']) ?></a></td>                          </tr>                      </table></td>                    </tr>                </table></td>              </tr>          </table></td>        </tr>        <tr>          <td height="12" align="left" valign="top" bgcolor="#FEFEEC"><img src="images/1pixel.gif" width="1" height="8"></td>        </tr>                                <tr>          <td align="center" valign="middle" bgcolor="#FEFEEC"><table width="915" border="0" cellpadding="0" cellspacing="0">              <tr align="left" valign="top">                <td colspan="2" align="center" valign="middle"><img src="images/1pixel.gif" width="1" height="1"></td>                </tr>                            <tr align="left" valign="top">                <td align="left" valign="top"><img src="images/1pixel.gif" width="1" height="2" /></td>                <td rowspan="15" align="center" valign="top" bgcolor="#DAD5C5" class="content"><table width="226" border="0" cellspacing="0" cellpadding="0">                  <tr>                    <td height="25" align="center" valign="middle">&nbsp;</td>                  </tr>                  <tr>                    <td align="center" valign="middle"><img src="images/seclodge-planning-guide-travel.png" alt="Get our vacation planning guide" width="128" height="128" /></td>                  </tr>                  <tr>                    <td align="center" valign="middle"><img src="images/seclodge-sidebar-div2.png" width="226" height="13" vspace="15" /></td>                  </tr>                  <tr>                    <td align="center" valign="middle"><a href="photos.html"><img src="images/lodge-bnr-360-tours.png" alt="360 pano photos tours" width="158" height="67" vspace="4" /></a></td>                  </tr>                  <tr>                    <td align="center" valign="middle"><img src="images/seclodge-sidebar-div2.png" width="226" height="13" vspace="15" /></td>                  </tr>                  <tr>                    <td align="center" valign="middle"><img src="images/like_us_on_facebook.png" alt="Like us on facebook!" width="158" height="60" vspace="10" /></td>                  </tr>                  <tr>                    <td align="center" valign="middle"><img src="images/seclodge-sidebar-div2.png" width="226" height="13" vspace="15" /></td>                  </tr>                  <tr>                    <td align="center" valign="middle"><img src="images/seclodge-online-reservations.jpg" alt="Make your vacation reservations online" width="143" height="149" /></td>                  </tr>                  <tr>                    <td align="center" valign="middle"><img src="images/seclodge-sidebar-div2.png" width="226" height="13" vspace="15" /></td>                  </tr>                  <tr>                    <td align="center" valign="middle"><p class="content01">&quot;<span class="quotes">Quotes &amp; Reviews<br />                      from Visitors<br />                      Here!&quot;</span></p>                      </td>                  </tr>                  <tr>                    <td align="center" valign="middle"><img src="images/seclodge-sidebar-div2.png" width="226" height="13" vspace="15" /></td>                  </tr>                </table>                </td>              </tr>              <tr align="left" valign="top">                <td align="left" valign="top"><ul id="slideshow">     <?php foreach ($lodge_pagesRecord['images'] as $index => $upload): ?>      <li>         <h3><?php echo $upload['info1'];?></h3>         <span><?php echo $upload['urlPath'] ?></span>         <p><?php echo $upload['info1'];?></p>         <a href="#"><img src="http://www.yellowstone-lodging.com/cmsAdmin/<?php echo $upload['thumbUrlPath'] ?>" alt=<?php echo $upload['info3'] ?> /></a>     </li>  	<?php endforeach ?>    </ul><div id="wrapper">		<div id="fullsize">			<div id="imgprev" class="imgnav" title="Previous Image"></div>			<div id="imglink"></div>			<div id="imgnext" class="imgnav" title="Next Image"></div>			<div id="image"></div>			<div id="information">		  </div>	  </div>  	<div id="thumbnails">			<div id="slideleft" title="Slide Left"></div>			<div id="slidearea">				<div id="slider"></div>			</div>	<div id="slideright" title="Slide Right"></div>	</div></div><script type="text/javascript" src="slider/compressed.js"></script><script type="text/javascript">	$('slideshow').style.display='none';	$('wrapper').style.display='block';	var slideshow=new TINY.slideshow("slideshow");	window.onload=function(){		slideshow.auto=true;		slideshow.speed=5;		slideshow.link="linkhover";		slideshow.info="information";		slideshow.thumbs="slider";		slideshow.left="slideleft";		slideshow.right="slideright";		slideshow.scrollSpeed=4;		slideshow.spacing=5;		slideshow.active="#fff";		slideshow.init("slideshow","image","imgprev","imgnext","imglink");	}</script>               </td>                </tr>              <tr align="left" valign="top">                <td align="left" valign="top">&nbsp;</td>                </tr>              <tr align="left" valign="top">                <td height="30" align="left" valign="top" class="content"><blockquote>                  <h1><?php echo htmlencode($lodge_pagesRecord['title']) ?></h1>                </blockquote></td>                </tr>              <tr align="left" valign="top">                <td align="left" valign="top" class="content"></td>              </tr>              <tr align="left" valign="top">                <td align="left" valign="top" class="content"><blockquote><?php echo $lodge_pagesRecord['content']; ?></blockquote></td>              </tr>              <tr align="left" valign="top">                <td align="left" valign="top" class="content">&nbsp;</td>              </tr>              <tr align="left" valign="top">                <td align="left" valign="top" class="content"><blockquote>                  <h2>Lodging &amp; Accommodations</h2>                </blockquote></td>              </tr>              <tr align="left" valign="top">                <td align="left" valign="top" class="content"><blockquote><?php echo htmlencode($lodge_pagesRecord['accommodations_text']) ?></blockquote></td>              </tr>              <tr align="left" valign="top">                <td align="left" valign="top" class="content">&nbsp;</td>              </tr>              <tr align="left" valign="top">                <td class="content"><blockquote>                    <h2>Activities</h2>                </blockquote></td>                </tr>              <tr align="left" valign="top">                <td class="content"><blockquote><?php echo $lodge_pagesRecord['activities_text']; ?></blockquote></td>                </tr>              <tr align="left" valign="top">                <td align="left" valign="top" class="content">&nbsp;</td>              </tr>              <tr align="left" valign="top">                <td class="content"><blockquote>                    <h2>Call to Make your Lodging Reservations Today!</h2>                </blockquote></td>                </tr>              <tr align="left" valign="top">                <td class="content01bold"><ul>                  <ul>                    <li>CALL: <a href="tel:<?php echo htmlencode($lodge_pagesRecord['phone']) ?>"><?php echo htmlencode($lodge_pagesRecord['phone']) ?></a></li>                    <li>GO TO OUR WEBSITE: <a href="<?php echo htmlencode($lodge_pagesRecord['website']) ?>" target="_blank"><?php echo htmlencode($lodge_pagesRecord['website']) ?></a></li>                  </ul>                </ul>                  </td>                </tr>                                          <tr align="left" valign="top">                <td height="25" align="left" valign="top">&nbsp;</td>                <td align="right" valign="middle" bgcolor="#DAD5C5" class="content">&nbsp;</td>              </tr>              <tr align="left" valign="top">                <td align="right" background="images/seclodge-map-bkg.jpg" STYLE="background-repeat:no-repeat;" bgcolor="#140B01"><table width="100%" border="0" cellspacing="0" cellpadding="0">                  <tr>                    <td width="30%" align="center" valign="middle"><?php foreach ($lodge_pagesRecord['logo_icon'] as $index => $upload): ?>                    <img src="http://www.yellowstone-lodging.com/cmsAdmin/<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="<?php echo htmlencode($upload['info3']) ?>" />                    <?php endforeach ?>                    </td>                    <td width="70%" align="center" valign="middle"><?php foreach ($lodge_pagesRecord['map_image'] as $index => $upload): ?>                    <img src="http://www.yellowstone-lodging.com/cmsAdmin/<?php echo $upload['urlPath'] ?>" alt="<?php echo htmlencode($upload['info3']) ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" vspace="5" />                    <?php endforeach ?>                    </td>                  </tr>                </table>                  </td>                <td width="226" align="right" valign="middle" bgcolor="#DAD5C5" class="content"><table width="217" border="0" cellspacing="0" cellpadding="3">                    <tr>                      <td width="24" align="left" valign="middle" class="content"><span class="content01bold"><img src="images/map_star.gif" width="24" height="23" align="left"></span></td>                      <td width="181" align="left" valign="top" class="content"><span class="content01bold"><?php echo htmlencode($lodge_pagesRecord['title']) ?> </span><br>                        <?php echo htmlencode($lodge_pagesRecord['address']) ?> </td>                    </tr>                    <tr>                      <td rowspan="4" align="left" valign="top" class="content">&nbsp;</td>                      <td align="left" valign="top" class="content"><img src="images/seclodge-sidebar-div.png" width="170" height="13" /></td>                    </tr>                    <tr>                      <td align="left" valign="top" class="content"><?php echo htmlencode($lodge_pagesRecord['miles_east_of_ynp']) ?> Miles East of <br>                        Yellowstone National <br>                        Park's East Gate</td>                    </tr>                    <tr>                      <td align="left" valign="top" class="content"><img src="images/seclodge-sidebar-div.png" width="170" height="13" /></td>                    </tr>                    <tr>                      <td align="left" valign="top" class="content"><?php echo htmlencode($lodge_pagesRecord['miles_west_of_cody']) ?> Miles West of Cody, WY</td>                    </tr>                </table></td>              </tr>          </table></td>        </tr>        <tr>          <td align="left" valign="top" bgcolor="#FEFEEC">&nbsp;</td>        </tr>      </table></td>          </tr>        </table>        <?php include "include_footer.php"; ?>