
/*****************************************************************/
/*********************** BARRA DE ESTADO *************************/
/*****************************************************************/

var scrtxt="TopFondos.com // Famosas / Fondos / Chistes / Tonos y Logos / Modelos / Iconos / Horóscopo / Salvapantallas...                            ";
var lentxt=scrtxt.length;
var width=900;
var count=0;
var left=0;
var abc=0;
function scroll() {
  var txt="";
  var scroller="";
  if (abc>0) {
    if ((abc%2)==1) {
      window.status="";
    } else {
      window.status=scrtxt;
    }
    abc++;
    if (abc==8) abc=0;
  } else {
    if (count>0) {
      scroller=scrtxt.substring(0,count);
      txt=scrtxt.substring(count,count+2);
    } else {
      txt=scrtxt.substring(0,2);
    }
    if ((width-left)>2) {
      left+=(width-left)/2;
    } else { left++; }
    for (var i=0; i<(width-left); i++) {
      scroller=scroller+" ";
    }
    if (left>=width) {
      count+=2;
      left=count*2;
    }
    if (count>=lentxt) {
      pos=count=0;
      abc=1;
    }
    scroller=scroller+txt;
    window.status=scroller;
  }
  setTimeout("scroll()",0);
}
scroll();





/*******************************************************************/
/*********************** SIN BOTON DERECHO *************************/
/*******************************************************************/

if(window.Event) document.captureEvents(Event.MOUSEUP);

function nocontextmenu() {
 event.cancelBubble=true
 event.returnValue=false;
 return false;
}

function norightclick(e) {
 if(window.Event) {
  if(e.which==2||e.which==3) return false;
 }
 else
  if(event.button==2||event.button==3) {
   event.cancelBubble=true;
   event.returnValue=false;
   return false;
  }
}

document.oncontextmenu=nocontextmenu;
document.onmousedown=norightclick;





/*******************************************************************/
/*********************** VENTANA DE ACCESO *************************/
/*******************************************************************/

var win = null;
function acceso(url) {
 w=200;
 h=100;
 l = (screen.width) ? (screen.width-w)/2 : 0;
 t = (screen.height) ? (screen.height-h)/2 : 0;
 win = window.open(url,'acceso','height='+h+',width='+w+',top='+t+',left='+l+',resizable=yes');
}