 function init_davidsimcockbutton()
 {
   var div      = document.getElementById('davidsimcockbutton');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseInOut, 0, 15, .3, '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(15, .3);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .3);
  	       }
   }
}
 function init_teambutton()
 {
   var div      = document.getElementById('teambutton');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseInOut, 0, 15, .3, '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(15, .3);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .3);
  	       }
   }
}
 function init_ourapproachbutton()
 {
   var div      = document.getElementById('ourapproachbutton');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseInOut, 0, 15, .3, '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(15, .3);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .3);
  	       }
   }
}
 function init_i854aboutsubmenubg()
 {
   var div      = document.getElementById('i854aboutsubmenubg');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseInOut, 0, 108, .3, '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(108, .3);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .3);
  	       }
   }
}
 function init_archivenewsbutton()
 {
   var div      = document.getElementById('archivenewsbutton');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseInOut, 0, 15, .3, '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(15, .3);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .3);
  	       }
   }
}
 function init_currentnewsbutton()
 {
   var div      = document.getElementById('currentnewsbutton');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseInOut, 0, 15, .3, '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(15, .3);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .3);
  	       }
   }
}
 function init_i1733aboutsubmenubg()
 {
   var div      = document.getElementById('i1733aboutsubmenubg');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseInOut, 0, 74, .3, '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(74, .3);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .3);
  	       }
   }
}
 function init_horsesforsalebutton()
 {
   var div      = document.getElementById('horsesforsalebutton');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseInOut, 0, 15, .3, '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(15, .3);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .3);
  	       }
   }
}
 function init_olderhorsesbutton()
 {
   var div      = document.getElementById('olderhorsesbutton');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseInOut, 0, 15, .3, '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(15, .3);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .3);
  	       }
   }
}
 function init_threeyearoldsbutton()
 {
   var div      = document.getElementById('threeyearoldsbutton');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseInOut, 0, 15, .3, '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(15, .3);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .3);
  	       }
   }
}
 function init_twoyearoldsbutton()
 {
   var div      = document.getElementById('twoyearoldsbutton');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseInOut, 0, 15, .3, '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(15, .3);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .3);
  	       }
   }
}
 function init_horsesubmenubg()
 {
   var div      = document.getElementById('horsesubmenubg');
   if(div)
   {
   var tw = new Tween(div.style, 'height', Tween.regularEaseInOut, 0, 141, .3, '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(141, .3);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .3);
  	       }
   }
}
 function init_archivephotosbutton()
 {
 	var div      = document.getElementById('archivephotosbutton');
        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_michaelsmithsonbutton()
 {
   var div      = document.getElementById('michaelsmithsonbutton');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseInOut, -117, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-117px';
  	           
                   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(-117, .5);
  	           
  	       }
   }
}
 function init_hoofprintbutton()
 {
   var div      = document.getElementById('hoofprintbutton');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseInOut, -96, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-96px';
  	           
                   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(-96, .5);
  	           
  	       }
   }
}
 function init_i2276gallerysubmenubg()
 {
   var div      = document.getElementById('i2276gallerysubmenubg');
   if(div)
   {
   var tw = new Tween(div.style, 'width', Tween.regularEaseInOut, 0, 121, .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(121, .5);
  	        }
   div.endf  = function ()
  	       {
                   div.style.overflow = 'hidden';
  	           tw.onMotionFinished = function(){ div.style.display = 'none'; tw.onMotionFinished = undefined; }
  	           tw.continueTo(0, .5);
  	       }
   }
}
 function init_currentphotosbutton()
 {
 	var div      = document.getElementById('currentphotosbutton');
        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_april2011button()
 {
   var div      = document.getElementById('april2011button');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseInOut, -96, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-96px';
  	           
                   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(-96, .5);
  	           
  	       }
   }
}
 function init_may2011button()
 {
   var div      = document.getElementById('may2011button');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseInOut, -96, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-96px';
  	           
                   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(-96, .5);
  	           
  	       }
   }
}
 function init_june2011button()
 {
   var div      = document.getElementById('june2011button');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseInOut, -96, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-96px';
  	           
                   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(-96, .5);
  	           
  	       }
   }
}
 function init_julycupbutton()
 {
   var div      = document.getElementById('julycupbutton');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseInOut, -103, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-103px';
  	           
                   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(-103, .5);
  	           
  	       }
   }
}
 function init_july2011button()
 {
   var div      = document.getElementById('july2011button');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseInOut, -103, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-103px';
  	           
                   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(-103, .5);
  	           
  	       }
   }
}
 function init_august2011button()
 {
   var div      = document.getElementById('august2011button');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseInOut, -103, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-103px';
  	           
                   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(-103, .5);
  	           
  	       }
   }
}
 function init_gallerysubmenubgcopy()
 {
   var div      = document.getElementById('gallerysubmenubgcopy');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'left', Tween.regularEaseInOut, -102, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.left = '-102px';
  	           
                   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(-102, .5);
  	           
  	       }
   }
}
 function init_i2063gallerysubmenubg()
 {
   var div      = document.getElementById('i2063gallerysubmenubg');
   if(div)
   {
   var subdiv   = div.childNodes[0];
   var tw  = new Tween(subdiv.style, 'top', Tween.regularEaseInOut, -75, 0, .5, 'px');
   
   div.startf = function ()
  	        {
  	           subdiv.style.top = '-75px';
  	           
                   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(-75, .5);
  	           
  	       }
   }
}

function init_tweens()
{
 init_i2063gallerysubmenubg();
 init_gallerysubmenubgcopy();
 init_august2011button();
 init_july2011button();
 init_julycupbutton();
 init_june2011button();
 init_may2011button();
 init_april2011button();
 init_currentphotosbutton();
 init_i2276gallerysubmenubg();
 init_hoofprintbutton();
 init_michaelsmithsonbutton();
 init_archivephotosbutton();
 init_horsesubmenubg();
 init_twoyearoldsbutton();
 init_threeyearoldsbutton();
 init_olderhorsesbutton();
 init_horsesforsalebutton();
 init_i1733aboutsubmenubg();
 init_currentnewsbutton();
 init_archivenewsbutton();
 init_i854aboutsubmenubg();
 init_ourapproachbutton();
 init_teambutton();
 init_davidsimcockbutton();
}
