
/******************************** AJAX *****************************************************************************************/


		function ajaxRegistrese()
		{
		var xmlHttp;
		try
		  {
		  // Firefox, Opera 8.0+, Safari
		  xmlHttp=new XMLHttpRequest();
		  }
		catch (e)
		  {
		  // Internet Explorer
		  try
		    {
		    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		    }
		  catch (e)
		    {
		    try
		      {
		      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		      }
		    catch (e)
		      {
		      alert("Your browser does not support AJAX!");
		      return false;
		      }
		    }
		  }
		  xmlHttp.onreadystatechange=function()
		    {
		    if(xmlHttp.readyState==4)
		      {
		      document.getElementById('registro').innerHTML = xmlHttp.responseText;
		      }
		    }
		  xmlHttp.open("GET","http://www.capital.com.pa/login/main2.php",true);
		  xmlHttp.send(null);
		}





/************************   paneles de indicadores **********************************************************/

		function ManageTabPanelDisplay() {

		var idlist = new Array('tab1focus','tab2focus','tab3focus', 'tab4focus', 'tab1ready','tab2ready','tab3ready', 'tab4ready', 'content1', 'content2', 'content3', 'content4');

		// No other customizations are necessary.
		if(arguments.length < 1) { return; }
		for(var i = 0; i < idlist.length; i++) {
		   var block = false;
		   for(var ii = 0; ii < arguments.length; ii++) {
			  if(idlist[i] == arguments[ii]) {
				 block = true;
				 break;
				 }
			  }
		   if(block) { document.getElementById(idlist[i]).style.display = "block"; }
		   else { document.getElementById(idlist[i]).style.display = "none"; }
		   }
		}

		function go()
		{
			window.location="http://www.elfinancierocr.com";
		}
		
		
		
		
/***************************  mostrar y ocultar menus  ****************************************************************************************/
		
		

		function mostrarNoticias() {
			document.getElementById('menunoticias').style.display= "block";

		}

		function ocultarNoticias() {
			document.getElementById('menunoticias').style.display= "none";

		}

		function mostrarBoletin() {
			document.getElementById('menuboletin').style.display= "block";

		}

		function ocultarBoletin() {
			document.getElementById('menuboletin').style.display= "none";

		}

		function mostrarIndicadores() {
			document.getElementById('menuindicadores').style.display= "block";

		}

		function ocultarIndicadores() {
			document.getElementById('menuindicadores').style.display= "none";

		}		

		function mostrarInteligencia() {
			document.getElementById('menuinteligencia').style.display= "block";

		}

		function ocultarInteligencia() {
			document.getElementById('menuinteligencia').style.display= "none";

		}
		
		function mostrarMultimedia() {
			document.getElementById('menumultimedia').style.display= "block";

		}

		function ocultarMultimedia() {
			document.getElementById('menumultimedia').style.display= "none";

		}
		
		function mostrarBlog() {
			document.getElementById('menublog').style.display= "block";

		}

		function ocultarBlog() {
			document.getElementById('menublog').style.display= "none";

		}
		
		function mostrarLectoref() {
			document.getElementById('menulectoref').style.display= "block";

		}

		function ocultarLectoref() {
			document.getElementById('menulectoref').style.display= "none";

		}		

		function mostrarEspeciales() {
			document.getElementById('menuespeciales').style.display= "block";

		}

		function ocultarEspeciales() {
			document.getElementById('menuespeciales').style.display= "none";

		}
		
		function mostrarEfeningles() {
			document.getElementById('menuefeningles').style.display= "block";

		}

		function ocultarEfeningles() {
			document.getElementById('menuefeningles').style.display= "none";

		}
		
		function mostrarAgendaejecutiva() {
			document.getElementById('menuagendaejecutiva').style.display= "block";

		}

		function ocultarAgendaejecutiva() {
			document.getElementById('menuagendaejecutiva').style.display= "none";

		}
		
		function mostrarCiudadanosef() {
			document.getElementById('menuciudadanosef').style.display= "block";

		}

		function ocultarCiudadanosef() {
			document.getElementById('menuciudadanosef').style.display= "none";

		}
		
		function mostrarQuienessomos() {
			document.getElementById('menuquienessomos').style.display= "block";

		}

		function ocultarQuienessomos() {
			document.getElementById('menuquienessomos').style.display= "none";

		}		

		function mostrarSuscribase() {
			document.getElementById('menususcribase').style.display= "block";

		}

		function ocultarSuscribase() {
			document.getElementById('menususcribase').style.display= "none";

		}		
		
		function mostrarAeropuerto() {
			document.getElementById('menuaeropuerto').style.display= "block";

		}

		function ocultarAeropuerto() {
			document.getElementById('menuaeropuerto').style.display= "none";

		}		
		
		function mostrarPda() {
			document.getElementById('menupda').style.display= "block";

		}

		function ocultarPda() {
			document.getElementById('menupda').style.display= "none";

		}
		
		function mostrarRss() {
			document.getElementById('menurss').style.display= "block";

		}

		function ocultarRss() {
			document.getElementById('menurss').style.display= "none";

		}		

		function mostrarRegistro() {
			document.getElementById('menuregistro').style.display= "block";

		}

		function ocultarRegistro() {
			document.getElementById('menuregistro').style.display= "none";

		}
		
		function toggleRegistro() {
			if(document.getElementById('moduloregistro').style.display == "none") {
				document.getElementById('moduloregistro').style.display = "block";
			} else {
				document.getElementById('moduloregistro').style.display = "none";
			}
			ajaxRegistrese();
		}


/****************************  opacidad en imagenes  ******************************************************************************************************/



		//Highlight image script- By Dynamic Drive
		//For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
		//This credit MUST stay intact for use

		function makevisible(cur,which){
		strength=(which==0)? 0.8 : 1

		if (cur.style.MozOpacity)
		cur.style.MozOpacity=strength
		else if (cur.filters)
		cur.filters.alpha.opacity=strength*100
		}
		
		
/*****************************************************************************************************************************************************/


