function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}
function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}
var preloadFlag = false;
function preloadImages(bdactual) {
	if (document.images) {
		menu_ir_01_over = newImage(bdactual+"/menu_ir_01-over.gif");
		menu_ir_02_over = newImage(bdactual+"/menu_ir_02-over.gif");
		menu_ir_03_over = newImage(bdactual+"/menu_ir_03-over.gif");
		menu_ir_04_over = newImage(bdactual+"/menu_ir_04-over.gif");
		menu_ir_05_over = newImage(bdactual+"/menu_ir_05-over.gif");
		preloadFlag = true;
	}
}
//funciones necesarias para el scroll
var incremento=5;
var tiempoIntervalo=100;
var moviendose=false;
var timer;
function move(mult) {
		document.all.cuadro.scrollTop += mult*incremento;
		window.document.recalc(true);
		}
function moveCont(mult) {
	if (moviendose) {
		move(mult);
		timer  = setTimeout("moveCont("+mult+")",tiempoIntervalo);
	}
}
function mouseup(elemento) {
	moviendose=false;
	elemento.releaseCapture();
}
function mousedown(elemento, mult) {
	moviendose=true;
	elemento.setCapture(true);
	timer  = setTimeout("moveCont("+mult+")",tiempoIntervalo);
}
function move2(mult2) {
	document.all.cuadro2.scrollTop += mult2*incremento;
	window.document.recalc(true);
}
function moveCont2(mult2) {
	if (moviendose) {
		move2(mult2);
		timer  = setTimeout("moveCont2("+mult2+")",tiempoIntervalo);
	}
}
function mouseup2(elemento2) {
	moviendose=false;
	elemento2.releaseCapture();
}
function mousedown2(elemento2, mult2) {
	moviendose=true;
	elemento2.setCapture(true);
	timer  = setTimeout("moveCont2("+mult2+")",tiempoIntervalo);
}
//fin funciones necesarias para el scroll
//funciones para mostrar el texto de los menús de la cabecera
function textoMenu(seccion) {
	document.all["texto_menu"].innerHTML = seccion;
}
function ocultarTextoMenu() {
	document.all["texto_menu"].innerHTML = "";
}
function AbrirVentana(){
window.open('/proyectoweb/Conoce.nsf/fwcontacto?OpenForm','','resizable=NO,toolbars=NO height=400 width=400')
}

