var index =
{
  incrementado: false,
  
  llamarEtiqueta:function(id,tipo)
  {
    alert("ENTRO");
    window.location = "http://www.unam.mx";
  },
  
  cambiarTamanioLetra:function(tipo)
  {
    var menuH2 = $$('.menus h2');
    var menuH3 = $$('.menus h3');
    var menuIzq = $$('.menu-izquierda, .menu-izquierda a');
    var menuDer = $$('.menu-derecha, .menu-derecha a');
    
    if(tipo == 'normal')
    {
      if(this.incrementado)
      {
        menuH2.each(function(elemento)
        {
          elemento.setStyle("font-size","14px");
        });
        
        menuH3.each(function(elemento)
        {
          elemento.setStyle("font-size","13px");
        });
        
        menuIzq.each(function(elemento)
        {
          elemento.setStyle("font-size","12px");
        });
        
        menuDer.each(function(elemento)
        {
          elemento.setStyle("font-size","12px");
        });

        this.incrementado = false;
      }
    }
    else if(tipo == 'grande')
    {
      if(!this.incrementado)
      {
        menuH2.each(function(elemento)
        {
          elemento.setStyle("font-size","17px");
        });
        
        menuH3.each(function(elemento)
        {
          elemento.setStyle("font-size","16px");
        });
        
        menuIzq.each(function(elemento)
        {
          elemento.setStyle("font-size","15px");
        });
        
        menuDer.each(function(elemento)
        {
          elemento.setStyle("font-size","15px");
        });
        
        this.incrementado = true;
      }
    }
  }
};

var marquesina = {
  cargar: function(){
          marMooquee = new Mooquee({
              trans:{'tin':'right', 'tout':'fade'},
              duration:4,
              pause:5,
              pauseOnHover: true,
              startOnLoad:true
          });   	
  }
};

/*
window.addEvent('domready', function()
{
  var arr = $$('span.middle');
  arr.each(function(elemento, indice)
  {
    var idLiga = arr[indice].id;
    $(idLiga).addEvent('click', function()
    {
      window.location = "http://www.unam.mx";
    });
  });
});
*/

/*
var proceso = function()
{
  window.location = 'http://www.unam.mx';
  var ruta = "http://www.unam.mx";
  alert("ENTRO: " + ruta);
  var cadena = this.id;
  arreglo = cadena.split("-");
  tipo = arreglo[0];
  relacion = arreglo[1];
  id = arreglo[2];

  window.location="buscar.php?tipo="+tipo+"&relacion="+relacion+"&id="+id;
};
*/
 
