$(document).ready(function(){ 
	$(".trigger").click(function(){
		$(".panel").toggle("fast");
		$(this).toggleClass("active");
		return false;
	});
	
	//$('#navigation li a').each(function(i){
	
	//	$(this).after('<span class="nav-bg-hover"></span>');
		//$(this).after('<img src="/menu/item-reflex.png" alt="reflex" />');
		
	//	$(this).mouseover(function(){
		//	$(this).nextAll('.nav-bg-hover').fadeTo("slow", 0);
		//	$(this).parent().animate({"top": "-=15px"}, "slow");
		//	$(this).nextAll('img').animate({"top": "+=30px", "opacity": 0.3}, "slow");
		//	$(this).animate({"color": '#002B55'}, "slow");
		//});
		
		//$(this).mouseout(function(){
		//	$(this).nextAll('.nav-bg-hover').fadeTo("slow", 1);
			$(this).parent().animate({"top": "+=15px"}, "slow");
		//	$(this).nextAll('img').animate({"top": "-=30px", "opacity": 1 }, "slow");			
		//	$(this).animate({"color": '#FFFFFF'}, "slow");
		//});
		
	//});
});


function ver_listadoegispsat()
{
window.open('http://app.registrostecnicos.cl/listadoOficialEgisMinvuResultado.asp?AccionMostrar=BuscarRegion&Region=8&Programa=0','','scrollbars=1,status=yes,width=800,height=640,top=0,left=0')

}

function ver_mercadopublico()
{
window.open('http://www.mercadopublico.cl/Portal/Modules/Site/Search/AcquisitionSearchPage.aspx?TP=Invitado&IdEmpresa=L82tbxl6yJk=','','scrollbars=1,status=yes,width=800,height=640,top=0,left=0')
}

function activa_tab(tabulador)
{
tabbar.setTabActive("a" + tabulador);
}



function srv_ejecuta_pagina(url) {
  var req = false;
  if (window.XMLHttpRequest) {
    try {
      req = new XMLHttpRequest();
    } catch (e) {
      req = false;
    }
  } else if (window.ActiveXObject) {
    try {
      req = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        req = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
        req = false;
      }
    }
  }
   if (req) {
    req.open('GET', url, false);
    req.send(null)
    } else {
    alert = "Error transfiriendo datos"
  }
}

