<!--
content = new Array ();
content [1] = new Array (false,new Array('sub_1_1','sub_1_24','sub_1_2','sub_1_3','sub_1_4','sub_1_5','sub_1_6','sub_1_7','sub_1_8','sub_1_9','sub_1_10','sub_1_11','sub_1_12','sub_1_13','sub_1_14','sub_1_15','sub_1_16','sub_1_17','sub_1_18','sub_1_19','sub_1_20','sub_1_21','sub_1_22','sub_1_23','sub_1_25') );
content [0] = new Array (false,new Array('sub_0_1','sub_0_2','sub_0_3','sub_0_4','sub_0_5','sub_0_6') );
content [2] = new Array (false,new Array('sub_2_1','sub_2_2','sub_2_3','sub_2_4') );

isOPERA = (navigator.userAgent.indexOf('Opera') >= 0)? true : false;
isIE    = (document.all && !isOPERA)? true : false;
isDOM   = (document.getElementById && !isIE && !isOPERA)? true : false;
function processTree (id)
{
	if (content [id][0])
	{
		for (i = 0; i < content [id][1].length; i++)
			hide (content [id][1][i]);

		content [id][0] = false;
	}
	else
	{
		for (i = 0; i < content [id][1].length; i++)
			show (content [id][1][i], 'table-row');

		content [id][0] = true;
	}
	return false;
}
function show (id, displayValue)
{
	if (isDOM)
		document.getElementById(id).style.display = (displayValue)? displayValue : "block";
	else if (isIE)
		document.all[id].style.display = "block";
}

function hide (id)
{
	if (isDOM)
		document.getElementById(id).style.display = "none";
	else if (isIE)
		document.all[id].style.display = "none";
}
if (isDOM || isIE)
{
	document.writeln('<style type="text/css">');
	document.writeln('.SubItemRow \{ display: none; \}');
	document.writeln('</style>');
}

function loadTwo(iframe1URL, iframe2URL) 
{ 
parent.marcentrosup.location.href=iframe1URL ;
parent.marcentroinf.location.href=iframe2URL ;
} 
function loadAP(iframe1URL, iframe2URL) 
{ 
//document.getElementById("marcentrosup").height=480;
parent.marcentrosup.location.href=iframe1URL ;
parent.marcentroinf.location.href=iframe2URL ;
} 
function resize_iframe(marquito){
document.getElementById(marquito).height=100 ;
document.getElementById(marquito).height=window.frames[marquito].document.body.scrollHeight ;
} 

var rotate_delay = 3000; // delay in milliseconds (5000 = 5 secs)
current = 0;
function next() {
if (document.slideform.slide[current+1]) {
document.images.show.src = document.slideform.slide[current+1].value;
document.slideform.slide.selectedIndex = ++current;
   }
else first();
}
function previous() {
if (current-1 >= 0) {
document.images.show.src = document.slideform.slide[current-1].value;
document.slideform.slide.selectedIndex = --current;
   }
else last();
}
function first() {
current = 0;
document.images.show.src = document.slideform.slide[0].value;
document.slideform.slide.selectedIndex = 0;
}
function last() {
current = document.slideform.slide.length-1;
document.images.show.src = document.slideform.slide[current].value;
document.slideform.slide.selectedIndex = current;
}
function ap(text) {
document.slideform.slidebutton.value = (text == "Ver") ? " | | " : "Ver";
rotate();
}
function change() {
current = document.slideform.slide.selectedIndex;
document.images.show.src = document.slideform.slide[current].value;
}
function rotate() {
if (document.slideform.slidebutton.value == " | | ") {
current = (current == document.slideform.slide.length-1) ? 0 : current+1;
document.images.show.src = document.slideform.slide[current].value;
document.slideform.slide.selectedIndex = current;
window.setTimeout("rotate()", rotate_delay);
   }
}

// -->
