// JavaScript Document
var maxTabs = 5;

function activar(obj){
	var objId = (obj.id).split('-')
	var name = objId[0];
	var id = objId[1];
	hideAll(name);
	obj = document.getElementById("supTab-" + id);
	if (obj!=null)
		obj.className = "active";
	obj = document.getElementById("tab-" + id);
	if (obj!=null && obj.style!=null && obj.style.display!=null)
		obj.style.display = "block";
}


function hideAll(name){
	var obj = null;
	for(i=0;i<maxTabs;i++){
		obj = document.getElementById("supTab-" + i);
		if (obj!=null)
			obj.className = "normal";
		obj = document.getElementById("tab-" + i);
		if (obj!=null)
			obj.style.display = "none";
	}
}





function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

