oM=new makeCM("oM"); oM.resizeCheck=1; oM.rows=1;  oM.onlineRoot=""; oM.pxBetween =0; 
oM.fillImg="cm_fill.gif"; oM.fromTop=160; oM.fromLeft=85; oM.wait=300; oM.zIndex=400;
oM.useBar=1; oM.barHeight="menu"; oM.barX=0;oM.barY="menu"; oM.barClass="clBar";
oM.barBorderX=0; oM.barBorderY=0;
oM.level[0]=new cm_makeLevel(90,21,"clT","clTover",1,1,"clB",0,"bottom",0,0,0,0,0);
oM.level[1]=new cm_makeLevel(102,22,"clS","clSover",1,1,"clB",0,"right",0,0,"/imagenes/flecha_menu.gif",10,10);
oM.level[2]=new cm_makeLevel(110,22,"clS2","clS2over");
oM.level[3]=new cm_makeLevel(140,22);

/** Menu principal **/

oM.makeMenu('m1','','Proyecto','/andros/proyecto/','',60,25);
oM.makeMenu('m2','','Grupos','/andros/grupos/','',55,25);
/* oM.makeMenu('m3','','Actividades','/andros/actividades/','',80,25); */
/* oM.makeMenu('m4','','Resultados','/andros/resultados/','',75,25); */
oM.makeMenu('m3','','Actividades','/andros/actividades/','',80,25);
oM.makeMenu('m4','','Resultados','','',75,25);
oM.makeMenu('m5','','Publicaciones','/andros/publicaciones/','',95,25);
/* oM.makeMenu('m6','','Divulgación','/andros/divulgacion/','',80,25); */
/* oM.makeMenu('m7','','Eventos','/andros/eventos/','',55,25); */
/* oM.makeMenu('m8','','Enlaces','/andros/enlaces/',55,25); */
oM.makeMenu('m6','','Divulgación','/andros/divulgacion/','',80,25);
oM.makeMenu('m7','','Eventos','/andros/eventos/','',55,25);
oM.makeMenu('m8','','Enlaces','/andros/enlaces/','',55,25);
oM.makeMenu('m9','','Espacio Privado','http://brujula.topografia.upm.es/bscw/bscw.cgi/236','',105,25);

/** Proyecto **/

/** oM.makeMenu('m11','m1','ASPE','/proyecto/ASPE.html','',70,0);
oM.makeMenu('m12','m1','TECSAL','/proyecto/TECSAL.html','',70,0);
oM.makeMenu('m13','m1','CEDEX','/proyecto/CEDEX.html','',70,0);
**/

function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
if ((myWidth-770) <= 0) myWidth = 770;
  return myWidth;
}


//** var avail="195+((cmpage.x2-235)/7)";**//
// ** oM.menuPlacement=new Array(192,avail+"-11",avail+"*2-8",avail+"*3-12",avail+"*4-7",avail+"*5-9",avail+"*6+5") **//
//** oM.menuPlacement=new Array(200,avail,avail+"*2+35",avail+"*3+20") **//
//** oM.menuPlacement=new Array(200,280,400,465) **//
oM.menuPlacement=new Array(((alertSize()-770)/2)+50,((alertSize()-770)/2)+110,((alertSize()-770)/2)+165,((alertSize()-770)/2)+245,((alertSize()-770)/2)+320,((alertSize()-770)/2)+410,((alertSize()-770)/2)+490,((alertSize()-770)/2)+545,((alertSize()-770)/2)+600)
oM.construct()

