 function init_portfoliosubmenumenu()
 {
   var div      = document.getElementById('portfoliosubmenumenu');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'top', Tween.regularEaseInOut, -84, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.top = '-84px';
  	           
                   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(-84, .5);
  	           
  	       }
   }
}
 function init_portfoliosubmenubg()
 {
   var div      = document.getElementById('portfoliosubmenubg');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'top', Tween.regularEaseInOut, -104, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.top = '-104px';
  	           
                   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(-104, .5);
  	           
  	       }
   }
}
 function init_servicessubmenumenu()
 {
   var div      = document.getElementById('servicessubmenumenu');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'top', Tween.regularEaseInOut, -118, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.top = '-118px';
  	           
                   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(-118, .5);
  	           
  	       }
   }
}
 function init_servicessubbg()
 {
   var div      = document.getElementById('servicessubbg');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'top', Tween.regularEaseInOut, -137, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.top = '-137px';
  	           
                   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(-137, .5);
  	           
  	       }
   }
}

function init_tweens()
{
 init_servicessubbg();
 init_servicessubmenumenu();
 init_portfoliosubmenubg();
 init_portfoliosubmenumenu();
}
