 function init_opennamemenu()
 {
   var div      = document.getElementById('opennamemenu');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'top', Tween.regularEaseInOut, -178, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.top = '-178px';
  	           
                   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(-178, .5);
  	           
  	       }
   }
}
 function init_i611blacktopopen()
 {
   var div      = document.getElementById('i611blacktopopen');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'top', Tween.regularEaseInOut, 39, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.top = '39px';
  	           
                   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(39, .5);
  	           
  	       }
   }
}
 function init_biglogomenu()
 {
 	var div      = document.getElementById('biglogomenu');
        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_i616blacktopopen()
 {
   var div      = document.getElementById('i616blacktopopen');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'top', Tween.regularEaseInOut, 39, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.top = '39px';
  	           
                   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(39, .5);
  	           
  	       }
   }
}
 function init_companymenumenu()
 {
   var div      = document.getElementById('companymenumenu');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'top', Tween.regularEaseInOut, -212, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.top = '-212px';
  	           
                   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(-212, .5);
  	           
  	       }
   }
}
 function init_blacktopcopy()
 {
   var div      = document.getElementById('blacktopcopy');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'top', Tween.regularEaseInOut, 39, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.top = '39px';
  	           
                   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(39, .5);
  	           
  	       }
   }
}
 function init_addthisxmedia()
 {
 	var div      = document.getElementById('addthisxmedia');
        if(div)
        {
 	var tw = new OpacityTween(div,Tween.regularEaseInOut,0,100,.5);
 	div.startf = function ()
  	             {
                        div.style.overflow = 'visible';
  	                tw.onMotionFinished = undefined;
  	                tw.continueTo(100, .5);
  	                div.style.display = 'block';
                        
  	             }
        div.endf   = function ()
  	             {
                        tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	                tw.continueTo(0, .5);
  	             }
        }
 }
 function init_mainmenumenutext()
 {
   var div      = document.getElementById('mainmenumenutext');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'top', Tween.regularEaseInOut, -336, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.top = '-336px';
  	           
                   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(-336, .5);
  	           
  	       }
   }
}
 function init_sitehelphovershowtext()
 {
   var div      = document.getElementById('sitehelphovershowtext');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'top', Tween.regularEaseInOut, -336, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.top = '-336px';
  	           
                   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(-336, .5);
  	           
  	       }
   }
}
 function init_blacktop()
 {
   var div      = document.getElementById('blacktop');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'top', Tween.regularEaseInOut, 39, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.top = '39px';
  	           
                   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(39, .5);
  	           
  	       }
   }
}

function init_tweens()
{
 init_blacktop();
 init_sitehelphovershowtext();
 init_mainmenumenutext();
 init_addthisxmedia();
 init_blacktopcopy();
 init_companymenumenu();
 init_i616blacktopopen();
 init_biglogomenu();
 init_i611blacktopopen();
 init_opennamemenu();
}
