<?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/content/34/10381234/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 record from 'master_info'
  list($master_infoRecords, $master_infoMetaData) = getRecords(array(
    'tableName'   => 'master_info',
    'where'       => '', // load first record
    'loadUploads' => false,
    'allowSearch' => false,
    'limit'       => '1',
  ));
  $master_infoRecord = @$master_infoRecords[0]; // get first record
  if (!$master_infoRecord) { dieWith404("Record not found!"); } // show error message if no record found



/* ----- 1/5 - SECTION SPECIFIC INFO ----- */

  // load record from 'health_articles_content'
  list($health_articles_contentRecords, $health_articles_contentMetaData) = getRecords(array(
    'tableName'   => 'health_articles_content',
    'where'       => whereRecordNumberInUrl(0),
    'loadUploads' => true,
    'allowSearch' => false,
    'limit'       => '1',
  ));
  $health_articles_contentRecord = @$health_articles_contentRecords[0]; // get first record
  if (!$health_articles_contentRecord) { dieWith404("Record not found!"); } // show error message if no record found
	

?>
<!DOCTYPE HTML>
<html >
<head>
  <meta charset="UTF-8">

  <meta name="description" content="">
  <meta name="keywords" content="">
  <!-- <meta http-equiv="Content-Type" content="text/html;charset=iso8859-1"> -->



<!--  2/5 - PAGE NAME  -->
  <title>
		<?php if ($health_articles_contentRecord['page_title']): ?>
      <?php echo htmlencode($health_articles_contentRecord['page_title']) ?>
    <?php elseif (!$health_articles_contentRecord['page_title']):  ?>
      <?php echo htmlencode($master_infoRecord['meta_title_prefix']) ?> :: <?php echo htmlencode($health_articles_contentRecord['title']) ?>
    <?php endif ?>	
	</title>
  
  <?php include("ext_css.php"); ?>
  
  <?php include("ext_scripts.php"); ?>

  <link rel="shortcut icon" href="favicon.ico">

</head>
<body>
  <?php include("ext_alert_top.php"); ?>
  <div class="site_container">  
		<?php include("ext_header.php"); ?>
    <div class="clear"></div>
  
    <div id="block_nav_primary">
      	<?php include("ext_menu.php"); ?>
    </div><!-- .block_nav_primary -->
  
    <div class="clear"></div>
  
  <div class="container_12">
    <div class="grid_12">
       <div class="breadcrumbs">



<!--  3/5 - BREADCRUMBS  -->

	      <a href="/index.php">Home</a><span>&#8250;</span><a href="health_articles_list.php">Health Articles</a><span>&#8250;</span><span class="current"><?php echo htmlencode($health_articles_contentRecord['title']) ?></span>
       </div><!-- .breadcrumbs -->
    </div><!-- .grid_12 -->
  </div><!-- .container_12 -->

  <div class="clear"></div>

  <section id="main">
    <div class="container_12">
       <div id="sidebar" class="grid_3">
       
					<?php include("ext_side_categories_health_articles.php"); ?>
          
					<?php include("ext_side_archives_health_articles.php"); ?>
          
          <?php include("ext_side_tags.php"); ?>
          
          <?php include("ext_side_newsletter.php"); ?>
          
          <?php include("ext_side_banners.php"); ?>
          
          
       </div><!-- .sidebar -->

       <div id="content" class="grid_9">



<!--  4/5 - PAGE TITLE  -->

          <h1 class="page_title"><?php echo htmlencode($health_articles_contentRecord['title']) ?></h1>
          <br/><br/>
          
          
          
<!--  5/5 - CONTENT  -->
          
          <?php echo $health_articles_contentRecord['content']; ?>
      </div><!-- #content -->

      <div class="clear"></div>

    </div><!-- .container_12 -->
  </section><!-- #main -->

  <div class="clear"></div>

    <?php include("ext_footer.php"); ?>

</html>
