 function init_contactclickshowpanel()
 {
   var div      = document.getElementById('contactclickshowpanel');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseInOut, -664, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-664px';
  	           
                   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(-664, .5);
  	           
  	       }
   }
}
 function init_galleryclickshowpanel()
 {
   var div      = document.getElementById('galleryclickshowpanel');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseInOut, -664, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-664px';
  	           
                   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(-664, .5);
  	           
  	       }
   }
}
 function init_aboutclickshowpanel()
 {
   var div      = document.getElementById('aboutclickshowpanel');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseInOut, -664, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-664px';
  	           
                   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(-664, .5);
  	           
  	       }
   }
}
 function init_homepageimagehide()
 {
   var div      = document.getElementById('homepageimagehide');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseInOut, -660, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-660px';
  	           
                   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(-660, .5);
  	           
  	       }
   }
}

function init_tweens()
{
 init_homepageimagehide();
 init_aboutclickshowpanel();
 init_galleryclickshowpanel();
 init_contactclickshowpanel();
}
