/*
* menu.js
*
* ==============================================================================
*
* License: Licencia de desarrollo de software.
*
* Copyright (c) 2004 iQual ingenieros S.L.L. All rights reserved.
*
* You should have received a copy of the License along with this program;
* if not, write to the iQual Ingenieros S.L.L.
*
* support@iqualingenieros.com
*
*/

	
/**
 * Establece el color de una celda de una tabla.
 *
 * @param   object   the table cell
 * @param   object   the color to use for this cell
 * @return  boolean  whether pointer is set or not
 */
function setCellColor(theCell, thePointerColor)
{
    // Cambia el color de fondo de la celda de la tabla
    //theCell.style.backgroundColor = thePointerColor;

    return true;
}

/**
 * Establece la imagen de fondo de una celda de una tabla.
 *
 * @param   object   the table cell
 * @param   object   the color to use for this cell
 * @return  boolean  whether pointer is set or not
 */
function setCellImage(theCell, theImagePath)
{
    // Cambia la imagen de fondo de la celda de la tabla    
	newImage = "url(images/topohover.gif)";
	theCell.style.backgroundImage = newImage;
	    
    return true;
}

function menuCellOver(theCell, theMenu) 
{
	//alert('over');
	//setCellColor(theCell, "#C63232");

	if (theMenu == "mainmenu")
	{
		newImage = "url(templates/toysandlove2/images/topohover.gif)";
		theCell.style.backgroundImage = newImage;
	}

} // menuCellOver

function menuCellOut(theCell, theMenu) 
{
	//alert('out');
	//setCellColor(theCell, "transparent");

	if (theMenu == "mainmenu")
	{
		newImage = "url(templates/toysandlove2/images/topo.gif)";
		theCell.style.backgroundImage = newImage;
	}
	
} // menuCellOut