
        /*
        document.write("'" + parent.location.href  + "'");
        */

        var sCondicion = parent.location.protocol + "//" + parent.location.host + "/";
        var sPrefijo = 'http://tiempo.fiochi.com/';
        /*
        var sPrefijo = 'http://www.google.com/';
        */
        var sReferrer = document.referrer;

        //alert(parent.location.href);
        //alert(sCondicion);
        //alert(sReferrer);


        if (
                (sCondicion != sPrefijo) ||
                ((sReferrer.indexOf(sPrefijo)!=0) && (sReferrer!=''))
                )
        {
                /*
                parent.location = window.location;
                alert (sCondicion);
                alert(sReferrer);
                alert(sReferrer.indexOf(sPrefijo)!=0);
                */
                parent.location = sPrefijo;
                //esto parece dar error en IE por "permiso denegado", pero en otros navegadores rula
                parent.document.location = sPrefijo;
         }

        //profesional; para desligarse de marcos externos
        if (self != top) {
        if (document.images)
        top.location.replace(window.location.href);
        else
        top.location.href = window.location.href;
        }


        //scroller
        var id,pause=0,position=0,revol=9;

        function banner()
        {
          var i,k;
          //var msg="                                    Save this page & put Your Text Here                                          ";

          var msg = "                                Prueba el nuevo chat de Tiempo.Fiochi.com  Conversa en directo con otros visitantes de la web. En la columna de la izquierda, introduce tu nickname y haz clic sobre el botón [CHAT] mientras mantienes pulsada la tecla CTRL hasta que se abra la nueva ventana               ";
          var speed=20;

          /*
          alert(position);
          alert(document.thisform.thisbanner.value);
          alert(msg);
          alert(msg.substring(position,position+msg.length));
          */

          document.thisform.thisbanner.value=msg.substring(position,position+msg.length);

          if(position++==msg.length)
          {
              //if (revol-- < 2) return;
              position=0;
          }

          id=setTimeout("banner()",1000/speed);
        }

