<?php header('Content-type: text/html; charset=utf-8');
  /* STEP 1: LOAD RECORDS - Copy this PHP code block near the TOP of your page */
  require_once "C:/Users/Dani/Documents/xampp-win32-1.6.6a/xampp/htdocs/janizm/cmsAdmin/lib/viewer_functions.php";
  include_once "C:/Users/Dani/Documents/xampp-win32-1.6.6a/xampp/htdocs/dBug/dBug.php"; 
    
  list($indexRecords, $indexMetaData) = getRecords(array(
    'tableName'   => 'index',
  ));  
  list($galleryRecords, $galleryMetaData) = getRecords(array( 
  'tableName' => 'gallery', 
  'where' => whereRecordNumberInUrl(1), 
  'limit' => '1', 
  )); 
  $record = @$galleryRecords[0]; // get first record  
  list($linksRecords, $linksMetaData) = getRecords(array(
    'tableName'   => 'links',
  ));
  list($contactRecords, $contactMetaData) = getRecords(array(
    'tableName'   => 'contact',
  ));
  // show error message if no matching record is found
  if (!$record) {
    print "Record not found!";
    exit;
  }

?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/janizm.css" rel="stylesheet" type="text/css" />
<title><?php echo $record['name'] ?></title>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<body>
	<div class="container">
       	<?php
		include("navigation/navigation.php");
		?>
        <div class="mainText">
				<?php echo $record['content'] ?>
			<div class="flashContent">
				<script language="JavaScript" type="text/javascript">
					AC_FL_RunContent(
						'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
						'width', '630',
						'height', '420',
						'src', 'slideshowpro',
						'quality', 'high',
						'pluginspage', 'http://www.adobe.com/go/getflashplayer',
						'align', 'middle',
						'play', 'true',
						'loop', 'true',
						'scale', 'showall',
						'wmode', 'window',
						'devicefont', 'false',
						'id', 'slideshowpro',
						'bgcolor', '#ffffff',
						'name', 'slideshowpro',
						'menu', 'true',
						'allowFullScreen', 'false',
						'allowScriptAccess','sameDomain',
						'movie', 'slideshowpro',
						'salign', '',
						'FlashVars','xmlfile=http://localhost/janizm/images.xml.php?recordNum=<?php echo $record ['num']?>'
						); 
				</script>
			</div>
        </div>
        <br class="clearBoth" />
		</div>
</body>
</html>
