ns4=(document.layers)?true:false
ie4=(document.all)?true:false
ns6 = (navigator.appVersion.substring(0,3)=="5.0")? true:false

function verScroll(dir, spd, loop) {
	loop = true;
	direction = "up";
	speed = 10;
	scrolltimer = null;
	direction = dir;
	speed = parseInt(spd);
	var y_pos = parseInt(page.top);
	if (loop == true) {
		if ((direction == "dn")&&(y_pos>CapaclipHeight-page.scrollHeight)) {
			page.top = (y_pos - (speed));
		} 
		else {
			if (direction == "up" && y_pos < 0) {
				page.top = (y_pos + (speed));
			} 
			else {
				if (direction == "top") {
					page.top = 0;
      				}
   			}
   		}
		scrolltimer = setTimeout("verScroll(direction,speed)", 1);
   	}
}

function stopScroll() {
loop = false;
clearTimeout(scrolltimer);
}

function findObj(n, d) {  
  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=findObj(n,d.layers[i].document);
  if (!x && document.getElementById) x=document.getElementById(n); 
  return x;
}

//NUMERO PARA AJUSTAR CORRECTAMENTE EL MOVIMIENTO DEL INDICADOR DE SCROLL
error=0;

