 function init_etusivubutton()
 {
   var div      = document.getElementById('etusivubutton');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseIn, 0, 9, .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(9, .2);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .2);
  	       }
   }
}
 function init_etusivuhovershow()
 {
   var div      = document.getElementById('etusivuhovershow');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseIn, -1477, 0, .2, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-1477px';
  	           
                   div.style.overflow = 'hidden';
  	           div.style.display = 'block';
  	           tw.onMotionFinished = function(){ div.style.overflow = 'visible'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .2);
  	           
  	        }
   div.endf  = function ()
  	       { 
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(-1477, .2);
  	           
  	       }
   }
}
 function init_palvelutbutton()
 {
   var div      = document.getElementById('palvelutbutton');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseIn, 0, 9, .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(9, .2);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .2);
  	       }
   }
}
 function init_palveluthovershow()
 {
   var div      = document.getElementById('palveluthovershow');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseIn, -1477, 0, .2, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-1477px';
  	           
                   div.style.overflow = 'hidden';
  	           div.style.display = 'block';
  	           tw.onMotionFinished = function(){ div.style.overflow = 'visible'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .2);
  	           
  	        }
   div.endf  = function ()
  	       { 
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(-1477, .2);
  	           
  	       }
   }
}
 function init_referenssitbutton()
 {
   var div      = document.getElementById('referenssitbutton');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseIn, 0, 9, .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(9, .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 subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseIn, -1477, 0, .2, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-1477px';
  	           
                   div.style.overflow = 'hidden';
  	           div.style.display = 'block';
  	           tw.onMotionFinished = function(){ div.style.overflow = 'visible'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .2);
  	           
  	        }
   div.endf  = function ()
  	       { 
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(-1477, .2);
  	           
  	       }
   }
}
 function init_galleriabutton()
 {
   var div      = document.getElementById('galleriabutton');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseIn, 0, 9, .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(9, .2);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .2);
  	       }
   }
}
 function init_galleriahovershow()
 {
   var div      = document.getElementById('galleriahovershow');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseIn, -1477, 0, .2, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-1477px';
  	           
                   div.style.overflow = 'hidden';
  	           div.style.display = 'block';
  	           tw.onMotionFinished = function(){ div.style.overflow = 'visible'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .2);
  	           
  	        }
   div.endf  = function ()
  	       { 
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(-1477, .2);
  	           
  	       }
   }
}
 function init_yhteystiedotbutton()
 {
   var div      = document.getElementById('yhteystiedotbutton');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseIn, 0, 9, .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(9, .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 subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseIn, -1477, 0, .2, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-1477px';
  	           
                   div.style.overflow = 'hidden';
  	           div.style.display = 'block';
  	           tw.onMotionFinished = function(){ div.style.overflow = 'visible'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .2);
  	           
  	        }
   div.endf  = function ()
  	       { 
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(-1477, .2);
  	           
  	       }
   }
}
 function init_tausta()
 {
   var div      = document.getElementById('tausta');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseIn, 0, 120, .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(120, .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_tausta();
 init_yhteystiedothovershow();
 init_yhteystiedotbutton();
 init_galleriahovershow();
 init_galleriabutton();
 init_referenssithovershow();
 init_referenssitbutton();
 init_palveluthovershow();
 init_palvelutbutton();
 init_etusivuhovershow();
 init_etusivubutton();
}
