<?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('/homepages/37/d302865264/htdocs/','','../','../../','../../../');
  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 'our_helicopters_list'
  list($our_helicopters_listRecords, $our_helicopters_listMetaData) = getRecords(array(
    'tableName'   => 'our_helicopters_list',
    'where'       => whereRecordNumberInUrl(0),
    'loadUploads' => true,
    'allowSearch' => false,
    'limit'       => '1',
  ));
  $our_helicopters_listRecord = @$our_helicopters_listRecords[0]; // get first record
  if (!$our_helicopters_listRecord) { dieWith404("Record not found!"); } // show error message if no record found
  
  // load record from 'our_helicopters'
  list($our_helicoptersRecords, $our_helicoptersMetaData) = getRecords(array(
    'tableName'   => 'our_helicopters',
    'where'       => '', // load first record
    'loadUploads' => true,
    'allowSearch' => false,
    'limit'       => '1',
  ));
  $our_helicoptersRecord = @$our_helicoptersRecords[0]; // get first record
  if (!$our_helicoptersRecord) { dieWith404("Record not found!"); } // show error message if no record 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" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Our Helicopters</title>
<meta http-equiv="keywords" content=" " />
<meta http-equiv="description" content=" " />
       <style type="text/css" media="screen">
    <!--
    	#container {
	margin-top: 0px;
	margin-right: auto;
	margin-bottom: 0px;
	margin-left: auto;
	width: 100%;
        }
        
        /* slider specific CSS */
        .sliderGallery {
	overflow: hidden;
	position: relative;
	height: 380px;
	width: 100%;
        }
        
        .sliderGallery UL {
	position: absolute;
	overflow: none;
	white-space: nowrap;
	padding: 0;
	list-style-image: none;
	list-style-type: none;
	margin-top: 0;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
        }
        
        .sliderGallery UL LI {
	display: inline;
        }
        
        .sliderOuter {
	width: 100%;
	height: 45px;
	margin-top: 324px;
	padding: 1px;
	position: relative;
	margin-right: auto;
	margin-left: auto;
	background-image: url(images/blue-banner.jpg);
	background-repeat: repeat-x;
        }
	.sliderContainer {
	width: 685px;
	height: 40px;
	position: relative;
	margin-right: auto;
	margin-left: auto;
        }	
		.slider {
	width: 340px;
	height: 15px;
	margin-top: 13px;
	padding: 1px;
	position: relative;
	background: url(images/slidebar.png) no-repeat;
	margin-right: auto;
	margin-left: auto;
	float: left;
        }
        
        .handle {
	position: absolute;
	cursor: move;
	height: 15px;
	width: 80px;
	top: 0px;
	background: url(images/scroller.png) no-repeat;
	z-index: 100;
        }
        
        .slider span {
	color: #6b8593;
	font-size: 9pt;
	cursor: pointer;
	position: absolute;
	z-index: 110;
	top: 3px;
	font-family: Arial, Helvetica, sans-serif;
        }
        
        .slider .slider-lbl1 {
	left: 0px;
        }
        
        .slider .slider-lbl2 {
	left: 20px;
        }
        
        .slider .slider-lbl3 {
	left: 40px;
        }

        .slider .slider-lbl4 {
	left: 60px;
        }

        .slider .slider-lbl5 {
	left: 80px;
        }
		
		.slider .slider-lbl6 {
	left: 100px;
        }
    -->
    </style>

    <!-- updated to jQ 1.2.6 and UI 1.5.2 2008-11-28 -->
<script src="jquery-1.2.6.js" type="text/javascript" charset="utf-8"></script>
    <script src="jquery-ui-full-1.5.2.min.js" type="text/javascript" charset="utf-8"></script>
    
    <script type="text/javascript" charset="utf-8">
        window.onload = function () {
            var container = $('div.sliderGallery');
            var ul = $('ul', container);
            
            var itemsWidth = ul.innerWidth() - container.outerWidth();
            
            $('.slider', container).slider({
                min: 0,
                max: itemsWidth,
                handle: '.handle',
                stop: function (event, ui) {
                    ul.animate({'left' : ui.value * -1}, 1000);
                },
                slide: function (event, ui) {
                    ul.css('left', ui.value * -1);
                }
            });
        };
    </script>
<link href="fly.css" rel="stylesheet" type="text/css" />


</head>
<body><div id="wrapper">
  
<div id="container">
  <div class="sliderGallery">
    <ul>
      <li>
        <?php foreach ($our_helicoptersRecord['image_1'] as $index => $upload): ?>
        <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" />
        <?php endforeach ?>
        </blockquote>
        <!-- STEP2a: /Display Uploads -->
      </li>
      <li>
        <?php foreach ($our_helicoptersRecord['image_2'] as $index => $upload): ?>
        <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" />
        <?php endforeach ?>
        </blockquote>
        <!-- STEP2a: /Display Uploads -->
      </li>
      <li>
        <?php foreach ($our_helicoptersRecord['image_3'] as $index => $upload): ?>
        <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" />
        <?php endforeach ?>
        </blockquote>
        <!-- STEP2a: /Display Uploads -->
      </li>
      <li>
        <?php foreach ($our_helicoptersRecord['image_4'] as $index => $upload): ?>
        <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" />
        <?php endforeach ?>
        </blockquote>
        <!-- STEP2a: /Display Uploads -->
      </li>
      <li>
        <?php foreach ($our_helicoptersRecord['image_5'] as $index => $upload): ?>
        <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" />
        <?php endforeach ?>
        </blockquote>
        <!-- STEP2a: /Display Uploads -->
      </li>
      <li>
        <?php foreach ($our_helicoptersRecord['image_6'] as $index => $upload): ?>
        <img src="<?php echo $upload['urlPath'] ?>" width="<?php echo $upload['width'] ?>" height="<?php echo $upload['height'] ?>" alt="" />
        <?php endforeach ?>
        </blockquote>
        <!-- STEP2a: /Display Uploads -->
      </li>
    </ul>
    <div class="sliderOuter">
           <div class="sliderContainer">
            <div class="slider">
            <div class="handle"></div>
                <span class="slider-lbl1"></span>
                <span class="slider-lbl2"></span>
                <span class="slider-lbl3"></span>
                <span class="slider-lbl4"></span>
                <span class="slider-lbl5"></span>
                <span class="slider-lbl6"></span>
        </div>
            <div id="strapline">First Class Helicopters for Discerning Pilots</div>
      </div>
    </div>
  </div>
</div>

<div id="content_container">
<div id="navigation">
<img src="images/logo.png" alt="" width="180" height="85" border="0" /> <br /><br />
  <a href="index.php" class="nav">HOME</a><br />
    <a href="our-helicoptersList.php" class="nav">OUR HELICOPTERS</a><br />
    <?php foreach ($our_helicopters_listRecords as $record): ?>
    <a href="<?php echo $record['_link'] ?>" class="sub"><?php echo $record['title'] ?></a><br/>
    <?php endforeach ?>

    <?php if (!$our_helicopters_listRecords): ?>
    <?php endif ?><br />
    <a href="gallery-of-helicopters.php" class="nav">GALLERY</a><br />
     <a href="fly7news.php" class="nav">NEWS</a><br />
<a href="helicopters-for-sale.php" class="nav">FOR SALE</a><br /><br />
    <a href="contact-fly7.php" class="nav" ><strong>CONTACT</strong></a>
</div>
<div id="content"> 
  <div id="content_text_no_image">
<div id="images">
        <?php foreach ($our_helicopters_listRecord['thumbnail_images'] as $index => $upload): ?>
        
          <img src="<?php echo $upload['thumbUrlPath'] ?>" width="<?php echo $upload['thumbWidth'] ?>" height="<?php echo $upload['thumbHeight'] ?>" alt="" /><br/>


        <?php endforeach ?>
        </blockquote>
      <!-- STEP2a: /Display Uploads --></div>
 <!-- STEP2: Display Record (Paste this where you want your record to appear) -->
    <h1><?php echo htmlencode($our_helicopters_listRecord['title']) ?></h1>
     <?php echo $our_helicopters_listRecord['content']; ?><br/>
     

      
<a href="<?php echo $our_helicopters_listMetaData['_listPage'] ?>">&lt;&lt; back to list page</a>  <!-- /STEP2: Display Record -->
  <p></p>
  </div>
  <div id="mercer"><a href="http://www.mercerdesign.co.uk" title="Mercer Design" target="_blank" class="mercer">SITE BY MERCER</a></div>
</div>
  
</div></div>
</body>
</html>



