// JavaScript Document
browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;
if (browser_type == "Microsoft Internet Explorer" && (browser_version >= 4))
{

document.write('<style type="text/css">');
document.write('html ');
document.write('{scrollbar-arrow-color: #ffca30;scrollbar-base-color: #fff;scrollbar-darkshadow-color:#ffffff;');
document.write('scrollbar-track-color: #ffffff;scrollbar-face-color: #fff;scrollbar-shadow-color: #ffca30;');
document.write('scrollbar-highlight-color: #ffca30;scrollbar-3d-light-color: #ffca30;}');
document.write('</style>');
} 

function abrepagina(pagina, win, titulo)
{
    titulo = "'" + titulo +"'";
	kk = window.open(pagina,'titulo',win);
	kk.focus();
	return !kk;
}

function explorer() {
if (document.all&&document.getElementById) {
  navRoot = document.getElementById("nav");
  for (i=0; i<navRoot.childNodes.length; i++) {
	node = navRoot.childNodes[i];
	if (node.nodeName=="LI") {
	  node.onmouseover=function() {
		this.className+=" over";
	  }
	  node.onmouseout=function() {
		this.className=this.className.replace(" over", "");
	  }
	}
  }
}
}


function explorer_nav2() {
if (document.all&&document.getElementById) {
  navRoot2 = document.getElementById("nav2");
  if (navRoot2 != null){
	for (i=0; i<navRoot2.childNodes.length; i++) {
		node = navRoot2.childNodes[i];
		if (node.nodeName=="LI") {
		  node.onmouseover=function() {
			this.className+=" over";
		  }
		  node.onmouseout=function() {
			this.className=this.className.replace(" over", "");
		  }
		}
	  }
  }
}
}

function explorer_nav3() {
if (document.all&&document.getElementById) {
  navRoot3 = document.getElementById("nav3");
  if (navRoot3 != null){
	for (i=0; i<navRoot3.childNodes.length; i++) {
		node = navRoot3.childNodes[i];
		if (node.nodeName=="LI") {
		  node.onmouseover=function() {
			this.className+=" over";
		  }
		  node.onmouseout=function() {
			this.className=this.className.replace(" over", "");
		  }
		}
	  }
  }
}
}


function reposiciona() 
{
	var id_ul;
	var pixeles = 118;
	var ancho;
	var posicion_i;
	var anchoVentana;
	for (i=1; i<10; i++) 
	{
		id_ul = "subnav" + i;	
		subnavRoot = document.getElementById(id_ul);
		if (subnavRoot)
		{
			switch (i)
			{
				case 1, 2, 3: 
						posicion_i = 0 ;
						ancho = posicion_i + "px";
						break;
				case 4: 
						posicion_i = 3 * pixeles;
						ancho = posicion_i + "px";
						break;
				case 5: 
						posicion_i = 4 * pixeles;
						ancho = posicion_i + "px";
						break;
				default: 
						posicion_i = 0;
						ancho = posicion_i + "px";
						
			}
			subnavRoot.style.paddingLeft = ancho;
			subnavRoot.style.marginLeft = 0;
			subnavRoot.style.left = 0;
			anchoVentana = 707 - posicion_i;
			subnavRoot.style.width = anchoVentana + 'px';	
		}
		
	}
}
function reposiciona_secundario() 
{
	var id_ul;
	var ancho;
	var posicion_i;
	var anchoVentana;
	for (i=1; i<10; i++) 
	{
		id_ul = "subnav2" + i;	
		subnavRoot = document.getElementById(id_ul);
		if (subnavRoot)
		{
			switch (i)
			{
				case 1, 2: 
						posicion_i = 0 ;
						ancho = posicion_i + "px";
						break;
				case 3: 
						posicion_i = 240;
						ancho = posicion_i + "px";
						break;
				case 4: 
						posicion_i = 350;
						ancho = posicion_i + "px";
						break;
				default: 
						posicion_i = 0;
						ancho = posicion_i + "px";
						
			}
			subnavRoot.style.paddingLeft = ancho;
			subnavRoot.style.marginLeft = 0;
			subnavRoot.style.left = 0;
			subnavRoot.style.height = '18px';
		}
	}
}

function borde_oculto ()
{
if (document.all&&document.getElementById)
	{
		navRoot = document.getElementById("nav");
		for (i=0; i<navRoot.childNodes.length; i++) 
		{
			node = navRoot.childNodes[i];
			numero = navRoot.childNodes.length;
			numero = numero - 1;
			if ((node.nodeName=="LI") && (numero == i))
				{
				navRoot.childNodes[i].style.borderRight = '2px solid #d4d0ae';	
				}
		}
	} 	
}

function todo()
{
	explorer();
}

window.onload = todo;




