function ieHover()
{
	var nav = document.getElementById("img");
	if (nav)
	{
		var nodes = nav.getElementsByTagName("a");
		for (var i=0; i<nodes.length; i++)
		{
			nodes[i].onmouseover = function() 
			{
				this.className += " hover";
			}
			nodes[i].onmouseout = function()
			{
				this.className = this.className.replace(" hover", "");
			}
		}
	}
}

if (window.attachEvent && !window.opera){
	window.attachEvent("onload", ieHover);
}

// Cambio la funcionalidad de los link segun funcion

function externalLinks() {
	if (!document.getElementsByTagName) return;
	var anchors = document.getElementsByTagName("a");
	for (var i=0; i<anchors.length; i++) {
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external") {
			anchor.target = "_blank";
		}
	}
}
window.onload = externalLinks;



function cambiaEstado(iden)
{
	
var elhtml = document.getElementById(iden);
if (elhtml.style.display == 'block')
     elhtml.style.display = 'none';
else
     elhtml.style.display = 'block';
}


