</td>
        </tr>
    </table>

    <table width="100%" cellspacing="0" cellpadding="0" border="0">
        <tr height="1px">
            <td width="100%" style="padding-top:10px;padding-bottom:30px;">
                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                    <tr height="1px"><td width="100%" style="background:#eaeaea;"></td></tr>
                </table>
                <table width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-top:10px;">
                    <tr height="1px">
                        <td align="right">
<?php 
if ($where != "") {
    echo showpaging($sqlQuery, "video_paging", "video_paging_selected", 20);
}
?>
                        </td>
                    </tr>
                </table>

            </td>
        </tr>
    </table>         
                
                	
            </td>
            <td align="right" width="195px" style="padding-top:5px;">
                <?php 
include "_new_cart.php";
			<td>
			<?php 
echo show_path($_GET[id]);
?>
			</td>
			</tr>
			
			<tr height="1px" valign="middle">
			<td style="padding-top:25px;">
			<?php 
if ($_GET[id] != 3) {
    echo block("id='" . $_GET[id] . "'", "text");
} else {
    echo block("rid=3 ORDER BY date DESC", "news_item", "", "", 10, "Новости отсутствуют");
    echo "<div align='center' style='margin-top:20px'>";
    echo showpaging("rid=3", "video_paging", "video_paging_selected", 10);
    echo "</div>";
}
?>
			</td>

			</tr>

		</table>	
	</td>
	<td align="right" width="200px" style="padding-top:5px;">
		<?php 
include "_new_cart.php";
?>

		<p style="margin:0px;padding-top:20px;"></p>
} else {
    echo "&nbsp;";
}
?>
			</td>
			<!--
			<td align="left" style="padding-right:7px;">Страницы:</td>
			-->
			<td>
				<?php 
$SQL = "SELECT DISTINCT rid FROM " . $module_name . " WHERE f2 = '" . $_GET[id] . "' ORDER BY date DESC";
$result = $Q->query($DB, $SQL);
for ($rubrics_by_brand = array(); $row = mysql_fetch_assoc($result); $rubrics_by_brand[] = $row[rid]) {
}
if (mysql_num_rows($result) > 0) {
    echo showpaging("id IN (" . implode(", ", $rubrics_by_brand) . ")", "catalog_paging", "catalog_paging_selected", 200);
}
?>
			</td>
		</tr>
		</table>

	</td>
	</tr>
	</table>
	
	<table width="100%" cellspacing="0" cellpadding="0" border="0">
	<tr height="1px">
		<td width="100%" style="padding-left:20px;">
		<?php 
if (mysql_num_rows($result) > 0) {
					<center>
					<object type="application/x-shockwave-flash" data="/uflvplayer.swf" height="388" width="500">
						<param name="bgcolor" value="#EEEEEE" />
						<param name="allowFullScreen" value="true" />
						<param name="allowScriptAccess" value="always" />
						<param name="movie" value="/uflvplayer.swf" />
						<param name="FlashVars" value="way=' . $video_file . '&amp;swf=/uflvplayer.swf&amp;w=400&amp;h=340&amp;pic=http://&amp;autoplay=0&amp;tools=1&amp;volume=0&amp;q=&amp;comment=' . $video_name . '" />
					</object>
					</center>
					';
        echo "<div style='padding:10px 0px 10px 0px'>";
        echo block("id='" . $text_id . "'", "text");
        echo "</div>";
        echo block("rid='" . $_GET[id] . "' ORDER BY date DESC", "video_preview", "", "", 8);
        echo "<table width='100%' style='margin-top:15px'><tr><td align=center>";
        echo showpaging("rid='" . $_GET[id] . "' ORDER BY date DESC", "video_paging", "video_paging_selected", 8);
        echo "</td></tr></table>";
    } else {
        echo block("id='" . $_GET[id] . "'", "text");
    }
} else {
    echo block("id='246'", "text");
}
?>
			</td>

			</tr>

		</table>	
	</td>
	<td align="right" width="200px" style="padding-top:5px;">
}
$extra_search_where = "";
if ($SQL_search) {
    $extra_search_where = $SQL_search;
}
//echo $extra_search_where;
if ($_GET[brand]) {
    if ($is_rubrics == true) {
        $brand_where = " AND id IN (SELECT rid FROM " . $module_name . " WHERE f2 = '" . (int) $_GET[brand] . "') ";
    } else {
        $brand_where = " AND f2 = '" . (int) $_GET[brand] . "' ";
    }
}
if ($show != "compare") {
    if (!$is_rubrics) {
        echo showpaging("rid='" . $_GET[id] . "' " . $brand_where . " " . $extra_search_where . " ", "catalog_paging", "catalog_paging_selected", $at_page);
    }
}
?>
		</div>
		<table width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-top:25px">
		<tr height="1px"><td width="100%" style="background:#eaeaea;"></td></tr>
		</table>
		<table width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-top:10px;<?php 
if ($show == "compare") {
    echo "display:none;";
}
?>
">
		<tr height="1px">
			<td align="left" nowrap>