<?php
  
  // load viewer library
  $libraryPath = 'cmsAdmin/lib/viewer_functions.php';
  $dirsToCheck = array('','../','../../','../../../');
  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($google_codeRecords, $google_codeMetaData) = getRecords(array(
    'tableName'   => 'google_code',
    'allowSearch' => '0',
    'limit'       => '1',
  ));
  $google_codeRecord = @$google_codeRecords[0]; // get first record
  
  // load records
  list($other_seoRecords, $other_seoMetaData) = getRecords(array(
    'tableName'   => 'other_seo',
    'allowSearch' => '0',
    'limit'       => '1',
  ));
  $other_seoRecord = @$other_seoRecords[0]; // get first record
  
  // load records
  list($galleryRecords, $galleryMetaData) = getRecords(array(
    'tableName'   => 'gallery',
    'perPage'     => '8',
  ));
  
  // show error message if no matching record is found
  if (!$other_seoRecord) { 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>

	<title>Bumper Bears: <?php echo $other_seoRecord['gallery_seo_title'] ?></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="description" content="<?php echo $other_seoRecord['gallery_seo_description'] ?>" />
	<meta name="keywords" content="<?php echo $other_seoRecord['gallery_seo_keywords'] ?>" />
	<meta name="Robots" content="index, follow" />
    
<?php include("includes/header.inc.php"); ?>    

</head>
<body>
	
    <div id="header">
    <div class="wrap">
    	
        <h1><a href="index.php" title=""></a></h1>
        
        <div id="main-navigation">
            <ul class="dd-menu">
                <li><a href="index.php" title="Home Page">Home</a></li>
                <li><a href="facilities.php" title="Facilities">Facilities</a><li>
                <li><a href="staff.php" title="Staff">Staff</a></li>
                <li><a href="nutrition.php" title="Nutrition">Nutrition</a></li>
                <li><a href="testimonials.php" title="Programs">Testimonials</a></li>
                <li class="current-menu-item"><a href="gallery.php" title="Gallery">Gallery</a></li>
                <li><a href="faq.php" title="FAQ">FAQ's</a></li>
                <li><a href="contact.php" title="Contact">Contact us</a></li>
            </ul><!-- end dd-menu -->
                    
            </div><!-- end main-navigation -->
        

    </div><!-- end wrap -->
    </div><!-- end header -->
    
    <div id="intro">
        <div class="wrap">
        	
            <div class="c-8">
            	<h1>Gallery</h1>
                <p class="breadcrumbs">You are here: <a href="index.php">Home</a> &raquo; <strong>Gallery</strong> </p>
            </div>
            
            <div class="c-4">
            	<div class="widget widget-social">
                    <ul>
						<?php include("includes/social.inc.php"); ?>
                    </ul>
             	 </div>
            </div>
            
        </div><!-- end wrap -->
        </div><!-- end intro -->
    
<div id="content">
    	
        <div class="wrap">
            <div class="c-12">
            	
                <h2 class="portfolio-title">Gallery</h2>
                <ul class="portfolio-menu">
                	<li class="c-3 four-column">
                        
                        <p class="image">
                        	<a href="assets/gallery-2-col-assets-1.jpg" rel="example_group">
                                <span class="gallery-4col-mask"></span>
                                <img height="157" width="194" title="" alt="" src="assets/gallery-4-col-assets-1.jpg" />
                            </a>
                        </p>
                    </li>
                    <li class="c-3 four-column">
                        
                        <p class="image">
                        	<a href="assets/slider_asset__0001_.jpg" rel="example_group">
                                <span class="gallery-4col-mask"></span>
                                <img height="157" width="194" title="" alt="" src="assets/gallery-4-col-assets-2.jpg" />
                            </a>
                        </p>
                    </li>
                    <li class="c-3 four-column">
                        
                        <p class="image">
                        	<a href="assets/slider_asset__0005_.jpg" rel="example_group">
                                <span class="gallery-4col-mask"></span>
                                <img height="157" width="194" title="" alt="" src="assets/gallery-4-col-assets-3.jpg" />
                            </a>
                        </p>
                    </li>
                    <li class="c-3 four-column">
                        
                        <p class="image">
                        	<a href="assets/slider_asset__0001_.jpg" rel="example_group">
                                <span class="gallery-4col-mask"></span>
                                <img height="157" width="194" title="" alt="" src="assets/gallery-4-col-assets-4.jpg" />
                            </a>
                        </p>
                    </li>
                    <li class="c-3 four-column clearfix">
                        
                        <p class="image">
                        	<a href="assets/slider_asset__0001_.jpg" rel="example_group">
                                <span class="gallery-4col-mask"></span>
                                <img height="157" width="194" title="" alt="" src="assets/gallery-4-col-assets-4.jpg" />
                            </a>
                        </p>
                    </li>
                    <li class="c-3 four-column">
                        
                        <p class="image">
                        	<a href="assets/slider_asset__0005_.jpg" rel="example_group">
                                <span class="gallery-4col-mask"></span>
                                <img height="157" width="194" title="" alt="" src="assets/gallery-4-col-assets-3.jpg" />
                            </a>
                        </p>
                    </li>
                    <li class="c-3 four-column">
                        
                        <p class="image">
                        	<a href="assets/slider_asset__0001_.jpg" rel="example_group">
                                <span class="gallery-4col-mask"></span>
                                <img height="157" width="194" title="" alt="" src="assets/gallery-4-col-assets-2.jpg" />
                            </a>
                        </p>
                    </li>
                    <li class="c-3 four-column">
                        
                        <p class="image">
                        	<a href="assets/gallery-2-col-assets-1.jpg" rel="example_group">
                                <span class="gallery-4col-mask"></span>
                                <img height="157" width="194" title="" alt="" src="assets/gallery-4-col-assets-1.jpg" />
                            </a>
                        </p>
                    </li>
                </ul>
                <div class="pagination">
                    <ul>
                        <li><a class="previous-1" href="#"><span class="circle-arrow-left"></span>Previous</a></li>
                        <li><a class="current" href="#">1</a></li>
                        <li><a href="#">2</a></li>
                        <li><a href="#">3</a></li>
                        <li><a href="#">4</a></li>
                        <li><a href="#">5</a></li>
                        <li><a class="next-1" href="#">Next<span class="circle-arrow"></span></a></li>
                    </ul>
                </div>
            
            </div>    
            </div><!-- end wrap -->
        
    </div><!-- end content -->
    
    <div id="footer">
    <div class="wrap">
    
    </div><!-- end wrap -->
    
        <div id="sub-footer" class="clearfix">
            
<?php include("includes/subfooter.inc.php"); ?>            
                    
        </div><!-- end sub-footer -->

    </div><!-- end footer -->
    
</body>
</html>