<?
include_once("includes/session_inc.php");?>
<?
include_once("includes/session_inc.php");?>
<?php header('Content-type: text/html; charset=utf-8'); ?>
<?php
  $libraryPath = 'cms/lib/viewer_functions.php';
  $dirsToCheck = array('/nfs/c02/h09/mnt/23832/domains/emeritihealth.org/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."); }

  list($meta_tagsRecords, $meta_tagsMetaData) = getRecords(array(
    'tableName'   => 'meta_tags',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $meta_tagsRecord = @$meta_tagsRecords[0]; 
  
   list($header_menu_linksRecords, $header_menu_linksMetaData) = getRecords(array(
    'tableName'   => 'header_menu_links',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $header_menu_linksRecord = @$header_menu_linksRecords[0]; 

  if (!$meta_tagsRecord) {
    header("HTTP/1.0 404 Not Found");
    print "Record not found!";
    exit;
  }
  
  list($about_title_photosRecords, $about_title_photosMetaData) = getRecords(array(
    'tableName'   => 'about_title_photos',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $about_title_photosRecord = @$about_title_photosRecords[0]; 

  if (!$about_title_photosRecord) {
    header("HTTP/1.0 404 Not Found");
    print "Record not found!";
    exit;
  }
  
  list($about_subcategoriesRecords, $about_subcategoriesMetaData) = getRecords(array(
    'tableName'   => 'about_subcategories',
  ));
  
  

?>
<!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>
<title>Emeriti Retirement Health Solutions: About Emeriti</title>
<?
include_once("includes/header-new.php");?>
<!--CONTENT-->
<div id="page-content">
<!--BANNER-->
<div id="photo-banner"><div id="section"><p><?php echo $about_title_photosRecord['title'] ?></p></div>
<div style="text-align:right"><?php foreach ($about_title_photosRecord['image_gallery'] as $upload): ?> <?php if ($upload['hasThumbnail']): ?><?php elseif ($upload['isImage']): ?>
<img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="emeriti" border="0"/>
<?php endif ?>
<?php endforeach ?>
</div>
</div>
<!--END BANNER-->

<!--NAVIGATION TABS AND CONTENT--><div id="page-body" class="clearfix">

<!--LEFT COLUMN--><div id="left">
<!--Tab Buttons--><div class="navigation"><div id="paginate-slider3" class="pagination">
<div id="pages">
<!--NAVIGATION LINKS-->
<div class="arrowlistmenu">
<?php $tier1_buffer = ''; ?> 
<?php $tier2_buffer = ''; ?> 
<?php foreach ($about_subcategoriesRecords as $record): ?>  
 
 
<?php if(!$record['3rd_tier'] && $tier2_buffer): ?> 
  <?php echo $tier2_buffer ?> 
  <?php $tier2_buffer = ''; ?> 
<?php endif ?> 
 
<?php if($record['1st_tier'] && $tier1_buffer): ?> 
  <?php echo $tier1_buffer ?> 
  <?php $tier1_buffer = ''; ?> 
<?php endif ?> 
 
 
 
<?php if($record['top_menu_item']): ?> 
  <h3 class="menuheader" style="cursor: default"><a href="#" class="toc"><?php echo $record['title'] ?></a></h3><div></div> 
<?php endif ?> 
 
<?php if($record['1st_tier']): ?> 
  <h3 class="menuheader expandable"><a href="#" class="toc"><?php echo $record['title'] ?></a></h3> 
  <?php if($record['1st_tier_drop_down']): ?> 
    <ul class="categoryitems"> 
    <?php $tier1_buffer = '</ul>' ?> 
  <?php endif ?>  
<?php endif ?>  
 
<?php if($record['2nd_tier']): ?> 
  <li><a href="#" class="toc"><?php echo $record['title'] ?></a></li> 
<?php endif ?>  
 
<?php if($record['2nd_tier_with_3rd_tier']): ?> 
  <li><a href="#" class="subexpandable"><?php echo $record['title'] ?></a> 
  <ul class="subcategoryitems" style="margin-left: 15px"> 
  <?php $tier2_buffer = '</ul></li>' ?> 
<?php endif ?>  
 
<?php if($record['3rd_tier']): ?> 
  <li><a href="#" class="toc"><?php echo $record['title'] ?></a></li> 
<?php endif ?>  
 
<?php endforeach ?> 
 
 
<?php echo $tier2_buffer ?> 
<?php echo $tier1_buffer ?>

</div>
<!--CLOSE NAVIGATION LINKS-->

<!--News-->
<p class="h1">Resources</p>
<div id="sliver"></div>
<!--Close Page Links--></div>

<div id="news-articles">
<!--News LINKS-->
<div class="applemenu">
<?php foreach ($about_subcategoriesRecords as $record): ?>
<?php if($record['resources']): ?>
<p style="line-height: 8px;"><a href="#" class="toc"><?php echo $record['title'] ?></a></p>
<?php endif ?>
<?php endforeach ?>
	<div class="submenu"></div>
</div>
<!--Close News Articles--></div>
<div id="news-bottom"></div>

<!--Close Tab Buttons--></div></div>
<!--Close Left Column--></div>


<!--RIGHT COLUMN--><div id="right">  
<!--Enables Tabbing Content--><div id="slider3" class="sliderwrapper">
<!--Font Resizing DIV--><div class="content1">

<?php foreach ($about_subcategoriesRecords as $record): ?>
<div class="contentdiv">
<div class="page-tab-content">
<div id="breadcrumb"><?php echo $record['breadcrumb'] ?></div>
<h1><?php echo $record['title'] ?></h1>
<!--Scrolling DIV's--><div class="scroll-pane">
<div style="height: <?php echo $record['content_height'] ?>px">
<?php echo $record['content'] ?>
</div>
</div><!--Close Scroll DIV's-->
</div></div>
 <?php endforeach ?>

</div><!--Close Tabbing DIV-->
</div><!--Close Font Resizing DIV-->
</div><!--Close Right Column-->
</div><!--Close Page Content-->

<div class="content-bar"></div>
<div class="green-content-bar"></div>

</div><!--END CONTENT-->
<?php require_once("includes/footer.php"); ?>
</body>
</html>
