function homeIntro()
{
	// HightLight CONTROL
	
	
	
	//--------------------------------------
	// INIT
	//--------------------------------------
	
	this.init = function()
	{
		window.onscroll = function()
		{
	
		};
	}
	
	//--------------------------------------
	// STEP EVENT CHANGE PAGE
	//--------------------------------------
	
	this.stepChangePage = function()
	{
	
	}
	
	//--------------------------------------
	// ANIMATE FRAME
	//--------------------------------------
	
	function animateFrames(targetObject, scrollMode)
	{	
		var headStart = 140;
		var bottomStart = 200;
		var imageHeight = $(targetObject).height();		
		var totalHeight = $( window ).height() - imageHeight - headStart - bottomStart;
		
		var topY = Math.round( $(targetObject).offset().top ) - ($( window ).scrollTop());
		var degrau = totalHeight/29;
		var currentFrame = 0;
		var imagePosition = 0;
		
		var limite;
		
		if($( window ).height() >= limite )
		{
			animateImage();
		}
		else
		{
			currentFrame = 29; 
			imagePosition = ( imageHeight + 16 )*currentFrame;
		}
		
		
		
		$(targetObject + ' img' ).each
		(
			function()
			{
				$(this).css( { marginTop: -imagePosition } );
			}
		);
			
			
			
		
		function animateImage()
		{
			
			//ÁREA VISÍVEL DA ANIMAÇAO
			if( Math.round( topY ) >= headStart && Math.round( topY ) < ( $( window ).height() - $(targetObject).height() - bottomStart ) )
			{
				currentFrame = Math.round( ( totalHeight + headStart - topY )/degrau ); 
				imagePosition = ( imageHeight + 16 )*currentFrame;
			}
			//ÁREA ACIMA DA ANIMAÇAO
			else if( Math.round( topY ) < headStart)
			{
				if($( window ).height() - ($(targetObject).offset().top + $(targetObject).height()) >= bottomStart)
				{
					currentFrame = Math.round( (topY - headStart)/degrau );
					if( currentFrame > -30 ) imagePosition = ( imageHeight + 16 )*( 29 + currentFrame );
					
				}
				else
				{
					currentFrame = 0; 
					imagePosition = ( imageHeight + 16 )*currentFrame;
				}
			
			}
			//ÁREA ABAIXO DA ANIMAÇAO
			else
			{
				currentFrame = 0; 
				imagePosition = ( imageHeight + 16 )*currentFrame;
			}
		}
	
		
	}
	
	
}	

