//###########
//########### DETECCIÓN DEL NAVEGADOR Y POP UP
//###########
IE = navigator.appName=="Microsoft Internet Explorer";
NS = navigator.appName=="Netscape";
bVer = parseInt(navigator.appVersion);
var radval = 0;
var newWin=null;

function popup(loc, name, width, height, scroll) {
	if (scroll == 'yes'){
	scroll = 'yes';
	}
	else
	{
	scroll = 'no';
	}
        var _params = "width="+width+",height="+height+",resizable=no, scrollbars="+scroll+",status=no";

        // CENTER ON BROWSERS WHICH SUPPORT JSCRIPT 1.2
        if (bVer >= 4) {
                 _left = ( (screen.width-width) >>1 );
                 _top = ( (screen.height-height) >>1 );
        } else {
                 _left = ( (800-width) >>1 );
                 _top = ( (600-height) >>1 );
        }

        if (IE) _params += ",top=" + _top + ",left=" + _left;
        else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;
        
		newWin = window.open(loc, name, _params);
        if ( newWin!=null && !(IE && bVer<5) )
        newWin.focus(); // MSIE4 DOESN'T FOCUS WINDOWS
}

//########
//######## VALIDAR BUSQUEDA
//########
function ValidarBusqueda(theform) {
  checkResult = true;
  if (theform.clave.value.length==0) {
     alert('Debe de escribir una palabra (s)');
     theform.clave.focus();
     checkResult = false;
  }
  else
	theform.B1.disabled = true;
	return checkResult;
}

//########
//######## BARRA DEL NAVEGADOR
//########
var message = 'VenezuelaA';
statuss();
function statuss()
    {
    window.status = message;
    //timerID = setTimeout("statuss()", 25);
}

//########
// ####### MENU
//########function navBarClick( tableCellRef, navStyle, url ) {
	navBar( tableCellRef, 0, navStyle );
	goTo( url );
}function navBar( tableCellRef, hoverFlag, navStyle ) {
	if ( hoverFlag ) {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#69c';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ccc';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#c00';
				}
		}
	} else {
		switch ( navStyle ) {
			case 1:
				tableCellRef.style.backgroundColor = '#036';
				break;
			default:
//				tableCellRef.style.backgroundColor = '#ddd';
				if ( document.getElementsByTagName ) {
					tableCellRef.getElementsByTagName( 'a' )[0].style.color = '#000';
				}
		}
	}
}//########
//######## MENUS
//########function goTo( url ) {
	window.location.href = url;
}
//###########
//########### POLITICAS DE PRIVACIDAD
//###########
function politicas(){
	popup( '/politicas/politica_privacidad.htm', 'POLITICAS', 500, 550, 'yes');
}

//###########
//########### ACCESESIBILIDAD
//###########
function accesibilidad(){
	popup( '/politicas/accesibilidad.htm', 'ACCESESIBILIDAD', 500, 550, 'yes');
}
