<?php
  /* STEP 1: LOAD RECORDS - Copy this PHP code block to the TOP of your page BEFORE anything else. */
 require_once "/home1/terreryb/public_html/terrerybovich/cmsAdmin/lib/viewer_functions.php";
  
 list($common_informationRecords, $common_informationMetaData) = getRecords(array(
    'tableName'   => 'common_information',
    'where'       => whereRecordNumberInUrl(1),
    'limit'       => '1',
  ));
  $common_informationRecord = @$common_informationRecords[0]; // get first record
 
 list($home_page_slide_show_2015Records, $home_page_slide_show_2015MetaData) = getRecords(array(
    'tableName'   => 'home_page_slide_show_2015',
    'loadUploads' => true,
    'allowSearch' => false,
  ));
  
 // load records
  list($google_font_namesRecords, $google_font_namesMetaData) = getRecords(array(
    'tableName'   => 'google_font_names',
  ));
    
    list($navigation_menu_link_textRecords, $navigation_menu_link_textMetaData) = getRecords(array(
    'tableName'   => 'navigation_menu_link_text',
    'loadUploads' => true,
    'allowSearch' => false,
  ));
?>
<?php echo "<?xml version='1.0'?>\n"; ?>

<!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>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<head>
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width, user-scalable=yes">
<title>T e r r e &nbsp; R y b o v i c h &nbsp; W e l c o m e s &nbsp; Y o u</title>
<meta http-equiv="Content-Style-Type" content="text/css" />
<link rel="stylesheet" type="text/css" href="css/terre2.css.php" />
<link rel="stylesheet" type="text/css" href="css/fonts.css.php" />
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=<?php 
    $output = ''; 
    foreach ($google_font_namesRecords as $record) { $record['name'] = preg_replace("/[, ]/", "+", $record['name']);
      $output .= $record['name'] . "|"; 
    } 
    $output = rtrim($output,"|"); // remove trailing pipe 
    print $output; 
?>">
<link rel="shortcut icon" type="image/ico" href="/favicon.ico" />
<meta name="description" content="<?php echo $common_informationRecord['site_description'] ?>">
<meta name="keywords" content="<?php echo $common_informationRecord['keywords'] ?>">
<link rel="stylesheet" href="css/slideshow2.css">
<script src="Scripts/mootools-1.3.2-core.js"></script>
<script src="Scripts/mootools-1.3.2.1-more.js"></script>
<script src="Scripts/slideshow.js"></script>
<script type="text/javascript">
        window.addEvent('domready', function(){
            
    
   
 
 
 
  var data = { <?php $blank = "'" ?><?php 
    $output = ''; 
    foreach ($home_page_slide_show_2015Records as $record) { foreach ($record['image'] as $index => $upload) {foreach ($record['size_image'] as $index2 => $upload2){ $record['title'] = preg_replace("/['\"]/","&acute;", htmlencode($record['title']) ) ;
 $record['size_of_work'] = preg_replace("/['\"]/","&acute;", htmlencode($record['size_of_work']) );  
$sizeImageUrl = $upload2['thumbUrlPath'];
     $output .= "'". $common_informationRecord['master_url'] . $upload['thumbUrlPath']. "'". ": {caption: "
."'".strtoupper($record['title'])  ."<br>" .strtoupper($record['size_of_work']) .  " -- ". $sizeImageUrl ."'" .","."href:"."'" ."homepageslidedetail.php?".$record['num']."'" ." }"  . "," ;
    } }  }
 
    $output = rtrim($output,","); // remove trailing comma 
    print $output; 
?>
};

            new Slideshow('show', data, { captions: true, resize: false, controller: false, thumbnails: false, overlap: true,
delay: 4500, duration: 250, height: 734, hu: '', width: 979 });
            
        });
    </script>
</head>

<body >
<div align="center">
<br />
<table  align="center" width="80%" cellpadding="15">
  <tr>
    <td align="center" valign="top"><table  border="0" align="center" cellpadding="0" cellspacing="0" >
        <tr>
          <td align="right" valign="middle"><a href="index.php"><span class="masthead_font">Terre&nbsp;Rybovich</span></a></td>
          <td><img src="images/clear.gif" alt="" width="25" height="25" /></td>
          <?php foreach ($navigation_menu_link_textRecords as $record): ?>
          <td align="center" valign="middle"><a  href="<?php echo htmlencode($record['linked_page']) ?>" class="navigation"><?php echo htmlencode($record['title']) ?></a></td>
          <td><img src="images/clear.gif" alt="" width="25" height="25" /></td>
          <?php endforeach ?>
        </tr>
      </table></td>
  </tr>
</table>
<br />
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="60%" class="heading_font" align="center" style="text-align:center;">Click/Tap An Image To Learn More<br />
      <br /></td>
  </tr>
  <tr>
    <td align="center" valign="top"><div  id="show" class="slideshow" style="height:800px;"></div>
      <br />
      <div><img src="<?php echo $sizeImageUrl ?>"  /></div>
      <br /></td>
  </tr>
  <tr>
    <td align="center"  width="25%" style="text-align:center" valign="middle"><span  class=" heading_font">
      <?php if ($common_informationRecord['horizontal_slide_title']): ?>
      <br />
      <i><?php echo $common_informationRecord['horizontal_slide_title'] ?></i>
      <?php else: ?>
      &nbsp;
      <?php endif ?>
      </span><br /></td>
  </tr>
</table>
<table  border="0" align="center" cellpadding="5">
  <tr>
    <td><div   align="center"><a href="http://www.jkwebdesigns.com" >Terre Rybovich maintains her own web site 
        using<br />
        <strong>Client Controlled Content Management</strong><br />
        Designed by <i>JKW</i>eb<i>D</i>esigns</a>&nbsp; &nbsp;</div></td>
  </tr>
  <tr>
    <td valign="middle"><div align="center"><a  href="http://www.jkwebdesigns.com" style="text-decoration:none"><img src="/images/webdesigns advert3.jpg" alt="JKWebDesigns.com" width="125" height="32" border="0" /></a></div></td>
  </tr>
</table>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span class="tiny_text_font">
<?php showExecuteSeconds() ?>
seconds</span>
</body>
</html>
