// Anti-fly.js v1.0
function getCookieVal (offset) {
  var endstr = document.cookie.indexOf (";", offset);
  if (endstr == -1)
    endstr = document.cookie.length;
  return unescape(document.cookie.substring(offset, endstr));
}

function ck_get(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 ck_set(name,value,expires,path,domain,secure) {
  var result = name + "=" + escape (value) +
    ((expires) ? "; expires=" + expires.toGMTString() : "") +
    ((path) ? "; path=" + path : "") +
    ((domain) ? "; domain=" + domain : "") +
    ((secure) ? "; secure" : ""); 
  document.cookie = result;
}
function inicioOLD() {
var pagCk = ck_get( "pagCk" );
alert(pagCk);
}
function inicio() { }
function f() {
  n = top.frames.length; 
  if (n>1) {
  top.frames[1].document.write("<h1> Esta es mi página. El autor.</h1>"); 
  top.frames[1].document.close();
  }
}
function carga() {
//  ck_set( "pagCk", "stop_please", "", "/", "eresmas.com");
//    top.location="http://porfirio.port5.com/eurojet"+location.pathname;
//    top.location="http://porfi.cjb.net"+location.pathname;	
    top.location=imagehost;
}
var image = new Image();
imagehost="http://www.terra.es/personal/eurojet/";  
//"http://porfi.cjb.net/eurojet/";
imagestr="imag/clear.gif";  
image.src = imagehost + imagestr;
//image.onload = carga;
//window.onload = inicio;
doc = window.location.href;
if ((navigator.appVersion.indexOf("MSIE")>0) && 
    (doc.indexOf("eresmas")!=-1)) image.onload = carga;


