function ventana(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
 if(window.screen)if(isCenter)if(isCenter=="true"){
   var myLeft = (screen.width-myWidth)/2;
   var myTop = (screen.height-myHeight)/2;
   features+=(features!='')?',':'';
   features+=',left='+myLeft+',top='+myTop;
 }
 window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}



function cambiamail (buzon) {
var res = "";
for (var n = 0; n < buzon.length; n++)
res += String.fromCharCode(buzon.charCodeAt(n));
if (res.indexOf('@') < 0)
res = res + '@' + 'revistadelibros.com';
location = "mail" + "to:" + res;
}



// función para notas al pie de los articulos
function footnotes(contID,noteID)
{
	var cont = document.getElementById(contID);
	var noteholder = document.getElementById(noteID);
	var spans = cont.getElementsByTagName("span");
	var notes = 0;
	
	for (i=0;i<spans.length;i++)
	{
		if (spans[i].className == "footnote")
		{
			notes++;
      //if(noteholder) noteholder.innerHTML += "<div class='footnote'><a name='note"+notes+"'></a>" + notes + ". " + spans[i].innerHTML + " <a href='#nlink"+notes+"' title='regresar al texto'>&#8617;</a></div>";
      //if(noteholder) spans[i].innerHTML = "<a name='nlink"+notes+"' href='#note" + notes + "' title='ver nota al pie' class='footnote'><sup style='font-size: 12px;'>" + notes + "</sup></a>";

      if(noteholder) noteholder.innerHTML += "<div class='footnote'><a name='note"+notes+"'></a>" + notes + ". " + spans[i].innerHTML + " <a href=\"javascript:;\" onclick=\"document.location.hash='nlink"+notes+"';\" title='regresar al texto'>&#8617;</a></div>";
      if(noteholder) spans[i].innerHTML = "<a name='nlink"+notes+"' href=\"javascript:;\" onclick=\"document.location.hash='note"+notes+"';\" title='ver nota al pie' class='footnote'><sup style='font-size: 12px;'>" + notes + "</sup></a>";
      else spans[i].innerHTML = "";
		}
	}
}
//<!---->


//#####################################################################################
//si se ha cargado la librería jQuery entonces podemos cargar los slides
if((window.jQuery))
{

  // función para mostrar ocultar div en quienes somos / equipo -->
  $(document).ready(function()
  {
    //hide the all of the element with class msg_body
    $(".msg_body").hide();
    //toggle the componenet with class msg_body
    $(".msg_head").click(function()
    {
      $(this).next(".msg_body").slideToggle(600);
    });
  });
  //<!---->

  //<!-- función para mostrar ocultar div en cartas al director  -->
  $(document).ready(function()
  {
    //hide the all of the element with class msg_body
    $(".msg_body").hide();
    //toggle the componenet with class msg_body
    $(".msg_head2").click(function()
    {
      $(this).next(".msg_body").slideToggle(600);
    });
  });
  <!---->

  //<!-- función para mostrar ocultar div en FAQr  -->
  $(document).ready(function()
  {
    //hide the all of the element with class msg_body
    $(".msg_body").hide();
    //toggle the componenet with class msg_body
    $(".msg_head3").click(function()
    {
      $(this).next(".msg_body").slideToggle(600);
    });
  });
  <!---->

  //<!-- función para mostrar ocultar div en Tablón de Anuncios  -->
  $(document).ready(function()
  {
    //hide the all of the element with class msg_body
    $(".msg_body").hide();
    //toggle the componenet with class msg_body
    $(".msg_head4").click(function()
    {
      $(this).next(".msg_body").slideToggle(600);
    });
  });
  <!---->

  //<!-- función para mostrar ocultar div en AMIGOS  -->
  $(document).ready(function()
  {
    //hide the all of the element with class msg_body
    $(".msg_body").hide();
    //toggle the componenet with class msg_body
    $(".msg_head5").click(function()
    {
      $(this).next(".msg_body").slideToggle(600);
    });
  });
  <!---->
}
//#####################################################################################




function MM_CheckFlashVersion(reqVerStr,msg){
  with(navigator){
    var isIE  = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
    var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
    if (!isIE || !isWin){  
      var flashVer = -1;
      if (plugins && plugins.length > 0){
        var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
        desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
        if (desc == "") flashVer = -1;
        else{
          var descArr = desc.split(" ");
          var tempArrMajor = descArr[2].split(".");
          var verMajor = tempArrMajor[0];
          var tempArrMinor = (descArr[3] != "") ? descArr[3].split("r") : descArr[4].split("r");
          var verMinor = (tempArrMinor[1] > 0) ? tempArrMinor[1] : 0;
          flashVer =  parseFloat(verMajor + "." + verMinor);
        }
      }
      // WebTV has Flash Player 4 or lower -- too low for video
      else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;

      var verArr = reqVerStr.split(",");
      var reqVer = parseFloat(verArr[0] + "." + verArr[2]);
  
      if (flashVer < reqVer){
        if (confirm(msg))
          window.location = "http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
      }
    }
  } 
}
<!---->

