<?php
	
	
	$documentId = 165067;
	$documentPath = "main.djru.photos.165067";
	
		
?><!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>Фоторепортаж вечеринки: Night club Awards @ Opera | Фотогалереи DJ.ru</TITLE>
<META NAME="keywords" CONTENT="Фотографии: Night club Awards @ Opera | Фотогалереи DJ.ru">
<META NAME="description" CONTENT="Фотографии: Night club Awards @ Opera | Фотогалереи 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/document165067_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 = 107;
		$totalPages = 6;
		$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; ?> / 107
        </div>
        <div class="nav-right"><?php
        	
        	if ($startPage != 1) {
        		print '<a href="/photos/document165067.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/document165067.phtml/page' . $i . '">' . $i . '</a>';
        		}
        	}
        	
        	if ($endPage != $totalPages) {
        		print ' | <a href="/photos/document165067.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('165073,165074,165075,165076,165077,165078,165079,165080,165081,165082,165083,165084,165085,165086,165087,165088,165089,165090,165091,165092,165093,165094,165095,165096,165097,165098,165099,165100,165101,165102,165103,165104,165105,165106,165107,165108,165109,165110,165111,165112,165113,165114,165115,165116,165117,165118,165119,165120,165121,165122,165123,165124,165125,165126,165127,165128,165129,165130,165131,165132,165133,165134,165135,165136,165137,165138,165139,165140,165141,165142,165143,165144,165145,165146,165147,165148,165149,165150,165151,165152,165153,165154,165155,165156,165157,165158,165159,165160,165161,165162,165163,165164,165165,165166,165167,165168,165169,165170,165171,165172,165173,165174,165175,165176,165177,165178,165179');
		
	
    	include($_SERVER['DOCUMENT_ROOT'] . '/photos/document165067_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; 
    	?> / 107</div>
        <div class="nav-right"><?php
        	
        	if ($startPage != 1) {
        		print '<a href="/photos/document165067.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/document165067.phtml/page' . $i . '">' . $i . '</a>';
        		}
        	}
        	
        	if ($endPage != $totalPages) {
        		print ' | <a href="/photos/document165067.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>


