<!--
/****************************************************************************************************/
/* FECHA DEL SISTEMA */
function VerFecha()
{ var mydate=new Date()
  var year=mydate.getYear()
  if (year < 1000)
    year+=1900
  var day=mydate.getDay()
  var month=mydate.getMonth()
  var daym=mydate.getDate()
  if (daym<10)
    daym="0"+daym
  var dayarray=new Array("Domingo","Lunes","Martes","Miercoles","Jueves","Viernes","Sábado")
  var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre")
  document.write(dayarray[day]+" "+daym+" de "+montharray[month]+" del "+year)
}

/****************************************************************************************************/
/* HORA DEL SISTEMA */
function show(obj) { 
  document.getElementById(obj).style.display = 
  (document.getElementById(obj).style.display=='block') ? 'none': 'block';
} 
function hora(){
  var Estado=0
  var fecha = new Date()
  var hora = fecha.getHours()
  var minuto = fecha.getMinutes()
  var segundo = fecha.getSeconds()
  if (hora > 12){
    hora=hora-12
    Estado = "P.M.";
  }
  else
    Estado = "A.M.";
  if (hora < 10) {hora = "0" + hora}
    if (minuto < 10) {minuto = "0" + minuto}
      if (segundo < 10) {segundo = "0" + segundo}
  var horita = hora + ":" + minuto + ":" + segundo + " " + Estado
  document.getElementById('hora').firstChild.nodeValue = horita
  tiempo = setTimeout('hora()',1000)
}
function VerHora(){
  document.write('<span id="hora">')
  document.write ('000000</span>')
  hora()
} 

/****************************************************************************************************/
/* VENTANA EN EL CENTRO DE LA PANTALLA 
   Auto center window script- Eric King (http://redrival.com/eak/index.shtml) 
   Permission granted to Dynamic Drive to feature script in archive 
   For full source, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com 
*/
var win = null;
function VentanaCentral(mypage,myname,w,h,scroll){
  LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
  settings = 'menubar=yes,toolbar=yes,location=yes,status=yes'+'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
  win = window.open(mypage,myname,settings)
}


/****************************************************************************************************/
/* Aparece una imagen en un href. P.e.
   <a onmouseover="showThumbnail('Imagen',event)" style="FONT-WEIGHT: 700; TEXT-DECORATION: none" 
      onmouseout=closeThumbnail() href="#">Link
   </a>
   Y en el body colocar este codigo:
  <DIV id=thumb 
  style="BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; VISIBILITY: hidden; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid; POSITION: absolute">
  </DIV>
*/
var thumb = null;
function showThumbnail(which,e)
{ thumb = document.getElementById('thumb');
  if ( thumb && thumb.style.visibility == 'hidden' )
    { //thumb.style.left       = e.pageX ? pageXOffset + e.clientX + 20 : document.body.scrollLeft + e.x + 20;
      //thumb.style.top        = e.pageY ? pageYOffset + e.clientY : document.body.scrollTop  + e.y;
      thumb.style.left       = 0;
      thumb.style.top        = 230;
      thumb.style.visibility = 'visible';
      thumb.innerHTML        = '<img src="' + which + '">';
    }
}
function closeThumbnail()
{ if ( thumb )
    thumb.style.visibility = 'hidden';
}


/****************************************************************************************************/
/* VARIADOS */
function pviiW3Cbg(obj, pviiColor) { //v1.1 by Project VII
  obj.style.backgroundColor=pviiColor
}
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments;
  document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2)
    eval(args[i]+".location='"+args[i+1]+"'");
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr;
  for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
    x.src=x.oSrc;
  }
function MM_preloadImages() { //v3.0
  var d=document;
  if(d.images){
    if(!d.MM_p)
      d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments;
    for(i=0; i<a.length; i++)
      if (a[i].indexOf("#")!=0){
        d.MM_p[j]=new Image;
        d.MM_p[j++].src=a[i];
      }
  }
}
function MM_findObj(n, d) { //v4.0
  var p,i,x;
  if(!d)
    d=document;
  if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document;
    n=n.substring(0,p);
  }
  if(!(x=d[n])&&d.all)
    x=d.all[n];
  for (i=0;!x&&i<d.forms.length;i++)
    x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++)
    x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById)
    x=document.getElementById(n);
  return x;
}
function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments;
  document.MM_sr=new Array;
  for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a[i]))!=null){
      document.MM_sr[j++]=x;
      if(!x.oSrc)
        x.oSrc=x.src;
        x.src=a[i+2];
    }
}

/****************************************************************************************************/
/* MOVIMIENTO EN LA BARRA DE TITULO */
var txt="   (¯`·.¸ Bienvenidos a la Pagina de Javier Rodriguez ¸.·´¯)                                       ";
var refresco=null;
function Titulo()
{ document.title=txt;
  txt=txt.substring(1,txt.length)+txt.charAt(0);
  refresco=setTimeout("Titulo()",200);
}

/****************************************************************************************************/
/* MOVIENTO EN LA BARRA DE ESTADO */
Fijo="  <<<   GLOBAL SOLUTION   >>>  ";
Letrero1=" - Servicio Técnico - Computadoras - Dominios - Hosting ";
Letrero2=" - Cursos - Internet - Programación ";
ultimo1=Letrero1.length-1;
ultimo2=Letrero2.length-1;
tiempo=setTimeout("Scroll()",180);
function Scroll(){
  aux1=Letrero1.charAt(ultimo1-1);
  Letrero1=aux1+Letrero1.substring(0,ultimo1-1);
  aux2=Letrero2.charAt(0);
  Letrero2=Letrero2.substring(1,ultimo2+1)+aux2;
  window.status="(" + Letrero2 + Fijo + Letrero1 + ")";
  tiempo=setTimeout("Scroll()",180);
  return true;
}


//-->