function GetTransformedXML(id, xml, xsl)
{
    //new Transformation().setXml(xml).setXslt(xsl).transform(id);
    $('#' + id).xslt({ xmlUrl: xml, xslUrl: xsl });

}

function OpenNoticias(noticia)
{
	window.open('popupnoticias' + noticia + '.html', 'noticia', 'width=419,height=198');
}

function ArchivoNoticias()
{
	window.open('noticias.html', 'noticias', 'width=419,height=198');
}

/* 
The Visibility Toggle
Copyright 2003 by Sim D'Hertefelt 
www.interactionarchitect.com 
info@interactionarchitect.com
*/

var hotspots;
var toggles;

function visibilitytoggle() {
  hotspots = document.getElementsByName('hotspot');
  toggles = document.getElementsByName('toggle');

  for (var i = 0; i < hotspots.length; i++)
  {
  hotspots[i].someProperty = i;
  hotspots[i].onclick = function() {toggle(this.someProperty)};
  }

  for (var i = 0; i < toggles.length; i++)
  {
  toggles[i].style.display = 'none';
  }
}

function toggle(i) {
  if (toggles[i].style.display == 'none')
  {toggles[i].style.display = ''
  }
  else
  toggles[i].style.display = 'none'
}

function togglevis(i) {
    var o = document.getElementById(i);
    
    if (o.style.display == 'none') {
        o.style.display = ''
    }
    else
        o.style.display = 'none'
} 

function showall()
{
  for (var i = 0; i < toggles.length; i++)
  {
  toggles[i].style.display = '';
  }
}

function hideall()
{
  for (var i = 0; i < toggles.length; i++)
  {
  toggles[i].style.display = 'none';
  }
}