/* Author: Paolo Rau

*/
var Animations = {
    
    preLoadImages : function(arguments){
        Animations.cache = [];
        var args_len = arguments.length;
        for (var i = args_len; i--;) {
          var cacheImage = document.createElement('img');
          cacheImage.src = arguments[i];
          Animations.cache.push(cacheImage);
        }
    },
    
    animate: function(animat){
	  
	  $('#box2').animate(
	       {left: '305px', opacity: '1'},
	       700, animat , function(){$(this).addClass('box-class')}
	  )
	  
	  setTimeout(function(animat){
	       $('#box3').animate(
	       {left: '605px', opacity: '1'},
	       500, animat , function(){$(this).addClass('box-class')}
	       )
	       }, "100", animat)
	  
	  setTimeout(function(animat){
	       $('#box5').animate(
	       {left: '305px', opacity: '1'},
	       500,animat , function(){$(this).addClass('trabajos-home-effect')}
	       )
	       }, "200", animat)
	  
	  setTimeout(function(animat){
	       $('#box6').animate(
	       {left: '610px', opacity: '1'},
	       500,animat , function(){$(this).addClass('trabajos-home-effect')}
	       )
	       }, "300", animat)
	  
	  setTimeout(function(animat){
	       $('#box7').animate(
	       {top: '235px', opacity: '1'},
	       700,animat , function(){$(this).addClass('trabajos-home-effect')}
	       )
	       }, "400", animat)
	  
	  setTimeout(function(animat){
	       $('#box8').animate(
	       {top: '235px', left:'305px', opacity: '1'},
	       700,animat , function(){$(this).addClass('trabajos-home-effect')}
	       )
	       }, "500", animat)
	  
	  setTimeout(function(animat){
	       $('#box9').animate(
	       {top: '235px', left:'610px', opacity: '1'},
	       700,animat , function(){$(this).addClass('trabajos-home-effect')}
	       )
	       }, "600", animat)
    },
    
    catchHover:function(){
        $('.catch-hover').mouseenter(function(){
            $(this).find('.box-hover').show();    
        })
	$('.catch-hover').mouseleave(function(){
            $(this).find('.box-hover').hide();    
        })
    }
}
























