//Function scrollp2
function scrollp2(direccion,quescr){

	capauno = (ie4) ? eval("content") : eval("document.contexto.document.content")

  parseado = dimedpro(capauno);
	dproalto = alto(capauno);
	
	if (direccion == "abajo") {
		if (parseado <= 0 ) { 
			parseado += 3;
			if (ie4) { 
				capauno.style.top = parseado;
			}
			else { 
				capauno.top = parseado; 
				
			}
			timerscroll = setTimeout("scrollp2(\""+direccion+"\","+quescr+")",50);
		}
		else 
			clearTimeout(timerscroll);
	}
	
	if (direccion == "arriba") {
			if (parseado >= dproalto ) {
				
				parseado -= 3;
				
				if (ie4) { 
					capauno.style.top = parseado; 
				}
				else { 
					capauno.top = parseado; 
					
					
				}
				timerscroll = setTimeout("scrollp2(\""+direccion+"\","+quescr+")",10);
			}
			else clearTimeout(timerscroll)
	}
	
	if (direccion == "limpia") {
		clearTimeout(timerscroll);
	}
}//End scrollp2


//Scroll 2
function alto(ncapa){
	if (ie4) {
		 
		 return 130 - ncapa.offsetHeight; 
	}
	else { 
		var ret = eval (130 - ncapa.clip.height); 
		
		return ret;
	}
}//End alto


//Function dimedpro()
function dimedpro(ncapa) {
	
	if (ie4){ 
		var ret = parseInt(ncapa.style.pixelTop); 
		
		return ret;
	}
	if (document.layers){ 					
		var ret = ncapa.top; 
		
		return ret;
	}
}//End dimedpro()


//function verscroll 1 = activar, 0 = desactivar
function verscroll(TheAction) {

 var TheObj = (ie4) ? pulloutUpDown.style : document.pulloutUpDown
 TheObj.visibility = TheAction == 1 ? 'visible' : (ie) ? 'hiden' : 'hidden'

}//End verscroll