// JavaScript Document

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
   function showHide(subText)
        {
        var textBlock=document.getElementById(subText);
        var imgSign=document.getElementById('g'+subText);
        if(textBlock.style.display=='block')
        {
        textBlock.style.display='none';
        imgSign.src='images/btn_buscador_plus.jpg';
        imgSign.title='click para hacer busqueda'
        }
        else
        {
        textBlock.style.display='block';
        imgSign.src='images/btn_buscador_minus.jpg';
        imgSign.title='click para ocultar buscador'
        }

        }
	 function yourFather(subText)
        {
        var textBlock=document.getElementById(subText);
        var imgSign=document.getElementById('g'+subText);
        if(textBlock.style.display=='block')
        {
        textBlock.style.display='none';
        imgSign.src='images/icn_bullet_.jpg';
        imgSign.title='click para hacer busqueda'
        }
        else
        {
        textBlock.style.display='block';
        imgSign.src='images/btn_buscador_minus.jpg';
        imgSign.title='click para ocultar buscador'
        }

}
   function aggEvento(){
      var links = document.getElementById('migaja').getElementsByTagName('a');
      for(i=0; links[i]; i++){
         links[i].onclick = function(){
            var links = document.getElementById('migaja').getElementsByTagName('a');
            for(j=0; links[j]; j++){
               links[j].className = "";
            }
            this.className = 'on';
         }
      }
   }



 
   function dadSon(subText)
     {
        var textBlock=document.getElementById(subText);
        var imgSign=document.getElementById('g'+subText);
        if(textBlock.style.display=='block')
        {
        textBlock.style.display='none';
        imgSign.src='images/imgBullet_plus.gif';
        imgSign.title='click para desplegar'
        }
        else
        {
        textBlock.style.display='block';
        imgSign.src='images/imgBullet_minus.gif';
        imgSign.title='click para plegar'
        }

   }





function crearFooter() 
{
document.write("<div id=\"footer\"><div class=\"left\"><p>&copy; MapData S.A. de C.V, Todos los derechos reservados, 2009</p></div>");
document.write("<div class=\"right\"><p><a href=\"politicas_privacidad.html\">Pol&iacute;ticas de privacidad</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href=\"#\">T&eacute;rminos legales</a></p></div>");
document.write("<div class=\"logo_amipci\"><a href=\"http://amipci.org.mx\" target=\"_blank\"><img src=\"images/imgLogo_amipci_foot.gif\" alt=\"Asociaci&oacute;n Mexicana de Internet\" border=\"0\" /></a></div></div>");
}




function mostrarCapa(tabulado) {
	//alert(capa);
	MM_showHideLayers( 
	
		'tab_a','', tabulado == 'tab_a' ? 'show' : 'hide',
		'tab_b','', tabulado == 'tab_b' ? 'show' : 'hide',
		'tab_c','', tabulado == 'tab_c' ? 'show' : 'hide',
		'tab_d','', tabulado == 'tab_d' ? 'show' : 'hide',
		'tab_e','', tabulado == 'tab_e' ? 'show' : 'hide',
		'tab_f','', tabulado == 'tab_f' ? 'show' : 'hide',
		'tab_g','', tabulado == 'tab_g' ? 'show' : 'hide',
		'tab_h','', tabulado == 'tab_h' ? 'show' : 'hide',
		'tab_i','', tabulado == 'tab_i' ? 'show' : 'hide',
		'tab_j','', tabulado == 'tab_j' ? 'show' : 'hide',
		'tab_k','', tabulado == 'tab_k' ? 'show' : 'hide',
		'tab_l','', tabulado == 'tab_l' ? 'show' : 'hide',
		'tab_m','', tabulado == 'tab_m' ? 'show' : 'hide',
		'tab_n','', tabulado == 'tab_n' ? 'show' : 'hide',
		'tab_o','', tabulado == 'tab_o' ? 'show' : 'hide',
		'tab_p','', tabulado == 'tab_p' ? 'show' : 'hide',
		'tab_q','', tabulado == 'tab_q' ? 'show' : 'hide',
		'tab_r','', tabulado == 'tab_r' ? 'show' : 'hide',
		'conten_transparencia','', tabulado == 'conten_transparencia' ? 'show' : 'hide'
		
	);
}






function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}