  
  
  
<style type="text/css">
<!--





.Estilo3 {
	color: #FFFFFF;
	font-family:Helvetica, Arial, sans-serif;
	font-size:15px;
	
	
}
.esp:link {color: <?php echo $d_color_menu ?>; text-decoration:none;}
.esp:visited {color: <?php echo $d_color_menu ?>; text-decoration:none;}
.esp:hover {color: <?php echo $d_color_menu_sobre ?>; text-decoration:none;}


.tita:link {color:#000066;text-decoration:none;}
.tita:visited {color:#000066; text-decoration:none;}
.tita:hover { color:#0033FF; text-decoration:none;}
 
a:link {color: #0000CC; text-decoration:none;}
a:visited {color: #0000CC; text-decoration:none;}
a:hover {color: #0099FF; text-decoration:underline;}
 
 
 
.Estilo2 {
	font-family: "Trebuchet MS";
	font-size: 18px;
	color:#000066;
	
}

.Estilo29 {
	font-family: "Trebuchet MS";
	font-size: 17px;
color:#000066;
	
}

.Estilo40 {
	font-family: "Trebuchet MS";
	font-size: 11px;
	color:#696969;

	
}
.Estilo4 {
	font-family: "Trebuchet MS";
	font-size: 12px;
	color: #1E1E1E;
}


.Estilo41 {
	color:#000066;
	font-family: "Trebuchet MS";
	font-size: 24px;
	font-weight: bold;
}
.Estilo42 {
	font-family: "Trebuchet MS";
	font-size: 15px;
	color: #171717;
}
.Estilo43 {font-family: "Trebuchet MS"; font-size: 13px; color: #373737; }
.Estilo9 {font-size: 12px}
              

.estilo1000 {
	font-family: Tahoma, Geneva, sans-serif;
	font-size: 15px;
	font-weight: bold;
	text-transform: none;
	color: #FFF;
}





	.titulo {
	text-align:left;
	color:#333333;
	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size:18px;
	height: auto;
			    
		}

	.categoria {
	text-align:left;
	color:#333333;
	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size:13px;
	height: auto;
			    
		}


.bajada {
color:#333333;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
text-align:justify;



};


    </style>

   <?
include 'marco1des_seccion.php';
while ($i < $cantidad_notas){ 
include 'concha.php';
mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");
$sql = "SELECT * FROM notas WHERE destacado = 'no' AND cat = '$catba' ORDER BY ID desc LIMIT $i,1";
$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$ID = $row["ID"];
$i_publi = $i_publi + 1;
$titulo = $row["titulo"];
$bajada = $row["bajada"];
$texto = $row["texto"];
$audio = $row["audio"];
$listengo  = $row["listengo"];
$youtube  = $row["youtube"];
$d = $row["d"];
$m = $row["m"];
$a = $row["a"];
$fecha = "$d - $m - $a";
$carpetafoto = $row["carpetafoto"];
$foto = $row["foto"];
$cat = $row["cat"];
$home = $row["home"];
if ($cat == 0) {} else {
$sql2 = "SELECT * FROM categorias WHERE ID = '$cat'";
$consulta2 = mysql_query ($sql2);
while ($row2 = mysql_fetch_array($consulta2))
{
$cat = $row2["nombre"];
$color_cat = $row2["color"];
}
mysql_free_result($consulta2);
}
?>
<?
$n = 0;
$sql2 = "SELECT * FROM comentarios WHERE IDD = '$ID' and ver = 'si'";
$consulta2 = mysql_query ($sql2);
while ($row2 = mysql_fetch_array($consulta2))
{
$n = $n + 1;
}
mysql_free_result($consulta2);
?>



<?php if ($home == 'no') {} else {?>
<?php if ($cat == '0') {} else {?>
<div class="categoria">
<?php echo $cat ?>
</div>
<?php };?>
<div class="titulo">
<a href="<? echo $dom;?>/movil/nota.php?ID=<?php echo $ID ?>" class="tita"><?php echo $titulo ?></a></div>



<?php  if ($foto == NULL) { } else { ?> 

<a href="<? echo $dom;?>/movil/nota.php?ID=<?php echo $ID ?>"> <img src="../<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?>.jpg" alt="<?php echo $titulo ?>" border="0" /></a>
<?php  }; ?>


<div class="bajada"><?php echo $bajada ?> - <?php echo $fecha ?></div>

<img  src="../linea.gif" />

<?php };?>


<?php 
mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");
$sql2 = "SELECT * FROM publicidades WHERE lugar = '$i_publi'";
$consulta2 = mysql_query ($sql2);
while ($row2 = mysql_fetch_array($consulta2))
{
$img = $row2["img"];
$url = $row2["url"];

$carpetafoto = $row2["carpetafoto"];

?>
<?php   if ($url == NULL) {} else { ?><a href="<?php echo $url ?>"  target="_blank" class="Estilo1"><?php };?><img src="../<?php echo $carpetafoto?>/resize_<?php echo $img ?>.jpg"  alt="PUBLICIDAD"   border="0" /><?php   if ($url == NULL) {} else { ?> </a><?php };?>
<img  src="../linea.gif" />

<?
}
mysql_free_result($consulta2);
?>


<?php }
mysql_free_result($consulta);
?>
<?php 
$i= $i + 2;
}; 
?>
