//=====================================================================||
//               NOP Design JavaScript Shopping Cart
//                                                                   
// For more information on SmartSystems, or how NOPDesign can help you 
// Please visit us on the WWW at http://www.nopdesign.com
//                                                                  
// Javascript portions of this shopping cart software are available as
// freeware from NOP Design.  You must keep this comment unchanged in
// your code.  For more information contact FreeCart@NopDesign.com.
//                                                                 
// JavaScript Shop Module, V.4.4.0   
//=====================================================================||

//=====================================================================||
// Mòdul rectificat per CARLES ALCALÀ 
//                      (carles@cellercansais.com) 
//                      15/08/05
//=====================================================================||

//=====================================================================||
// Funcions del mòdul 
//  
// DEB_Posicio_SubMenus
// DEB_SubMenus
//=====================================================================||

function DEB_Posicio_SubMenus(valor)
{
 return (((document.body.clientWidth - 718) / 2) + valor);
}

function DEB_SubMenus(valor, estado)
{
 if (estado == 'hidden')
 {
  for (var j = 1; j < document.contMenus.ContadorMenus.value; j++)
  {
   eval("var obj = document.getElementById('Submenu" + j + "')");
   obj.style.visibility = 'hidden';
  }
 }
 else
 {
  for (var j = 1; j < document.contMenus.ContadorMenus.value; j++)
  {
   eval("var obj = document.getElementById('Submenu" + j + "')");
   obj.style.visibility = 'hidden';
  }
  if (valor != 0 ) 
  {
   var obj = document.getElementById(valor);
   obj.style.visibility = 'visible';
  }
 }
}