//
// Funciones del panel de control
//
function overTR(tr,color){tr.style.cursor='hand';tr.bgColor=color;tr.style.color='#3a5db7';}
function outTR(tr,color){tr.style.cursor='default';tr.bgColor=color;tr.style.color='#57453a';}
function overTR1(tr,color){tr.bgColor=color;}
function outTR1(tr,color){tr.bgColor=color;}

//
// Pop-up centrada en pantalla
//
function newWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen) {
  var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
  var int_windowTop = (screen.height - a_int_windowHeight) / 2;
  var str_windowProperties = 'height=' + a_int_windowHeight + ',width=' + a_int_windowWidth + ',top=' + int_windowTop + ',left=' + int_windowLeft + ',scrollbars=' + a_bool_scrollbars + ',resizable=' + a_bool_resizable + ',menubar=' + a_bool_menubar + ',toolbar=' + a_bool_toolbar + ',location=' + a_bool_addressbar + ',statusbar=' + a_bool_statusbar + ',fullscreen=' + a_bool_fullscreen + '';
  var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
    if (parseInt(navigator.appVersion) >= 4) {
      obj_window.window.focus();
    }
}

//
// Funciones para Zoom
//
	var _img_grande;

	function mostrarZ() {
		var ops = "top=" + ((screen.height - _img_grande.height) / 2);
		ops += ",left=" + ((screen.width - _img_grande.width) / 2);
		ops += ",width=" + _img_grande.width + ",height=" + _img_grande.height;
		ops += ",location=NO";
		ops += ",status=NO";
		ops += ",titlebar=NO";
		ops += ",toolbar=NO";
		ops += ",menubar=NO";
		ops += ",directories=NO";
		var contenido = "<html><body style='background-image: url(" + _img_grande.src + ")'></body></html>";
		var ventana = window.open("", "", ops);
		ventana.document.write(contenido);
		ventana.document.close();
	}

	function cargando() {
		if (_img_grande.complete) mostrarZ();
		else setTimeout("cargando()", 100);
	}

	function Zoom(imagen)	{
		_img_grande = new Image();
		_img_grande.src = imagen;
		cargando();
	}

function azul(strImagen){
	document.getElementById(strImagen).src = '/templates/imagenes/cuadradito-naranja.gif';	
}
function naranja(strImagen){
	document.getElementById(strImagen).src = '/templates/imagenes/cuadradito-azul.gif';	
}
