////////////////////Please leave this notice/////////////////////
//	Dynamic JS Menu 1.0														//
//	By Pat Libby (Libbypa@maine.rr.com)									//
//	http://dragonsbane1.topcities.com									//
//	It works only with IE5.0(++) and Netscape6.0(++)				//
//	Free to use!																//
////////////////////Last modified 01-31-2003/////////////////////
// Traducido al espaņol y comentado por El Codigo					//
// http://www.elcodigo.net													//
/////////////////////////////////////////////////////////////////

//	Colores del menu
var tdColor="#000000";		// color del texto de los elementos del menu
var tdBgColor="#EFEFFF";	// color de fondo de los elementos del menu
var hlColor="#000000";		// color texto cuando puntero encima
var hlBgColor="#FFFFFF";	// color fondo cuando punetor encima
//	Los mismos valores deben estar en menuNav.css

// Definicion del menu
//categoria Inicio
td_1 = "INICIO"
url_1 = "http://www.anunciosgratis.ws/"
	
//categoria anuncios
td_2= "ANUNCIOS"
td_2_1 = "Publicar anuncios"
url_2_1 = "http://www.anunciosgratis.ws/publicar/publicar_anuncio.php"
td_2_2 = "Ver mis anuncios"
url_2_2 = "http://www.anunciosgratis.ws/publicar/anuncios_anunciante.php"

//enlace al tienda virtual
td_3 = "TIENDAS VIRTUALES"
td_3_1 = "Buscar tiendas"
url_3_1 = "http://www.anunciosgratis.ws/tiendavirtual/buscar_tienda.php"
td_3_2 = "Navegar en Tiendas"
url_3_2 = "http://www.anunciosgratis.ws/tiendavirtual/"
td_3_3 = "Crear tienda/servicios"
url_3_3 = "http://www.anunciosgratis.ws/tiendavirtual/crear_tienda.php"

td_4 = "JUEGOS ONLINE"
url_4= "http://www.anunciosgratis.ws/juegos/"
//enlace acceso
td_5 = "ACCESO USUARIOS"
td_5_1= "Ingresar"
url_5_1 = "http://www.anunciosgratis.ws/acceso/login.php"
td_5_2= "Crear Cuenta"
url_5_2 = "http://www.anunciosgratis.ws/acceso/nuevo_usuario.php"
td_5_3= "Contactar soporte"
url_5_3 = "http://www.anunciosgratis.ws/ayuda/contacto.php"

///////NO SON NECESARIOS CAMBIOS A PARTIR DE AQUI/////////////////
var md=250;
var ti=-1;
var oTd=new Object;
oTd=null;

function doMenu(td){
	clearTimeout(ti);
	td.style.backgroundColor=hlBgColor;
	td.style.color=hlColor;
	var i;
	var sT="";
	var tda=new Array();
	tda=td.id.split("_");
	if(oTd!=null){
		var tdo=new Array();
		tdo=oTd.id.split("_");
		for(i=1;i<tdo.length;i++){
			sT+="_"+tdo[i];
			if(tdo[i]!=tda[i]){
				document.getElementById("td"+sT).style.backgroundColor=tdBgColor;
				document.getElementById("td"+sT).style.color=tdColor;
				if(document.getElementById("tbl"+sT)!=null)
					document.getElementById("tbl"+sT).style.visibility="hidden";
			}
		}			
	}
	oTd=td;
	sT="tbl";
	for(i=1;i<tda.length;i++)
		sT+="_"+tda[i];
	if(document.getElementById(sT)!=null)
		document.getElementById(sT).style.visibility="visible";

}

function clearMenu(){
	if(oTd!=null){
		var tdo=new Array();
		tdo=oTd.id.split("_");
		var sT="";
		for(var i=1;i<tdo.length;i++){
			sT+="_"+tdo[i];
			document.getElementById("td"+sT).style.backgroundColor=tdBgColor;
			document.getElementById("td"+sT).style.color=tdColor;
			if(document.getElementById("tbl"+sT)!=null)
				document.getElementById("tbl"+sT).style.visibility="hidden";
		}
		oTd=null;			
	}
}

function runMenu(strURL){
	location.href=strURL;
}

var tt="";
var sT="";
var pT=new Array();
var tA=new Array();

function getCoord(st){
	tA=st.split("_");
	if(tA.length>2){
		tA=tA.slice(0,-1);
		tt=tA.join("_");
		return (document.getElementById("tbl"+tt).offsetTop+document.getElementById("td"+st).offsetTop+4)+"px;left:"+
			(document.getElementById("tbl"+tt).offsetLeft+document.getElementById("td"+st).offsetWidth-2)+"px\">";
	}
	return (document.getElementById("mainmenu").offsetTop+document.getElementById("td"+st).offsetHeight-2)+"px;left:"+
		  (document.getElementById("mainmenu").offsetLeft+document.getElementById("td"+st).offsetLeft+5)+"px\">";
}

s