<?php
require_once("../php/init.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?=$idioma?>" lang="<?=$idioma?>">
    
<head>
	<title><?=$txt->general->titulo?></title>
	<!-- Metadatas -->
    <meta name="Itzulpenak - Elhuyar" content="Hizkuntzetan eta teknologietan adituak." />
	<? require("{$DOC_ROOT}site/includes/head.php")?>
    <!-- /Metadatas -->
	<!-- CSS -->
        <link rel="stylesheet" type="text/css" href="<?=$URL_ROOT?>css/bootstrap.css"/>
        <link rel="stylesheet" type="text/css" href="<?=$URL_ROOT?>css/general.css" />    
        <link rel="stylesheet" type="text/css" href="<?=$URL_ROOT?>css/componentes.css" /> 
        <link rel="stylesheet" type="text/css" href="<?=$URL_ROOT?>css/slide.css" />  

    <!-- /CSS -->
    
    <script src="/js/pace.js"></script> 
</head>
<body>
    
    
    
    

    
 
    
    
    
    
    <!-- Menu responsive -->  
    
 

    <nav id="menu-2" class="offside">
        <a href="#" class="menu-btn-2--close h--left cerrar">
            <img src="/img/cerrar_menu.svg" class="full">
        </a>
          
                <ul class="idiomas">
                    <li><a href=""><?=$txt->menu->idiomas->idioma_eu?></a></li>        
                    <li><a href=""><?=$txt->menu->idiomas->idioma_es?></a></li>         
                    <li class="tool" data-toggle="tooltip" data-placement="bottom" title="<?=$txt->menu->auto?>"><a href=""><?=$txt->menu->idiomas->idioma_fr?></a></li>         
                </ul>
                <ul class="idiomas">       
                    <li><a href=""><?=$txt->menu->idiomas->idioma_en?></a></li>         
                    <li><a href=""><?=$txt->menu->idiomas->idioma_cat?></a></li>         
                    <li><a href=""><?=$txt->menu->idiomas->idioma_gal?></a></li> 
                </ul>          
        
        <a href="" class="boton"><span><?=$txt->menu->bgunea?></span></a>
        
    </nav>    
    
    <!-- / Menu responsive -->  
    
    
    
    <!-- CABECERA -->    
    
<? require("{$DOC_ROOT}site/includes/cabecera_mini_lege.php")?>
    
<!-- /CABECERA -->   
    
    
    <div class="site-overlay"></div> 
    
    
    <div id="container">
    
 
   
    <div class="container nola mt-2 mt-xl-5" id="nola">
        <div class="row">
			<div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12 mt-12 mb-12">
                <p><?=$txt->lege->testua?></p>
            </div>                         
        </div>
    </div>    
       
 
    
    
    

    
    
    
<!-- PIE -->
    
<? require("{$DOC_ROOT}site/includes/pie.php")?>
    
<!-- /PIE -->     
    
    
    
    
    </div>  
   
    
    

    <script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script>

    <!-- Popper -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>  
    
    <script type="text/javascript" src="/js/slick.js"></script>    
    <script type="text/javascript" src="/js/bootstrap.js"></script> 
    

    
  
    
    

    <!-- Initialize Bootstrap functionality -->
    <script>
    // Initialize tooltip component
    $(function () {
      $('[data-toggle="tooltip"]').tooltip()
    })

    // Initialize popover component
    $(function () {
      $('[data-toggle="popover"]').popover()
    })
    </script>
    
    
    
    <script type="text/javascript">
        $(document).ready(function(){
          $('.slide_min').slick({
              autoplay: false,
              infinite: true,
              autoplaySpeed:6000,
              speed: 300,
              fade: false,
              easing:'linear',
              adaptiveHeight:false,
              arrows:true,
              centerMode:false,
              dots:false,
              pauseOnHover:false,
              pauseOnFocus:false,
              responsive:true,
          });
        });
    </script>   
    
    
    <script type="text/javascript">
    $(function() {
      // This will select everything with the class smoothScroll
      // This should prevent problems with carousel, scrollspy, etc...
      $('.smoothScroll').click(function() {
        if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
          var target = $(this.hash);
          target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
          if (target.length) {
            $('html,body').animate({
              scrollTop: target.offset().top
            }, 900); // The number here represents the speed of the scroll in milliseconds
            return false;
          }
        }
      });

    <?php if($_REQUEST['mailsent'] == 'ok' || (isset($_POST['frm-contacto']) && (count($empty) > 0 || count($errors) > 0))){?>
        $('#menu-2 li:eq(3) a').trigger('click');
    <?php }?>
    });

    </script>    
    
    
    
    <script type="text/javascript">
            $(window).scroll(function() {    
                var scroll = $(window).scrollTop();

                if (scroll >= 120) {
                    $(".menu").addClass("fijo<?if ($idioma=="eu"||$idioma=="es"||$idioma=="fr"||$idioma=="en"){echo ("top");}?>");
                } else {
                    $(".menu").removeClass("fijo<?if ($idioma=="eu"||$idioma=="es"||$idioma=="fr"||$idioma=="en"){echo ("top");}?>");
                }
            });
    </script>    
    
    
    
    
    
    <!-- Menu responsive -->
    
    <script src="/js/offside.js"></script>
    <script>


        var offsideMenu2 = offside( '#menu-2', {

            slidingElementsSelector: '#container, #results',
            debug: true, 
            buttonsSelector: '.menu-btn-2, .menu-btn-2--close',
            slidingSide: 'right',
            beforeOpen: function(){},
            beforeClose: function(){},
        });

        var overlay = document.querySelector('.site-overlay')
            .addEventListener( 'click', window.offside.factory.closeOpenOffside );

        console.log(offsideMenu1);
        console.log(offsideMenu2);

    </script>    
    
    <!-- / Menu responsive -->    
    
    
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.css" />
<script src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/3.0.3/cookieconsent.min.js"></script>
<script>
window.addEventListener("load", function(){
window.cookieconsent.initialise({
  "palette": {
    "popup": {
      "background": "#edeff5",
      "text": "#838391"
    },
    "button": {
      "background": "transparent",
      "text": "#4b81e8",
      "border": "#4b81e8"
    }
  },
  "position": "bottom-left",
  "type": "opt-out",
  "content": {
    "message": "<?=$txt->pie->mezua?>",
    "dismiss": "<?=$txt->pie->onartu?> ",
    "deny": "<?=$txt->pie->ezeztatu?>",
    "link": "<?=$txt->pie->info?>",
    "href": "https://www.elhuyar.eus/eu/site/cookie-politika"
  },
    onInitialise: function (status) {
      var type = this.options.type;
      var didConsent = this.hasConsented();
      if (type == 'opt-in' && didConsent) {
        // enable cookies
      }
      if (type == 'opt-out' && !didConsent) {
        // disable cookies
      }
    },

    onStatusChange: function(status, chosenBefore) {
      var type = this.options.type;
      var didConsent = this.hasConsented();
      if (type == 'opt-in' && didConsent) {
        // enable cookies
      }
      if (type == 'opt-out' && !didConsent) {
        // disable cookies
      }
    },

    onRevokeChoice: function() {
      var type = this.options.type;
      if (type == 'opt-in') {
        // disable cookies
      }
      if (type == 'opt-out') {
        // enable cookies
      }
    },
})});
</script>
    
 

		

    
    
</body>
</html>