        function GetCookie (name) {
          var arg = name + "=";
          var alen = arg.length;
          var clen = document.cookie.length;
          var i = 0;
          while (i < clen) {
            var j = i + alen;
            if (document.cookie.substring(i, j) == arg)
              return getCookieVal (j);
              i = document.cookie.indexOf(" ", i) + 1;
              if (i == 0) break;
            }
          return null;
        }

        function SetCookie (name, value) {
          var argv = SetCookie.arguments;
          var argc = SetCookie.arguments.length;
          var expires = (argc > 2) ? argv[2] : null;
          var path = (argc > 3) ? argv[3] : null;
          var domain = (argc > 4) ? argv[4] : null;
          var secure = (argc > 5) ? argv[5] : false;
          document.cookie = name + "=" + escape (value) + "; path=/; domain=.ya.com";
//          document.cookie = name + "=" + escape (value) + "; path=/; domain=.jif.es";
        }


        function getCookieVal(offset) {
          var endstr = document.cookie.indexOf (";", offset);
          if (endstr == -1)
            endstr = document.cookie.length;
          return unescape(document.cookie.substring(offset, endstr));
        }

       function divVisible() {
            document.getElementById("hl").style.top=(document.body.clientHeight/2 - 200);
            document.getElementById("hl").style.left=(document.body.clientWidth/2 - 275);
            document.getElementById("hl").style.visibility="visible";
        }

        function divClose() {
            document.getElementById("hl").style.visibility="hidden";
            document.getElementById("hl").style.top=document.body.clientHeight + 100;
            document.getElementById("hl").style.left=document.body.clientWidth + 100;
            SetCookie('DistWarning', '1');
        }

        function Warning() {
            var count = GetCookie('DistWarning');
            if (count != '1') {
                document.write('<style type="text/css">');

                document.write('.capa {');
                document.write('    font-family: Verdana, Arial, Helvetica, sans-serif;');
                document.write('    font-size: 10px;');
                document.write('    color:#000000;');
                document.write('    background-color: #E7EBEF;');
                document.write('    position:absolute;');
                document.write('    width: 600;');
                document.write('    height: 350;');
                document.write('    border:4px solid #E20074;');
                document.write('    visibility:hidden;');
                document.write('    float: right;');
                document.write('}');
                document.write('.capa2 {');
                document.write('    position:relative;');
                document.write('    float: right;');
                document.write('}');
                document.write('</style>');

               document.write('<div name="hl" id="hl" class="capa" align="center">');
               document.write('<div name="hl2" id="hl2" class="capa2" align="left"><a href="#" onclick="JavaScript:divClose()">Cerrar</A></div>');
               document.write('<H1>Estimado Asociado</H1>');
               document.write('<H2>A partir del día 13 de Enero publicamos nuevos productos que incluyen voz y actualizamos  las cuotas mensuales en los productos vigentes, por este motivo la web de distribución no estará operativa ese día.</H2>');
               document.write('<H2>Disculpen las molestias que les podamos ocasionar.</H2>');
               document.write('</div>');
               divVisible();
            }
        }


        //Warning();
        //document.location.replace('/distribuidores/en_construccion.html');