// JavaScript Document

// total_opciones: Número total de opciones en el menú
var total_opciones = 6;

var abajo = new Array();
// cargar_imagen: Descarga en el cliente las imagenes que se muestra al pasar con
// el ratón las opciones del menú
function cargar_imagen (nombre, index) {
	abajo[index] = new Image;
	abajo[index].src = nombre;
}
	
var opciones = new Array();	
// enlace: Escribe en pantalla la web asignada a valor 'opcion' dentro del vector 'opciones'
function enlace (opcion) {
	opciones[1] = "index.html";
	opciones[2] = "javascript:ventana('situacion.html',718,463,0)";
	opciones[3] = "javascript:ventana('horario.html',400,125,0)";
	opciones[4] = "http://es.software.canon-europe.com";
	opciones[5] = "javascript:ventana('ayuda.html',200,125,1)";
	opciones[6] = "mailto:canoncaceres@soccaceres.com";				
		
	document.write(opciones[opcion]);
}

function ventana(url, ancho, alto, barras) { 
	var posx=((screen.width-ancho)/2)-4;
	var posy=((screen.height-alto)/2)-20;
	var ventana = window.open(url, "", "resizable=no,scrollbars=" + barras + ",status=0,location=no,toolbar=no,menubar=no,width="+ancho+",height="+alto+",screenX="+posx+",screenY="+posy+",left="+posx+",top="+posy); 
} 
