 function init_emailusclickshowform()
 {
 	var div      = document.getElementById('emailusclickshowform');
        if(div)
        {
 	var tw = new OpacityTween(div,Tween.regularEaseInOut,0,100,.3);
 	div.startf = function ()
  	             {
                        div.style.overflow = 'visible';
  	                tw.onMotionFinished = undefined;
  	                tw.continueTo(100, .3);
  	                div.style.display = 'block';
                        
  	             }
        div.endf   = function ()
  	             {
                        tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	                tw.continueTo(0, .3);
  	             }
        }
 }
 function init_googleusclickshowform()
 {
 	var div      = document.getElementById('googleusclickshowform');
        if(div)
        {
 	var tw = new OpacityTween(div,Tween.regularEaseInOut,0,100,.3);
 	div.startf = function ()
  	             {
                        div.style.overflow = 'visible';
  	                tw.onMotionFinished = undefined;
  	                tw.continueTo(100, .3);
  	                div.style.display = 'block';
                        
  	             }
        div.endf   = function ()
  	             {
                        tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	                tw.continueTo(0, .3);
  	             }
        }
 }
 function init_directionsclickshowform()
 {
   var div      = document.getElementById('directionsclickshowform');
   if(div)
   {
   var tw = new Tween(div.style, 'width', Tween.regularEaseInOut, 0, 581, .5, 'px');
   div.startf = function ()
  	        {
  	           div.style.width='0px';
                   div.style.overflow = 'hidden';
  	           div.style.display = 'block';
  	           tw.onMotionFinished = function(){ div.style.overflow = 'visible'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(581, .5);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .5);
  	       }
   }
}
 function init_emailclickshowform()
 {
   var div      = document.getElementById('emailclickshowform');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(div.style, 'width', Tween.regularEaseInOut, 0, 656, .5, 'px');
   var tw2 = new Tween(div.style, 'left', Tween.regularEaseInOut, 834, 178, .5, 'px');
   var tw3 = new Tween(subdiv.style, 'left', Tween.regularEaseInOut, -656, 0, .5, 'px');
   div.startf = function ()
  	        {
                   div.style.width = '0px';
                   div.style.left='834px';
                   div.style.overflow = 'hidden';
                   div.style.display = 'block';
                   subdiv.style.left = '-656px';
                   tw.onMotionFinished = function(){ div.style.overflow = 'visible'; tw.onMotionFinished = undefined; }
                   tw.continueTo(656, .5);
                   tw2.continueTo(178, .5);
                   tw3.continueTo(0, .5);
  	        }
   div.endf  = function ()
  	       { 
                   div.style.overflow = 'hidden';
                   tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
                   tw.continueTo(0, .5);
                   tw2.continueTo(834, .5);
                   tw3.continueTo(-656, .5);
  	       }
   }
}
 function init_eventsubmitclickshowform()
 {
 	var div      = document.getElementById('eventsubmitclickshowform');
        if(div)
        {
 	var tw = new OpacityTween(div,Tween.regularEaseInOut,0,100,.3);
 	div.startf = function ()
  	             {
                        div.style.overflow = 'visible';
  	                tw.onMotionFinished = undefined;
  	                tw.continueTo(100, .3);
  	                div.style.display = 'block';
                        
  	             }
        div.endf   = function ()
  	             {
                        tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	                tw.continueTo(0, .3);
  	             }
        }
 }

function init_tweens()
{
 init_eventsubmitclickshowform();
 init_emailclickshowform();
 init_directionsclickshowform();
 init_googleusclickshowform();
 init_emailusclickshowform();
}
