 function init_subproductsmenu()
 {
   var div      = document.getElementById('subproductsmenu');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'top', Tween.regularEaseInOut, -72, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.top = '-72px';
  	           
                   div.style.overflow = 'hidden';
  	           div.style.display = 'block';
  	           tw.onMotionFinished = function(){ div.style.overflow = 'visible'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .5);
  	           
  	        }
   div.endf  = function ()
  	       { 
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(-72, .5);
  	           
  	       }
   }
}
 function init_subproductsmenubg()
 {
   var div      = document.getElementById('subproductsmenubg');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'top', Tween.regularEaseInOut, -66, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.top = '-66px';
  	           
                   div.style.overflow = 'hidden';
  	           div.style.display = 'block';
  	           tw.onMotionFinished = function(){ div.style.overflow = 'visible'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .5);
  	           
  	        }
   div.endf  = function ()
  	       { 
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(-66, .5);
  	           
  	       }
   }
}

function init_tweens()
{
 init_subproductsmenubg();
 init_subproductsmenu();
}
