/* 
 * interfaz.js
 * IMPORTANTE: asegúrate que lo guardas con codificación UTF-8!!!
 */

function main_menu_init (self)
{
  self.append (new Menu ('MENU_INIT','Inicio', 'intro.html',
			'about.html', 'Descripción',
			'object.html', 'Objetivo'));

  self.append (new Menu ('MENU_ACTIVITY','Actividad', 'fomento.html',
			'fomento.html', 'Fomento del I+D+i',
			'castilla-y-leon.html', 'Fomento del I+D+i Castilla&nbsp;y&nbsp;León',
			'actividad.html', 'Actividad Fundacional',
			'equipo-tecnico.html', 'Equipo técnico',
			'financiacion.html', 'Financiación',
			'sectores.html', 'Sectores económicos',
			'empresas/index.html', 'Empresas'));

  self.append (new Menu ('MENU_PROJECTS','Proyectos', 'proyectos/index.html',
      'proyectos/arcyl/index.html', 'ARCYL',
      'proyectos/cuancom/index.html', 'CUANCOM',
      'proyectos/focyl/index.html', 'FOCyL',
			'proyectos/hipos/index.html', 'HIPOS',
			'proyectos/imcamfut/index.html', 'IMCAMFut',
			'proyectos/multiestam/index.html', 'MULTIESTAM',
			'proyectos/soma/index.html', 'SOMA'));

  self.append (new Menu ('MENU_PATRONATO','Patronato', 'organos-gobierno.html',
			'organos-gobierno.html', 'Órganos de Gobierno',
			'cargos-actuales.html', 'Cargos actuales'));

  self.append (new Menu ('MENU_ABOUT_US','Conócenos', 'donde-estamos.html',
			'donde-estamos.html', 'Dónde estamos',
			'links.html', 'Enlaces de interés',
			'trabajar.html', 'Trabaja con nosotros'));
}

// La clase MainMenu desciende de MenuBar...
function MainMenu()
{
  main_menu_init (this);
}
MainMenu.prototype = new MenuBar();

// Finalmente creamos los elementos que usamos en index.html
menu = new MainMenu();
function main()
{
  zNavigator.DoTest();
  change_bodytext_height();
  if (!zNavigator.Is ('MSIE'))
  {
    window.onresize = change_bodytext_height;
  }
}

function change_bodytext_height()
{
  if (!zNavigator.HasWindowInnerInfo()) return;

  var iframe = document.getElementById ("bodytext");
  var newHeight = (window.innerHeight - 152);
  iframe.style.height = newHeight + "px";
}



