var clicked=""
var gtype=".gif"
var selstate="_over"
if (typeof(loc)=="undefined" || loc==""){
	var loc=""
	if (document.body&&document.body.innerHTML){
		var tt = document.body.innerHTML.toLowerCase();
		var last = tt.indexOf("navegacion.js\"");
		if (last>0){
			var first = tt.lastIndexOf("\"", last);
			if (first>0 && first<last) loc = document.body.innerHTML.substr(first+1,last-first-1);
		}
	}
}

locImagenes="Imagenes\\Menu\\";
loc=""
document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>");
document.write("<td><img src="+locImagenes+"navegacion_left.gif alt=\"\" width=\"36\" height=\"36\"></td>");
tr(false);
writeButton(loc+"","QuienesSomos.htm","navegacion_b1",190,36,"Quienes somos","ContenedorPagina",0,locImagenes);
writeButton(loc+"","DondeEstamos.htm","navegacion_b2",193,36,"Dónde estamos","ContenedorPagina",0,locImagenes);
writeButton(loc+"","Instalaciones.htm","navegacion_b3",184,36,"Nuestras instalaciones","ContenedorPagina",0,locImagenes);
writeButton(loc+"","Info.htm","navegacion_b4",130,36,"Información de interes","ContenedorPagina",0,locImagenes);
tr(true);
document.write("<td><img src="+locImagenes+"navegacion_right.gif alt=\"\" width=\"36\" height=\"36\"></td>");
document.write("</tr></table>")
loc="";

function tr(b){}

function turn_over(name) {
	if (document[name].src != document[name+"_on"].src) {
		document[name].src = document[name+"_over"].src;
	}
}

function turn_off(name) {
	if (document[name].src != document[name+"_on"].src) {
		document[name].src = document[name+"_off"].src;
	}
	//alert(name + ' - ' + clicked);
}

function turn_on(name) {
//alert(name);
document["navegacion_b1"].src = document["navegacion_b1_off"].src;
document["navegacion_b2"].src = document["navegacion_b2_off"].src;
document["navegacion_b3"].src = document["navegacion_b3_off"].src;
document["navegacion_b4"].src = document["navegacion_b4_off"].src;

		document[name].src = document[name+"_on"].src;
}

function reg(gname,name)
{
if (document.images)
	{
	document[name+"_off"] = new Image();
	document[name+"_off"].src = locImagenes+gname+gtype;
	document[name+"_over"] = new Image();
	document[name+"_over"].src = locImagenes+gname+"_over"+gtype;
	document[name+"_on"] = new Image();
	document[name+"_on"].src = locImagenes+gname+"_on"+gtype;
	}
}

function evs(name){ return " onmouseover=\"turn_over('"+ name + "')\" onmouseout=\"turn_off('"+ name + "')\"  onclick=\"turn_on('"+ name + "')\""}

function writeButton(urld, url, name, w, h, alt, target, hsp,locImagenes)
{
	gname = name;
	while(typeof(document[name])!="undefined") name += "x";
	reg(gname, name);
	tr(true);
	document.write("<td>");
	if (alt != "") alt = " alt=\"" + alt + "\"";
	if (target != "") target = " target=\"" + target + "\"";
	if (w > 0) w = " width=\""+w+"\""; else w = "";
	if (h > 0) h = " height=\""+h+"\""; else h = "";	
	if (url != "") url = " href=\"" + urld + url + "\"";
	
	document.write("<a " + url + evs(name) + target + ">");	
	
	if (hsp == -1) hsp =" align=\"right\"";
	else if (hsp > 0) hsp = " hspace=\""+hsp+"\"";
	else hsp = "";
	
	document.write("<img src=\""+locImagenes+gname+gtype+"\" name=\"" + name + "\"" + w + h + alt + hsp + " border=\"0\" /></a></td>");
	tr(false);
}


