document.oncontextmenu = nocontextmenu;
document.onmousedown = norightclick;

sign();

function writefinalday()
{
   InitDate = new Date(2002,03,26)
   FinalDate = new Date();
   document.write (Math.floor(((FinalDate - InitDate) / 1000) / 86400));
}
function nocontextmenu()
{
   event.cancelBubble = true;event.returnValue = false;return false;
}
function norightclick()
{
   if (event.button == 2 || event.button == 3)
   {
      event.cancelBubble = true;event.returnValue = false;return false;
   }
}
function sign()
{
  window.status='© Meson EL LABRADOR -->  Campeonato de Dardos el primer Domingo de cada mes con Grandes Premios <--';
  setTimeout('sign()',90);
}
function balancelink(file,first,second)
{  
  actDate = new Date();

  if ( actDate.getSeconds() < 30 )
  {
     return darklink(file,first);
  }
  else
  {
     return darklink(file,second);
  }
}
function darklink(file,numserver)
{
   var server;

   switch (numserver)
   {
          case 1:  server = 'http://yeldrin.eresmas.com/'; break;
          case 2:  server = 'http://humano.ya.com/yeldrin/'; break;
          case 3:  server = 'http://www.navegalia.com/hosting/0002c/yeldrin_cib/'; break;
          case 4:  server = 'http://club2.telepolis.com/yeldrin/'; break;
   }    
   return server + file;
}

string1 = "toolbar=no,location=no,width=400,height=100,status=no,top=200,left=200";
string2 = "<HTML><HEAD><TITLE>ENCUENTRATE A TI MISMO</TITLE></HEAD>";
string3 = "<BODY><table width=100% border=0 cellspacing=0 cellpadding=0 bgcolor='#FFCC66' height='68'><tr><td>";
string4 = "<table width=382 cellpadding=0 cellspacing=0><tr><td align=left width=400><p align='center'><b><font face='arial' size='2'> ";

function popUP(file,numserver,path)
{
   server = darklink('on.gif',numserver);
   serverF = darklink(file,numserver);
   msgWindow = window.open("","displayWindow",string1);
   msgWindow.document.write(string2);
   msgWindow.document.write(string3);
   msgWindow.document.write(string4);
   msgWindow.document.write("<a href='" + serverF + "'>" + file + "</a></font></b></p>");
   msgWindow.document.write("</td><td width='55'><table width=36 height=13 border=0 cellpadding=0 cellspacing=0 background='" + path + "off.gif'><tr>");
   msgWindow.document.write("<td><img width=36 height=13 src=" + server + " cache=F expires=0></td></tr>");
   msgWindow.document.write("</table></td><td width='200'><p align='center'><b><font face='arial' size='2'>SFS " + numserver + "</font></b></td></tr></table></td></tr></table></BODY></HTML>");
   msgWindow.document.write("<script language='JavaScript' src='" + path + "utilsrv.js'></script>");
}
function popUPBaL(file,first,second,path,counter)
{
   server = balancelink('on.gif',first,second);
   serverF = balancelink(file,first,second);
   msgWindow = window.open("","displayWindow",string1);
   msgWindow.document.write(string2);
   msgWindow.document.write(string3);
   msgWindow.document.write(string4);
   msgWindow.document.write("<a href='" + serverF + "'>" + file + "</a></font></b></p>");
   msgWindow.document.write("</td><td width='55'><table width=36 height=13 border=0 cellpadding=0 cellspacing=0 background='" + path + "off.gif'><tr>");
   msgWindow.document.write("<td><img width=36 height=13 src=" + server + " cache=F expires=0></td></tr>");
   msgWindow.document.write("</table></td><td width='200'><p align='center'><b><font face='arial' size='2'>SFSB</font></b></td></tr></table></td></tr></table>");
   msgWindow.document.write("<a target='_blank' href='http://v1.nedstatbasic.net/stats?" + counter + "'>");
   msgWindow.document.write("<img src='http://m1.nedstatbasic.net/n?id=" + counter + "' border=0 nosave width=18 height=18></a></BODY></HTML>");
   msgWindow.document.write("<script language='JavaScript' src='" + path + "utilsrv.js'></script>");
}
