
    <style>


        .navbar{
            /* padding: 0px 0px 0px 15px!important;
            box-shadow: 2px 2px 3px #ccc;
            margin-bottom: 15px!important;*/
            background-color: <?php echo $d_color_fondo_menu ?>;
        }
        .nav-link {

            color: <?php echo $d_color_menu ?>;
            font-family: <?php echo $style_titulo ?>;
            font-weight: 700;
        }

        .caret{
        color: <?php echo $d_color_fondo_menu ?>;

        }

        .dropdown-menu {

            padding: 0;
        }

        .dropdown-menu li a{

            padding: .5rem;
            font-size: 1rem;

        }

            .dropdown-menu .nav-item .nav-link:hover{

            background-color: <?php echo $d_color_fondo_menu ?>;
            color: <?php echo $d_color_menu_sobre ?>;

        }


        .nav-item .dropdown:hover ul{
            display: block;

        }
        .topbar{
            border-bottom: 1px solid #e4e4e4;
            height: 42px!important;
            line-height: 38px;
        }
        .menuBusqueda{
            border: 0px none;
            width: 100%;
            position: absolute;
            will-change: transform;
            top: 0px;
            left: 0px;
            transform: translate3d(0px, 0px, 0px)!important;
            -webkit-transition: all 1s ease-in;
            -moz-transition: all 1s ease-in;
            -o-transition: all 1s ease-in;
            transition: all 1s ease-in;
        }

        .menuBusqueda2{
            border: 0px none;
            position: absolute;
            will-change: transform;
            top: 0px;
            left: 0px;
            transform: translate3d(0px, 0px, 0px)!important;
            -webkit-transition: all 1s ease-in;
            -moz-transition: all 1s ease-in;
            -o-transition: all 1s ease-in;
            transition: all 1s ease-in;

        }

        .menuBusqueda2 > form > input {
            min-height: 56px;
        }

        .submenu{
            font-size: 12px;
            font-weight: 200;
        }
        #logo4{
            fill: <? echo $d_color_menu?>;
            max-width: 18px;
        }
    </style>

    <div id="header-wrapper" class="">
            <div class="topbar">
                <div class="<?if ($opcion101 == 1) { echo 'container-fluid';}if ($opcion101 == 0){echo 'container';}?>">
                    <div class="row">

                        <div class="d-none d-sm-block col-sm-6 col-md-4 pr-0" style="max-height: 40px;overflow: hidden;">
                                <?
                                    $A = date(Y);
                                    $M = date(m);
                                    $D = date(j);
                                    $H = date(H);
                                    $MIN = date(i);
                                    $date = "$Y$M$D";
                                    if ($M == '01') {$m = $lang_enero;}
                                    if ($M == '02') {$m = $lang_febrero;}
                                    if ($M == '03') {$m = $lang_marzo;}
                                    if ($M == '04') {$m = $lang_abril;}
                                    if ($M == '05') {$m = $lang_mayo;}
                                    if ($M == '06') {$m = $lang_junio;}
                                    if ($M == '07') {$m = $lang_julio;}
                                    if ($M == '08') {$m = $lang_agosto;}
                                    if ($M == '09') {$m = $lang_septiembre;}
                                    if ($M == '10') {$m = $lang_octubre;}
                                    if ($M == '11') {$m = $lang_noviembre;}
                                    if ($M == '12') {$m = $lang_diciembre;}
                                ?>
                                <p class="mb-0 texto-fecha" id="text-fecha">
                                        <?php $diasemana=date(N); // asignamos el numero del dia de hoy a la variable $diasemana ?>
                                        <?php //Procedemos a verificar si el dia de hoy es 1 lunes si es 2 martes... etc..  ?>
                                        <?php if($diasemana == "1" ){ echo $lang_lunes  ;}?>
                                        <?php if($diasemana == "2" ){ echo $lang_martes ;}?>
                                        <?php if($diasemana == "3" ){ echo $lang_miercoles ;}?>
                                        <?php if($diasemana == "4" ){ echo $lang_jueves ;}?>
                                        <?php if($diasemana == "5" ){ echo $lang_viernes ;}?>
                                        <?php if($diasemana == "6" ){ echo $lang_sabado ;}?>
                                        <?php if($diasemana == "7" ){ echo $lang_domingo;}?>
                                        <?php echo $D ;?> de <?php echo $m ;?> de <?php echo $A ;?>
                                </p>
                        </div>
                        <div class="d-none d-md-block col-md-4 col-lg-4 p-0">



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





                        </div>
                        <div class="col-12 col-sm-6 col-md-4 text-right">
                            <ul class="mb-0 d-flex justify-content-end">

                                        <li class="" style="border-left:1px solid #e4e4e4;">

                                                <a href="#" role="button" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn">
                                                    <i class="fas fa-search" style="color: <? echo $d_color_menu?>;"></i>
                                                </a>
                                                <div class="dropdown-menu menuBusqueda" style="border:0;width:100%;" aria-labelledby="dropdownMenuLink">
                                                    <form id="form1" name="form1" method="GET" action="buscar.php">
                                                        <input name="busqueda" type="text" class="form-control" size="30" value="" id="inputString" onkeyup="lookup(this.value);" onblur="fill();" />
                                                        <input name="Submit" type="submit" class="btn btn-outline-primary my-2 my-sm-0" value="<? echo $lang_buscar ?>" />
                                                    </form>

                                                </div>

                                        </li>

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

                                            <li class="" style="border-left:1px solid #e4e4e4;">

                                                <a class="btn" target="_blank" href="https://api.whatsapp.com/send?phone=<?php echo $whatsapp ?>"><i class="fab fa-whatsapp" aria-hidden="true"  style=" color: <? echo $d_color_menu?>;"></i></a>

                                            </li>

                                        <?php };?>

                                        <?php if ($facebook == NULL) {} else {?>
                                            <li class="" style="border-left:1px solid #e4e4e4;">
                                                <a class="btn" target="_blank" href="<?php echo $facebook ?>"><i class="fab fa-facebook" aria-hidden="true" style=" color: <? echo $d_color_menu?>;"></i></a>
                                            </li>
                                        <?php };?>



                                        <?php if ($social_aim == NULL) {} else {?>
                                            <li class="" style="border-left:1px solid #e4e4e4;">
                                                <a class="btn" target="_blank" href="<?php echo "https://instagram.com/".$social_aim ?>"><i class="fab fa-instagram" aria-hidden="true" style=" color: <? echo $d_color_menu?>;"></i></a>
                                            </li>
                                        <?php };?>

                                        <?php if ($twitter_btn == NULL) {} else {?>
                                        <li class="" style="border-left:1px solid #e4e4e4;">
                                            <a class="btn" target="_blank" href="<?php echo $twitter_btn ?>"><i class="fab fa-twitter" style=" color: <? echo $d_color_menu?>;"></i></a>
                                        </li>
                                        <?php };?>

                                        <?php if ($social_blogger == NULL) {} else {?>
                                        <li class="" style="border-left:1px solid #e4e4e4;">
                                            <a class="btn" target="_blank" href="<?php echo $social_blogger ?>"><i class="fab fa-blogger" style=" color: <? echo $d_color_menu?>;"></i></a>
                                        </li>
                                        <?php };?>

                                        <?php if ($social_flickr == NULL) {} else {?>
                                        <li class="" style="border-left:1px solid #e4e4e4;">
                                            <a class="btn" target="_blank" href="<?php echo $social_flickr ?>"><i class="fab fa-flickr" style=" color: <? echo $d_color_menu?>;"></i></a>
                                        </li>
                                        <?php };?>

                                        <?php if ($social_google == NULL) {} else {?>
                                        <li class="" style="border-left:1px solid #e4e4e4;">
                                            <a class="btn" target="_blank" href="<?php echo $social_google ?>"><i class="fab fa-google" style=" color: <? echo $d_color_menu?>;"></i></a>
                                        </li>
                                        <?php };?>

                                        <?php  if ($social_tumblr == NULL) {} else {?>
                                        <li class="" style="border-left:1px solid #e4e4e4;">
                                            <a class="btn" target="_blank" href="<?php echo $social_tumblr ?>"><i class="fab fa-instagram" style=" color: <? echo $d_color_menu?>;"></i></a>
                                        </li>
                                        <?php };?>

                                        <?php if ($social_vimeo == NULL) {} else {?>
                                        <li class="" style="border-left:1px solid #e4e4e4;">
                                            <a class="btn" target="_blank" href="<?php echo $social_vimeo ?>"><i class="fab fa-vimeo-v" style=" color: <? echo $d_color_menu?>;"></i></a>
                                        </li>
                                        <?php };?>

                                        <?php if ($social_yahoo == NULL) {} else {?>
                                        <li class=" " style="border-left:1px solid #e4e4e4;">
                                            <a class="btn" target="_blank" href="<?php echo $social_yahoo ?>"><i class="fab fa-yahoo" style=" color: <? echo $d_color_menu?>;"></i></a>
                                        </li>
                                        <?php };?>

                                        <?php  if ($social_youtube == NULL) {} else {?>
                                        <li class=" " style="border-left:1px solid #e4e4e4;">
                                            <a  class="btn" target="_blank" href="<?php echo $social_youtube ?>"><i class="fab fa-youtube" style=" color: <? echo $d_color_menu?>;"></i></a>
                                        </li>
                                        <?php };?>

                                        <? include 'weather_magazine2.php';?>


                            </ul>

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

            <header class="container-fluid header">
                

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


                        <div class="row">

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


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

                            <!--div class="col-6 col-md-3 col-lg-3 d-none justify-content-center align-items-center">
                                <div class="container-fluid">
                                    <div class="row">

                                        <div class="col-5" style="text-align:center;padding:10px;">
                                            <img src="<? echo $dom;?>/upload_pic/resize_<?php echo $imagen ?>.jpg"  class="img-fluid" style="max-width:100%;">
                                        </div>


                                        <div  class="col-7" style="padding:10px;text-align: center;" >
                                        <h6 style="margin-bottom:0;text-transform:uppercase;font-weight:700;" class=""><?php echo $nombre_pro ?></h6>
                                            <p style="margin-bottom:0;padding-bottom:0;color:#000;font-weight:600; font-size:11px;">EN VIVO</p>
                                            <p style="margin-bottom:0;padding-bottom:0;color:#000;font-weight:600; font-size:11px;"><b><?php echo  $ini2 ?></b> a <b><?php echo $fin2 ?></b></p>

                                          <p>  <i class="fas fa-play"></i></p>
                                        </div>

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

                            <div class="col-12 col-md-12 col-lg-12 text-center">

                                    <a href="<?php echo $dom ?>/principal.php">
                                    <img src="<?
                                        $logo_C = str_replace('http://', 'https://', $logo_C);


                                         echo $logo_C; ?>"
                                        class="img-fluid"
                                        style="padding-top:20px; padding-bottom: 20px;max-height: 170px;"
                                        alt="<?php echo $nombresitio ?>" title="<?php echo $nombresitio ?>"></a>

                            </div>

                            <!--div  class="col-6 col-md-3 col-lg-3 d-none justify-content-center align-items-center">
                                <? //if ($weather2 == 'si'){ include 'weather4.php';} else {}  ?>
                            </div-->

                            <?php } else { ?>

                            <div class="d-none d-block  d-lg-block <? if ($weather2 == 'si'){ echo 'col-6 col-md-6';} else { echo 'col-12 col-md-12 text-center';}  ?>">

                                    <a href="<?php echo $dom ?>/principal.php">
                                    <img src="<? $logo_C = str_replace('http://', 'https://', $logo_C); echo $logo_C; ?>"
                                        class="img-fluid"
                                        style="padding-top:20px; padding-bottom: 20px;max-height: 170px;"
                                        alt="<?php echo $nombresitio ?>" title="<?php echo $nombresitio ?>"></a>

                            </div>


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

                                <div  class="col-6 col-md-6 d-flex justify-content-center align-items-center">

                                    <? include 'weather4_magazine.php';?>

                                </div>

                                <?} else {}  ?>


                            <? } ?>



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

    </div>

    <nav id="navigato" class="navbar navbar-default navbar-expand-lg">

        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#myNavbar">

            <i class="fas fa-bars" style="color: <? echo $d_color_menu?>;"></i>

        </button>

        <!--a rel="home" href="<?php echo $dom ;?>/principal.php" class="navbar-brand d-lg-none " style="margin:0 auto;">
            <img class="img-fluid" style="max-height:35px;" src="<?php
                    $logo_C = str_replace('https:', '',  $logo_C);
                    $logo_C = str_replace('http:', '',  $logo_C);
                    echo $logo_C; ?>">
        </a-->

        <div class="collapse navbar-collapse justify-content-center" id="myNavbar" style="">

                        <ul class="<? if ($estiloweb <= 3){echo "nav navbar-nav";} else {echo "navbar-nav ";} ?>" >


                            <?php

                                mysql_connect ("$host", "$usuario", "$contra");
                                mysql_select_db ("$basedatos");
                                $sql = "SELECT * FROM menu WHERE IDsub = '0' ORDER BY ID";
                                $consulta = mysql_query ($sql);
                                while ($row = mysql_fetch_array($consulta))
                                {
                                $nombre = $row["nombre"];
                                $tipo = $row["tipo"];
                                $link = $row["link"];
                                $ID_menu = $row["ID"];
                                $hay_sub = 'no';
                                $sql55 = "SELECT * FROM menu WHERE IDsub = '$ID_menu' LIMIT 1";
                                $consulta55 = mysql_query ($sql55);
                                while ($row55 = mysql_fetch_array($consulta55))
                                {
                                $hay_sub = 'si';
                                }
                                mysql_free_result($consulta55);
                                ?>
                                <li <?php if($hay_sub == 'si') { ?> class="nav-item dropdown" <? } else { ?>  class="nav-item" <?php };?>>

                                    <a class="nav-link" <?php if($hay_sub == 'si') { ?> class="dropdown-toggle" data-toggle="dropdown" <?php };?> href="<?php

                                        if ($tipo == 'noticias'){
                                            $sql55 = "SELECT * FROM categorias WHERE ID = '$link'";
                                            $consulta55 = mysql_query ($sql55);
                                            while ($row55 = mysql_fetch_array($consulta55))
                                            {
                                                $titulo_cat = $row55["nombre"];

                                            }
                                            mysql_free_result($consulta55);
                                            $titulo_cat = urls_amigables($titulo_cat);
                                            echo "$dom/noticias/$link/$titulo_cat";
                                        };

                                        if ($tipo == 'seccion'){
                                            $sql22 = "SELECT * FROM menu WHERE ID = '$ID_menu'";
                                            $consulta22 = mysql_query ($sql22);
                                            while ($row22 = mysql_fetch_array($consulta22))
                                            {
                                                $titulo_sec = $row22["nombre"];
                                            }
                                            mysql_free_result($consulta22);
                                            $titulo_sec = urls_amigables($titulo_sec);
                                            echo "$dom/seccion/$ID_menu/$titulo_sec";};

                                        if ($tipo == 'link'){   echo $link;};

                                        if ($tipo == 'precargado'){

                                        if ($link == "javascript:ventanaSecundaria56('envivo')") {
                                            $link = "javascript:ventanaSecundaria56('$dom/envivo')";
                                            echo "$link";
                                        } else { echo "$dom/$link";}; };?>"

                                    <? if ($tipo == 'link'){ ?> target="_blank" <? }; ?>>

                                    <? if($hay_sub == 'si') { ?><? echo $nombre ?> <? } else { ?> <? echo $nombre ?><? } ;?></a>

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

                                        <ul class="dropdown-menu">
                                            <?
                                            $sql66 = "SELECT * FROM menu WHERE IDsub = '$ID_menu' ORDER BY ID";
                                            $consulta66 = mysql_query ($sql66);
                                            while ($row66 = mysql_fetch_array($consulta66))
                                            {
                                            $nombre = $row66["nombre"];
                                            $tipo = $row66["tipo"];
                                            $link = $row66["link"];
                                            $ID_menu = $row66["ID"];

                                            ?>

                                            <li class="nav-item">
                                                <a href="<?php if ($tipo == 'noticias'){
                                                            $sql55 = "SELECT * FROM categorias WHERE ID = '$link'";
                                                            $consulta55 = mysql_query ($sql55);
                                                            while ($row55 = mysql_fetch_array($consulta55))
                                                            {
                                                            $titulo_cat = $row55["nombre"];
                                                        }
                                                        mysql_free_result($consulta55);
                                                        $titulo_cat = urls_amigables($titulo_cat);
                                                        echo "$dom/noticias/$link/$titulo_cat";
                                                    };

                                                    if ($tipo == 'seccion'){
                                                        $sql22 = "SELECT * FROM menu WHERE ID = '$ID_menu'";
                                                        $consulta22 = mysql_query ($sql22);
                                                        while ($row22 = mysql_fetch_array($consulta22))
                                                        {
                                                            $titulo_sec = $row22["nombre"];
                                                        }
                                                        mysql_free_result($consulta22);
                                                        $titulo_sec = urls_amigables($titulo_sec);
                                                        echo "$dom/seccion/$ID_menu/$titulo_sec";};
                                                        if ($tipo == 'link'){   echo $link;};
                                                        if ($tipo == 'precargado'){
                                                        if ($link == "javascript:ventanaSecundaria56('envivo')") {
                                                        $link = "javascript:ventanaSecundaria56('$dom/envivo')";
                                                        echo "$link";
                                                    } else { echo "$dom/$link";}; };
                                                    ?>"
                                                    <? if ($tipo == 'link'){ ?> target="_blank"<? }; ?> class="nav-link" ><?php echo $nombre ?>
                                                </a>
                                            </li>
                                            <?
                                            }
                                            mysql_free_result($consulta66);
                                            ?>
                                        </ul>
                                    <?
                                    }
                                    ?>
                                </li>
                            <?
                            }
                            mysql_free_result($consulta);
                            ?>

                        </ul>

        </div>


    </nav>

    <?
    if($tag1 != '' || $tag2 != '' || $tag3 != '' || $tag4 != '' || $tag5 != ''){?>
        <div class="container">
            <div class="row">
                <div class="col-12 d-flex justify-content-center">
                    <ul class="nav">
                        <li class="nav-item">
                            <a class="nav-link submenu" href="buscar.php?busqueda=<? echo $tag1?>&Submit=Buscar"><? echo $tag1?></a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link submenu" href="buscar.php?busqueda=<? echo $tag2?>&Submit=Buscar"><? echo $tag2?></a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link submenu" href="buscar.php?busqueda=<? echo $tag3?>&Submit=Buscar"><? echo $tag3?></a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link submenu" href="buscar.php?busqueda=<? echo $tag4?>&Submit=Buscar"><? echo $tag4?></a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link submenu" href="buscar.php?busqueda=<? echo $tag5?>&Submit=Buscar"><? echo $tag5?></a>
                        </li>
                    </ul>
                </div>
            </div>
        </div>
    <?} else {}
    ?>

    <nav id="navigato2" data-hidden="true" class="navbar navbar-default navbar-expand-lg show2">

        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#myNavbar2">

            <i class="fas fa-bars" style="color: <? echo $d_color_menu?>;"></i>

        </button>

        <a id="fa" rel="home" href="<?php echo $dom ;?>/principal.php" class="navbar-brand d-lg-none yiyin text-center" style="margin:0 auto;">
            <img class="img-fluid" style="max-height:35px;" src="<? $logo_C = str_replace('https:', '',  $logo_C);
                    $logo_C = str_replace('http:', '',  $logo_C);
                    echo $logo_C; ?>">
        </a>

                    <div class="collapse navbar-collapse" id="myNavbar2" style="max-width:1140px;">

                        <ul class="navbar-nav mr-auto" >


                            <?php

                                mysql_connect ("$host", "$usuario", "$contra");
                                mysql_select_db ("$basedatos");
                                $sql = "SELECT * FROM menu WHERE IDsub = '0' ORDER BY ID";
                                $consulta = mysql_query ($sql);
                                while ($row = mysql_fetch_array($consulta))
                                {
                                $nombre = $row["nombre"];
                                $tipo = $row["tipo"];
                                $link = $row["link"];
                                $ID_menu = $row["ID"];
                                $hay_sub = 'no';
                                $sql55 = "SELECT * FROM menu WHERE IDsub = '$ID_menu' LIMIT 1";
                                $consulta55 = mysql_query ($sql55);
                                while ($row55 = mysql_fetch_array($consulta55))
                                {
                                $hay_sub = 'si';
                                }
                                mysql_free_result($consulta55);
                                ?>
                                <li <?php if($hay_sub == 'si') { ?> class="nav-item dropdown" <? } else { ?>  class="nav-item" <?php };?>>

                                    <a class="nav-link" <?php if($hay_sub == 'si') { ?> class="dropdown-toggle" data-toggle="dropdown" <?php };?> href="<?php

                                        if ($tipo == 'noticias'){
                                            $sql55 = "SELECT * FROM categorias WHERE ID = '$link'";
                                            $consulta55 = mysql_query ($sql55);
                                            while ($row55 = mysql_fetch_array($consulta55))
                                            {
                                                $titulo_cat = $row55["nombre"];

                                            }
                                            mysql_free_result($consulta55);
                                            $titulo_cat = urls_amigables($titulo_cat);
                                            echo "$dom/noticias/$link/$titulo_cat";
                                        };

                                        if ($tipo == 'seccion'){
                                            $sql22 = "SELECT * FROM menu WHERE ID = '$ID_menu'";
                                            $consulta22 = mysql_query ($sql22);
                                            while ($row22 = mysql_fetch_array($consulta22))
                                            {
                                                $titulo_sec = $row22["nombre"];
                                            }
                                            mysql_free_result($consulta22);
                                            $titulo_sec = urls_amigables($titulo_sec);
                                            echo "$dom/seccion/$ID_menu/$titulo_sec";};

                                        if ($tipo == 'link'){   echo $link;};

                                        if ($tipo == 'precargado'){

                                        if ($link == "javascript:ventanaSecundaria56('envivo')") {
                                            $link = "javascript:ventanaSecundaria56('$dom/envivo')";
                                            echo "$link";
                                        } else { echo "$dom/$link";}; };?>"

                                    <? if ($tipo == 'link'){ ?> target="_blank" <? }; ?>>

                                    <? if($hay_sub == 'si') { ?><? echo $nombre ?> <? } else { ?> <? echo $nombre ?><? } ;?></a>

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

                                        <ul class="dropdown-menu">
                                            <?
                                            $sql66 = "SELECT * FROM menu WHERE IDsub = '$ID_menu' ORDER BY ID";
                                            $consulta66 = mysql_query ($sql66);
                                            while ($row66 = mysql_fetch_array($consulta66))
                                            {
                                            $nombre = $row66["nombre"];
                                            $tipo = $row66["tipo"];
                                            $link = $row66["link"];
                                            $ID_menu = $row66["ID"];

                                            ?>

                                            <li class="nav-item">
                                                <a href="<?php if ($tipo == 'noticias'){
                                                            $sql55 = "SELECT * FROM categorias WHERE ID = '$link'";
                                                            $consulta55 = mysql_query ($sql55);
                                                            while ($row55 = mysql_fetch_array($consulta55))
                                                            {
                                                            $titulo_cat = $row55["nombre"];
                                                        }
                                                        mysql_free_result($consulta55);
                                                        $titulo_cat = urls_amigables($titulo_cat);
                                                        echo "$dom/noticias/$link/$titulo_cat";
                                                    };

                                                    if ($tipo == 'seccion'){
                                                        $sql22 = "SELECT * FROM menu WHERE ID = '$ID_menu'";
                                                        $consulta22 = mysql_query ($sql22);
                                                        while ($row22 = mysql_fetch_array($consulta22))
                                                        {
                                                            $titulo_sec = $row22["nombre"];
                                                        }
                                                        mysql_free_result($consulta22);
                                                        $titulo_sec = urls_amigables($titulo_sec);
                                                        echo "$dom/seccion/$ID_menu/$titulo_sec";};
                                                        if ($tipo == 'link'){   echo $link;};
                                                        if ($tipo == 'precargado'){
                                                        if ($link == "javascript:ventanaSecundaria56('envivo')") {
                                                        $link = "javascript:ventanaSecundaria56('$dom/envivo')";
                                                        echo "$link";
                                                    } else { echo "$dom/$link";}; };
                                                    ?>"
                                                    <? if ($tipo == 'link'){ ?> target="_blank"<? }; ?> class="nav-link" ><?php echo $nombre ?>
                                                </a>
                                            </li>
                                            <?
                                            }
                                            mysql_free_result($consulta66);
                                            ?>
                                        </ul>
                                    <?
                                    }
                                    ?>
                                </li>
                            <?
                            }
                            mysql_free_result($consulta);
                            ?>


                        </ul>

                        <ul class="d-flex justify-content-end" style="list-style: none;padding:0;margin:0;">
                            <li class="" style="border-left:1px solid #e4e4e4;">
                                <a href="#" role="button" id="dropdownMenuLink2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="btn">
                                    <i class="fas fa-search" style="color: <? echo $d_color_menu?>;"></i>
                                </a>

                                <div class="dropdown-menu menuBusqueda2" style="border:0;width:100%;" aria-labelledby="dropdownMenuLink2">
                                    <form id="form1" name="form1" method="GET" action="buscar.php">
                                        <input name="busqueda" type="text" class="form-control" size="30" value="" id="inputString" onkeyup="lookup(this.value);" onblur="fill();" />
                                        <input name="Submit" type="submit" class="btn btn-outline-primary my-2 my-sm-0" value="<? echo $lang_buscar ?>" />
                                    </form>

                                </div>

                            </li>

                              <? include 'weather_magazine2.php';?>
                            
                                
                        </ul>

                    </div>
      <div id="result"></div>

    </nav>

    <style>
                 .show2{
                    position: fixed;
                    top: -90px;
                    z-index: 999;
                    width: 100%;

                 }
                 .show-top{
                    -webkit-transition: all 0.6s ease-in;
                    -moz-transition: all 0.6s ease-in;
                    -o-transition: all 0.6s ease-in;
                    transition: all 0.6s ease-in;
                    display: block!important;
                    position: fixed;
                    top: 0!important;
                    width: 100%;
                    background-color:<? echo $d_color_fondo_menu?>;
                 }
                 .yiyin{
                     width: calc(100% - 50px)!important;
                 }

    </style>

    <script>
        const nav = document.querySelector('#navigato2');

        const navbar = document.querySelector('#header-wrapper');
        const tito = navbar.offsetHeight + 130;


        // console.log('esrt ', tito);

        window.addEventListener('scroll', () => {
            if(window.scrollY > tito) {
                nav.classList.add('show-top');
                var i = setInterval(myTimer ,4000);

                setTimeout(function( ) { clearInterval( i ); }, 8000);


                function myTimer() {
                  $('.grid').isotope({
                        itemSelector: '.grid-item'
                    });
                        }
                }
            else {
                nav.classList.remove('show-top');
                }
        });




    </script>


