var page=new Array();
var count=new Array();

var txtfix="Lormel Mario (lolo) ";
var txt0="Estoy desocupado libre para todo trabajo. ";
var txt1=" Si tienes alguna duda escribeme. Gracias.";
var txt2=txt0+txt1+"                                        ";
var wait=400;
var refresco=null;
function ver() {
        clearTimeout(refresco);
        window.status=" ";
        window.status=txtfix+txt2;
	txt2=txt2.substring(1,txt2.length)+txt2.charAt(0);        
	
	refresco=setTimeout("ver()",wait);
	
}
var palero;
function oculta(palero) {
	clearTimeout(refresco);
        txt2="   "+palero+"                                ";
	ver();
        }
function retorno()
{
	clearTimeout(refresco);
txt2="   "+txt0+txt1+"                                        ";
ver();
}

function mandarGalleta(nombre, valor, caducidad)
 {
      document.cookie = nombre + "=" + escape(valor)
        + ((caducidad == null) ? "" : ("; expires=" + caducidad.toGMTString()))
    }
function consultarGalleta(nombre)
 {
      var buscamos = nombre + "=";
      if (document.cookie.length > 0)
	 {
        i = document.cookie.indexOf(buscamos);
        if (i != -1) {
          i += buscamos.length;
          j = document.cookie.indexOf(";", i);
          if (j == -1)
            j = document.cookie.length;
          return unescape(document.cookie.substring(i,j));
        }
      }
    }

function Contador()
 {
      var num;
      var fecha=new Date (2005, 12, 31);
      if (!(num=consultarGalleta("VisitasLormel")))
        num = 0;
      num++;
      mandarGalleta("VisitasLormel",num,fecha);
      if (num==1)
        contador_lolo(0,1);
      else {
        contador_lolo(0,num);
      }
    }
function navegar()
{
navegador = navigator.appName;
  versionNav = parseInt(navigator.appVersion);
  if (navegador == "Netscape")
 {
    if (versionNav < 2) {
	document.write('<FONT SIZE=1 > Nunca imagine poner</FONT>');
    }
	 if (versionNav == 2) {
      document.write('<FONT SIZE=1 >Usas Netscape 2.0. te quedas. </FONT>');
    }
    if (versionNav == 3) {
      document.write('<FONT SIZE=1 >Usas Netscape 3.0. </FONT>');
     }
    if (versionNav == 4) {
      document.write('<FONT SIZE=1 >Usas N. Communicator 4. </FONT>');
    }
    if (versionNav > 4) {
      document.write('<FONT SIZE=1 >Usas N. Comunicator actual </FONT>');
    }
  }
    if (navegador.indexOf("Explorer") != -1)
    {

      if (versionNav <= 3) {
        document.write('<FONT SIZE=1 >Usas I. Explorer pasado</FONT>');
       }
      if (versionNav == 4) {
      if(navigator.appVersion.lastIndexOf('MSIE 5.0') != -1) 
        document.write('<FONT SIZE=1 >Usas I. Explorer 5.0 o mas?</FONT>');
      else 
	document.write('<FONT SIZE=1 >Usas I. Explorer 4...</FONT>');
      }
   }
  if ((navegador != "Netscape") && (navegador.indexOf("Explorer") == -1)) {
     document.write('<FONT SIZE=1 > Usas un browser raro .</FONT>');
  }

if(navigator.appVersion.lastIndexOf('98') != -1)
versionNav="Windows 98";
if(navigator.appVersion.lastIndexOf('95') != -1)
versionNav="Windows 95";
if(navigator.appVersion.lastIndexOf('NT') != -1)
versionNav="Windows NT";
document.write("<br><font size=1>sobre "+versionNav+"</font>");
}


var nn,jj,i,pp,digitos,textofs;
var aa=new Array();
function contador_lolo(digitos,textofs)
{
var mm,qq,rr,kk;
pp=1;
jj=0;
nn=0;
kk=0;
textof="lolo";
if(textofs=="/index.htm")
for(i=0;i<=10;i++)
{
	textof= " "+page[i];
	if(textof.search("htm") != -1)
	nn+=count[i];
}
else
nn=textofs/1+0;

document.write("<img src='cursos/imagenes/izq.gif' align='middle' height=26>");
	while(kk==0)
        {
	 mm=nn/pp;
	 if(mm>=10) {
		pp=pp*10;
		jj++;
	 }
	 else {
		mm=redondeo(mm);
		aa[0]=mm;
		kk=1; }
	} 
	qq=nn;
for(i=jj+1;i<digitos;i++)
document.write("<img src='cursos/imagenes/blank.gif' align='middle' width=12 height=26>");
if(nn>=100)
{
	for(i=1;i<jj;i++) {
		rr=qq-pp*mm;
		qq=rr;
		pp=pp/10;
		rr=rr/pp;
		mm=redondeo(rr);
		aa[i]=mm;
		if((i+1)==jj)
		  aa[i+1]=qq-mm*pp;
	}
}
else
{
rr=qq-pp*mm;
mm=redondeo(rr);
aa[1]=mm;
}
escribe();
document.write("<img src='cursos/imagenes/der.gif' align='middle' height=26>");
}
var ss;
function redondeo(ss)
{
ss=""+ss;
ss=ss.charAt(0);
ss=ss/1+1-1;
return ss;
}
function escribe()
{

for(i=0;i<=jj;i++)
     {
	pp="<img src='cursos/imagenes/"+aa[i]+".gif' align='middle' width=18 height=26>";
	document.write(pp);
}
}