<?php
	
	
	$documentId = 163049;
	$documentPath = "main.djru.photos.163049";
	
		
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251">
<TITLE>Фоторепортаж вечеринки: Sex On The Beach @ Superbeach | Фотогалереи DJ.ru</TITLE>
<META NAME="keywords" CONTENT="Фотографии: Sex On The Beach @ Superbeach | Фотогалереи DJ.ru">
<META NAME="description" CONTENT="Фотографии: Sex On The Beach @ Superbeach | Фотогалереи DJ.ru">


<link href="/styles.css" type="text/css" rel="stylesheet">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">




</HEAD>
<body>
<?php
	include($_SERVER['DOCUMENT_ROOT'] . '/includes/shapka.phtml');
?>
<div id="line3"><spacer></spacer></div>
<?php
	include($_SERVER['DOCUMENT_ROOT'] . '/includes/menu.phtml');
?>

<table width="100%" border="0" cellspacing="0" cellpadding="0" id="line5">
<tr>
<td width="24%" valign="top">
<div id="line6">
  	<?php
		include($_SERVER['DOCUMENT_ROOT'] . '/includes/articles.phtml');
		include($_SERVER['DOCUMENT_ROOT'] . '/includes/sales.phtml');
	    print '</div>';
	    include($_SERVER['DOCUMENT_ROOT'] . '/includes/music_man.phtml');
      	include($_SERVER['DOCUMENT_ROOT'] . '/includes/newslenta.phtml');
    ?>    
    </td>
    <td width="4%" rowspan="2">&nbsp;</td>
    <td width="43%" rowspan="2" valign="top">
      <div id="line26">

		
  
<?php
	$isInner = false;
	include($_SERVER['DOCUMENT_ROOT'] . '/photos/document163049_digest.phtml');

	if (isset($_SERVER['PATH_INFO']) && preg_match('#/page([0-9]+)#', $_SERVER['PATH_INFO'], $m)) {
		$currentPage = $m[1];
	} else {
		$currentPage = 1;
	}
?>		

		
		                        
                                			
    	    
    	    	    	
    	    	        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        		  			  			  	
		  			  	
		  			  			  	
			        
						
		                
                
			        <div class="nav-left">
<?php

		$totalItems = 76;
		$totalPages = 4;
		$perPage = 21;
		$perRow = 10;
		
		$startPage = $currentPage;
		if ($startPage + $perRow > $totalPages) $startPage = $totalPages - $perRow + 1;
		if ($startPage < 1) $startPage = 1; 
	
		$endPage = min($totalPages, $startPage + $perRow);
		
		$pageSpan = ($startPage - 1) * $perPage + 1;
		$pageSpan .= ' &mdash; ';
		$pageSpan .= min($totalItems, $startPage * $perPage);
?>	

        <?php print $pageSpan; ?> / 76
        </div>
        <div class="nav-right"><?php
        	
        	if ($startPage != 1) {
        		print '<a href="/photos/document163049.phtml/page' . max($currentPage - $perRow, 1) . '">&lt;&lt;</a> |';
        	}
        
        	for ($i = $startPage; $i <= $endPage; ++$i) {
        		if ($i != $startPage) print ' | ';
        		if ($i == $currentPage) {
        			print '<span>' . $i . '</span>';
        		} else {
        			print '<a href="/photos/document163049.phtml/page' . $i . '">' . $i . '</a>';
        		}
        	}
        	
        	if ($endPage != $totalPages) {
        		print ' | <a href="/photos/document163049.phtml/page' . min($currentPage + $perRow, $totalPages) . '">&gt;&gt;</a>';
        	}
        	
?>
	        </div>
	        <div class="hr3"><spacer></spacer></div>
 		 		
 		               
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="foto2">
<?php
		
		$onPhoto = $community->PhotoMeGetList('163050,163051,163052,163053,163054,163055,163056,163057,163058,163059,163060,163061,163062,163063,163064,163065,163066,163067,163068,163069,163070,163071,163072,163073,163074,163075,163076,163077,163078,163079,163080,163081,163082,163083,163084,163085,163086,163087,163088,163089,163090,163091,163092,163093,163094,163095,163096,163097,163098,163099,163100,163101,163102,163103,163104,163105,163106,163107,163108,163109,163110,163111,163112,163113,163114,163115,163116,163117,163118,163119,163120,163121,163122,163123,163124,163125');
		
	
    	include($_SERVER['DOCUMENT_ROOT'] . '/photos/document163049_page' . $currentPage . '.phtml'); 
?>		        
          
          <tr>
            <td colspan="3" class="clearline">&nbsp;</td>
          </tr>
        </table>
        
        
         
        <div class="hr3"><spacer></spacer></div>
        	<div class="nav-left">
	    <?php 
    		print $pageSpan; 
    	?> / 76</div>
        <div class="nav-right"><?php
        	
        	if ($startPage != 1) {
        		print '<a href="/photos/document163049.phtml/page' . max($currentPage - $perRow, 1) . '">&lt;&lt;</a> |';
        	}
        
        	for ($i = $startPage; $i <= $endPage; ++$i) {
        		if ($i != $startPage) print ' | ';
        		if ($i == $currentPage) {
        			print '<span>' . $i . '</span>';
        		} else {
        			print '<a href="/photos/document163049.phtml/page' . $i . '">' . $i . '</a>';
        		}
        	}
        	
        	if ($endPage != $totalPages) {
        		print ' | <a href="/photos/document163049.phtml/page' . min($currentPage + $perRow, $totalPages) . '">&gt;&gt;</a>';
        	}
        	
        ?>
	        </div>
				
		
        <h3><A href="/">Главная</A>&nbsp;&nbsp;|&nbsp;&nbsp;<A href="/photos/index">Фотогалереи</A></h3>
      </div>
    </td>
    <td width="4%" rowspan="2">&nbsp;</td>
    <td width="25%" valign="top">
      <div id="line14"><?php
      	include($_SERVER['DOCUMENT_ROOT'] . '/includes/banners/photo240x400.phtml');
      ?>
      </div>
      <?php
      	include($_SERVER['DOCUMENT_ROOT'] . '/php/onphoto_found.phtml');
      ?>
      	<div id="line20">
      	<?php
      	  include($_SERVER['DOCUMENT_ROOT'] . '/includes/archive_calendar.phtml');
        ?>
		</div>
    </td>
  </tr>
  <tr>
    <td valign="bottom"> </td>
    <td valign="bottom"> </td>
  </tr>
  <tr>

    <td colspan="5" height="20"><spacer></spacer></td>
  </tr>
</table>
<div id="line3"><spacer></spacer></div>
<?php
      	include($_SERVER['DOCUMENT_ROOT'] .'/includes/copyright.phtml');
?>
</body>
</html>


