<?php

$logo_extra = $_GET['xasp23dpasdo23po334'];

include 'url_amigable.php';
include 'concha.php';

if ($lang_actual == 'es' or $lang_actual == '')
{
include 'lang_es_no_panel.php';
};

 if ($lang_actual == 'pt')
{

include 'langes_pt_no_panel.php';
};


if ($logo_extra == '') {} else {$logo_C = $logo_extra ;};

?>
<?php
$hay_des_2 = 'no';
mysql_connect ("$host", "$usuario", "$contra");
mysql_select_db ("$basedatos");
$sql = "SELECT ID FROM notas WHERE destacado = '1' AND ver = 'si' AND home = 'si' LIMIT 1";
$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$ID_notaiiiii = $row["ID"];
$hay_des_2 = 'si';
}
mysql_free_result($consulta);

$sql = "SELECT * FROM `html_inicio` LIMIT 1";
$consulta = mysql_query ($sql);
while ($row = mysql_fetch_array($consulta))
{
$html_embed = $row["texto"];
}
mysql_free_result($consulta);
?>
<!doctype html>
<html lang="<?php echo $lang_actual ?>">
<head><meta charset="utf-8">
  <!-- ///version 30.1 -->


<!-- DATOS DEL SITIO META TAGS -->
<title><?php echo $nombresitio ?></title>
<meta name="description" content="<?php echo $descripcion_web ?>" />
<meta name="keywords" content="<?php echo $nombresitio ?>, radio, en vivo, escuchar, portal" />
<meta name="language" content="es" />

<!-- TAGS DE FACEBOOK / WHSTSAPP -->
<meta property="og:title" content="<?php echo $nombresitio ?>" />
<meta property="og:description" content="<?php echo $descripcion_web ?>" />
<meta property="og:site_name" content="<?php echo $nombresitio ?>" />
<meta name="language" content="es" />
<meta property="og:type" content="article" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta property="og:url" content="<?php echo $dom ?>" />
<meta property="og:image" content="<?
$logo_C = str_replace('http://', 'https://', $logo_C); echo $logo_C; ?>"  />


<!-- LINKS A GOOGLE FONTS -->
<?
$link_titulo = str_replace('http://', 'https://', $link_titulo);
?>
<?php echo $link_titulo ;?>
<?$link_menu = str_replace('http://', 'https://', $link_menu);?>
<?php echo $link_menu; ?>
<?$link_bajada = str_replace('http://', 'https://', $link_bajada);?>

<?php echo $link_bajada; ?>


<? $catba = $_GET['cat'];
$i_publi = 10000000;?>

<link rel="shortcut icon" href="<?php echo $dom?>/icono.ico" type="image/x-icon" />

<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">


<link href="https://radioshosting.com/css/delalora<? echo $estiloweb ?>new.css" rel="stylesheet">

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css">
<link rel="stylesheet" href="https://unpkg.com/flickity@2/dist/flickity.min.css"/>
<link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
<link rel="stylesheet" href="https://radioshosting.com/css/css/lightbox.min.css">

<link rel="alternate" type="application/rss+xml" title="RSS" href="<? echo $dom ?>/rss.php" >

<script src="https://code.jquery.com/jquery-3.4.1.min.js"
			  integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
			  crossorigin="anonymous"></script>

<!-- ADSENSE HEAD -->
<? echo $adsense_head ?>

        <style>



                        body{
                                        background-color: <? echo $d_color_fondo?>;
                                        overflow-x: hidden;
                                        margin: 0 auto;
                                    }


                        h1, h2, h3, h4, h5, h6 {
                            margin-bottom: 10px;
                            line-height: 1.1em;
                            font-weight: 600;
                            margin-top: 0;
                            color: <?php echo $d_color_titulo?>;
                            font-family: <?php echo $style_titulo ?>;
                        }

                        p {
                            font-family: <?php echo $style_bajada ?>;
                        }

                        .h3, h3 {
                            font-size: 1rem;
                        }

                        h1 a, h2 a, h3 a, h4 a, h5 a, h6 a{
                                        display: block;
                                        color:<?php echo $d_color_menu?>;
                                    }

                            a:hover {

                            color:<?php echo $d_color_menu_sobre?>;

                        }

                        a:link, a:visited, a:active, a:focus, a:before, a:after {
                            outline: 0 none;
                         text-decoration: none;
                         color:<?php echo $d_color_menu?>;
                         }





                            .navbar-nav .dropdown-menu{
                                position: absolute;
                                background-color: <? echo  $d_color_fondo_menu?>;
                            }


                        .dropdown:hover>ul {

                            display: block !important;

                        }

                        .dropdown ul li a {

                            color: <?php echo $d_color_menu?>;

                        }


                        .navbar-light .navbar-nav .nav-link:focus, .navbar-light .navbar-nav {
                            color: <?php echo $d_color_menu ?>;

                        }

                        .nav-link:hover {
                            color: <?php echo $d_color_menu_sobre ?>;

                        }

                        #logo {
                            max-width: 3.2rem;
                        }
                        #logo:hover path {
                        fill: <?php echo $d_color_menu ?>;

                        }

                        #logo:hover {

                        color: <?php echo $d_color_menu_sobre ?>;

                        }

                         #logo2 {
                           fill: <?php echo $d_color_weather2 ?>;
                           max-width:48px;
                        }


                         #logo3 {
                           fill: <?php echo $d_color_weather2 ?>;
                           max-width:18px;
                        }
                        .color{
                            color:<? echo $d_color_menu?>;
                        }

                        .btn-outline-primary.active, .btn-outline-primary:active, .show>.btn-outline-primary.dropdown-toggle {
                            color: <?php echo $d_color_fondo_menu ?>;
                            background-color: <?php echo $d_color_menu ?>;
                            border:3px solid  <?php echo $d_color_fondo_menu ?>;
                        }

                            .btn-outline-primary:hover {
                            color: <?php echo $d_color_fondo_menu ?>;
                            background-color: <?php echo $d_color_menu ?>;
                            border:3px solid <?php echo $d_color_fondo_menu ?>;

                        }
                            .btn-outline-primary {
                            color: <?php echo $d_color_menu ?>;
                            background-color: <?php echo $d_color_fondo_menu ?>;
                            border:3px solid transparent;
                        }

                        footer p {
                        margin-bottom: .25rem;
                            color:<?php echo $d_color_menu ?>;
                            font-weight: 300;
                        }
                        .facebook {
                            display: block;
                            float: right;
                            background: <?php echo $d_color_menu ?>;
                            margin-right: 37px!important;
                        }

                        .twitter {
                            display: block;
                            float: right;
                            background: <?php echo $d_color_menu ?>;
                        }
                        .flickity-page-dots .dot{
                            background: <?php echo $d_color_menu ?>;

                        }
                        
                        .sidebar{
                            will-change: min-height;
                        }
                        
                        .sidebar__inner{
                            transform: translate(0, 0); /* For browsers don't support translate3d. */
                            transform: translate3d(0, 0, 0);
                            will-change: position, transform;
                        }
                        .sidebar .widget .widget-title {
                            font-size: 20px;
                        }

                            <? $hexa = substr($d_color_fondo_menu,1);

                                $decimal = hexdec($hexa);


                                if ($decimal <= '10066329') {$color_titulo_barra = "250,250,250,0.9";} else {$color_titulo_barra = "0,0,0,0.9";};

                        ?>

                        .widget-head{
                            background-color: <? echo $d_color_fondo_menu?>!important;
                        }

                        .widget-title {
                            font-size: 25px;
                            font-weight: 900;
                            line-height: 1;
                            text-transform: uppercase;
                            margin-bottom: 0;
                            color:<?php echo $d_color_menu ?>;
                            font-family: <?php echo $style_titulo ?>;
                        }
                            /* ---- grid ---- */



                        .topbar {

                            border-bottom:0;

                            background-color: <? echo $d_color_fondo_menu ?>;
                            color: <? echo $d_color_menu ?>;
                        }


                        .header {


                            <?php  if ($textura == NULL && $logo_g == NULL) { ?>

                        background-color:<?php echo $d_color_fondo_cabecera ?>;

                        <? } elseif($textura != NULL) {?>
                        background-position:center center;
                            background-size:cover;
                            background-repeat:no-repeat;
                        background-image:url(<?php $textura = str_replace("www.radiosnet.com.ar","recursos.radiosnethosting.com",$textura); echo $textura ?>);
                        -moz-background-size: cover;
                        -webkit-background-size: cover;

                        <?php } else{?>
                        background-position:center center;
                            background-size:cover;
                            background-repeat:no-repeat;
                            background-image:url(<?php echo $logo_g ?>);
                        -moz-background-size: cover;
                        -webkit-background-size: cover;

                        <?}?>
                            clear: both;


                        }


                        .header-right {
                            float: right;
                        }

                        .logo{
                                        max-width: 80%;

                                    }

                        .bg-light {

                            background-color: #fff!important;
                        }

                        article {
                                        background: transparent;
                                        /*border-radius: 3px;
                                        border: 1px solid #e4e4e4;*/
                                    }

                        .colorTitulo {
                            color: <?php echo $d_color_titulo ?>;
                            font-weight: 800;
                            letter-spacing: 1px;

                        }



                        .facebook {

                            display: block;
                            float: right;
                            background-color: <?php echo $color_cat ?>!important;
                            margin-right: 37px!important;
                                    }

                        .twitter {

                            display: block;
                            float: right;
                            background-color: <?php echo $color_cat ?>!important;
                                    }
                            p.displaytitulo{
                                height: 0;
                                margin: 0;
                                font-family: 'Montserrat', sans-serif!important;
                                letter-spacing:1px;
                            }




                        .carousel-caption {

                            z-index: 10;
                            padding: 4px 20px;
                            /* padding-bottom: 20px;
                                position: absolute;
                            right: 0;
                            bottom: 0px;
                            left: 0;
                             */

                            background-color: <? echo $d_color_fondo_menu ?>99;

                        }
                        .carousel-caption h2 {
                            color: <? echo $d_color_menu ?>!important;
                            font-weight: 700;
                            margin: 0;

                            font-size: 2.5vw;
                        }



                        .localidad {
                            font-family:<?php echo $style_titulo ?>;
                            color:<?php echo $d_color_weather2?>;
                            line-height: 1;

                        }





                            /* destacadas slider */

                        .titulo{
                            display: none;
                            position: absolute;
                            bottom: 0;
                            height: 100%;
                            width: 100%;
                            padding: 20px 15px;
                            background-color: <?php echo $d_color_fondo_menu ?>;
                            opacity: 0.7;
                            }


                        .cub3r-caption{
                            /*display:none;*/
                            position:absolute;
                            bottom:0;
                            left:0;
                            background-color:<? echo $d_color_fondo_menu?>99;
                            width:100%;
                            padding:0.5rem 0.75rem;
                        }

                        .cub3r-caption-text{
                            color:<? echo $d_color_menu?>!important;
                        }

                        .html-marquee {
                            font-weight: 200;
                            height: 40px!important;
                            width: 100%;
                            background-color: transparent!important;
                            font-family: 'Montserrat', sans-serif!important;
                            font-size: inherit!important;
                            color: <? echo $d_color_menu ?>!important;
                            letter-spacing: 0.5px;
                        }

                        marquee p {
                            color: <? echo $d_color_menu ?>!important;
                        }
                        .texto-fecha{

                            color: <? echo $d_color_menu?>;
                        }

                        .navbar-toggler-icon{
                            color: <? echo $d_color_menu?>;
                        }
        </style>

<!-- ACA TERMINA EL HEAD -->
</head>

<!-- ACA EMPIEZA EL BODY -->
<body>



<!-- ESTO ES LA CABECERA EL HEAD -->



<?php if ($estiloweb == 1) { include 'menu1.php'; }; ?>
<?php if ($estiloweb == 2) { include 'menu2.php'; }; ?>
<?php if ($estiloweb == 3) { include 'menu3.php'; }; ?>
<?php if ($estiloweb == 4) { include 'menu4.php'; }; ?>
<?php if ($estiloweb == 5) { include 'menu5.php'; }; ?>
<?php if ($estiloweb == 76) { include 'menu_planeta.php'; }; ?>


        <!-- ESTO ES EL CUERPO DE LA PAGINA, PEUDE ESTAR CONTENIDO O NO -->


 <div id="margenSup" class="mt-3 <?if ($opcion101 == 1) { echo 'container-fluid';}if ($opcion101 == 0){echo 'container';}?> margenSup px-1 px-sm-3">

             <!-- radio en vivo banner-->

     <div class="px-1 px-sm-3">



        <!--a class="btn" data-toggle="modal" href="#myModal" >Launch Modal</a-->



                            <?
                            if($html_embed != '' || $html_embed != NULL){?>

                                <div class="mb-4">
                                    <div class="container news-summary">
                                        <div class="col-12 p-3 ">
                                            <?php echo $html_embed ?>
                                        </div>
                                    </div>
                                </div>

                            <?}else{}
                            ?>


                                    <!-- video destacado botón en "en vivo banner" -->
                                    <?
                                        $hay_video = "no";
                                        mysql_connect ("$host", "$usuario", "$contra");
                                        mysql_select_db ("$basedatos");
                                        $sql = "SELECT * FROM `videos_home` WHERE home = '1'";
                                        $consulta = mysql_query ($sql);
                                        while ($row = mysql_fetch_array($consulta))
                                        {
                                        $ID = $row["ID"];
                                        $cat = $row["cat"];
                                        $titulo = $row["titulo"];
                                        $bajada = $row["bajada"];
                                        $video = $row["video"];
                                        $hay_video = "si";
                                        ?><?
                                        }
                                        mysql_free_result($consulta);
                                        ?>

                                        <?php   if ($hay_video == 'no') {} else { ?>

                                            <div class="mb-4">



                                                    <div class="<?if ($opcion101 == 1) { echo 'container-fluid';}if ($opcion101 == 0){echo 'container';}?> news-summary">

                                                        <div class="row">

                                                            <div class="col-12 col-sm-6 col-md-6 col-lg-6" style="padding:0;">
                                                                <div class="videoPrincipal" style="position: relative;padding-bottom: 56.25%;">
                                                                    <iframe style="position:absolute;width:100%;height:100%;" src="https://www.youtube.com/embed/<?php echo $video ?>" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
                                                                    </div>

                                                                </div>

                                                            <div class="col-12 col-sm-6 col-md-6 col-lg-6" style="padding:10px;">



                                                                        <div class="col-12 col-sm-12 col-md-12 col-lg-12" style="">

                                                                            <div class="no-skin flex-item flex-stack text-align-left equalize-height-target">

                                                                                    <p class="" style="margin:0;font-weight:bold;"><?php echo $cat ?></p>

                                                                                    <h2 class="colorTitulo">
                                                                                        <?php echo $titulo ?>
                                                                                    </h2>

                                                                                    <p class="" style="margin:0;"><?php echo $bajada ?></p>


                                                                            </div>


                                                                        </div>


                                                                        <div class="grid">


                                                                            <?


                                                                                mysql_connect ("$host", "$usuario", "$contra");

                                                                                mysql_select_db ("$basedatos");

                                                                                $sql = "SELECT * FROM `videos_home` WHERE home = '2' LIMIT 2";

                                                                                $consulta = mysql_query ($sql);

                                                                                while ($row = mysql_fetch_array($consulta))

                                                                                {
                                                                                $ID = $row["ID"];
                                                                                $cat = $row["cat"];
                                                                                $titulo = $row["titulo"];
                                                                                $bajada = $row["bajada"];
                                                                                $video = $row["video"];

                                                                                ?>

                                                                                <div class="grid-item col-6 col-sm-6 col-md-6 col-lg-6" style="">
                                                                                    <iframe width="100%" height="190" src="https://www.youtube.com/embed/<?php echo $video ?>" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
                                                                                </div>

                                                                                <?

                                                                                }

                                                                                mysql_free_result($consulta);

                                                                                ?>



                                                                            </div>

                                                                </div>

                                                            </div>


                                                        </div>

                                                    </div>



                                                    <?php
                                                };
                                                 //cierro el if del videos home si hay ?>

                                                    <!-- Comienza resultados de las disciplinas-->


                                        <?php
                                            $hay_cuber_0 = 'no';
                                            mysql_connect ("$host", "$usuario", "$contra");
                                            mysql_select_db ("$basedatos");
                                            $sql = "SELECT * FROM notas_tapa WHERE cu3er = '0' ORDER BY ID desc";
                                            $consulta = mysql_query ($sql);
                                            while ($row = mysql_fetch_array($consulta))
                                            {
                                            $ID_notaaa = $row["ID"];
                                            $hay_cuber_0 = 'si';
                                            }
                                            mysql_free_result($consulta);
                                        ?>
                                        <?php if ($hay_cuber_0 == 'si') {?>



                                        <div class="flickity-carousel mb-4" data-flickity='{ "lazyLoad": 9, "initialIndex": 0, "freeScroll": false, "adaptiveHeight":true, "pageDots": false, "pageDots": false, "autoPlay": 6000 }' > <?php } else {};?>

                                                        <?php
                                                                mysql_connect ("$host", "$usuario", "$contra");
                                                                mysql_select_db ("$basedatos");

                                                                $sql = "SELECT * FROM notas_tapa WHERE cu3er = '0' ORDER BY ID desc LIMIT 6";

                                                                $consulta = mysql_query ($sql);
                                                                while ($row = mysql_fetch_array($consulta))
                                                                {
                                                                $ID_nota = $row["ID"];
                                                                $foto = $row["foto"];
                                                                $ext_img = $row["ext_img"];
                                                                $titulo = $row["titulo"];
                                                                $texto = $row["texto"];
                                                                $nota = $row["nota"];
                                                                $etiqueta2 = $row["etiqueta"];
                                                                $can = $can + 1

                                                                ?>

                                                                <div class="carousel-cell4">

                                                                        <img class="carousel-cell-image4"
                                                                            data-flickity-lazyload="upload_pic/thumbnail_<?php echo $foto ?>.jpg" src="upload_pic/resize_<?php echo $foto ?>.jpg" alt="<?php echo $titulo ?>" width="100%" />

                                                                            <?php if ($titulo == '') {} else {?>


                                                                                                    <div class="news-summary">
                                                                                                        <div class="col-12">
                                                                                                            <p class="m-0"><b><? echo $etiqueta2 ?></b></p>
                                                                                                        </div>
                                                                                                        <div class="col-12 col-md-8">
                                                                                                            
                                                                                                            <?php if($nota == 0) {} else {?>
                                                                                                                
                                                                                                                <a class="" target="_parent" href="<? echo $dom;?>/nota/<?php echo $nota ?>/<?php echo urls_amigables($titulo) ?>">
                                                                                                                    
                                                                                                            <?php };?>
                                                                                                                    
                                                                                                            <h3 class="colorTitulo">
                                                                                                                    
                                                                                                                <?php echo $titulo ?>
                                                                                                    
                                                                                                            </h3>
                                                                                                            
                                                                                                            <?php if($nota == 0) {} else {?></a><?php };?>
                                                                                                        </div>
                                                                                                        <div class="col-12">
                                                                                                            <p class=""><?php echo $texto ?></p>
                                                                                                        </div>
                                                                                                    </div>


                                                                            <?php };?>

                                                                </div>

                                                        <?
                                                        }
                                                        mysql_free_result($consulta);?>
                                                                    <?php   if ($hay_cuber_0 == 'si') {?>
                                        </div>


                                        <?php } else {};



                                    ?>

                                    <!-- radio en vivo banner-->

                                    <?php
                                    $HayLugar700 = "no";
                                    mysql_connect ("$host", "$usuario", "$contra");
                                    mysql_select_db ("$basedatos");
                                    $sql = "SELECT *
                                    FROM  `publicidades_gif` WHERE lugar = '700'";
                                    $consulta = mysql_query ($sql);
                                    while ($row = mysql_fetch_array($consulta))
                                    {
                                    $ID_p = $row["ID"];
                                    $img700 = $row["img"];
                                    $carpetafoto700 = $row["carpetafoto"];
                                    $Url700  = $row["url"];
                                    $HayLugar700 = "si";
                                    }

                                    mysql_free_result($consulta); ?>

                                    <? if ($HayLugar700 == 'si') { ?>

                                            <div class="<?if ($opcion101 == 1) { echo 'container-fluid';}if ($opcion101 == 0){echo 'container';}?>">
                                                    <!-- Modal -->
                                                    <div class="modal fade" id="myModal" role="dialog">
                                                        <div class="modal-dialog">

                                                          <!-- Modal content-->
                                                          <div class="modal-content">
                                                            <div class="modal-header">
                                                              <button type="button" class="close" data-dismiss="modal">&times;</button>
                                                              <!--h4 class="modal-title">Modal Header</h4-->
                                                            </div>
                                                            <div class="modal-body">
                                                              <a href="<? echo $Url700 ?>" data-pb-field="headlines.basic" data-pb-url-field="canonical_url" data-pb-placeholder="Write headline here">

                                                                <? $ext = substr($img, -3); if ($ext == 'mp4') { ?>

                                                                                              <div class="col-12 text-center">
                                                                                                <video autoplay muted loop style="width:100%">
                                                                                                  <source src="<?php echo $dom ?>/<?php echo $carpetafoto700 ?>/<?php echo $img700 ?>" type="video/mp4">
                                                                                                  Your browser does not support the video tag.
                                                                                                </video>



                                                                                              </div>

                                                                <? } else { ?>

                                                                 <? if ($es_movil == 'no') { ?>

                                                                  <img class="img-fluid" src="<? echo $dom ?>/<? echo $carpetafoto700 ?>/<? echo $img700 ?>" style="display: block;margin:auto;">

                                                                  <? } else { ?>

                                                                   <img class="img-fluid" src="<? echo $dom ?>/<? echo $carpetafoto701 ?>/<? echo $img701 ?>" style="display: block;margin:auto;">
                                                                  <? }; ?>

 <? } ?>

                                                                </a>
                                                            </div>
                                                            <!--div class="modal-footer">
                                                              <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                                                            </div-->
                                                          </div>

                                                        </div>
                                                     </div>
                                            </div>
                                    <? }; ?>

                                                                                                    <!-- Finaliza resultados de las disciplinas-->





                                                                                                    <?php

                                                                                                  // publicidades en col-4 al inicio de todo

                                                                                                    $sql = "SELECT * FROM  `publicidades_gif` WHERE lugar = '500'";
                                                                                                    $consulta = mysql_query ($sql);
                                                                                                    while ($row = mysql_fetch_array($consulta))
                                                                                                    {
                                                                                                    $ID_p = $row["ID"];
                                                                                                    $img = $row["img"];
                                                                                                    $carpetafoto = $row["carpetafoto"];
                                                                                                    $url  = $row["url"];
                                                                                                    ?>
                                                                                                    <div class="col-lg-12 col-md-12 col-sm-12">
                                                                                                        <a href="<?php echo $url ?>" target="_blank">


                                                                                                          <? 
                                                                                                          
                                                                                                          $ext = substr($img, -3); 
                                                                                                          // echo $ext;
                                                                                                          if ($ext == 'mp4') { ?>

                                                                                                                                        <div class="col-12 text-center">
                                                                                                                                          <video autoplay muted loop style="width:100%">
                                                                                                                                            <source src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" type="video/mp4">
                                                                                                                                            Your browser does not support the video tag.
                                                                                                                                          </video>



                                                                                                                                        </div>

                                                                                                          <? } else { ?>


                                                                                                        <img class="img-fluid publi-index lazyy" style="width:100%; padding-top:5px; padding-bottom:5px;"  data-src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" src="spinner.gif" /></a>

                                                                                                      <? } ?>
                                                                                                    </div><?
                                                                                                    }
                                                                                                    mysql_free_result($consulta);
                                                                                                    ?>



                                                                                                                                                                                                    <div class="grid">





                                                                                                                                                                                                    <?php

                                                                                                                                                                                                  // publicidades en col-4 al inicio de todo

                                                                                                                                                                                                    $sql = "SELECT * FROM  `publicidades_gif` WHERE lugar = '921'";
                                                                                                                                                                                                    $consulta = mysql_query ($sql);
                                                                                                                                                                                                    while ($row = mysql_fetch_array($consulta))
                                                                                                                                                                                                    {
                                                                                                                                                                                                    $ID_p = $row["ID"];
                                                                                                                                                                                                    $img = $row["img"];
                                                                                                                                                                                                    $carpetafoto = $row["carpetafoto"];
                                                                                                                                                                                                    $url  = $row["url"];
                                                                                                                                                                                                    ?>
                                                                                                                                                                                                    <div class="col-lg-6 col-md-6 col-sm-12 grid-item">
                                                                                                                                                                                                        <a href="<?php echo $url ?>" target="_blank">

                                                                                                                                                                                                          <? $ext = substr($img, -3); if ($ext == 'mp4') { ?>

                                                                                                                                                                                                                                        <div class="col-12 text-center">
                                                                                                                                                                                                                                          <video autoplay muted loop style="width:100%">
                                                                                                                                                                                                                                            <source src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" type="video/mp4">
                                                                                                                                                                                                                                            Your browser does not support the video tag.
                                                                                                                                                                                                                                          </video>



                                                                                                                                                                                                                                        </div>

                                                                                                                                                                                                          <? } else { ?>
                                                                                                                                                                                                        <img class="img-fluid publi-index lazyy" style="width:100%; padding-top:5px; padding-bottom:5px;"  data-src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" src="spinner.gif" /></a>

                                                                                                                                                                                                        <?
                                                                                                                                                                                                        }
                                                                                                                                                                                                        ?>

                                                                                                                                                                                                    </div><?
                                                                                                                                                                                                    }
                                                                                                                                                                                                    mysql_free_result($consulta);
                                                                                                                                                                                                    ?>


                                                                                                                                                                                                  </div>





                                                                                                    <?php if ($adsense == '') {} else { ?>

                                                                                                        <div class="row bloqueBorde" style="padding: 0;">

                                                                                                    <!-- banner adsense -->
                                                                                                    <? echo $banner_adsense ?>

                                                                                                    </div>


                                                                                                    <?  }; ?>

                                                                                                            <!-- ARRANCA PUBLIS PRIMERAS despues de la 500 y la 921 -->

                                                                                                <?php
                                                                                                mysql_connect ("$host", "$usuario", "$contra");
                                                                                                mysql_select_db ("$basedatos");
                                                                                                $sql = "SELECT * FROM  `publicidades_gif` WHERE lugar = '911'";
                                                                                                $consulta = mysql_query ($sql);
                                                                                                while ($row = mysql_fetch_array($consulta))
                                                                                                {
                                                                                                $ID_p = $row["ID"];
                                                                                                $img = $row["img"];
                                                                                                $carpetafoto = $row["carpetafoto"];
                                                                                                $url  = $row["url"];
                                                                                                ?>

                                                                                                    <a href="<?php echo $url ?>" target="_blank">

                                                                                                      <? 
                                                                                                      
                                                                                                      
                                                                                                      $ext = substr($img, -3); 
                                                                                                      // echo $ext;
                                                                                                      if ($ext == 'mp4') { 
                                                                                                      ?>

                                                                                                                                    <div class="col-12 p-0 text-center mb-3">
                                                                                                                                      <video  autoplay muted loop style="width:100%">
                                                                                                                                        <source src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" type="video/mp4">
                                                                                                                                        Your browser does not support the video tag.
                                                                                                                                      </video>



                                                                                                                                    </div>

                                                                                                      <? } else { ?>
                                                                                                    <img class="img-fluid publi-index lazyy" data-src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" src="spinner.gif" /></a>
                                                                                                    <?
                                                                                                    }
                                                                                                    ?>

                                                                                                <?
                                                                                                }
                                                                                                mysql_free_result($consulta);
                                                                                                ?>

                                                                                                <?php
                                                                                                mysql_connect ("$host", "$usuario", "$contra");
                                                                                                mysql_select_db ("$basedatos");
                                                                                                $sql = "SELECT * FROM  `publicidades_slide` WHERE lugar = '911'";
                                                                                                $consulta = mysql_query ($sql);
                                                                                                while ($row = mysql_fetch_array($consulta))
                                                                                                {
                                                                                                $ID_p = $row["ID"];
                                                                                                $width_slide = "100%";  include 'publicidad_slider_virgen_div.php';
                                                                                                }
                                                                                                mysql_free_result($consulta);
                                                                                                ?>

                                                                                                <?php
                                                                                                $tam_ancho = 669;
                                                                                                mysql_connect ("$host", "$usuario", "$contra");
                                                                                                mysql_select_db ("$basedatos");
                                                                                                $sql = "SELECT * FROM publicidades_swf WHERE lugar = 911";
                                                                                                $consulta = mysql_query ($sql);
                                                                                                while ($row = mysql_fetch_array($consulta))
                                                                                                {
                                                                                                $ID = $row["ID"];
                                                                                                $swf = $row["swf"];
                                                                                                $carpetafoto = $row["carpetafoto"];
                                                                                                $ancho = $row["ancho"];
                                                                                                $alto = $row["alto"];
                                                                                                $lugar = $row["lugar"];
                                                                                                $tam_alto = $alto * $tam_ancho / $ancho;

                                                                                                ?>
                                                                                                <?php if ($hostdom == NULL) {$hostdom = "https://www.radiosnet.com.ar";};
                                                                                                ?>
                                                                                                    <object  width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>">
                                                                                                        <param name="src" value="<?php echo $tdom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" />
                                                                                                        <embed src="<?php echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" pluginspage="https://www.adobe.com/shockwave/download/" width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>"><embed>
                                                                                                    </object>
                                                                                                    <br>

                                                                                                    <?
                                                                                                    }
                                                                                                mysql_free_result($consulta);

                                                                                                ?>

                                                                                                                    <?php if ($funcion10 == 'si') {?>

                                                                                                <!--div class="row bloqueBorde">

                                                                                                        <div class="col-12 col-sm-12 col-md-12 col-lg-12">

                                                                                                            <iframe src="https://radio-mascotas.com/resultados_mundial.php" width="100%" height="170" scrolling="no" style="width: 1px; min-width: 100%; *width: 100%;" class="" frameborder="0"></iframe>

                                                                                                        </div>

                                                                                                    </div-->


                                                                                                <?php  } else {}; ?>

                                                                                                            <!-- 1 gr y 2 ch -->

                                                                                                                        <?

                                                                                                $hay_nota_des2 = "no";
                                                                                                mysql_connect ("$host", "$usuario", "$contra");

                                                                                                mysql_select_db ("$basedatos");

                                                                                                $sql = "SELECT ID,titulo,texto,bajada,audio,youtube,d,m,a,carpetafoto,foto,cat,home,impresiones, ext_img FROM notas WHERE destacado = '2' AND ver = 'si' ORDER BY ID desc LIMIT 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"];
                                                                                                $youtube  = $row["youtube"];
                                                                                                $d = $row["d"];
                                                                                                $m = $row["m"];
                                                                                                $a = $row["a"];
                                                                                                $fecha = "$d - $m - $a";
                                                                                                $carpetafoto = $row["carpetafoto"];
                                                                                                $foto = $row["foto"];
                                                                                                $ext_img = $row["ext_img"];
                                                                                                $cat = $row["cat"];
                                                                                                $home = $row["home"];
                                                                                                $impresiones = $row["impresiones"];
                                                                                                $hay_nota_des2 = "si";
                                                                                                $impresiones = $impresiones + 1;
                                                                                                $sSQL="UPDATE  `$basedatos`.`notas` SET  `impresiones` =  '$impresiones' WHERE ID = '$ID'";
                                                                                                mysql_db_query("$basedatos",$sSQL);
                                                                                                }
                                                                                                mysql_free_result($consulta);
                                                                                                ?>

                                                                                            <?php if ($hay_nota_des2 == 'no') {} else { ?>


                                                                                            <div class="row bloqueBorde mb-4" >



                                                                                                    <div class="col-12 col-sm-12 col-md-8 col-lg-8 px-1">

                                                                                                                <div class="news-summary">
                                                                                                                    <div id="flex_6314" class="lazy-wrapper photo-wrapper">
                                                                                                                    <a href="<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>">

                                                                                                                        <h2 class="colorTitulo" ><?php echo $titulo ?></h2>
                                                                                                                        </a>

                                                                                                                        <p class=""><?php echo $bajada ?></p>

                                                                                                                        <a href="<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>">



                                                                                                                            <img class="img-fluid lazyy"  data-src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" src="spinner.gif"  >



                                                                                                                        </a>

                                                                                                                    </div>
                                                                                                                </div>

                                                                                                        <!-- <div class="border-bottom-hairline-tight">
                                                                                                                <div class="no-skin flex-item flex-stack text-align-left equalize-height-target">



                                                                                                                </div>
                                                                                                            </div>-->

                                                                                                    </div>

                                                                                                                                        <?
                                                                                                                ///// noticias destacadas inicio

                                                                                                                mysql_connect ("$host", "$usuario", "$contra");

                                                                                                                mysql_select_db ("$basedatos");

                                                                                                                $sql = "SELECT ID,titulo,texto,bajada,audio,youtube,d,m,a,carpetafoto,foto,cat,home,impresiones, ext_img FROM notas WHERE destacado = '1' AND ver = 'si' ORDER BY ID desc LIMIT 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"];
                                                                                                                $youtube  = $row["youtube"];
                                                                                                                $d = $row["d"];
                                                                                                                $m = $row["m"];
                                                                                                                $a = $row["a"];
                                                                                                                $fecha = "$d - $m - $a";
                                                                                                                $carpetafoto = $row["carpetafoto"];
                                                                                                                $foto = $row["foto"];
                                                                                                                $ext_img = $row["ext_img"];
                                                                                                                $cat = $row["cat"];
                                                                                                                $home = $row["home"];
                                                                                                                $impresiones = $row["impresiones"];
                                                                                                                $impresiones = $impresiones + 1;
                                                                                                                $sSQL="UPDATE  `$basedatos`.`notas` SET  `impresiones` =  '$impresiones' WHERE ID = '$ID'";
                                                                                                                mysql_db_query("$basedatos",$sSQL);
                                                                                                                }
                                                                                                                mysql_free_result($consulta);
                                                                                                                ?>

                                                                                                                <div class="col-12 col-sm-12 col-md-4 col-lg-4 px-1">

                                                                                                                    <div class="grid">


                                                                                                                    <div class="grid-item col-6 col-sm-6 col-md-12 col-lg-12">

                                                                                                                        <style>

                                                                                                                            .bajadaDeDos {
                                                                                                                                    visibility: hidden;
                                                                                                                                    opacity: 0;
                                                                                                                                    transition: visibility 0s, opacity .15s linear;
                                                                                                                                    position: absolute;
                                                                                                                                    bottom: -1px;
                                                                                                                                    left: 0px;
                                                                                                                                    background-color: #fff;
                                                                                                                                    padding: 10px 25px;
                                                                                                                                    overflow-y:hidden;
                                                                                                                                    color:#111111 !important;
                                                                                                                                }

                                                                                                                            .imgDest:hover .bajadaDeDos{
                                                                                                                                visibility: visible;
                                                                                                                                opacity: 1;
                                                                                                                                height: 100%;
                                                                                                                                bottom: -16px;
                                                                                                                            }
                                                                                                                        .imgDest:hover .fondo{
                                                                                                                                background-color: #fff;

                                                                                                                            }


                                                                                                                        </style>

                                                                                                                        <div class="news-summary">

                                                                                                                            <a href="<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" class="imgDest">

                                                                                                                                <h4 class="colorTitulo"><?php echo $titulo ?></h4>

                                                                                                                                <div class="col-12 col-lg-12" style="padding:0;">

                                                                                                                                    <img class="img-fluid lazyy"  data-src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>"  src="spinner.gif">

                                                                                                                                    <p class="bajadaDeDos"><?php echo $bajada ?></p>

                                                                                                                                </div>

                                                                                                                            </a>

                                                                                                                        </div>

                                                                                                                        </div>


                                                                                                                                    <?

                                                                                                                                            /// noticia grande 1 de 3
                                                                                                                                            mysql_connect ("$host", "$usuario", "$contra");
                                                                                                                                            mysql_select_db ("$basedatos");
                                                                                                                                            $sql = "SELECT ID,titulo,texto,bajada,audio,youtube,d,m,a,carpetafoto,foto,cat,home,impresiones, ext_img FROM notas WHERE destacado = '1' AND ver = 'si' ORDER BY ID desc LIMIT 1,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"];
                                                                                                                                            $youtube  = $row["youtube"];
                                                                                                                                            $d = $row["d"];
                                                                                                                                            $m = $row["m"];
                                                                                                                                            $a = $row["a"];
                                                                                                                                            $fecha = "$d - $m - $a";
                                                                                                                                            $carpetafoto = $row["carpetafoto"];
                                                                                                                                            $foto = $row["foto"];
                                                                                                                                            $ext_img = $row["ext_img"];
                                                                                                                                            $cat = $row["cat"];
                                                                                                                                            $home = $row["home"];
                                                                                                                                            $impresiones = $row["impresiones"];
                                                                                                                                            $impresiones = $impresiones + 1;
                                                                                                                                            $sSQL="UPDATE  `$basedatos`.`notas` SET  `impresiones` =  '$impresiones' WHERE ID = '$ID'";
                                                                                                                                            mysql_db_query("$basedatos",$sSQL);
                                                                                                                                            }
                                                                                                                                            mysql_free_result($consulta);
                                                                                                                                            ?>

                                                                                                                            <div class="grid-item col-6 col-sm-6 col-md-12 col-lg-12 mb-3">



                                                                                                                                    <div class="news-summary">

                                                                                                                                                <a href="<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" class="imgDest">

                                                                                                                                                    <h4 class="colorTitulo"><?php echo $titulo ?> </h4>

                                                                                                                                                    <div class="col-12 col-lg-12" style="padding:0;">

                                                                                                                                                        <img class="img-fluid lazyy"  data-src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" src="spinner.gif" >

                                                                                                                                                        <p class="bajadaDeDos"><?php echo $bajada ?></p>

                                                                                                                                                    </div>
                                                                                                                                                </a>


                                                                                                                                    </div>

                                                                                                                            </div>


                                                                                                                        </div>

                                                                                                                    </div>

                                                                                                                                <?       if ($adsense == ' ') {} else { ?>
                                                                                                                    <div class="col-12 col-sm-12 col-md-12 col-lg-12" style="padding: 0;">
                                                                                                                        <!-- banner adsense -->
                                                                                                                        <? echo $banner_adsense ?>
                                                                                                                    </div>
                                                                                                                            <?  }; ?>

                                                                                                                </div>



                                                                                                                <?php }; ///cierro el if de las notis destacadas 2 ?>
                                                                                                                <!-- fin noticia gran 1 de 3 slider grande -->



                                                                                                                    <?
                                                                                                                    $sql = "SELECT * FROM `publicidades_gif` where lugar = '501' LIMIT 1";

                                                                                                                    $consulta = mysql_query ($sql);
                                                                                                                    while ($row = mysql_fetch_array($consulta))
                                                                                                                    {
                                                                                                                    $img_p = $row["img"];
                                                                                                                    $url_p = $row["url"];
                                                                                                                        $carpetafoto_p = $row["carpetafoto"];
                                                                                                                    ?>


                                                                                                                <div class="row bloqueBorde" style="margin-top:15px;">



                                                                                                                    <div class="col-12 col-sm-12 col-md-12 col-lg-12" style="text-align:center;padding:15px 0px;">


                                                                                                                        <div class="grid">

                                                                                                                                <div class="grid-item col-12 col-sm-12 col-md-12 col-lg-12" >


                                                                                                                                    <a href="<? echo $url_p ?>" target="_blank">

                                                                                                                                      <? $ext = substr($img, -3); if ($ext == 'mp4') { ?>

                                                                                                                                                                    <div class="col-12 text-center">
                                                                                                                                                                      <video autoplay muted loop style="width:100%">
                                                                                                                                                                        <source src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" type="video/mp4">
                                                                                                                                                                        Your browser does not support the video tag.
                                                                                                                                                                      </video>



                                                                                                                                                                    </div>

                                                                                                                                      <? } else { ?>
                                                                                                                                        <img  data-src="<? echo "$dom/$carpetafoto_p/$img_p"; ?>" class="img-fluid lazyy"  src="spinner.gif">
                                                                                                                                      <? }  ?>

                                                                                                                                    </a>


                                                                                                                                </div>

                                                                                                                        </div>

                                                                                                                </div>



                                                                                            </div>

                                                                                            <?
                                                                                                    }
                                                                                                    mysql_free_result($consulta); ?>






                                                                                                    <?php     $tam_ancho = 960;


                                                                                                    mysql_connect ("$host", "$usuario", "$contra");
                                                                                                    mysql_select_db ("$basedatos");

                                                                                                    $sql = "SELECT * FROM publicidades_swf WHERE lugar = '910'";

                                                                                                    $consulta = mysql_query ($sql);
                                                                                                    while ($row = mysql_fetch_array($consulta))
                                                                                                    {
                                                                                                    $ID = $row["ID"];
                                                                                                    $swf = $row["swf"];
                                                                                                    $carpetafoto = $row["carpetafoto"];
                                                                                                    $ancho = $row["ancho"];
                                                                                                    $alto = $row["alto"];
                                                                                                    $lugar = $row["lugar"];
                                                                                                    $tam_alto = $alto * $tam_ancho / $ancho;
                                                                                                        ?>
                                                                                                    <?php if ($hostdom == NULL) {$hostdom = "https://www.radiosnet.com.ar";};
                                                                                                    ?>
                                                                                                    <div class="row mb-4">


                                                                                                <div class="col-12 col-sm-12 col-md-12 col-lg-12">

                                                                                                        <object  width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>">
                                                                                                            <param name="src" value="<?php echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" />
                                                                                                            <embed src="<?php echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" pluginspage="https://www.adobe.com/shockwave/download/" width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>"><embed>
                                                                                                        </object>
                                                                                                        <br>
</div>

                                                                                            </div>
                                                                                                        <?
                                                                                                        }
                                                                                                    mysql_free_result($consulta);

                                                                                                    ?>



                                                                                                            <?php mysql_connect ("$host", "$usuario", "$contra");
                                                                                                    mysql_select_db ("$basedatos");

                                                                                                    $sql = "SELECT *
                                                                                                    FROM  `publicidades_slide` WHERE lugar = '910'";

                                                                                                    $consulta = mysql_query ($sql);
                                                                                                    while ($row = mysql_fetch_array($consulta))
                                                                                                    {
                                                                                                    $ID_p = $row["ID"];

                                                                                                    $width_slide = "100%";
                                                                                                    ?>
                                                                                                    <div class="row mb-4">


                                                                                                <div class="col-12 col-sm-12 col-md-12 col-lg-12">

                                                                                                    <?
                                                                                                    include 'publicidad_slider_virgen_div.php';
                                                                                                    ?>
</div>

                                                                                            </div>
                                                                                                    <?
                                                                                                        }
                                                                                                    mysql_free_result($consulta);?>




                                                                                                                <?php mysql_connect ("$host", "$usuario", "$contra");
                                                                                                            mysql_select_db ("$basedatos");

                                                                                                            $sql = "SELECT *
                                                                                                            FROM  `publicidades_gif` WHERE lugar = '910'";

                                                                                                            $consulta = mysql_query ($sql);
                                                                                                            while ($row = mysql_fetch_array($consulta))
                                                                                                            {
                                                                                                            $ID_p = $row["ID"];
                                                                                                            $img = $row["img"];
                                                                                                            $carpetafoto = $row["carpetafoto"];
                                                                                                            $url  = $row["url"];
                                                                                                            ?>
                                                                                                            <div class="row mb-4">
                                                                                                                <div class="col-12">
                                                                                                                    <a <?if ($url == '') {?>href="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" data-lightbox="example-1" data-title="My caption"<?}else{ ?>href="<?php echo $url ?>"  target="_blank"<?}?> >

                                                                                                                      <? $ext = substr($img, -3); if ($ext == 'mp4') { ?>

                                                                                                                                                    <div class="col-12 text-center">
                                                                                                                                                      <video autoplay muted loop style="width:100%">
                                                                                                                                                        <source src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" type="video/mp4">
                                                                                                                                                        Your browser does not support the video tag.
                                                                                                                                                      </video>



                                                                                                                                                    </div>

                                                                                                                      <? } else { ?>

                                                                                                                        <img class="img-fluid lazyy"  data-src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" src="spinner.gif" />

                                                                                                                      <? } ?>

                                                                                                                    </a>
                                                                                                                </div>
                                                                                                            </div>

                                                                                                            <?
                                                                                                                }
                                                                                                            mysql_free_result($consulta);
                                                                                                            ?>



                                                                                        <!-- X4 fotos arriba -->




                                                                                                <?php

                                                                                                            $lugar_publis_estilo = 1000;
                                                                                                            $id_publi_new = 900;
                                                                                            mysql_connect ("$host", "$usuario", "$contra");
                                                                                            mysql_select_db ("$basedatos");
                                                                                            $sql = "SELECT * FROM `categorias` WHERE `home` != '' AND `home` != 'si' AND `home` != 0 ORDER BY orden LIMIT 20" ;
                                                                                            $consulta = mysql_query ($sql);
                                                                                            while ($row = mysql_fetch_array($consulta))
                                                                                            {


                                                                                            $ID_cat_slide = $row["ID"];
                                                                                            $nombre_cat_slide = $row["nombre"];
                                                                                            $color_cat_slide = $row["color"];
                                                                                            $home = $row["home"];



                                                                                            $hay_publi = 'no';
                                                                                            $sql68 = "SELECT * FROM `publicidades_gif` where lugar = '$lugar_publis_estilo' LIMIT 1";

                                                                                            $consulta68 = mysql_query ($sql68);
                                                                                            while ($row68 = mysql_fetch_array($consulta68))
                                                                                            {
                                                                                            $img_p = $row68["img"];
                                                                                            $url_p = $row68["url"];
                                                                                            $carpetafoto_p = $row68["carpetafoto"];
                                                                                            $hay_publi = 'si';

                                                                                            }
                                                                                            mysql_free_result($consulta68);


                                                                                            ?>



                                                            <div class="row bloqueBorde mb-4 ">

                                                                            <?php if ($hay_publi == 'si') {?>


                                                                            <div class="col-12 sara content">


                                                                                    <div class="widget-head col-12 col-sm-12 col-md-12 col-lg-12" style="margin-bottom:15px;">

                                                                                    <h3 class="widget-title" style="">

                                                                                        <span><?php echo $nombre_cat_slide ?></span>

                                                                                    </h3>

                                                                                    </div>

                                                                                    <div class="grid" >

                                                                                        <div class="grid-item text-center col-12 col-sm-12 col-md-3 <? if ($home == 3) {?>col-lg-4<?} else {?>col-lg-3<?} ?> " style="">
                                                                                            <img  data-src="<? echo "$dom/$carpetafoto_p/$img_p"; ?>" class="img-fluid lazyy" src="spinner.gif" >
                                                                                        </div>


                                                                                        <?

                                                                                            $lugar_ii = 0;
                                                                                            $random = rand(1,4);
                                                                                            if ($home == 1) { if ($hay_publi == 'si')  {$limit = "3";} else {$limit = "4";}; };
                                                                                            if ($home == 2) {$limit = "3";};
                                                                                            if ($home == 3) {$limit = "2";};
                                                                                            if ($home == 4) {$limit = "4";};
                                                                                            if ($home == 5) {$limit = "8";};

                                                                                            mysql_connect ("$host", "$usuario", "$contra");
                                                                                            mysql_select_db ("$basedatos");
                                                                                            $sql22 = "SELECT ID,titulo,texto,bajada,d,m,a,carpetafoto,ext_img,cat,foto FROM notas WHERE ver = 'si' AND foto != '' AND cat = '$ID_cat_slide' AND des_cat = '1' ORDER BY ID desc LIMIT $limit";
                                                                                            $consulta22 = mysql_query ($sql22);
                                                                                            while ($row22 = mysql_fetch_array($consulta22))
                                                                                            {
                                                                                            $lugar_ii = $lugar_ii + 1;
                                                                                            $ID = $row22["ID"];
                                                                                            $titulo = $row22["titulo"];
                                                                                            $texto = $row22["texto"];
                                                                                            $bajada = $row22["bajada"];
                                                                                            $cat = $row22["cat"];
                                                                                            $d = $row22["d"];
                                                                                            $m = $row22["m"];
                                                                                            $a = $row22["a"];
                                                                                            $carpetafoto = $row22["carpetafoto"];
                                                                                            $foto = $row22["foto"];
                                                                                            $ext_img = $row22["ext_img"];

                                                                                            if ($home == 1) {include 'estilo1_cat.php';};
                                                                                            if ($home == 2) {include 'estilo2_cat.php';};
                                                                                            if ($home == 3) {include 'estilo3_cat.php';};
                                                                                            if ($home == 4) {include 'estilo4_cat.php';};
                                                                                            if ($home == 5) {include 'estilo4_slider.php';};
                                                                                            }
                                                                                            mysql_free_result($consulta22);

                                                                                        ?>

                                                                                    </div>

                                                                            </div>


                                                                            <?} else {?>

                                                                                <div class="col-12 col-sm-12 col-md-12 col-lg-12" >


                                                                                    <div class="widget-head col-12 col-sm-12 col-md-12 col-lg-12">

                                                                                        <h3 class="widget-title" style="">

                                                                                            <span><?php echo $nombre_cat_slide ?></span>

                                                                                        </h3>

                                                                                    </div>

                                                                                <div class="pl-1 pr-1 pt-3">

                                                                                    <div class="grid " >

                                                                                                <?

                                                                                                $lugar_ii = 0;

                                                                                                $random = rand(1,4);
                                                                                                if ($home == 1) { if ($hay_publi == 'si')  {$limit = "3";} else {$limit = "4";}; };
                                                                                                if ($home == 2) {$limit = "3";};
                                                                                                if ($home == 3) {$limit = "2";};
                                                                                                if ($home == 4) {$limit = "4";};
                                                                                                if ($home == 5) {$limit = "1";};

                                                                                                mysql_connect ("$host", "$usuario", "$contra");
                                                                                                mysql_select_db ("$basedatos");
                                                                                                $sql22 = "SELECT ID,titulo,texto,bajada,d,m,a,cat,carpetafoto,foto,ext_img FROM notas WHERE ver = 'si' AND foto != '' AND cat = '$ID_cat_slide' AND des_cat = '1' ORDER BY ID desc LIMIT $limit";
                                                                                                $consulta22 = mysql_query ($sql22);
                                                                                                while ($row22 = mysql_fetch_array($consulta22))
                                                                                                {

                                                                                                $lugar_ii = $lugar_ii + 1;
                                                                                                $ID = $row22["ID"];
                                                                                                $titulo = $row22["titulo"];
                                                                                                $texto = $row22["texto"];
                                                                                                $bajada = $row22["bajada"];
                                                                                                $d = $row22["d"];
                                                                                                $m = $row22["m"];
                                                                                                $a = $row22["a"];
                                                                                                $cat = $row22["cat"];
                                                                                                $carpetafoto = $row22["carpetafoto"];
                                                                                                $foto = $row22["foto"];
                                                                                                $ext_img = $row22["ext_img"];
                                                                                                if ($home == 1) {include 'estilo1_cat.php';};
                                                                                                if ($home == 2) {include 'estilo2_cat.php';};
                                                                                                if ($home == 3) {include 'estilo3_cat.php';};
                                                                                                if ($home == 4) {include 'estilo4_cat.php';};
                                                                                                if ($home == 5) {include 'estilo4_slider.php';};
                                                                                                }
                                                                                                mysql_free_result($consulta22);
                                                                                                ?>

                                                                                            </div>

                                                                                    </div>

                                                                                </div>


                                                                            <?} ;?>





                                                                            </div>

                                                                                        <!-- ARRANCA PUBLIS PRIMERAS -->

                                                                                        <?
                                                                                        $sql44 = "SELECT * FROM `publicidades_gif` where lugar = '$id_publi_new' LIMIT 1";
                                                                                        $consulta44 = mysql_query ($sql44);
                                                                                        while ($row44 = mysql_fetch_array($consulta44))
                                                                                        {
                                                                                        $img_p = $row44["img"];
                                                                                        $url_p = $row44["url"];
                                                                                        $carpetafoto_p = $row44["carpetafoto"];
                                                                                        ?>

                                                                                        <div class="row bloqueBorde mb-4">

                                                                                                <div class="col-12 col-sm-12 col-md-12 col-lg-12" style="text-align:center;">

                                                                                                    <div class="col-12 col-sm-12 col-md-12 col-lg-12 p-0" >

                                                                                                        <a href="<? echo $url_p ?>" target="_blank">

                                                                                                          <? $ext = substr($img_p, -3); if ($ext == 'mp4') { ?>

                                                                                                                                        <div class="col-12 text-center">
                                                                                                                                          <video autoplay muted loop style="width:100%">
                                                                                                                                            <source src="<?php echo $dom ?>/<?php echo $carpetafoto_p ?>/<?php echo $img_p ?>" type="video/mp4">
                                                                                                                                            Your browser does not support the video tag.
                                                                                                                                          </video>



                                                                                                                                        </div>

                                                                                                          <? } else { ?>

                                                                                                            <img  data-src="<? echo "$dom/$carpetafoto_p/$img_p"; ?>" class="img-fluid lazyy" src="spinner.gif" ></a>
                                                                                                          <?  }  ?>
                                                                                                    </div>

                                                                                                </div>
                                                                                        </div>

                                                                                        <?
                                                                                        }
                                                                                        mysql_free_result($consulta44); ?>

                                                                                        <?php
                                                                                        $lugar_publis_estilo = $lugar_publis_estilo + 1;
                                                                                        $id_publi_new = $id_publi_new + 1;
                                                                                                }
                                                                                        mysql_free_result($consulta);?>


                                                                                <!-- X3 -->

                                                                            <!-- grid -->


                                                                            <div id="main-content" class="row main mb-4 px-3">

                                                                                <div id="content" class="content col-12 col-sm-12 col-md-8 col-lg-8 p-0">

                                                                                    <div>

                                                                                                                                                                        <?       if ($adsense == ' ') {} else { ?>

                                                                                                                                                                            <div class="col-12 col-lg-12" style="padding: 0;">
                                                                                                                                                                                <!-- banner adsense -->
                                                                                                                                                                                <? echo $banner_adsense ?>
                                                                                                                                                                            </div>

                                                                                                                                                                        <?  }; ?>

                                                                                                                                                                        <?php

                                                                                                                                                                            $haycuber = 0;

                                                                                                                                                                            mysql_connect ("$host", "$usuario", "$contra");
                                                                                                                                                                            mysql_select_db ("$basedatos");

                                                                                                                                                                            $sql = "SELECT * FROM notas_tapa WHERE cu3er = '1' ORDER BY ID desc";

                                                                                                                                                                            $consulta = mysql_query ($sql);
                                                                                                                                                                            while ($row = mysql_fetch_array($consulta))
                                                                                                                                                                            {
                                                                                                                                                                            $haycuber = 1;
                                                                                                                                                                            }
                                                                                                                                                                            mysql_free_result($consulta2);
                                                                                                                                                                            if ($haycuber == 1) {
                                                                                                                                                                        ?>

                                                                                                                                                                        <div id="tritop" class="row px-1 wow fadeIn" data-wow-duration="1s">

                                                                                                                                                                            <div id="tritop1" class="col-12 col-sm-4 col-md-4 col-lg-4 px-1 mb-3">

                                                                                                                                                                                <?php include 'cu3er12_estilo4.php';?>

                                                                                                                                                                            </div>

                                                                                                                                                                            <div id="tritop2" class="col-12 col-sm-4 col-md-4 col-lg-4 px-1 mb-3">

                                                                                                                                                                                <?php include 'cu3er22_estilo4.php';?>

                                                                                                                                                                            </div>

                                                                                                                                                                            <div id="tritop3" class="col-12 col-sm-4 col-md-4 col-lg-4 px-1 mb-3">

                                                                                                                                                                                <?php include 'cu3er32_estilo4.php';?>

                                                                                                                                                                            </div>

                                                                                                                                                                        </div>

                                                                                                                                                                        <?php  } else {};?>

                                                                                                                                                                        <div class="grid wow fadeIn" data-wow-duration="1s" <?php   if ($hay_cuber_0 == 'si') {?>  <?php } else {};?> >

                                                                                                                                                                                <?php    // arranca destacados ?>

                                                                                                                                                                                <?

                                                                                                                                                                                    mysql_connect ("$host", "$usuario", "$contra");

                                                                                                                                                                                    mysql_select_db ("$basedatos");

                                                                                                                                                                                    $sql = "SELECT ID,titulo,texto,bajada,audio,youtube,d,m,a,carpetafoto,foto,cat,home,impresiones, ext_img FROM notas WHERE destacado = 'si' AND ver = 'si' AND home = 'si' ORDER BY ID desc LIMIT 10";

                                                                                                                                                                                    $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"];
                                                                                                                                                                                    $youtube  = $row["youtube"];
                                                                                                                                                                                    $d = $row["d"];
                                                                                                                                                                                    $m = $row["m"];
                                                                                                                                                                                    $a = $row["a"];
                                                                                                                                                                                    $fecha = "$d - $m - $a";
                                                                                                                                                                                    $carpetafoto = $row["carpetafoto"];
                                                                                                                                                                                    $foto = $row["foto"]; $ext_img = $row["ext_img"];
                                                                                                                                                                                    $cat = $row["cat"];
                                                                                                                                                                                    $home = $row["home"];
                                                                                                                                                                                    $impresiones = $row["impresiones"];
                                                                                                                                                                                    $impresiones = $impresiones + 1;
                                                                                                                                                                                    $sSQL="UPDATE  `$basedatos`.`notas` SET  `impresiones` =  '$impresiones' WHERE ID = '$ID'";
                                                                                                                                                                                    mysql_db_query("$basedatos",$sSQL);

                                                                                                                                                                                    $M = $m;

                                                                                                                                                                                    if ($M == '01') {$m = "enero";};
                                                                                                                                                                                    if ($M == '02') {$m = "febrero";};
                                                                                                                                                                                    if ($M == '03') {$m = "marzo";};
                                                                                                                                                                                    if ($M == '04') {$m = "abril";};
                                                                                                                                                                                    if ($M == '05') {$m = "mayo";};
                                                                                                                                                                                    if ($M == '06') {$m = "junio";};
                                                                                                                                                                                    if ($M == '07') {$m = "julio";};
                                                                                                                                                                                    if ($M == '08') {$m = "agosto";};
                                                                                                                                                                                    if ($M == '09') {$m = "septiembre";};
                                                                                                                                                                                    if ($M == '10') {$m = "octubre";};
                                                                                                                                                                                    if ($M == '11') {$m = "noviembre";};
                                                                                                                                                                                    if ($M == '12') {$m = "diciembre";};
                                                                                                                                                                                    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       ////aca arranca el articulo?>



                                                                                                                                                                                            <div class="grid-item base-box col-12 col-sm-6 col-md-6 col-lg-6" style="">



                                                                                                                                                                                                <article class="wow fadeIn" data-wow-duration="1s">
                                                                                                                                                                                                    
                                                                                                                                                                                                    <?php if ($opcion111 == 1) {?>
                                            
                                                <div class="news-summary mt-4" style="background-color: <?echo $d_color_destacada?>!important;">
                                                        
                                                    <a href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>">
                                                        <h3 class="colorTitulo" style="color:#f1f1f1!important;"><?php echo $titulo ?></h3>
                                                    </a>
                                                
                                                </div>
                                                    
                                                <?} else {}?>


                                                                                                                                                                                                    <div class="news-image">

                                                                                                                                                                                                        <? $hexa2 = substr($color_cat,1);

                                                                                                                                                                                                                $decimal2 = hexdec($hexa2);


                                                                                                                                                                                                                if ($decimal2 <= '10066329') {$color_titulo_barra2 = "250,250,250,0.9";} else {$color_titulo_barra2 = "0,0,0,0.9";};

                                                                                                                                                                                                        ?>

<?php if ($cat == 0) {} else {?>
            
                        <span class="cat-title larger cat-6"
                            style="background-color:<?php echo $color_cat ?>;">
                            <span style="background:<?php echo $d_color_fondo_menu ;?>;color:<? echo $d_color_menu ?>;">
                                <span class="p-3">
                                    <?php 
                                        $sql22 = "SELECT * FROM `categorias` WHERE `ID` = '$cat'";
                                        $consulta22 = mysql_query($sql22);
                                        while ($row22 = mysql_fetch_array($consulta22))
                                        {
                                        $ID_cat_nombre = $row22["nombre"];
                                        
                                        } mysql_free_result($consulta22);
                                        
                                        echo  $ID_cat_nombre;
                                        ?>
                                </span>
                            </span>
                        </span> 
                        <?php };?>
                                                                                                                                                                                                        <?
                                                                                                                                                                                                                $tiene = 0;
                                                                                                                                                                                                                //echo $ID;
                                                                                                                                                                                                                mysql_connect ("$host","$usuario","$contra");
                                                                                                                                                                                                                mysql_select_db ("$basedatos");
                                                                                                                                                                                                                $sql44 = "SELECT * FROM videos WHERE ID_nota = '$ID' LIMIT 1";
                                                                                                                                                                                                                $consulta44 = mysql_query ($sql44);
                                                                                                                                                                                                                while ($row44 = mysql_fetch_array($consulta44))
                                                                                                                                                                                                                {
                                                                                                                                                                                                                $ID_video = $row44["ID"];
                                                                                                                                                                                                                $video_vid = $row44["video"];
                                                                                                                                                                                                                $ID_nota = $row44["ID_nota"];
                                                                                                                                                                                                                $tiene = 1;
                                                                                                                                                                                                                }

                                                                                                                                                                                                                mysql_free_result($consulta44);

                                                                                                                                                                                                                ?>


                                                                                                                                                                                                                <? if ($foto == '') {} else {?>
                                                                                                                                                                                                        <a href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" style="text-align:center;">


                                                                                                                                                                                                              <ul style="position: absolute;top:5px;right:15px; color:#fff;list-style:none;">
                                                                                                                                                                                                        <? if($tiene == 1 || $youtube != '' || $youtube != NULL) {?>




                                                                                                                                                                                                                <li><i style="font-size:1.8rem;" class="far fa-play-circle"></i></li>



                                                                                                                                                                                                            <?}?>

                                                                                                                                                                                                            <? if($audio != '' || $audio != NULL) {?>

                                                                                                                                                                                                                <li><i style="font-size:1.8rem;" class="fas fa-volume-up"></i></li>
                                                                                                                                                                                                            <?}?>
                                                                                                                                                                                                            </ul>





                                                                                                                                                                                                            <img class="img-fluid lazyy"  data-src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>" src="spinner.gif" data-hidpi="<?php echo $dom ?>/<?php echo $carpetafoto ?>/thumbnail_<?php echo $foto ?><?php echo $ext_img ?>"  >


                                                                                                                                                                                                        </a>

                                                                                                                                                                                                      <? }; ?>
                                                                                                                                                                                                     </div>
                                                                                                                                                                                                     
                                                                                                                                                                                                    <div class="news-summary" style="background-color: <?echo $d_color_destacada?>!important;">

                                                                                                                                                                                                         <?php if ($opcion111 == 0) {?>
                                            
                                                    <a href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>">
                                                        <h3 class="colorTitulo"><?php echo $titulo ?></h3>
                                                    </a>
                                              
                                                    
                                                <?} else {}?>


                                                                                                                                                                                                        <div class="mom-post-meta nb-item-meta">
                                                                                                                                                                                                            <span class="entry-date"><?php echo $d ?> de <?php echo $m ?>, <?php echo $a ?></span>
                                                                                                                                                                                                        </div>
                                                                                                                                                                                                            <span class="bajada">
                                                                                                                                                                                                                <p class="selectionShareable" style="margin-bottom:0;color:#f1f1f1!important;"><?php $bajada = str_replace('<em>','',$bajada);  $bajada = str_replace('</em>','',$bajada);  echo $bajada; ?></p></span>
                                                                                                                                                                                                    </div>
                                                                                                                                                                                                    <ul class="navbar-nav flex-row ml-md-auto d-md-flex px-2" style="background-color:<?php echo $d_color_destacada ?>;">

                                                                                                                                                                                                            <li class="nav-item">
                                                                                                                                                                                                                <a style="padding:5px 7.5px;" target="_blank" href="https://www.facebook.com/sharer.php?u=<? echo $dom ?>/nota/<? echo $ID ?>/<? echo urls_amigables($titulo) ?>&t=<? echo $titulo ?>">
                                                                                                                                                                                                                    <i class="fab fa-facebook" style="font-size:1.2rem;color:#ffffff; " aria-hidden="true"></i>
                                                                                                                                                                                                                </a>
                                                                                                                                                                                                            </li>

                                                                                                                                                                                                            <li class="nav-item">
                                                                                                                                                                                                                <a style="padding:5px 7.5px;" target="_blank" href="https://twitter.com/share?original_referer=<? echo $dom ?>/nota/<? echo $ID ?>/<? echo urls_amigables($titulo) ?>&amp;source=tweetbutton&amp;text=<? echo $titulo; ?>&amp;url=<? echo $dom ?>/nota/<? echo $ID ?>/<? echo urls_amigables($titulo) ?>">
                                                                                                                                                                                                                    <i class="fab fa-twitter" style="font-size:1.2rem;color:#ffffff; " aria-hidden="true"></i>
                                                                                                                                                                                                                </a>
                                                                                                                                                                                                            </li>

                                                                                                                                                                                                            <li class="nav-item">
                                                                                                                                                                                                                <a style="padding:5px 7.5px;" target="_blank" href="https://api.whatsapp.com/send?text=*<? echo $titulo ?>.*  <?php echo $dom ?>/nota/<? echo $ID ?>/<? echo urls_amigables($titulo);?>">
                                                                                                                                                                                                                    <i class="fab fa-whatsapp" style="font-size:1.2rem;color:#ffffff;" aria-hidden="true"></i>
                                                                                                                                                                                                                </a>
                                                                                                                                                                                                            </li>

                                                                                                                                                                                                    </ul>


                                                                                                                                                                                                </article>

                                                                                                                                                                                            </div>

                                                                                                                                                                                <?php

                                                                                                                                                                                    ////////////GIF

                                                                                                                                                                                    $sql2 = "SELECT * FROM publicidades_gif WHERE lugar = '$i_publi'";

                                                                                                                                                                                    $consulta2 = mysql_query ($sql2);

                                                                                                                                                                                    while ($row2 = mysql_fetch_array($consulta2))

                                                                                                                                                                                    {

                                                                                                                                                                                    $img = $row2["img"];

                                                                                                                                                                                    $url = $row2["url"];



                                                                                                                                                                                    $carpetafoto = $row2["carpetafoto"];



                                                                                                                                                                                ?>

                                                                                                                                                                        <div class="grid-item base-box col-12 col-sm-6 col-md-6 col-lg-6" style="text-align:center; ">

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

                                                                                                                                                                                    <a href="<?php echo $url; ?>"  target="_blank" class="Estilo1"><?php };?>

                                                                                                                                                                                      <? $ext = substr($img, -3); if ($ext == 'mp4') { ?>

                                                                                                                                                                                                                    <div class="col-12 text-center">
                                                                                                                                                                                                                      <video autoplay muted loop style="width:100%">
                                                                                                                                                                                                                        <source src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" type="video/mp4">
                                                                                                                                                                                                                        Your browser does not support the video tag.
                                                                                                                                                                                                                      </video>



                                                                                                                                                                                                                    </div>

                                                                                                                                                                                      <? } else { ?>

                                                                                                                                                                                    <img class="img-fluid lazyy"  data-src="<?php echo $dom ?>/<?php echo $carpetafoto?>/<?php echo $img ?>"  src="spinner.gif" > <?php   if ($url == NULL) {} else { ?> </a><?php };?>
                                                                                                                                                                                    <?  }  ?>
                                                                                                                                                                        </div>
                                                                                                                                                                                <?

                                                                                                                                                                                }

                                                                                                                                                                                mysql_free_result($consulta2);

                                                                                                                                                                                //////////////////// FIN GIF

                                                                                                                                                                                ?>







                                                                                                                                                                                <?php     $tam_ancho = 300;

                                                                                                                                                                                $sql44 = "SELECT * FROM publicidades_swf WHERE lugar = $i_publi";

                                                                                                                                                                                $consulta44 = mysql_query ($sql44);

                                                                                                                                                                                while ($row44 = mysql_fetch_array($consulta44))

                                                                                                                                                                                {

                                                                                                                                                                                $ID = $row44["ID"];

                                                                                                                                                                                $swf = $row44["swf"];

                                                                                                                                                                                $carpetafoto = $row44["carpetafoto"];

                                                                                                                                                                                $ancho = $row44["ancho"];

                                                                                                                                                                                $alto = $row44["alto"];

                                                                                                                                                                                $lugar = $row44["lugar"];

                                                                                                                                                                                $tam_alto = $alto * $tam_ancho / $ancho;

                                                                                                                                                                                ?>



                                                                                                                                                                            <div class="grid-item base-box col-12 col-sm-6 col-md-6 col-lg-6" style=" margin-bottom:10px;">

                                                                                                                                                                                <object  width="100%" height="100%">

                                                                                                                                                                                        <param name="src" value="<? echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" />

                                                                                                                                                                                        <embed src="<? echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" pluginspage="https://www.adobe.com/shockwave/download/" width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>"><embed>

                                                                                                                                                                                </object>

                                                                                                                                                                            </div>


                                                                                                                                                                                <?

                                                                                                                                                                                        }

                                                                                                                                                                                        mysql_free_result($consulta44);

                                                                                                                                                                                ?>



                                                                                                                                                                                <?php

                                                                                                                                                                                        //arranca publis jpg

                                                                                                                                                                                        $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"];



                                                                                                                                                                                ?>






                                                                                                                                                                            <div class="grid-item base-box col-12 col-sm-6 col-md-6 col-lg-6" style="text-align:center;">

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

                                                                                                                                                                                    <a href="<?php echo $url; ?>"  target="_blank" class="Estilo1"><?php };?><img class="img-fluid lazyy" src="spinner.gif" data-src="<?php echo $carpetafoto?>/resize_<?php echo $img ?>.jpg"  > <?php   if ($url == NULL) {} else { ?> </a><?php };?>


                                                                                                                                                                            </div>


                                                                                                                                                                            <?

                                                                                                                                                                                    }

                                                                                                                                                                                    mysql_free_result($consulta2);
                                                                                                                                                                                    ///termina publi jpg
                                                                                                                                                                            ?>



                                                                                                                                                                            <?php



                                                                                                                                                                                    $i= $i + 1;



                                                                                                                                                                                    }

                                                                                                                                                                                    mysql_free_result($consulta);

                                                                                                                                                                                    //aca termina article
                                                                                                                                                                            ?>



                                                                                                                                                                            <?php   //termina destacado ?>


                                                                                                                                                                                                                <?


                                                                                                                                                                                        mysql_connect ("$host", "$usuario", "$contra");

                                                                                                                                                                                        mysql_select_db ("$basedatos");

                                                                                                                                                                                        $sql = "SELECT ID,titulo,texto,bajada,audio,youtube,d,m,a,carpetafoto,foto,cat,home,impresiones, ext_img FROM notas WHERE destacado = 'no' AND ver = 'si' AND home = 'si' and des_cat = 0 ORDER BY ID desc LIMIT $cantidad_notas";

                                                                                                                                                                                        $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"];
                                                                                                                                                                                        $youtube  = $row["youtube"];
                                                                                                                                                                                        $d = $row["d"];
                                                                                                                                                                                        $m = $row["m"];
                                                                                                                                                                                        $a = $row["a"];
                                                                                                                                                                                        $fecha = "$d - $m - $a";
                                                                                                                                                                                        $carpetafoto = $row["carpetafoto"];
                                                                                                                                                                                        $foto = $row["foto"]; $ext_img = $row["ext_img"];
                                                                                                                                                                                        $cat = $row["cat"];
                                                                                                                                                                                        $home = $row["home"];
                                                                                                                                                                                        $impresiones = $row["impresiones"];
                                                                                                                                                                                        $impresiones = $impresiones + 1;
                                                                                                                                                                                        $sSQL="UPDATE  `$basedatos`.`notas` SET  `impresiones` =  '$impresiones' WHERE ID = '$ID'";

                                                                                                                                                                                        mysql_db_query("$basedatos",$sSQL);

                                                                                                                                                                                        $M = $m;

                                                                                                                                                                                        if ($M == '01') {$m = "enero";};
                                                                                                                                                                                        if ($M == '02') {$m = "febrero";};
                                                                                                                                                                                        if ($M == '03') {$m = "marzo";};
                                                                                                                                                                                        if ($M == '04') {$m = "abril";};
                                                                                                                                                                                        if ($M == '05') {$m = "mayo";};
                                                                                                                                                                                        if ($M == '06') {$m = "junio";};
                                                                                                                                                                                        if ($M == '07') {$m = "julio";};
                                                                                                                                                                                        if ($M == '08') {$m = "agosto";};
                                                                                                                                                                                        if ($M == '09') {$m = "septiembre";};
                                                                                                                                                                                        if ($M == '10') {$m = "octubre";};
                                                                                                                                                                                        if ($M == '11') {$m = "noviembre";};
                                                                                                                                                                                        if ($M == '12') {$m = "diciembre";};
                                                                                                                                                                                        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       ////aca arranca el articulo?>



                                                                                                                                                                            <div class="grid-item base-box col-12 col-sm-6 col-md-6 col-lg-6" style="">



                                                                                                                                                                                <article class="wow fadeIn" data-wow-duration="1s" >
                                                                                                                                                                                    
                                                                                                                                                                                     <?php if ($opcion111 == 1) {?>
                                            
                                                <div class="news-summary mt-4">
                                                        
                                                    <a href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>">
                                                        <h3 class="colorTitulo"><?php echo $titulo ?></h3>
                                                    </a>
                                                
                                                </div>
                                                    
                                                <?} else {}?>


                                                                                                                                                                                    <div class="news-image" style="">

                                                                                                                                                                                                    <? $hexa2 = substr($color_cat,1);
                                                                                                                                                                                                    $decimal2 = hexdec($hexa2);
                                                                                                                                                                                                    if ($decimal2 <= '10066329') {$color_titulo_barra2 = "250,250,250,0.9";} else {$color_titulo_barra2 = "0,0,0,0.9";};
                                                                                                                                                                                                    ?>
                                                                                                                                                                                            <?php if ($cat == '0') {} else {?>

                                                                                                                                                                                                <div class="cat-title larger cat-6" style="background-color:<?php echo $color_cat ?>;">
                                                                                                                                                                                                    <a style="color:rgba(<? echo $color_titulo_barra2 ?>)!important;" href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>"><?php echo $cat ?></a>
                                                                                                                                                                                                </div>
                                                                                                                                                                                            <?php };?>
                                                                                                                                                                                            <?
                                                                                                                                                                                                                $tiene = 0;
                                                                                                                                                                                                                // echo $ID;
                                                                                                                                                                                                                mysql_connect ("$host","$usuario","$contra");
                                                                                                                                                                                                                mysql_select_db ("$basedatos");
                                                                                                                                                                                                                $sql44 = "SELECT * FROM videos WHERE 'ID_nota' = $ID limit 1";
                                                                                                                                                                                                                $consulta44 = mysql_query ($sql44);
                                                                                                                                                                                                                while ($row44 = mysql_fetch_array($consulta44))
                                                                                                                                                                                                                {
                                                                                                                                                                                                                $ID_video = $row44["ID"];
                                                                                                                                                                                                                $video_vid = $row44["video"];
                                                                                                                                                                                                                $ID_nota = $row44["ID_nota"];
                                                                                                                                                                                                                $tiene = 1;
                                                                                                                                                                                                                }
                                                                                                                                                                                                                mysql_free_result($consulta44);
                                                                                                                                                                                                                ?>

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



                                                                                                                                                                                                <a href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>" style="text-align:center;">
                                                                                                                                                                                                    <ul style="position: absolute;top:5px;right:15px; color:#fff;list-style:none;">
                                                                                                                                                                                                        <? if($tiene == 1 || $youtube != '' || $youtube != NULL) {?>




                                                                                                                                                                                                                <li><i style="font-size:1.8rem;" class="far fa-play-circle"></i></li>



                                                                                                                                                                                                            <?}?>

                                                                                                                                                                                                            <? if($audio != '' || $audio != NULL) {?>

                                                                                                                                                                                                                <li><i style="font-size:1.8rem;" class="fas fa-volume-up"></i></li>
                                                                                                                                                                                                            <?}?>
                                                                                                                                                                                                            </ul>
 <img loading="lazy" class="img-fluid lazyy"
                                                            src="<? $fotojj = substr($foto,0,4); if ($fotojj == 'http') { echo $foto; } else { echo "$dom/$carpetafoto/thumbnail_$foto$ext_img"; }; ?>"
                                                             
                                                            data-hidpi="<? $fotojj = substr($foto,0,4); if ($fotojj == 'http') { echo $foto; } else { echo "$dom/$carpetafoto/thumbnail_$foto$ext_img"; }; ?>"
                                                            alt="<?php echo $titulo ?>">                                                                                                                                                                                                </a>
                                                                                                                                                                                              <? }; ?>









                                                                                                                                                                                    </div>

                                                                                                                                                                                    <div class="news-summary">
                                                                                                                                                                                        
                                                                                                                                                                                         <?php if ($opcion111 == 0) {?>
                                                    
                                                    <a href="<? echo $dom;?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>">
                                                        <h3 class="colorTitulo"><?php echo $titulo ?></h3>
                                                    </a>
                                                    
                                                <?} else {}?>
                                                                                                                                                                                        

                                                                                                                                                                                        <div class="mom-post-meta nb-item-meta">
                                                                                                                                                                                            <span class="entry-date"><?php echo $d ?> de <?php echo $m ?>, <?php echo $a ?></span>
                                                                                                                                                                                        </div>

                                                                                                                                                                                        <div class="bajada">

                                                                                                                                                                                            <p class="selectionShareable" style="margin-bottom:0;"><?php $bajada = str_replace('<em>','',$bajada);  $bajada = str_replace('</em>','',$bajada);  echo $bajada; ?></p>

                                                                                                                                                                                        </div>

                                                                                                                                                                                    </div>

                                                                                                                                                                                    <ul class="navbar-nav flex-row ml-md-auto d-md-flex px-2">

                                                                                                                                                                                        <li class="nav-item">
                                                                                                                                                                                            <a style="padding:5px 7.5px;" target="_blank" href="https://www.facebook.com/sharer.php?u=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>&t=<?php echo $titulo ?>">
                                                                                                                                                                                                <i class="fab fa-facebook" style="font-size:1.2rem;color:#545454; " aria-hidden="true"></i>
                                                                                                                                                                                            </a>
                                                                                                                                                                                        </li>

                                                                                                                                                                                        <li class="nav-item">
                                                                                                                                                                                            <a style="padding:5px 7.5px;" target="_blank" href="https://twitter.com/share?original_referer=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo_xx) ?>&amp;source=tweetbutton&amp;text=<?php echo $titulo; ?>&amp;url=<?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo) ?>">
                                                                                                                                                                                                <i class="fab fa-twitter" style="font-size:1.2rem;color:#545454; " aria-hidden="true"></i>
                                                                                                                                                                                            </a>
                                                                                                                                                                                        </li>

                                                                                                                                                                                        <li class="nav-item">
                                                                                                                                                                                            <a style="padding:5px 7.5px;" target="_blank" href="https://api.whatsapp.com/send?text=*<?php echo $titulo ?>.*  <?php echo $dom ?>/nota/<?php echo $ID ?>/<?php echo urls_amigables($titulo);?>">
                                                                                                                                                                                                <i class="fab fa-whatsapp" style="font-size:1.2rem;color:#545454;" aria-hidden="true"></i>
                                                                                                                                                                                            </a>
                                                                                                                                                                                        </li>

                                                                                                                                                                                    </ul>


                                                                                                                                                                                </article>

                                                                                                                                                                            </div>



                                                                                                                                                                                        <?   if(($i_publi % 5 ) == 0){ ?>

                                                                                                                                                                                            <?       if ($adsense == ' ') {} else { ?>
                                                                                                                                                                                            <div class="grid-item base-box col-12 col-sm-6 col-md-6 col-lg-6" style="text-align:center; ">
                                                                                                                                                                                    <!-- banner adsense -->
                                                                                                                                                                                    <? echo $banner_adsense ?>
                                                                                                                                                                                    </div>
                                                                                                                                                                                    <?  }; ?>
                                                                                                                                                                            <?  }; ?>

                                                                                                                                                                        <?php

                                                                                                                                                                        ////////////GIF

                                                                                                                                                                        $sql2 = "SELECT * FROM publicidades_gif WHERE lugar = '$i_publi'";

                                                                                                                                                                        $consulta2 = mysql_query ($sql2);

                                                                                                                                                                        while ($row2 = mysql_fetch_array($consulta2))

                                                                                                                                                                        {

                                                                                                                                                                        $img = $row2["img"];

                                                                                                                                                                        $url = $row2["url"];



                                                                                                                                                                        $carpetafoto = $row2["carpetafoto"];



                                                                                                                                                                        ?>

                                                                                                                                                                        <div class="grid-item base-box col-12 col-sm-6 col-md-6 col-lg-6" style="text-align:center; ">

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

                                                                                                                                                                                        <a href="<?php echo $url; ?>"  target="_blank" class="Estilo1"><?php };?>

                                                                                                                                                                                          <? $ext = substr($img, -3); if ($ext == 'mp4') { ?>

                                                                                                                                                                                                                        <div class="col-12 text-center">
                                                                                                                                                                                                                          <video autoplay muted loop style="width:100%">
                                                                                                                                                                                                                            <source src="<?php echo $dom ?>/<?php echo $carpetafoto ?>/<?php echo $img ?>" type="video/mp4">
                                                                                                                                                                                                                            Your browser does not support the video tag.
                                                                                                                                                                                                                          </video>



                                                                                                                                                                                                                        </div>

                                                                                                                                                                                          <? } else { ?>


                                                                                                                                                                                          <img class="img-fluid lazyy"  data-src="<?php echo $dom ?>/<?php echo $carpetafoto?>/<?php echo $img ?>" src="spinner.gif"  > <?php   if ($url == NULL) {} else { ?> </a><?php };?>
                                                                                                                                                                                          <?
                                                                                                                                                                                          }
                                                                                                                                                                                          ?>

                                                                                                                                                                                                                </div>
                                                                                                                                                                                        <?

                                                                                                                                                                                        }

                                                                                                                                                                                        mysql_free_result($consulta2);

                                                                                                                                                                                        //////////////////// FIN GIF

                                                                                                                                                                                        ?>







                                                                                                                                                                            <?php     $tam_ancho = 300;

                                                                                                                                                                            $sql44 = "SELECT * FROM publicidades_swf WHERE lugar = $i_publi";

                                                                                                                                                                            $consulta44 = mysql_query ($sql44);

                                                                                                                                                                            while ($row44 = mysql_fetch_array($consulta44))

                                                                                                                                                                            {

                                                                                                                                                                            $ID = $row44["ID"];

                                                                                                                                                                            $swf = $row44["swf"];

                                                                                                                                                                            $carpetafoto = $row44["carpetafoto"];

                                                                                                                                                                            $ancho = $row44["ancho"];

                                                                                                                                                                            $alto = $row44["alto"];

                                                                                                                                                                            $lugar = $row44["lugar"];

                                                                                                                                                                            $tam_alto = $alto * $tam_ancho / $ancho;

                                                                                                                                                                                ?>



                                                                                                                                                                        <div class="grid-item base-box col-12 col-sm-6 col-md-6 col-lg-6" style=" margin-bottom:10px;">

                                                                                                                                                                                <object  width="100%" height="100%">

                                                                                                                                                                                <param name="src" value="<? echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" />

                                                                                                                                                                                <embed src="<? echo $dom ?>/<? echo $carpetafoto ?>/<?php echo $swf ?>" pluginspage="https://www.adobe.com/shockwave/download/" width="<?php echo $tam_ancho ?>" height="<?php echo $tam_alto ?>"><embed>

                                                                                                                                                                                </object>

                                                                                                                                                                        </div>


                                                                                                                                                                        <?

                                                                                                                                                                        }

                                                                                                                                                                        mysql_free_result($consulta44);

                                                                                                                                                                        ?>



                                                                                                                                                                        <?php

                                                                                                                                                                        //arranca publis jpg

                                                                                                                                                                        $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"];



                                                                                                                                                                            ?>




                                                                                                                                                                        <div class="grid-item base-box col-12 col-sm-6 col-md-6 col-lg-6" style="text-align:center;">

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

                                                                                                                                                                                <a href="<?php echo $url; ?>"  target="_blank" class="Estilo1"><?php };?><img class="img-fluid lazyy"  data-src="<?php echo $carpetafoto?>/resize_<?php echo $img ?>.jpg" src="spinner.gif" > <?php   if ($url == NULL) {} else { ?> </a><?php };?>

                                                                                                                                                                        </div>


                                                                                                                                                                                <?

                                                                                                                                                                                }

                                                                                                                                                                                mysql_free_result($consulta2);
                                                                                                                                                                                ///termina publi jpg
                                                                                                                                                                                ?>



                                                                                                                                                                                <?php



                                                                                                                                                                                $i= $i + 1;



                                                                                                                                                                                }

                                                                                                                                                                                mysql_free_result($consulta);

                                                                                                                                                                        //aca termina article
                                                                                                                                                                        ?>

                                                                                                    <?php $i = 0;
                                                                                                    if ($rss == 'no') { } else {include 'marco1_rssx.php';};
                                                                                                    ?>

                                                                                        </div>

                                                                                                <div class="grid">

                                                                                                </div>
                                                                                    </div>
                                                                                </div>

                                                                                <div id="sidebar" class="sidebar col-12 col-sm-12 col-md-4 col-lg-4 p-0">

                                                                                    <div class="sidebar__inner">

                                                                                                                                                                                    <?
                                                                                                                                                                                                $hay_des_2 = 'no';
                                                                                                                                                                                    mysql_connect ("$host", "$usuario", "$contra");

                                                                                                                                                                                    mysql_select_db ("$basedatos");

                                                                                                                                                                                    $sql = "SELECT ID FROM notas WHERE destacado = '2' AND ver = 'si' AND home = 'si' ORDER BY ID desc LIMIT 1";

                                                                                                                                                                                    $consulta = mysql_query ($sql);

                                                                                                                                                                                    while ($row = mysql_fetch_array($consulta))

                                                                                                                                                                                    {

                                                                                                                                                                                    $ID_cac = $row["ID"];
                                                                                                                                                                                    $hay_des_2 = 'si';


                                                                                                                                                                                    }

                                                                                                                                                                                    mysql_free_result($consulta);


                                                                                                                                                                                    ?>

<!-- aca termina el cuerpo  -->
<!-- este es el sidebar -->
<?  include 'propagandas_div.php'; ?>

</div>
                                                                                </div>
                                                                            </div>
                                                                            
                                                                            
                                                                    </div>
                                                            </div>
                                                            
                                                            
<!--script>
    // Set the options to make LazyLoad self-initialize
    window.lazyLoadOptions = {
        elements_selector: ".lazy",
        // ... more custom settings?
    };
    // Listen to the initialization event and get the instance of LazyLoad
    window.addEventListener('LazyLoad::Initialized', function (event) {
        window.lazyLoadInstance = event.detail.instance;
    }, false);
</script>
<script async src="https://cdn.jsdelivr.net/npm/vanilla-lazyload@12.4.0/dist/lazyload.min.js"></script>

<script src="https://cdnjs.cloudflare.com/ajax/libs/wow/1.1.2/wow.min.js"></script>
        <script>
           // new WOW().init();
            //  console.log('asdasd34');
        </script-->


<!-- ESTO ES EL FOOTER -->
<?php if ($estiloweb == 1) { include 'menu1.php'; }; ?>
<?php if ($estiloweb == 2) { include 'menu2.php'; }; ?>
<?php if ($estiloweb == 3) { include 'menu3.php'; }; ?>
<?php if ($estiloweb == 4) { include 'menu4.php'; }; ?>
<?php if ($estiloweb == 5) { include 'menu5.php'; }; ?>
<?php if ($estiloweb == 76) { include 'footer.planeta.php'; }; ?>

<? include 'clix_footer.php';?>

<!-- ESTO SON TODOS LOS JS QUE USA EL SITIO -->
        <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
        <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
        <script src="https://radioshosting.com/css/js/lightbox-plus-jquery.min.js"></script>
        <script src="<? echo $dom ?>/js/jquery.fittext.js"></script>
        <script src="https://unpkg.com/flickity@2/dist/flickity.pkgd.min.js"></script>
        
                    
            <script type="text/javascript" src="./js/rAF.js"></script>
            <script type="text/javascript" src="./js/ResizeSensor.js"></script>
            <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/sticky-sidebar@3.3.1/dist/sticky-sidebar.js"></script>

<script type="text/javascript">
     
  //  var sidebar = new StickySidebar('#sidebar', {
  //      containerSelector: '#main-content',
  //      innerWrapperSelector: '.sidebar__inner',
  //      topSpacing: 60,
  //      bottomSpacing: 20
  //  });
</script>
        <script src="https://unpkg.com/isotope-layout@3/dist/isotope.pkgd.js"></script>

        <script>
       $(window).on('shown.bs.modal', function () {
           status = $('#myModal').modal('show');
            console.log('qwe', status);
        });




        //window.setInterval(function(){
        //$('.grid').isotope({
        //itemSelector: '.grid-item'
        //});
        //}, 4000);

        function ventanaSecundaria56 (URL){
        window.open(URL,"ventana1","width=960,height=630,scrollbars=NO")
        }

        					var a = $(".carousel-captionh1").fitText(1.2, { minFontSize: '14px', maxFontSize: '18px' });
                            $(".colorTitulo").fitText(1.2, { minFontSize: '14px', maxFontSize: '24px' });
                            $(".carousel-caption h2").fitText(1.2, { minFontSize: '14px', maxFontSize: '30px' });
                            $(".tituloVideo").fitText(1.2, { minFontSize: '14px', maxFontSize: '30px' });
                            $(".tarso").fitText(1.2, { minFontSize: '20px', maxFontSize: '50px' });
                            $(".tarso2").fitText(1.2, { minFontSize: '5px', maxFontSize: '11px' });
                            //console.log(a);


$(function(){

jQuery('img.svg').each(function(){
   var $img = jQuery(this);
   var imgID = $img.attr('id');
   var imgClass = $img.attr('class');
   var imgURL = $img.attr('src');
   //console.log('lalasl', imgURL);
   jQuery.get(imgURL, function(data) {

       // Get the SVG tag, ignore the rest
       var $svg = jQuery(data).find('svg');

       // Add replaced image's ID to the new SVG
       if(typeof imgID !== 'undefined') {
           $svg = $svg.attr('id', imgID);
       }
       // Add replaced image's classes to the new SVG
       if(typeof imgClass !== 'undefined') {
           $svg = $svg.attr('class', imgClass+' replaced-svg');
       }

       // Remove any invalid XML tags as per http://validator.w3.org
       $svg = $svg.removeAttr('xmlns:a');

       // Check if the viewport is set, else we gonna set it if we can.
       /*if(!$svg.attr('viewBox') && $svg.attr('height') && $svg.attr('width')) {
           $svg.attr('viewBox', '0 0 ' + $svg.attr('height') + ' ' + $svg.attr('width'))
       }*/

       // Replace image with new SVG
       $img.replaceWith($svg);

   }, 'xml');

});
});

</script>


<?php
//ESTE ARCHIVO CUENTA LAS VISITAS Y TIENE EL ANALITYCS
include 'google.php';?>
</body>
</html>
