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"; 
} 
} 

function initAccordionHor(){
	divs=document.getElementsByTagName('div');
	i=divs.length-1;
	togglers = new Array();
	stretchers = new Array();
	do {
		if(divs[i].className=="TOG") {
		togglers.push(divs[i]);
		divs[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		divs[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
		}
		if(divs[i].className=="STR") stretchers.push(divs[i]);
	}
	while(--i);
	
	a=new Accordion(togglers,stretchers,{
			start:false,
			show:false,
			height: false,
			width: true,
			display: 5,
			alwaysHide: false,
			duration: 250,
			fixedWidth: 650,
			fps: 50,
			opacity: false,
			onActive:function(toggler,i){
				toggler.addClass('active');
				i.addClass('active');
			},
			onBackground:function(toggler,i){
				toggler.removeClass('active');
				i.removeClass('active');
				//alert(i)
			}
		}
	);
	document.getElementById("cuerpo").style.visibility="visible";
}

window.onload = function () {
initAccordionHor();
externalLinks();
}


