
function Mostrar(obj){

	if(document.getElementById){
	var el = document.getElementById(obj);
	var ar = document.getElementById("opciones").getElementsByTagName("span"); 
		if(el.style.display != "block"){ 
			for (var i=0; i<ar.length; i++){
				if (ar[i].className=="submenu") 
			;//	ar[i].style.display = "none";
			}
			el.style.display = "block";
		}else{
			;//el.style.display = "none"; e1f4ff
		}
	}
}

function barra(){

document.writeln("<br><TABLE WIDTH=830 BORDER=0 CELLPADDING=0 CELLSPACING=0>");
document.writeln("<TR HEIGHT=65><td width=5%></td><td width=9%><a href=\"/\"><img src=/images/home.jpg border=0 width=30 height=30></a></td><TD HEIGHT=65 width=35% bgcolor = \"#ffffff\">");
document.writeln("<a href=\"http://sinbad.dit.upm.es\">");
document.writeln("<IMG SRC=\"/images/inicio_01Little.gif\"  BORDER=0 ALT=\"\" ></a>");
document.writeln("</TD>");
document.writeln("<TD bgcolor = \"#ffffff\" width=15% ><a href=\"http://www.dit.upm.es\">");
document.writeln("<IMG SRC=\"/images/inicio_03.gif\" WIDTH=60 HEIGHT=60 BORDER=0 ALT=\"\"></a>");
document.writeln("</TD><TD bgcolor=\"#ffffff\" width = 20 height=65></TD>");
document.writeln("<TD width=20% BGCOLOR=#ffffff><a href=\"http://www.etsit.upm.es\">");
document.writeln("<IMG SRC=\"/images/logo_etsit.gif\" WIDTH=115 HEIGHT=45 padding-top=40 BORDER=0 ALT=\"\"></a>");
document.writeln("</TD><TD bgcolor=\"#ffffff\" width = 40></TD>");
document.writeln("<TD width=20% BGCOLOR=#ffffff><a href=\"http://www.upm.es\">");
document.writeln("<IMG SRC=\"/images/upm1.gif\" WIDTH=52 HEIGHT=60 BORDER=0 ALT=\"\"></a>");
document.writeln("</TD>");
document.writeln("<TD bgcolor=\"#ffffff\" width=3% ></TD>");
document.writeln("</TR><TR>");
document.writeln("<TD colspan = 8 bgcolor = \"#ffffff\" background=\"/images/inicio_09.gif\" HEIGHT=40></TD>");
document.writeln("<TD bgcolor = \"#ffffff\" background=\"/images/finbarra.gif\" width = 820 HEIGHT=40></TD>");
document.writeln("</TR></TABLE>");
}



function anuncio(titulo,texto){
  document.writeln("<table bgcolor = \"#3e9ded\" width=100><tr><td align=center><table width=100% bgcolor = \"#ffffff\">");
  document.writeln("<tr><td width = 100% bgcolor=\"#415481\" align = center class = novedad>");
  document.writeln(titulo);
  document.writeln("</td></tr><tr><td bgcolor='#3e9ded' height=2></td></tr><tr><td align = center height = 30 bgcolor=\"#ffffff\" class=mediano>");
  document.writeln(texto);
  document.writeln("</td></tr></table></td></tr></table>");
}


function opcion(texto,a,mostrar){

 document.writeln("<div class='menu' onclick='Mostrar(\""+texto+"\")'>"+texto+"</div>");
 //texto.toLowerCase()

 document.writeln("<span class='submenu' id='"+texto+"'>");
 for(i = 0;i < a.length; i++)
 document.writeln("&nbsp;&nbsp;-&nbsp;<a href='/"+texto.toLowerCase()+"/"+a[i].toLowerCase() +".html'>"+ a[i] + "</a><br>"); 
 document.writeln("</span>");

//URL = new String(window.location);
//if(url.indexOf(texto.toLowerCase()) != -1 )Mostrar(texto);
if(mostrar)Mostrar(texto);
}

function opcion_titulo(texto){

 document.writeln("<div class='menu' onclick=\"window.location = '/"+texto.toLowerCase() + "/" + texto.toLowerCase() +".html';\">"+texto+"</div>");

}

function mostrar_opciones(){

opcion_titulo("Presentacion");

opcion_titulo("Personal");

var b = new Array("Lineas de Investigacion","Publicaciones","Proyectos","Conferencias","Tesis Doctorales","PFC");
opcion("Investigacion",b,true);

var a = new Array("Grado","Doctorado","Master");
opcion("Docencia",a,true);

}
function anuncios_globales(){
document.writeln("<center><br><IMG SRC=\"http://www.dit.upm.es/cgi-bin/nph-count?link=http://sinbad.dit.upm.es&width=6&increase=1\"></center><br>");

anuncio("<a href=\"/images/SinbadPosterCloudTeleco.pdf\"><img border=\"0\" height=\"65\" width=\"95\" src=\"/images/cloud.jpg\"/></a>","<a href=\"/investigacion/conferencias/conferencias2010/Foro Cloud Teleco/1-Programa.doc\"><font color=\"#FF0000\"><b>1· Programa Cloud'10 Teleco</b></font></a><br><hr style=\"color:#3e9ded\"><a href=\"/investigacion/conferencias/conferencias2010/Foro Cloud Teleco/2-Conferenciantes.pdf\"><font color=\"#FF0000\"><b>2· Apertura y Conferenciantes</b></font></a><br><hr style=\"color:#3e9ded\"><a href=\"/investigacion/conferencias/conferencias2010/Foro Cloud Teleco/3-Conf Carmen.pdf\"><font color=\"#FF0000\"><b>3· Conferencia C. Costilla-ETSIT</b></font></a><br><hr style=\"color:#3e9ded\"><a href=\"/investigacion/conferencias/conferencias2010/Foro Cloud Teleco/4-Conf Oracle.pdf\"><font color=\"#FF0000\"><b>4· Conferencia R. Duque-Oracle</b></font></a><br><hr style=\"color:#3e9ded\"><a href=\"/investigacion/conferencias/conferencias2010/Foro Cloud Teleco/5-Conf MS.pdf\"><font color=\"#FF0000\"><b>5· Conferencia C. de la Torre-Microsoft</b></font></a><br>");
document.writeln("");

document.writeln("<br>");
anuncio("<a href=\"/investigacion/conferencias/conferencias2009/2009EGAPConfCloud.pdf\"><img border=\"0\" height=\"65\" width=\"95\" src=\"/images/cloud.jpg\"/></a>","<a href=\"/investigacion/conferencias/conferencias2009/ProgramaConf.pdf\"><font color=\"#FF0000\"><b>1· Díptico'09 Jornada EGAP</b></font></a><br><hr style=\"color:#3e9ded\"><a href=\"/investigacion/conferencias/conferencias2009/2009EGAPConfCloud.pdf\"><font color=\"#FF0000\"><b>2· Conferencia Invitada</b></font></a><br>");
document.writeln("");
/*
anuncio("IDIOMA","<a href=\"/eng/\">English</a>");
document.writeln("<br>");
*/
/*
anuncio("<a href=\"/docencia/grado/curso0910/OpinionesAlumnos.doc\"><img border=\"0\" height=\"55\" width=\"95\" src=\"/images/new.jpg\"/></a>","<a href=\"/docencia/grado/curso0910/OpinionesAlumnos.doc\"><font color=\"#FF0000\"><b>1· Alumnos Opinan BSDT 2009-10</b></font></a><br><hr style=\"color:#3e9ded\"><a href=\"/docencia/doctorado/curso0809/curso0809.html\"><font color=\"#FF0000\"><b>2· Programa Doctorado 2008-09</b></font></a><br><hr style=\"color:#3e9ded\"><a href=\"/docencia/grado/curso1011/2010-11ProgramaBSDT.pdf\"><font color=\"#FF0000\"><b>3· Programa BSDT 2010-11</b></font></a>");
document.writeln("<br>");
*/

}
