/*****************************************************************************\
	#portal www.anticaidas.com
	#(c) anticaidas.com
	-----------------------------------------------------------------------
	fichero:menus.js
	autor: r@f@
	fecha: 02/08/2001
	descripcion: fichero con funciones javascript para responder a los eventos
		de raton sobre los elementos de los distintos menus.
\*****************************************************************************/


/**********************************************************\
	cell functions for Top menu
\**********************************************************/
/*
	efectos para responder al evento onMouseOver: pone el icono
	del raton a una mano y cambia el color de fondo de la celda.
*/
function tm_mOver(cell)
{
   if (!cell.contains(event.fromElement))
   {
      cell.style.cursor = 'hand';
      cell.bgColor = '#F09B47';

   }
}

function tm_mOut(cell)
{
   if (!cell.contains(event.toElement))
   {
      cell.style.cursor = 'default';
      cell.bgColor = '#0A72BE';
   }
}

function tm_mClick(cell)
{	
    if(event.srcElement.id=='celda_enlace'){
		event.srcElement.children.tags('A')[0].click();
	};
}


/**********************************************************\
	cell functions for Main Menu
\**********************************************************/
function mm_mOver(cell)
{
   if (!cell.contains(event.fromElement))
   {
      cell.style.cursor = 'hand';
      cell.bgColor = '#FFAE44';
	  
   }
}

function mm_mOut(cell)
{
   if (!cell.contains(event.toElement))
   {
      cell.style.cursor = 'default';
      cell.bgColor = '#0A72BE';
	  
   }
}

function mm_mClick(cell)
{	
    if(event.srcElement.id=='celda_enlace'){
		event.srcElement.children.tags('A')[0].click();
	};
}

/**********************************************************\
	cell functions for Secondary Menu
\**********************************************************/
function pm_mOver(cell)
{
   if (!cell.contains(event.fromElement))
   {
      cell.style.cursor = 'hand';
      cell.bgColor = '#96C8ED';
	  
   }
}

function pm_mOut(cell)
{
   if (!cell.contains(event.toElement))
   {
      cell.style.cursor = 'default';
      cell.bgColor = '#FDF4E3';
	  
   }
}

function pm_mClick(cell)
{	
    if(event.srcElement.id=='celda_enlace'){
		event.srcElement.children.tags('A')[0].click();
	};
}
