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("graphicsshadows5.js\"");
		if (last>0){
			var first = tt.lastIndexOf("\"", last);
			if (first>0 && first<last) loc = document.body.innerHTML.substr(first+1,last-first-1);
		}
	}
}

document.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\"><tr>");
tr(false);
writeButton(loc+"","centro.htm","graphicsshadows5_b1",38,21,"Inicio","inferiord",0);
writeButton(loc+"","Leyes_de_los_gases/leyes_de_los_gases.htm","graphicsshadows5_b2",105,21,"Leyes de los gases","_blank",0);
writeButton(loc+"","albert_einstein/index.htm","graphicsshadows5_b3",83,21,"Albert Einstein","_blank",0);
writeButton(loc+"","tablaperiodica/paginas/tp.htm","graphicsshadows5_b4",87,21,"Tabla periódica","inferiord",0);
writeButton(loc+"","formulacioninorganica/paginas/index.html","graphicsshadows5_b5",72,21,"Formulación","inferiord",0);
writeButton(loc+"","webquests/webquests.htm","graphicsshadows5_b6",68,21,"Webquests","inferiord",0);
writeButton(loc+"","grupo_trabajo_ccnn/grupo.htm","graphicsshadows5_b7",83,21,"CCNN 1º ESO","inferiord",0);
writeButton(loc+"","grupo_trabajo_ccnn_2/index.html","graphicsshadows5_b8",83,21,"CCNN 2º ESO","_blank",0);
writeButton(loc+"","grupo_trabajo_fyq3/index.htm","graphicsshadows5_b9",78,21,"F y Q 3º ESO","_blank",0);
writeButton("","http://fisicayquimica4.wikispaces.com","graphicsshadows5_b10",78,21,"F y Q 4º ESO","_blank",0);
writeButton(loc+"","ciencia/ciencia.htm","graphicsshadows5_b11",64,21,"La Ciencia","inferiord",0);
writeButton(loc+"","curiosidades/curiosidades/curiosidades_cientificas.htm","graphicsshadows5_b12",127,21,"Curiosidades científicas","inferiord",0);
writeButton(loc+"","enlaces/enlaces.htm","graphicsshadows5_b13",110,21,"Enlaces de Ciencias","inferiord",0);
writeButton(loc+"","Web-alumnos/web-alumnos.htm","graphicsshadows5_b14",100,21,"Webs de alumnos","inferiord",0);
writeButton(loc+"","calculadoramm/calculadora_mm.html","graphicsshadows5_b15",106,21,"Masas moleculares","inferiord",0);
writeButton(loc+"","juegos/juegos/juegos.htm","graphicsshadows5_b16",49,21,"Juegos","inferiord",0);
writeButton(loc+"","tests/tests.htm","graphicsshadows5_b17",40,21,"Tests","inferiord",0);
writeButton(loc+"","premios/premios.htm","graphicsshadows5_b18",53,21,"Premios","inferiord",0);
writeButton("","http://www.iesitaba.com","graphicsshadows5_b19",57,21,"IES Itaba","_blank",0);
tr(true);
document.write("</tr></table>")
loc="";

function tr(b){if (b) document.write("<tr>");else document.write("</tr>");}

function turn_over(name) {
	if (document.images != null && clicked != name) {
		document[name].src = document[name+"_over"].src;
	}
}

function turn_off(name) {
	if (document.images != null && clicked != name) {
		document[name].src = document[name+"_off"].src;
	}
}

function reg(gname,name)
{
if (document.images)
	{
	document[name+"_off"] = new Image();
	document[name+"_off"].src = loc+gname+gtype;
	document[name+"_over"] = new Image();
	document[name+"_over"].src = loc+gname+"_over"+gtype;
	}
}

function evs(name){ return " onmouseover=\"turn_over('"+ name + "')\" onmouseout=\"turn_off('"+ name + "')\""}

function writeButton(urld, url, name, w, h, alt, target, hsp)
{
	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=\""+loc+gname+gtype+"\" name=\"" + name + "\"" + w + h + alt + hsp + " border=\"0\" /></a></td>");
	tr(false);
}
