 function init_etusivuhovershow()
 {
   var div      = document.getElementById('etusivuhovershow');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseInOut, 0, 48, .2, 'px');
   div.startf = function ()
  	        {
  	           div.style.height='0px';
                   div.style.overflow = 'hidden';
  	           div.style.display = 'block';
  	           tw.onMotionFinished = function(){ div.style.overflow = 'visible'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(48, .2);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .2);
  	       }
   }
}
 function init_tyothovershow()
 {
   var div      = document.getElementById('tyothovershow');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseInOut, 0, 48, .2, 'px');
   div.startf = function ()
  	        {
  	           div.style.height='0px';
                   div.style.overflow = 'hidden';
  	           div.style.display = 'block';
  	           tw.onMotionFinished = function(){ div.style.overflow = 'visible'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(48, .2);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .2);
  	       }
   }
}
 function init_referenssithovershow()
 {
   var div      = document.getElementById('referenssithovershow');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseInOut, 0, 48, .2, 'px');
   div.startf = function ()
  	        {
  	           div.style.height='0px';
                   div.style.overflow = 'hidden';
  	           div.style.display = 'block';
  	           tw.onMotionFinished = function(){ div.style.overflow = 'visible'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(48, .2);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .2);
  	       }
   }
}
 function init_yhteystiedothovershow()
 {
   var div      = document.getElementById('yhteystiedothovershow');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseInOut, 0, 48, .2, 'px');
   div.startf = function ()
  	        {
  	           div.style.height='0px';
                   div.style.overflow = 'hidden';
  	           div.style.display = 'block';
  	           tw.onMotionFinished = function(){ div.style.overflow = 'visible'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(48, .2);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .2);
  	       }
   }
}
 function init_lomakehovershow()
 {
   var div      = document.getElementById('lomakehovershow');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseInOut, 0, 48, .2, 'px');
   div.startf = function ()
  	        {
  	           div.style.height='0px';
                   div.style.overflow = 'hidden';
  	           div.style.display = 'block';
  	           tw.onMotionFinished = function(){ div.style.overflow = 'visible'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(48, .2);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .2);
  	       }
   }
}

function init_tweens()
{
 init_lomakehovershow();
 init_yhteystiedothovershow();
 init_referenssithovershow();
 init_tyothovershow();
 init_etusivuhovershow();
}
